- Resource: BreakTemplate
- BreakTemplateMember
- AdSpotFillType
- AdBreakOptimizationType
- AdRuleFillOrderDirection
- Methods
Resource: BreakTemplate
A BreakTemplate defines what kinds of ads show at which positions within a pod. Break templates are made up of AdSpot objects. A break template must have a single ad spot that has flexible set to true.
| JSON representation |
|---|
{ "name": string, "breakTemplateMembers": [ { object ( |
| Fields | |
|---|---|
name |
Identifier. The resource name of the |
breakTemplateMembers[] |
Optional. The list of the |
customTemplate |
Optional. Whether this is a custom template. Custom templates get created outside of the ad rule workflow and can be referenced in ad tags. Only custom templates can have names and display names. |
adTagName |
Optional. Name of the |
displayName |
Optional. Descriptive name for the BreakTemplate. This value is optional if customTemplate is true, and cannot be set otherwise. |
adBreakOptimizationType |
Optional. The optimization type of the pod. This field is optional and defaults to [AdBreakOptimizationType.REVENUE][]. |
fillOrderDirectionType |
Optional. The fill order direction of the pod. This value is required if |
BreakTemplateMember
A building block of a pod template.
| JSON representation |
|---|
{
"adSpot": string,
"adSpotFillType": enum ( |
| Fields | |
|---|---|
adSpot |
Required. The ID of the |
adSpotFillType |
Optional. The behavior for how the |
AdSpotFillType
The different options for how ad spots are filled. Only some allocations of ads to subpods produce a valid final pod.
| Enums | |
|---|---|
AD_SPOT_FILL_TYPE_UNSPECIFIED |
Default value. This value is unused. |
CONDITIONAL |
The ad spot may only contain an ad when all ad spots with higher fill priority are "satisfied". |
OPTIONAL |
The ad spot is always "satisfied", whether empty or nonempty. |
REQUIRED |
If this ad spot is empty, the overall pod is invalid. |
AdBreakOptimizationType
Defines how non-required ad spots within in an ad break are filled.
| Enums | |
|---|---|
AD_BREAK_OPTIMIZATION_TYPE_UNSPECIFIED |
Default value. This value is unused. |
POSITION |
Non-required ad spots within the ad break will be filled according to the fill order direction, potentially reducing revenue for the break. |
REVENUE |
Non-required ad spots within the ad break will be filled using a revenue optimizing algorithm. |
AdRuleFillOrderDirection
Defines the fill order direction of ad breaks with AdBreakOptimizationType.POSITION.
| Enums | |
|---|---|
AD_RULE_FILL_ORDER_DIRECTION_UNSPECIFIED |
Default value. This value is unused. |
EDGE_TO_CENTER |
A break template should be filled from edge to center. |
LEFT_TO_RIGHT |
A break template should be filled from left to right. |
RIGHT_TO_LEFT |
A break template should be filled from right to left. |
Methods |
|
|---|---|
|
Batch creates BreakTemplate objects. |
|
Batch updates BreakTemplate objects. |
|
Creates a BreakTemplate object. |
|
Retrieves a BreakTemplate object. |
|
Lists BreakTemplate objects. |
|
Updates a BreakTemplate object. |