Page Summary
-
An AdPlay resource represents a single instance of an ad playing.
-
The JSON representation of an AdPlay includes fields such as
name,startTime,endTime, andimpressionCount. -
An AdPlay references associated resources like lines, ad units, and creative assets using either their resource name or external ID.
-
Methods for interacting with AdPlays include
batchCreateandcreatefor creating new ad plays.
Resource: AdPlay
A single ad play.
| JSON representation |
|---|
{ "name": string, "startTime": string, "endTime": string, "impressionCount": number, // Union field |
| Fields | |
|---|---|
name |
Output only. The resource name of the ad play in the format: |
startTime |
Time the ad started to play. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
endTime |
Time the ad play ended. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
impressionCount |
Total number of impressions. Impressions can be estimated and fractional values are supported. |
Union field
|
|
line |
The line this ad play belongs to. The order will be inferred from the line. Format: |
lineExternalId |
Input only. The external id of the line this ad play belongs to. The order will be inferred from the line. Format: |
Union field
|
|
adUnit |
The ad unit this ad play was served on. Format: |
adUnitExternalId |
Input only. The external id of the ad unit this ad play was served on. Format: |
Union field
|
|
creativeAsset |
The creative asset this ad play served. Format: |
creativeAssetExternalId |
Input only. The external id of the creative asset this ad play served. Format: |
Methods |
|
|---|---|
|
Creates new ad plays in batch. |
|
Creates an ad play. |