使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
以下是开始使用 Platforms API 的简要过程:
- 创建新的 Google Cloud 项目(或使用现有项目)
- 在 Google Cloud 项目中创建一个服务账号,然后通过您的客户经理将该账号发送给 Google,以将其添加到您的 AdSense 账号
- 为您的 Google Cloud 项目启用 AdSense Platform API(请注意,此页面仅对列入许可名单的项目可见)
- 创建服务密钥
- 使用 Google 的 OAuth 库生成访问令牌
- 使用 HTTP 请求调用 AdSense 平台 API
第 1 步到第 5 步在对 API 调用进行身份验证页面中进行了介绍,各个 API 在其各自的页面中进行了介绍:
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。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"]]