AI-generated Key Takeaways
-
Generates tags, including impression and click tags, for specified placements within a campaign.
-
Requires the
dfatrafficking
OAuth scope and utilizes a POST request to the designated endpoint. -
Supports various tag formats, such as standard and tracking tags, with standard tags limited to 1x1 placements.
-
Returns a response containing a set of generated tags for each requested placement, including associated ad and creative IDs when applicable.
-
Provides details on path and query parameters, request and response body structures, and relevant data objects like PlacementTag and TagData.
- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization scopes
- PlacementTag
- TagData
- Try it!
Generates tags for a placement.
HTTP request
POST https://dfareporting.googleapis.com/dfareporting/v4/userprofiles/{profileId}/placements/generatetags
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
profileId |
User profile ID associated with this request. |
Query parameters
Parameters | |
---|---|
body |
Empty body |
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 must be empty.
Response body
Placement GenerateTags Response
If successful, the response body contains data with the following structure:
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
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
. |