Berikut adalah proses tingkat tinggi untuk memulai dengan Platforms API:
- Membuat project Google Cloud baru (atau menggunakan project yang sudah ada)
- Buat akun layanan di project Google Cloud, lalu kirim akun tersebut ke Google melalui Account Manager Anda agar ditambahkan ke akun AdSense
- Aktifkan AdSense Platform API untuk project Google Cloud Anda (perhatikan bahwa halaman ini hanya dapat dilihat oleh project yang diizinkan)
- Membuat kunci layanan
- Menggunakan library OAuth Google untuk membuat token akses
- Memanggil AdSense Platform API menggunakan permintaan HTTP
Langkah 1 hingga 5 dijelaskan di halaman Mengautentikasi panggilan API, dan API dijelaskan di halaman masing-masing:
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
[null,null,[],[[["CustomChannel is a resource representing a custom channel, providing a way to segment ad revenue based on specific criteria."],["It has fields like `name`, `reportingDimensionId`, `displayName`, and `active` for identification and configuration."],["You can manage CustomChannels using methods like create, delete, get, list, listLinkedAdUnits, and patch to control their lifecycle and relationships with ad units."],["Refer to the provided links for detailed information on each method and field."]]],["To utilize the Platforms API, first, establish a Google Cloud project and create a service account, sending it to Google. Then, enable the AdSense Platform API for the project and generate a service key. Use Google's OAuth libraries to obtain an access token. Finally, make HTTP requests to call the AdSense Platform APIs. These APIs enable creating, getting accounts, adding event data, adding sites, and requesting site reviews. Steps to generate the service key and authentication are available at [Authenticating API calls](/adsense/platforms/api/authenticating-api-calls).\n"]]