ขั้นตอนระดับสูงในการเริ่มต้นใช้งาน Platforms API มีดังนี้
- สร้างโปรเจ็กต์ Google Cloud ใหม่ (หรือใช้โปรเจ็กต์ที่มีอยู่)
- สร้างบัญชีบริการในโปรเจ็กต์ Google Cloud และส่งบัญชีดังกล่าวให้ Google ผ่านผู้จัดการฝ่ายดูแลลูกค้าเพื่อเพิ่มบัญชีลงในบัญชี AdSense
- เปิดใช้ AdSense Platform API สําหรับโปรเจ็กต์ Google Cloud (โปรดทราบว่าหน้านี้จะแสดงเฉพาะโปรเจ็กต์ในรายการที่อนุญาต)
- สร้างคีย์บริการ
- ใช้ไลบรารี OAuth ของ Google เพื่อสร้างโทเค็นการเข้าถึง
- เรียกใช้ AdSense Platform API โดยใช้คําขอ HTTP
ขั้นตอนที่ 1-5 อธิบายอยู่ในหน้าการตรวจสอบสิทธิ์การเรียก API และ API แต่ละรายการจะอธิบายอยู่ในหน้าของ API นั้นๆ
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
[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"]]