Method: networks.sources.content.adBreaks.create
Stay organized with collections
Save and categorize content based on your preferences.
API to create an Ad Break within the live stream.
HTTP request
POST https://admanagervideo.googleapis.com/v1/{content=networks/*/sources/*/content/*}/adBreaks
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters |
content |
string
This is an alternative way to identify the LiveStreamEvent, if it's associated with a piece of content within GAM. It must have the format of "networks/{network_code}/sources/{content_source_id}/content/{cms_content_id}"
|
Query parameters
Parameters |
parent |
string
This field identifies the LiveStreamEvent that this ad break should be associated to using the live stream asset key. It must have the format of "networks/{network_code}/assets/{asset_code}"
|
customParent |
string
This field identifies the LiveStreamEvent that this ad break should be associated to using the custom asset key. It must have the format of "networks/{network_code}/customAssets/{asset_code}"
|
adBreakId |
string
This is the adBreakId that users can provide through the request.
|
Request body
The request body contains an instance of AdBreak
.
Response body
If successful, the response body contains a newly created instance of AdBreak
.
Authorization Scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/contentingestion
https://www.googleapis.com/auth/video-ads
For more information, see the OAuth 2.0 Overview.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-05-04 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2023-05-04 UTC."],[[["This API creates ad breaks within live streams using an HTTP POST request to a specified URL."],["Identification of the live stream event can be done using either the content ID (for GAM-associated streams) or asset keys (live stream or custom)."],["The request body requires an AdBreak object, and a successful response returns the newly created AdBreak object."],["Authorization requires specific OAuth scopes, such as 'contentingestion' or 'video-ads', for access and functionality."]]],["This API facilitates the creation of an Ad Break within a live stream. It uses a `POST` request to a specified URL, which includes path and query parameters. The `content` path parameter specifies the associated content, while query parameters (`parent`, `customParent`, `adBreakId`) link the Ad Break to a LiveStreamEvent. The request body requires an `AdBreak` instance. Successful creation returns a new `AdBreak` instance in the response body. Access requires OAuth scopes: `contentingestion` or `video-ads`.\n"]]