Method: floodlightActivities.generatetag

  • The documentation outlines how to generate a tag for a Floodlight activity using an HTTP POST request.

  • The request requires a profile ID as a path parameter and optionally accepts a floodlight activity ID as a query parameter.

  • The request body is empty, and the successful response body contains the generated Floodlight activity tag and the global site tag snippet.

  • Authorization is required using the https://www.googleapis.com/auth/dfatrafficking OAuth scope.

Generates a tag for a floodlight activity.

HTTP request

POST https://dfareporting.googleapis.com/dfareporting/v5/userprofiles/{profileId}/floodlightActivities/generatetag

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
profileId

string ( int64 format)

User profile ID associated with this request.

Query parameters

Parameters
floodlightActivityId

string ( int64 format)

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

string

Generated tag for this Floodlight activity. For Google tags, this is the event snippet.

globalSiteTagGlobalSnippet

string

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

string

Identifies what kind of resource this is. Value: the fixed string

"dfareporting#floodlightActivitiesGenerateTagResponse"

.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/dfatrafficking
Create a Mobile Website
View Site in Mobile | Classic
Share by: