Resource: Placement
Contains properties of a placement.
JSON representation |
---|
{ "id": string, "accountId": string, "subaccountId": string, "advertiserId": string, "campaignId": string, "name": string, "siteId": string, "keyName": string, "directorySiteId": string, "paymentSource": enum ( |
Fields | |
---|---|
id |
ID of this placement. This is a read-only, auto-generated field. |
accountId |
Account ID of this placement. This field can be left blank. |
subaccountId |
Subaccount ID of this placement. This field can be left blank. |
advertiserId |
Advertiser ID of this placement. This field can be left blank. |
campaignId |
Campaign ID of this placement. This field is a required field on insertion. |
name |
Name of this placement.This is a required field and must be less than or equal to 512 characters long. |
siteId |
Site ID associated with this placement. On insert, you must set either this field or the
field to specify the site associated with this placement. This is a required field that is read-only after insertion. |
keyName |
Key name of this placement. This is a read-only, auto-generated field. |
directorySiteId |
Directory site ID of this placement. On insert, you must set either this field or the
field to specify the site associated with this placement. This is a required field that is read-only after insertion. |
paymentSource |
Payment source for this placement. This is a required field that is read-only after insertion. |
compatibility |
Placement compatibility.
and
refer to rendering on desktop, on mobile devices or in mobile apps for regular or interstitial ads respectively.
and
are no longer allowed for new placement insertions. Instead, use
or
.
refers to rendering in in-stream video ads developed with the VAST standard. This field is required on insertion. |
size |
Size associated with this placement. When inserting or updating a placement, only the size ID field is used. This field is required on insertion. |
archived |
Whether this placement is archived. |
paymentApproved |
Whether payment was approved for this placement. This is a read-only field relevant only to publisher-paid placements. |
pricingSchedule |
Pricing schedule of this placement. This field is required on insertion, specifically subfields
,
and
. |
placementGroupId |
ID of this placement's group, if applicable. |
primary |
Whether this placement is the primary placement of a roadblock (placement group). You cannot change this field from true to false. Setting this field to true will automatically set the
field on the original primary placement of the roadblock to false, and it will automatically set the roadblock's
field to the ID of this placement. |
tagSetting |
Tag settings for this placement. |
tagFormats[] |
Tag formats to generate for this placement. This field is required on insertion. Acceptable values are:
|
contentCategoryId |
ID of the content category assigned to this placement. |
placementStrategyId |
ID of the placement strategy assigned to this placement. |
lookbackConfiguration |
Lookback window settings for this placement. |
comment |
Comments for this placement. |
status |
Third-party placement status. |
publisherUpdateInfo |
Information about the last publisher update. This is a read-only field. |
lastModifiedInfo |
Information about the most recent modification of this placement. This is a read-only field. |
sslRequired |
Whether creatives assigned to this placement must be SSL-compliant. |
kind |
Identifies what kind of resource this is. Value: the fixed string
. |
idDimensionValue |
Dimension value for the ID of this placement. This is a read-only, auto-generated field. |
advertiserIdDimensionValue |
Dimension value for the ID of the advertiser. This is a read-only, auto-generated field. |
campaignIdDimensionValue |
Dimension value for the ID of the campaign. This is a read-only, auto-generated field. |
siteIdDimensionValue |
Dimension value for the ID of the site. This is a read-only, auto-generated field. |
directorySiteIdDimensionValue |
Dimension value for the ID of the directory site. This is a read-only, auto-generated field. |
placementGroupIdDimensionValue |
Dimension value for the ID of the placement group. This is a read-only, auto-generated field. |
externalId |
External ID for this placement. |
createInfo |
Information about the creation of this placement. This is a read-only field. |
videoSettings |
A collection of settings which affect video creatives served through this placement. Applicable to placements with
compatibility. |
videoActiveViewOptOut |
Whether Verification and ActiveView are disabled for in-stream video creatives for this placement. The same setting
exists on the site level -- the opt out occurs if either of these settings are true. These settings are distinct from
or
which only apply to display ads. However,
opts out both video traffic, as well as display ads, from Verification and ActiveView. |
vpaidAdapterChoice |
VPAID adapter setting for this placement. Controls which VPAID format the measurement adapter will use for in-stream video creatives assigned to this placement.
when the following values are provided:
,
. |
adBlockingOptOut |
Whether this placement opts out of ad blocking. When true, ad blocking is disabled for this placement. When false, the campaign and site settings take effect. |
additionalSizes[] |
Additional sizes associated with this placement. When inserting or updating a placement, only the size ID field is used. |
wrappingOptOut |
Whether this placement opts out of tag wrapping. |
partnerWrappingData |
Measurement partner provided settings for a wrapped placement. |
PaymentSource
Enums | |
---|---|
PLACEMENT_AGENCY_PAID |
|
PLACEMENT_PUBLISHER_PAID |
Compatibility
Enums | |
---|---|
DISPLAY |
|
DISPLAY_INTERSTITIAL |
|
APP |
|
APP_INTERSTITIAL |
|
IN_STREAM_VIDEO |
|
IN_STREAM_AUDIO |
TagFormats
Enums | |
---|---|
PLACEMENT_TAG_STANDARD |
|
PLACEMENT_TAG_IFRAME_JAVASCRIPT |
|
PLACEMENT_TAG_IFRAME_ILAYER |
|
PLACEMENT_TAG_INTERNAL_REDIRECT |
|
PLACEMENT_TAG_JAVASCRIPT |
|
PLACEMENT_TAG_INTERSTITIAL_IFRAME_JAVASCRIPT |
|
PLACEMENT_TAG_INTERSTITIAL_INTERNAL_REDIRECT |
|
PLACEMENT_TAG_INTERSTITIAL_JAVASCRIPT |
|
PLACEMENT_TAG_CLICK_COMMANDS |
|
PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH |
|
PLACEMENT_TAG_TRACKING |
|
PLACEMENT_TAG_TRACKING_IFRAME |
|
PLACEMENT_TAG_TRACKING_JAVASCRIPT |
|
PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH_VAST_3 |
|
PLACEMENT_TAG_IFRAME_JAVASCRIPT_LEGACY |
|
PLACEMENT_TAG_JAVASCRIPT_LEGACY |
|
PLACEMENT_TAG_INTERSTITIAL_IFRAME_JAVASCRIPT_LEGACY |
|
PLACEMENT_TAG_INTERSTITIAL_JAVASCRIPT_LEGACY |
|
PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH_VAST_4 |
|
PLACEMENT_TAG_TRACKING_THIRD_PARTY_MEASUREMENT |
Status
Enums | |
---|---|
PENDING_REVIEW |
|
PAYMENT_ACCEPTED |
|
PAYMENT_REJECTED |
|
ACKNOWLEDGE_REJECTION |
|
ACKNOWLEDGE_ACCEPTANCE |
|
DRAFT |
VideoSettings
Video Settings
JSON representation |
---|
{ "companionSettings": { object ( |
Fields | |
---|---|
companionSettings |
Settings for the companion creatives of video creatives served to this placement. |
transcodeSettings |
Settings for the transcodes of video creatives served to this placement. If this object is provided, the creative-level transcode settings will be overridden. |
skippableSettings |
Settings for the skippability of video creatives served to this placement. If this object is provided, the creative-level skippable settings will be overridden. |
orientation |
Orientation of a video placement. If this value is set, placement will return assets matching the specified orientation. |
kind |
Identifies what kind of resource this is. Value: the fixed string
. |
obaSettings |
Settings for the OBA icon of video creatives served to this placement. If this object is provided, the creative-level OBA settings will be overridden. |
obaEnabled |
Whether OBA icons are enabled for this placement. |
durationSeconds |
Duration of a video placement in seconds. |
CompanionSetting
Companion Settings
JSON representation |
---|
{
"companionsDisabled": boolean,
"enabledSizes": [
{
object ( |
Fields | |
---|---|
companionsDisabled |
Whether companions are disabled for this placement. |
enabledSizes[] |
Allowlist of companion sizes to be served to this placement. Set this list to null or empty to serve all companion sizes. |
imageOnly |
Whether to serve only static images as companions. |
kind |
Identifies what kind of resource this is. Value: the fixed string
. |
TranscodeSetting
Transcode Settings
JSON representation |
---|
{ "enabledVideoFormats": [ integer ], "kind": string } |
Fields | |
---|---|
enabledVideoFormats[] |
Allowlist of video formats to be served to this placement. Set this list to null or empty to serve all video formats. |
kind |
Identifies what kind of resource this is. Value: the fixed string
. |
SkippableSetting
Skippable Settings
JSON representation |
---|
{ "skippable": boolean, "skipOffset": { object ( |
Fields | |
---|---|
skippable |
Whether the user can skip creatives served to this placement. |
skipOffset |
Amount of time to play videos served to this placement before the skip button should appear. Applicable when
is true. |
progressOffset |
Amount of time to play videos served to this placement before counting a view. Applicable when
is true. |
kind |
Identifies what kind of resource this is. Value: the fixed string
. |
Orientation
Enums | |
---|---|
ANY |
|
LANDSCAPE |
|
PORTRAIT |
VpaidAdapterChoice
Enums | |
---|---|
DEFAULT |
|
FLASH |
|
HTML5 |
|
BOTH |
MeasurementPartnerWrappingData
Placement tag wrapping
JSON representation |
---|
{ "measurementPartner": enum ( |
Fields | |
---|---|
measurementPartner |
Measurement partner used for wrapping the placement. |
linkStatus |
Placement wrapping status. |
wrappedTag |
Tag provided by the measurement partner during wrapping. |
tagWrappingMode |
Measurement mode for the wrapped placement. |
MeasurementPartner
Enums | |
---|---|
NONE |
|
INTEGRAL_AD_SCIENCE |
|
DOUBLE_VERIFY |
LinkStatus
Enums | |
---|---|
MEASUREMENT_PARTNER_UNLINKED |
|
MEASUREMENT_PARTNER_LINKED |
|
MEASUREMENT_PARTNER_LINK_PENDING |
|
MEASUREMENT_PARTNER_LINK_FAILURE |
|
MEASUREMENT_PARTNER_LINK_OPT_OUT |
|
MEASUREMENT_PARTNER_LINK_OPT_OUT_PENDING |
|
MEASUREMENT_PARTNER_LINK_WRAPPING_PENDING |
|
MEASUREMENT_PARTNER_MODE_CHANGE_PENDING |
TagWrappingMode
Enums | |
---|---|
NONE |
|
BLOCKING |
|
MONITORING |
|
MONITORING_ONLY |
|
VIDEO_PIXEL_MONITORING |
|
TRACKING |
|
VPAID_MONITORING |
|
VPAID_BLOCKING |
|
NON_VPAID_MONITORING |
|
VPAID_ONLY_MONITORING |
|
VPAID_ONLY_BLOCKING |
|
VPAID_ONLY_FILTERING |
|
VPAID_FILTERING |
|
NON_VPAID_FILTERING |
Methods |
|
---|---|
|
Generates tags for a placement. |
|
Gets one placement by ID. |
|
Inserts a new placement. |
|
Retrieves a list of placements, possibly filtered. |
|
Updates an existing placement. |
|
Updates an existing placement. |