REST Resource: networks.sources.content.adBreaks
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Zasób: AdBreak
Metadane przerwy na reklamę używane do podejmowania decyzji o reklamach w trakcie przerwy na reklamę w zdarzeniu wideo na żywo.
Zapis JSON |
{
"name": string,
"expectedDuration": string,
"customParams": string,
"scte35CueOut": string,
"podTemplateName": string,
"breakState": enum (BreakState )
} |
Pola |
name |
string
Tylko dane wyjściowe. Nazwa zasobu przerwy na reklamę. To pole będzie mieć format „networks//assets//adBreaks/”. Network_code to kod sieci w Google Ad Manager, do której należy treść. asset_key jest kluczem zdarzenia z transmisji na żywo w Zarządzaniu reklamami w Google, w ramach którego została utworzona przerwa na reklamę. parametr adBreakId to klucz do przerwy na reklamę. TYLKO DANE WYJŚCIOWE.
|
expectedDuration |
string (Duration format)
Wymagane. Oczekiwany czas trwania przerwy. Czas trwania w sekundach składający się z maksymalnie 9 cyfr po przecinku, kończący się cyfrą „s ”. Przykład: "3.5s" .
|
customParams |
string
Pary klucz-wartość, które mają być uwzględniane w żądaniach reklamy w ramach tej przerwy na potrzeby kierowania według kryteriów niestandardowych w usłudze Ad Manager. Przykład: 'klucz1=wartość&klucz2=wartość2,wartość22'
|
scte35CueOut |
string
Dane zakodowane w standardzie Base64 z sygnału SCTE35. Może zawierać polecenie splice_insert() lub time_signal(). Przykłady: – z time_signal(): “/DA0AAAAAAAA///wBQb+cr0AUAAeAhxDVUVJSAAAjn/PAAGlmbAICAAAAAAsoKGKNAIAmsnRfg==” – z funkcją splice_insert(): "/DAvAAAAAAAAAA///wFAVIAACPf+/AUh1BDV2n
|
podTemplateName |
string
Nazwa szablonu bloku reklamowego Google Ad Manager.
|
breakState |
enum (BreakState )
Bieżący stan przerwy na reklamę.
|
Metody |
|
API do tworzenia przerwy na reklamę w ramach transmisji na żywo. |
|
Interfejs API do wyświetlania przerw na reklamy w transmisji na żywo. |
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-08-21 UTC.
[null,null,["Ostatnia aktualizacja: 2025-08-21 UTC."],[[["\u003cp\u003eAdBreak is metadata used to manage ad breaks within live video events for ad decisioning.\u003c/p\u003e\n"],["\u003cp\u003eIt features attributes like name, expected duration, custom parameters, SCTE-35 cue-out, pod template name, and break state.\u003c/p\u003e\n"],["\u003cp\u003eYou can create and list AdBreaks using the provided API methods.\u003c/p\u003e\n"]]],["Ad Break metadata defines ad decision criteria for live video events. Key information includes the `name` (resource identifier), `expectedDuration` (in seconds), `customParams` (key-value targeting), `scte35CueOut` (Base64 encoded data), `podTemplateName`, and `breakState` (current state). The `create` method allows for creating ad breaks, and `list` allows for viewing them. The Ad break has a defined structure using a JSON representation.\n"],null,["# REST Resource: networks.sources.content.adBreaks\n\n- [Resource: AdBreak](#AdBreak)\n - [JSON representation](#AdBreak.SCHEMA_REPRESENTATION)\n- [Methods](#METHODS_SUMMARY)\n\nResource: AdBreak\n-----------------\n\nAd break metadata used to decision ads for an ad break in a live video event.\n\n| JSON representation |\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"name\": string, \"expectedDuration\": string, \"customParams\": string, \"scte35CueOut\": string, \"podTemplateName\": string, \"breakState\": enum (/ad-manager/video/rest/v1/networks.assets.adBreaks#AdBreak.BreakState) } ``` |\n\n| Fields ||\n|--------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `name` | `string` Output only. The resource name of the Ad Break. This field will have the format of \"networks//assets//adBreaks/\". network_code is the network code in Google Ad Manager to which this content belongs. asset_key is the key of the Live Stream Event in Google Ad Manage under which the Ad Break was created. adBreakId is the key of the Ad Break. OUTPUT ONLY. |\n| `expectedDuration` | `string (`[Duration](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.Duration)` format)` Required. Expected break duration. A duration in seconds with up to nine fractional digits, ending with '`s`'. Example: `\"3.5s\"`. |\n| `customParams` | `string` Key-value pairs to be included on ad requests for this break for custom criteria targeting in Ad Manager. Example: 'key1=value\\&key2=value2,value22' |\n| `scte35CueOut` | `string` Base 64 encoded data from the scte35 cue out. May include splice_insert() or time_signal() command. Examples: - with time_signal(): \"/DA0AAAAAAAA///wBQb+cr0AUAAeAhxDVUVJSAAAjn/PAAGlmbAICAAAAAAsoKGKNAIAmsnRfg==\" - with splice_insert(): \"/DAvAAAAAAAA///wFAVIAACPf+/+c2nALv4AUsz1AAAAAAAKAAhDVUVJAAABNWLbowo=\" |\n| `podTemplateName` | `string` Google Ad Manager pod template name. |\n| `breakState` | `enum (`[BreakState](/ad-manager/video/rest/v1/networks.assets.adBreaks#AdBreak.BreakState)`)` The current state of the Ad Break. |\n\n| Methods ------- ||\n|----------------------------------------------------------------------------------|---------------------------------------------------|\n| ### [create](/ad-manager/video/rest/v1/networks.sources.content.adBreaks/create) | API to create an Ad Break within the live stream. |\n| ### [list](/ad-manager/video/rest/v1/networks.sources.content.adBreaks/list) | API to list Ad Breaks within the live stream. |"]]