Resource: AdSpot
An AdSpot is a targetable entity used in the creation of AdRule objects. A ad spot contains a variable number of ads and has constraints (ad duration, reservation type, etc) on the ads that can appear in it.
| JSON representation |
|---|
{ "name": string, "allowedLineItemTypes": [ enum ( |
| Fields | |
|---|---|
name |
Identifier. The resource name of the |
allowedLineItemTypes[] |
Optional. The set of line item types that may appear in the ad spot. This field is optional and defaults to an empty set, which means that all types are allowed. Note, backfill reservation types are controlled by the |
canonicalDisplayName |
Optional. Name of the AdSpot. The name is case insensitive and can be referenced in ad tags. This value is required if |
displayName |
Optional. Descriptive name for the |
customSpot |
Optional. Whether this ad spot is a custom spot. This field is optional and defaults to false. Custom spots can be reused and targeted in the targeting picker. |
flexible |
Optional. Whether this ad spot is a flexible spot. This field is optional and defaults to false. Flexible spots are allowed to have no max number of ads. |
maxDuration |
Optional. The maximum total duration for this AdSpot. This field is optional, defaults to 0, and supports precision to the nearest second. A duration in seconds with up to nine fractional digits, ending with ' |
minAdDuration |
Optional. The minimum allowed duration for ads in the AdSpot. This field is optional and defaults to 0. A duration in seconds with up to nine fractional digits, ending with ' |
maxAdDuration |
Required. The maximum allowed duration for ads in the A duration in seconds with up to nine fractional digits, ending with ' |
maxAds |
Optional. The maximum number of ads allowed in the AdSpot. This field is optional and defaults to 0. A value of 0 means that there is no maximum for the number of ads in the ad spot. No max ads is only supported for ad spots that have flexible set to true. |
targetingType |
Optional. The AdSpot TargetingType determines how this ad spot can be targeted. This field is required. |
backfillBlocked |
Optional. Whether backfill is blocked in this ad spot. This field is optional and defaults to false. |
inventorySharingBlocked |
Optional. Whether inventory sharing is blocked in this ad spot. This field is optional and defaults to false. |
AdSpotTargetingType
Defines the targeting behavior of an ad spot.
| Enums | |
|---|---|
AD_SPOT_TARGETING_TYPE_UNSPECIFIED |
Default value. This value is unused. |
EXPLICITLY_TARGETED |
Only line items targeting this ad spots explicitly may serve in it |
EXPLICITLY_TARGETED_EXCEPT_HOUSE |
If house ads are an allowed reservation type, they may serve in the ad spot regardless of whether they explicitly target it. Ads of other reservation types (whose type is allowed in the ad spot), may serve in the ad spot only if explicitly targeted. |
NOT_REQUIRED |
Line items not targeting this ad spot explicitly may serve in it. |
Methods |
|
|---|---|
|
API to batch create AdSpot objects. |
|
API to batch update AdSpot objects. |
|
API to create an AdSpot object. |
|
API to retrieve an AdSpot object. |
|
API to retrieve a list of AdSpot objects. |
|
API to update an AdSpot object. |