透過集合功能整理內容
你可以依據偏好儲存及分類內容。
以下是使用 Platforms API 的概略程序:
- 建立新的 Google Cloud 專案 (或使用現有專案)
- 在 Google Cloud 專案中建立服務帳戶,然後透過帳戶經理將帳戶傳送給 Google,以便將帳戶新增至 AdSense 帳戶
- 為 Google Cloud 專案啟用 AdSense Platform API (請注意,只有允許清單中的專案可查看這個頁面)
- 建立服務金鑰
- 使用 Google 的 OAuth 程式庫產生存取權杖
- 使用 HTTP 要求呼叫 AdSense 平台 API
步驟 1 到 5 的說明請參閱「驗證 API 呼叫」頁面,而各個 API 的說明則請參閱各自的頁面:
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["缺少我需要的資訊","missingTheInformationINeed","thumb-down"],["過於複雜/步驟過多","tooComplicatedTooManySteps","thumb-down"],["過時","outOfDate","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["示例/程式碼問題","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],[],[[["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"]]