Page Summary
-
The Placement resource defines the properties of an ad placement, including its ID, associated advertiser and campaign, name, size, compatibility, pricing, and tag settings.
-
Video settings for a placement include configurations for companion creatives, transcoding, skippability, orientation, OBA icons, and duration.
-
Various tag formats can be generated for a placement, such as standard, iframe, javascript, and tracking tags.
-
Additional settings allow for opting out of video active view, ad blocking, and tag wrapping, and also include conversion domain overrides and YouTube integration settings.
-
The document also provides information on the different methods available for interacting with Placement resources, such as generating tags, getting, inserting, listing, patching, and updating placements.
- Resource: Placement
- PaymentSource
- PlacementTagFormat
- PlacementStatus
- VideoSettings
- CompanionSetting
- TranscodeSetting
- SkippableSetting
- PlacementOrientation
- MeasurementPartnerWrappingData
- TagWrappingMode
- PlacementConversionDomainOverride
- PlacementSingleConversionDomain
- YoutubeSettings
- CallToAction
- Methods
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 |
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 |
paymentSource |
Payment source for this placement. This is a required field that is read-only after insertion. |
compatibility |
Placement compatibility. |
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. |
kind |
Identifies what kind of resource this is. Value: the fixed string |
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 |
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 |
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. |
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 |
videoActiveViewOptOut |
Whether Verification and ActiveView are disabled for in-stream video creatives for this placement. The same setting |
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. |
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. |
activeStatus |
Whether this placement is active, inactive, archived or permanently archived. |
conversionDomainOverride |
Optional. Conversion domain overrides for a placement. |
adServingPlatformId |
Optional. Ad serving platform ID to identify the ad serving platform used by the placement. Measurement partners can use this field to add ad-server specific macros. Possible values are:
|
siteServed |
Optional. Whether the ads in the placement are served by another platform and CM is only used for tracking or they are served by CM. A false value indicates the ad is served by CM. |
allowOnYoutube |
Optional. Whether the placement is enabled for YouTube integration. |
youtubeSettings |
Optional. YouTube settings for the placement. The placement must be enabled for YouTube to use this field. |
PaymentSource
Payment source for Placement If you change this enum make sure you keep the FE enum XFA.Placement.PaymentSourcesEnum in java/com/google/ads/xfa/site/app/models/placement.js in sync.
| Enums | |
|---|---|
PLACEMENT_AGENCY_PAID |
|
PLACEMENT_PUBLISHER_PAID |
|
PlacementTagFormat
| 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 |
|
PlacementStatus
Placement status for placements.
| Enums | |
|---|---|
PENDING_REVIEW |
Placement is not yet reviewed by publisher. |
PAYMENT_ACCEPTED |
Placement Ad Serving fee is accepted by publisher |
PAYMENT_REJECTED |
Placement Ad Serving fee is rejected by publisher |
ACKNOWLEDGE_REJECTION |
Advertisers has accepted rejection of placement ad serving fee. This will suppress future notification on DDMM UI |
ACKNOWLEDGE_ACCEPTANCE |
Advertisers has accepted acceptance of placement ad serving fee. This will suppress future notification on DDMM UI |
DRAFT |
Advertisers is still working on placement not yet ready for Publisher review; default status for pub-paid placements |
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. |
publisherSpecificationId |
Publisher specification ID of a video placement. Possible values are:
|
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 |
progressOffset |
Amount of time to play videos served to this placement before counting a view. Applicable when |
kind |
Identifies what kind of resource this is. Value: the fixed string |
PlacementOrientation
| Enums | |
|---|---|
ANY |
|
LANDSCAPE |
|
PORTRAIT |
|
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. |
TagWrappingMode
| Enums | |
|---|---|
NONE |
|
BLOCKING |
|
MONITORING |
|
MONITORING_READ_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 |
|
BLOCKING_FILTERING_VPAID |
|
BLOCKING_FILTERING_VPAID_ONLY |
|
PlacementConversionDomainOverride
| JSON representation |
|---|
{
"conversionDomains": [
{
object ( |
| Fields | |
|---|---|
conversionDomains[] |
|
PlacementSingleConversionDomain
| JSON representation |
|---|
{ "conversionDomainId": string, "conversionDomainValue": string } |
| Fields | |
|---|---|
conversionDomainId |
|
conversionDomainValue |
|
YoutubeSettings
Contains the YouTube settings.
| JSON representation |
|---|
{
"businessName": string,
"businessLogoCreativeIds": [
string
],
"longHeadlines": [
string
],
"descriptions": [
string
],
"callToActions": [
enum ( |
| Fields | |
|---|---|
businessName |
Optional. The business name. |
businessLogoCreativeIds[] |
Optional. The IDs of the creatives to use for the business logo. Currently only one creative is supported. |
longHeadlines[] |
Optional. The long headlines. Currently only one long headline is supported. |
descriptions[] |
Optional. The descriptions. Currently only one description is supported. |
callToActions[] |
Optional. The call to actions. Currently only one call to action is supported. |
headlines[] |
Optional. The headlines associated with the call to actions. Currently only one headline is supported. |
CallToAction
Call to action type.
| Enums | |
|---|---|
CALL_TO_ACTION_UNKNOWN |
|
CALL_TO_ACTION_LEARN_MORE |
|
CALL_TO_ACTION_GET_QUOTE |
|
CALL_TO_ACTION_APPLY_NOW |
|
CALL_TO_ACTION_SIGN_UP |
|
CALL_TO_ACTION_CONTACT_US |
|
CALL_TO_ACTION_SUBSCRIBE |
|
CALL_TO_ACTION_DOWNLOAD |
|
CALL_TO_ACTION_BOOK_NOW |
|
CALL_TO_ACTION_GET_OFFER |
|
CALL_TO_ACTION_SHOP_NOW |
|
CALL_TO_ACTION_VISIT_STORE |
|
CALL_TO_ACTION_CALL_NOW |
|
CALL_TO_ACTION_VIEW_MENU |
|
CALL_TO_ACTION_TEST_DRIVE |
|
CALL_TO_ACTION_SCHEDULE_NOW |
|
CALL_TO_ACTION_BUY_NOW |
|
CALL_TO_ACTION_DONATE_NOW |
|
CALL_TO_ACTION_ORDER_NOW |
|
CALL_TO_ACTION_PLAY_NOW |
|
CALL_TO_ACTION_SEE_MORE |
|
CALL_TO_ACTION_START_NOW |
|
CALL_TO_ACTION_VISIT_SITE |
|
CALL_TO_ACTION_WATCH_NOW |
|
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. |