Generates tags for a placement. Try it now.
Request
HTTP request
POST https://www.googleapis.com/dfareporting/v3.4/userprofiles/profileId/placements/generatetags
Parameters
Parameter name | Value | Description |
---|---|---|
Path parameters | ||
profileId |
long |
User profile ID associated with this request. |
Optional query parameters | ||
campaignId |
long |
Generate placements belonging to this campaign. This is a required field. |
placementIds |
long |
Generate tags for these placements. |
tagFormats |
string |
Tag formats to generate for these placements. Note: PLACEMENT_TAG_STANDARD can only be generated for 1x1 placements.
Acceptable values are:
|
Authorization
This request requires authorization with the following scope:
Scope |
---|
https://www.googleapis.com/auth/dfatrafficking |
For more information, see the authentication and authorization page.
Request body
Do not supply a request body with this method.
Response
If successful, this method returns a response body with the following structure:
{ "kind": "dfareporting#placementsGenerateTagsResponse", "placementTags": [ { "placementId": long, "tagDatas": [ { "format": string, "impressionTag": string, "clickTag": string, "adId": long, "creativeId": long } ] } ] }
Property name | Value | Description | Notes |
---|---|---|---|
kind |
string |
Identifies what kind of resource this is. Value: the fixed string "dfareporting#placementsGenerateTagsResponse" . |
|
placementTags[] |
list |
Set of generated tags for the specified placements. | |
placementTags[].placementId |
long |
Placement ID | |
placementTags[].tagDatas[] |
list |
Tags generated for this placement. | |
placementTags[].tagDatas[].format |
string |
TagData tag format of this tag.
Acceptable values are:
|
|
placementTags[].tagDatas[].impressionTag |
string |
Tag string for serving an ad. | |
placementTags[].tagDatas[].clickTag |
string |
Tag string to record a click. | |
placementTags[].tagDatas[].adId |
long |
Ad associated with this placement tag. Applicable only when format is PLACEMENT_TAG_TRACKING . |
|
placementTags[].tagDatas[].creativeId |
long |
Creative associated with this placement tag. Applicable only when format is PLACEMENT_TAG_TRACKING . |
Try it!
Use the APIs Explorer below to call this method on live data and see the response.