AI-generated Key Takeaways
-
An AdSpot is a targetable entity used to create AdRule objects and contains a variable number of ads with specific constraints.
-
AdSpot properties include a read-only ID, a case-insensitive name (required for custom spots), an optional display name, a boolean for custom spots, a boolean for flexible spots, an optional maximum duration in milliseconds, and an optional maximum number of ads (which defaults to 0 meaning no maximum).
-
The
targetingType
for an AdSpot is required and determines how line items can target the spot, with options likeNOT_REQUIRED
,EXPLICITLY_TARGETED
, andEXPLICITLY_TARGETED_EXCEPT_HOUSE
. -
Optional fields for an AdSpot include
backfillBlocked
(defaulting to false),allowedLineItemTypes
(defaulting to an empty set allowing all types), andinventorySharingBlocked
(defaulting to false).
A 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.
- Namespace
-
https://www.google.com/apis/ads/publisher/v202508
Field |
|
---|---|
|
The unique ID of the AdSpot. This value is readonly and is assigned by Google. |
|
Name of the AdSpot. The name is case insenstive and can be
referenced in ad tags. This value is required if You can use alphanumeric characters and symbols other than the following: ", ', =, !, +, #, *, ~, ;, ^, (, ), <, >, [, ], the white space character. |
|
Descriptive name for the AdSpot.This value is optional if |
|
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. |
|
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. |
|
The maximum total duration for this AdSpot. This field is optional, defaults to 0, and supports precision to the nearest second. |
|
The maximum number of ads allowed in the AdSpot. This field is optional and defaults to O. A |
|
The Enumerations
|
|
Whether backfill is blocked in this ad spot. This field is optional and defaults to false. |
|
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 via the
Enumerations
|
|
Whether inventory sharing is blocked in this ad spot. This field is optional and defaults to false. |