Method: targetingTemplates.insert

  • The TargetingTemplates: insert method is used to create a new targeting template.

  • The HTTP request for this method is a POST request to a specific URL that includes the user's profile ID as a path parameter.

  • The request body requires an instance of a TargetingTemplate object.

  • The response body, if successful, will contain a newly created TargetingTemplate object.

  • This method requires the https://www.googleapis.com/auth/dfatrafficking authorization scope.

Inserts a new targeting template.

HTTP request

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

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
profileId

string (int64 format)

User profile ID associated with this request.

Request body

The request body contains an instance of TargetingTemplate.

Response body

If successful, the response body contains a newly created instance of TargetingTemplate.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/dfatrafficking