Generates tags for a placement.
HTTP request
POST https://dfareporting.googleapis.com/dfareporting/v3.3/userprofiles/{profileId}/placements/generatetags
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
profileId |
User profile ID associated with this request. |
Query parameters
Parameters | |
---|---|
placementIds[] |
Generate tags for these placements. |
campaignId |
Generate placements belonging to this campaign. This is a required field. |
tagFormats[] |
Tag formats to generate for these placements.
can only be generated for 1x1 placements. |
Request body
The request body contains an instance of Empty
.
Response body
If successful, the response body contains data with the following structure:
Placement GenerateTags Response
JSON representation | |
---|---|
{
"placementTags": [
{
object ( |
Fields | |
---|---|
placementTags[] |
Set of generated tags for the specified placements. |
kind |
Identifies what kind of resource this is. Value: the fixed string
. |
Authorization Scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/dfatrafficking
TagFormats
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 |
PlacementTag
Placement Tag
JSON representation | |
---|---|
{
"placementId": string,
"tagDatas": [
{
object ( |
Fields | |
---|---|
placementId |
Placement ID |
tagDatas[] |
Tags generated for this placement. |
TagData
Placement Tag Data
JSON representation | |
---|---|
{
"format": enum ( |
Fields | |
---|---|
format |
TagData tag format of this tag. |
impressionTag |
Tag string for serving an ad. |
clickTag |
Tag string to record a click. |
adId |
Ad associated with this placement tag. Applicable only when
is
. |
creativeId |
Creative associated with this placement tag. Applicable only when
is
. |
Format
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 |