- Resource: CreativeWrapper
- CreativeWrapperType
- VideoTrackingUrl
- ConversionEvent
- ThirdPartyDataDeclaration
- ThirdPartyDataDeclarationType
- CreativeWrapperOrdering
- CreativeWrapperStatus
- Methods
Resource: CreativeWrapper
A CreativeWrapper allows the wrapping of HTML snippets to be served along with Creative objects.
CreativeWrapper must be associated with a LabelType.CREATIVE_WRAPPER label and applied to ad units by AdUnit.appliedLabels.
| JSON representation |
|---|
{ "name": string, "label": string, "videoTrackingUrls": [ { object ( |
| Fields | |
|---|---|
name |
Identifier. The resource name of the |
label |
Required. Immutable. The resource name of the |
videoTrackingUrls[] |
Optional. The video tracking URLs that this |
creativeWrapperType |
Required. The |
headerCreative |
Output only. The resource name of the |
footerCreative |
Output only. The resource name of the |
htmlHeader |
Optional. The header HTML snippet that this |
htmlFooter |
Optional. The footer HTML snippet that this |
ampHeader |
Optional. The header AMP snippet that this |
ampFooter |
Optional. The footer AMP snippet that this |
thirdPartyDataDeclaration |
Optional. The The third party companies that are associated with this |
ordering |
Optional. If there are multiple wrappers for a |
status |
Output only. The status of the |
CreativeWrapperType
The type of a CreativeWrapper which is specified on the CreativeWrapper.
| Enums | |
|---|---|
CREATIVE_WRAPPER_TYPE_UNSPECIFIED |
Default value. This value is unused. |
HTML |
HTML CreativeWrappers that include header/footer HTML snippets. |
VIDEO_TRACKING_URL |
Video Tracking URL CreativeWrappers that include tracking URIs. |
VideoTrackingUrl
Represents a ConversionEventEnum to URL pair that will be pinged when the event happens.
| JSON representation |
|---|
{
"conversionEvent": enum ( |
| Fields | |
|---|---|
conversionEvent |
Required. All possible tracking event types. |
url |
Optional. A URL that should be pinged for the conversion event. |
ConversionEvent
All possible tracking event types. Not all events are supported by every kind of creative.
| Enums | |
|---|---|
CONVERSION_EVENT_UNSPECIFIED |
Default value. This value is unused. |
ACCEPT_INVITATION |
Corresponds to the acceptInvitation tracking event. |
CLICK_TRACKING |
Corresponds to the Linear.VideoClicks.ClickTracking node. |
CLOSE |
Corresponds to the close tracking event. |
COLLAPSE |
Corresponds to the collapse tracking event. |
COMPLETE |
Corresponds to the complete tracking event. |
CREATIVE_VIEW |
Corresponds to the creativeView tracking event. |
CUSTOM_CLICK |
Corresponds to the Linear.VideoClicks.CustomClick node. |
ENGAGED_VIEW |
An event that is fired after 30 seconds of viewing the video or when the video finished (if the video duration is less than 30 seconds). This event does not correspond to any VAST element and is implemented using an extension. |
EXPAND |
Corresponds to the expand tracking event. |
FIRST_QUARTILE |
Corresponds to the firstQuartile tracking event. |
FULLSCREEN |
Corresponds to the fullscreen tracking event. |
FULLY_VIEWABLE_AUDIBLE_HALF_DURATION_IMPRESSION |
Corresponds to the fullyViewableAudibleHalfDurationImpression tracking event. |
MEASURABLE_IMPRESSION |
Corresponds to the measurableImpression tracking event. |
MIDPOINT |
Corresponds to the midpoint tracking event. |
MUTE |
Corresponds to the mute tracking event. |
PAUSE |
Corresponds to the pause tracking event. |
RESUME |
Corresponds to the resume tracking event. |
REWIND |
Corresponds to the rewind tracking event. |
SKIPPED |
An event that is fired when a video was skipped. This event does not correspond to any VAST element and is implemented using an extension. |
SKIP_SHOWN |
An event that is fired when a video skip button is shown, usually after 5 seconds of viewing the video. This event does not correspond to any VAST element and is implemented using an extension. |
START |
Corresponds to the start tracking event. |
SURVEY |
Corresponds to the InLine.Survey node. |
THIRD_QUARTILE |
Corresponds to the thirdQuartile tracking event. |
UNMUTE |
Corresponds to the unmute tracking event. |
VIDEO_ABANDON |
Corresponds to the abandon tracking event. |
VIEWABLE_IMPRESSION |
Corresponds to the viewableImpression tracking event. |
ThirdPartyDataDeclaration
Represents a set of declarations about what (if any) third party companies are associated with a given creative. This can also be set on the Network to serve as a default for those creatives that don't have such field set.
| JSON representation |
|---|
{
"declarationType": enum ( |
| Fields | |
|---|---|
declarationType |
Optional. The declaration about third party data usage on the associated entity. |
thirdPartyCompanies[] |
Optional. A list of ThirdPartyCompanies associated with this entity. Format: "networks/{networkCode}/thirdPartyCompanies/{thirdPartyCompany}" |
ThirdPartyDataDeclarationType
The declaration about third party data usage on the associated entity.
| Enums | |
|---|---|
THIRD_PARTY_DATA_DECLARATION_TYPE_UNSPECIFIED |
Default value. This value is unused. |
DECLARED |
There is a set of ThirdPartyCompanies associated with this entity. |
NONE |
There are no companies associated. Functionally the same as DECLARED, combined with an empty company list. |
CreativeWrapperOrdering
Defines the order in which the header and footer HTML snippets will be wrapped around the served creative. INNER snippets will be wrapped first, followed by NO_PREFERENCE and finally OUTER. If the creative needs to be wrapped with more than one snippet with the same CreativeWrapperOrdering, then the order is unspecified.
| Enums | |
|---|---|
CREATIVE_WRAPPER_ORDERING_UNSPECIFIED |
Default value. This value is unused. |
INNER |
Wrapping occurs as early as possible. |
NO_PREFERENCE |
Wrapping occurs after INNER but before OUTER |
OUTER |
Wrapping occurs after both NO_PREFERENCE and INNER |
CreativeWrapperStatus
Indicates whether the CreativeWrapper is active. HTML snippets are served to Creatives only when the CreativeWrapper is active.
| Enums | |
|---|---|
CREATIVE_WRAPPER_STATUS_UNSPECIFIED |
Default value. This value is unused. |
ACTIVE |
The CreativeWrapper will be applied to served creatives. |
INACTIVE |
The CreativeWrapper will not be applied to served creatives. |
Methods |
|
|---|---|
|
Batch activates CreativeWrapper objects. |
|
Creates CreativeWrapper objects. |
|
Deactivates a list of CreativeWrapper objects. |
|
Batch updates CreativeWrapper objects. |
|
Creates a CreativeWrapper object. |
|
Retrieves a CreativeWrapper object. |
|
Lists CreativeWrapper objects. |
|
Updates a CreativeWrapper object. |