Campaign Manager 360 API v4 is deprecated
and will be sunset on February 26, 2026
. Migrate
to v5 by this date to avoid service interruptions.
Send feedback
Method: targetingTemplates.insert Stay organized with collections
Save and categorize content based on your preferences.
outlined_flag
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
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License
, and code samples are licensed under the Apache 2.0 License
. For details, see the Google Developers Site Policies
. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-09-02 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-02 UTC."],[],[]]