Metadata for companion ads.
JSON representation |
---|
{ "displayRequirement": enum ( |
Fields | |
---|---|
displayRequirement |
Indicates how many of the companions should be displayed with the ad. |
companions[] |
List of companion ads. |
DisplayRequirement
Indicates how many of the companions should be displayed with the ad.
Enums | |
---|---|
DISPLAY_REQUIREMENT_UNSPECIFIED |
Required companions are not specified. The default is ALL. |
ALL |
All companions are required to be displayed. |
ANY |
At least one of companions needs to be displayed. |
NONE |
All companions are optional for display. |
Companion
Metadata for a companion.
JSON representation |
---|
{ "apiFramework": string, "heightPx": integer, "widthPx": integer, "assetHeightPx": integer, "expandedHeightPx": integer, "assetWidthPx": integer, "expandedWidthPx": integer, "adSlotId": string, "events": [ { object ( |
Fields | |
---|---|
apiFramework |
The API necessary to communicate with the creative if available. |
heightPx |
The pixel height of the placement slot for the intended creative. |
widthPx |
The pixel width of the placement slot for the intended creative. |
assetHeightPx |
The pixel height of the creative. |
expandedHeightPx |
The maximum pixel height of the creative in its expanded state. |
assetWidthPx |
The pixel width of the creative. |
expandedWidthPx |
The maximum pixel width of the creative in its expanded state. |
adSlotId |
The ID used to identify the desired placement on a publisher's page. Values to be used should be discussed between publishers and advertisers. |
events[] |
The list of tracking events for the companion. |
Union field ad_resource . Ad resource associated with the companion ad. ad_resource can be only one of the following: |
|
iframeAdResource |
The IFrame ad resource associated with the companion ad. |
staticAdResource |
The static ad resource associated with the companion ad. |
htmlAdResource |
The HTML ad resource associated with the companion ad. |
IframeAdResource
Metadata for an IFrame ad resource.
JSON representation |
---|
{ "uri": string } |
Fields | |
---|---|
uri |
URI source for an IFrame to display for the ad resource. |
StaticAdResource
Metadata for a static ad resource.
JSON representation |
---|
{ "uri": string, "creativeType": string } |
Fields | |
---|---|
uri |
URI to the static file for the ad resource. |
creativeType |
Describes the MIME type of the ad resource. |
HtmlAdResource
Metadata for an HTML ad resource.
JSON representation |
---|
{ "htmlSource": string } |
Fields | |
---|---|
htmlSource |
The HTML to display for the ad resource. |