Overview
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
借助 Google Ad Manager Video API,您可以更新存储在 Google Ad Manager 中的视频内容的元数据。
Google Ad Manager Video API 中有两项服务:
- 视频内容提取服务
- 广告插播时间点通知服务。
视频内容提取服务
通过视频内容提取服务,您可以在视频内容更新时通知 Google Ad Manager。您可以通过此 API 通知 Google Ad Manager,这样更新后的元数据尽快可用于广告定位,而无需等待 Google Ad Manager 发起的定期同步。
通过广告插播时间点通知服务,发布商可以在广告插播开始前通知 Google Ad Manager 即将到来的广告插播时间点及其元数据。
初始设置
由于发布商必须启用才能使用 Google Ad Manager Video API,因此您必须提供自己的 Google Cloud 帐号、服务帐号和您想访问的 Ad Manager 广告资源网。
要开始使用 Google Ad Manager Video API,请完成以下步骤:
- 创建 Google Cloud 控制台账号
- 在 Google Cloud 控制台中,创建一个新项目。
- 为新项目创建服务帐号。
- 按照添加服务帐号用户以获取 API 访问权限中的步骤,向 Ad Manager 添加服务帐号。
使用 Google API 客户端库调用 Google Ad Manager Video API
完成初始设置过程后,您可以使用所选语言的客户端库向 API 发送 HTTP 或 gRPC 请求。如需了解详情,请参阅以下资源:
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-08-21。
[null,null,["最后更新时间 (UTC):2025-08-21。"],[[["\u003cp\u003eThe Google Ad Manager Video API enables updating video content metadata and notifying Google Ad Manager of updates and upcoming ad breaks, enhancing ad targeting.\u003c/p\u003e\n"],["\u003cp\u003eThe API comprises two services: Video Content Ingestion Service for metadata updates and Ad Break Notification Service for signaling upcoming ad breaks.\u003c/p\u003e\n"],["\u003cp\u003eTo utilize the API, publishers must be enabled and complete an initial setup involving creating a Google Cloud account, project, and service account linked to their Ad Manager network.\u003c/p\u003e\n"],["\u003cp\u003eGoogle provides client libraries in various languages to facilitate API interaction via HTTP or gRPC requests, streamlining the integration process.\u003c/p\u003e\n"]]],[],null,["# Overview\n\n\u003cbr /\u003e\n\n| **Note:**You must be enabled to use this API.\n\n\u003cbr /\u003e\n\nThe Google Ad Manager Video API allows you to update metadata for video content stored in Google Ad Manager.\n\nThere are two services in the Google Ad Manager Video API:\n\n1. Video Content Ingestion Service, and\n2. Ad Break Notification Service.\n\n### Video Content Ingestion Service\n\nThe Video Content Igestion Service allows you to notify Google Ad Manager when your video content is updated. Instead of waiting for the periodic sync initiated by Google Ad Manager, you can notify Google Ad Manager through this API so that the updated metadata becomes available for ad targeting as soon as possible.\n\n### Ad Break Notification Service\n\nThe Ad Break Notification Service allows publishers to notify Google Ad Manager of an upcoming ad break and its metadata prior to the start of the ad break.\n\n### Initial setup\n\nBecause publishers must be enabled in order to use the Google Ad Manager Video API, you must provide your Google Cloud Account, service account, and the Ad Manager network that you want to access.\n\nTo start using the Google Ad Manager Video API, complete the following steps:\n\n1. Create a Google Cloud Console account\n2. In the Google Cloud Console, create a new project.\n3. Create a service account for the new project.\n4. Add the service account to Ad Manager by following the steps in [Add a service account user for API access](//support.google.com/admanager/answer/6078734).\n\n### Using Google API client libraries to make calls to the Google Ad Manager Video API\n\nAfter you complete the initial setup process, you can use a client library in the language of your choice to send either HTTP or gRPC requests to the API. For more information, see the following resources:\n\n- [Getting Started for using Cloud API](//cloud.google.com/apis/docs/getting-started)\n- [Client Libraries Explained](//cloud.google.com/apis/docs/client-libraries-explained)\n- Google Ad Manager Video API reference documentation:\n - [REST Reference](/ad-manager/video/rest)\n - [gRPC Reference](/ad-manager/video/rpc)"]]