Platforms API'yi kullanmaya başlamak için genel süreç şu şekildedir:
- Yeni bir Google Cloud projesi oluşturun (veya mevcut bir projeyi kullanın)
- Google Cloud projenizde bir hizmet hesabı oluşturun ve hesabı AdSense hesabınıza eklemek için hesap yöneticiniz aracılığıyla Google'a gönderin.
- Google Cloud projeniz için AdSense Platform API'yi etkinleştirin (bu sayfanın yalnızca izin verilenler listesine eklenen projeler tarafından görülebileceğini unutmayın)
- Hizmet anahtarı oluşturma
- Erişim jetonu oluşturmak için Google'ın OAuth kitaplıklarını kullanma
- HTTP isteklerini kullanarak AdSense Platform API'lerini çağırma
1 ile 5 arasındaki adımlar API çağrılarında kimlik doğrulama sayfasında, API'ler ise ilgili sayfalarında açıklanmaktadır:
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
[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"]]