AI-generated Key Takeaways
- 
          This API call generates a tag for a floodlight activity. 
- 
          The request uses a POST method with a URL containing a profileId.
- 
          The response includes fields for the floodlight activity tag, the global site tag snippet, and a resource kind identifier. 
- 
          The API requires the https://www.googleapis.com/auth/dfatraffickingOAuth scope for authorization.
- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization scopes
- Try it!
Generates a tag for a floodlight activity.
HTTP request
POST https://dfareporting.googleapis.com/dfareporting/v4/userprofiles/{profileId}/floodlightActivities/generatetag
The URL uses gRPC Transcoding syntax.
Path parameters
| Parameters | |
|---|---|
| profileId | 
 User profile ID associated with this request. | 
Query parameters
| Parameters | |
|---|---|
| floodlightActivityId | 
 Floodlight activity ID for which we want to generate a tag. | 
Request body
The request body contains an instance of Empty.
Response body
Floodlight Activity GenerateTag Response
If successful, the response body contains data with the following structure:
| JSON representation | 
|---|
| { "floodlightActivityTag": string, "globalSiteTagGlobalSnippet": string, "kind": string } | 
| Fields | |
|---|---|
| floodlightActivityTag | 
 Generated tag for this Floodlight activity. For Google tags, this is the event snippet. | 
| globalSiteTagGlobalSnippet | 
 The global snippet section of a Google tag. The Google tag sets new cookies on your domain, which will store a unique identifier for a user or the ad click that brought the user to your site. Learn more. | 
| 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