Page Summary
-
The page provides a reference for creating an ad play using external IDs via an HTTP POST request.
-
The request body requires specifying external IDs for the line, order, ad unit, and creative asset, along with start time, end time, and impressions.
-
The response returns the newly created ad play upon success.
-
Various error codes are returned for invalid or duplicate ad play creations.
-
The creation of an ad play with external IDs requires the
https://www.googleapis.com/auth/doubleclickbidmanagerOAuth scope.
Creates an ad play with external ids.
- Returns the newly created ad play if successful.
- Returns error code
INVALID_ARGUMENTif invalid ad unit external id, order external id, line external id, or creative asset external id are specified. - Returns error code
INVALID_ARGUMENTif an ad play for the same ad unit, order, line, and creative with the same startTime already exists. - Returns error code
NOT_FOUNDif no matching ad unit external id, order external id, line external id, or creative asset external id found.
HTTP request
POST https://dv360outofhomeseller.googleapis.com/v1beta1/adPlays:createWithExternalIds
The URL uses gRPC Transcoding syntax.
Request body
The request body contains data with the following structure:
| JSON representation |
|---|
{ "lineExternalId": string, "orderExternalId": string, "adUnitExternalId": string, "creativeAssetExternalId": string, "startTime": string, "endTime": string, "recordTime": string, "impressions": number } |
| Fields | |
|---|---|
lineExternalId |
Required. The external id of the line this ad play belongs to. Format: |
orderExternalId |
Required. The external id of the order this ad play belongs to. Format: |
adUnitExternalId |
Required. The external id of the ad unit this ad play was served on. Format: |
creativeAssetExternalId |
Required. The external id of the creative this ad play served. Format: |
startTime |
Required. Time the ad started to play (inclusive). Should be in the past and within the last 3 days. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
endTime |
Required. Time the ad play ended (exclusive). Should be in the past and after start time. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
recordTime |
Optional. Time this ad play was recorded. Should be in the past and after end time. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
impressions |
Required. Total number of impressions. |
Response body
If successful, the response body contains an instance of AdPlay.
Authorization Scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/doubleclickbidmanager
For more information, see the OAuth 2.0 Overview.