REST Resource: targetingTemplates
Stay organized with collections
Save and categorize content based on your preferences.
Resource: TargetingTemplate
Contains properties of a targeting template. A targeting template encapsulates targeting information which can be reused across multiple ads.
JSON representation |
{
"id": string,
"accountId": string,
"subaccountId": string,
"advertiserId": string,
"advertiserIdDimensionValue": {
object (DimensionValue )
},
"name": string,
"geoTargeting": {
object (GeoTargeting )
},
"technologyTargeting": {
object (TechnologyTargeting )
},
"dayPartTargeting": {
object (DayPartTargeting )
},
"keyValueTargetingExpression": {
object (KeyValueTargetingExpression )
},
"languageTargeting": {
object (LanguageTargeting )
},
"listTargetingExpression": {
object (ListTargetingExpression )
},
"kind": string
} |
Fields |
id |
string (int64 format)
ID of this targeting template. This is a read-only, auto-generated field.
|
accountId |
string (int64 format)
Account ID of this targeting template. This field, if left unset, will be auto-generated on insert and is read-only after insert.
|
subaccountId |
string (int64 format)
Subaccount ID of this targeting template. This field, if left unset, will be auto-generated on insert and is read-only after insert.
|
advertiserId |
string (int64 format)
Advertiser ID of this targeting template. This is a required field on insert and is read-only after insert.
|
advertiserIdDimensionValue |
object (DimensionValue )
Dimension value for the ID of the advertiser. This is a read-only, auto-generated field.
|
name |
string
Name of this targeting template. This field is required. It must be less than 256 characters long and unique within an advertiser.
|
geoTargeting |
object (GeoTargeting )
Geographical targeting criteria.
|
technologyTargeting |
object (TechnologyTargeting )
Technology platform targeting criteria.
|
dayPartTargeting |
object (DayPartTargeting )
Time and day targeting criteria.
|
keyValueTargetingExpression |
object (KeyValueTargetingExpression )
Key-value targeting criteria.
|
languageTargeting |
object (LanguageTargeting )
Language targeting criteria.
|
listTargetingExpression |
object (ListTargetingExpression )
Remarketing list targeting criteria.
|
kind |
string
Identifies what kind of resource this is. Value: the fixed string
"dfareporting#targetingTemplate"
.
|
Methods |
|
Gets one targeting template by ID. |
|
Inserts a new targeting template. |
|
Retrieves a list of targeting templates, optionally filtered. |
|
Updates an existing targeting template. |
|
Updates an existing targeting template. |
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.
[null,null,["Last updated 2025-09-02 UTC."],[],[],null,["- [Resource: TargetingTemplate](#TargetingTemplate)\n - [JSON representation](#TargetingTemplate.SCHEMA_REPRESENTATION)\n- [Methods](#METHODS_SUMMARY)\n\nResource: TargetingTemplate Contains properties of a targeting template. A targeting template encapsulates targeting information which can be reused across multiple ads.\n\n| JSON representation |\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"id\": string, \"accountId\": string, \"subaccountId\": string, \"advertiserId\": string, \"advertiserIdDimensionValue\": { object (/doubleclick-advertisers/rest/v5/DimensionValue) }, \"name\": string, \"geoTargeting\": { object (/doubleclick-advertisers/rest/v5/GeoTargeting) }, \"technologyTargeting\": { object (/doubleclick-advertisers/rest/v5/TechnologyTargeting) }, \"dayPartTargeting\": { object (/doubleclick-advertisers/rest/v5/DayPartTargeting) }, \"keyValueTargetingExpression\": { object (/doubleclick-advertisers/rest/v5/KeyValueTargetingExpression) }, \"languageTargeting\": { object (/doubleclick-advertisers/rest/v5/LanguageTargeting) }, \"listTargetingExpression\": { object (/doubleclick-advertisers/rest/v5/ListTargetingExpression) }, \"kind\": string } ``` |\n\n| Fields ||\n|-------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `id` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` ID of this targeting template. This is a read-only, auto-generated field. |\n| `accountId` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` Account ID of this targeting template. This field, if left unset, will be auto-generated on insert and is read-only after insert. |\n| `subaccountId` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` Subaccount ID of this targeting template. This field, if left unset, will be auto-generated on insert and is read-only after insert. |\n| `advertiserId` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` Advertiser ID of this targeting template. This is a required field on insert and is read-only after insert. |\n| `advertiserIdDimensionValue` | `object (`[DimensionValue](/doubleclick-advertisers/rest/v5/DimensionValue)`)` Dimension value for the ID of the advertiser. This is a read-only, auto-generated field. |\n| `name` | `string` Name of this targeting template. This field is required. It must be less than 256 characters long and unique within an advertiser. |\n| `geoTargeting` | `object (`[GeoTargeting](/doubleclick-advertisers/rest/v5/GeoTargeting)`)` Geographical targeting criteria. |\n| `technologyTargeting` | `object (`[TechnologyTargeting](/doubleclick-advertisers/rest/v5/TechnologyTargeting)`)` Technology platform targeting criteria. |\n| `dayPartTargeting` | `object (`[DayPartTargeting](/doubleclick-advertisers/rest/v5/DayPartTargeting)`)` Time and day targeting criteria. |\n| `keyValueTargetingExpression` | `object (`[KeyValueTargetingExpression](/doubleclick-advertisers/rest/v5/KeyValueTargetingExpression)`)` Key-value targeting criteria. |\n| `languageTargeting` | `object (`[LanguageTargeting](/doubleclick-advertisers/rest/v5/LanguageTargeting)`)` Language targeting criteria. |\n| `listTargetingExpression` | `object (`[ListTargetingExpression](/doubleclick-advertisers/rest/v5/ListTargetingExpression)`)` Remarketing list targeting criteria. |\n| `kind` | `string` Identifies what kind of resource this is. Value: the fixed string `\"dfareporting#targetingTemplate\"` . |\n\n| Methods ||\n|----------------------------------------------------------------------|---------------------------------------------------------------|\n| [get](/doubleclick-advertisers/rest/v5/targetingTemplates/get) | Gets one targeting template by ID. |\n| [insert](/doubleclick-advertisers/rest/v5/targetingTemplates/insert) | Inserts a new targeting template. |\n| [list](/doubleclick-advertisers/rest/v5/targetingTemplates/list) | Retrieves a list of targeting templates, optionally filtered. |\n| [patch](/doubleclick-advertisers/rest/v5/targetingTemplates/patch) | Updates an existing targeting template. |\n| [update](/doubleclick-advertisers/rest/v5/targetingTemplates/update) | Updates an existing targeting template. |"]]