- [Resource: TargetingTemplate](https://developers.google.com/doubleclick-advertisers/rest/v5/targetingTemplates#TargetingTemplate)
  - [JSON representation](https://developers.google.com/doubleclick-advertisers/rest/v5/targetingTemplates#TargetingTemplate.SCHEMA_REPRESENTATION)
- [Methods](https://developers.google.com/doubleclick-advertisers/rest/v5/targetingTemplates#METHODS_SUMMARY)

## 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 (`https://developers.google.com/doubleclick-advertisers/rest/v5/DimensionValue`) }, "name": string, "geoTargeting": { object (`https://developers.google.com/doubleclick-advertisers/rest/v5/GeoTargeting`) }, "technologyTargeting": { object (`https://developers.google.com/doubleclick-advertisers/rest/v5/TechnologyTargeting`) }, "dayPartTargeting": { object (`https://developers.google.com/doubleclick-advertisers/rest/v5/DayPartTargeting`) }, "keyValueTargetingExpression": { object (`https://developers.google.com/doubleclick-advertisers/rest/v5/KeyValueTargetingExpression`) }, "languageTargeting": { object (`https://developers.google.com/doubleclick-advertisers/rest/v5/LanguageTargeting`) }, "listTargetingExpression": { object (`https://developers.google.com/doubleclick-advertisers/rest/v5/ListTargetingExpression`) }, "kind": string, "contextualKeywordTargeting": { object (`https://developers.google.com/doubleclick-advertisers/rest/v5/ContextualKeywordTargeting`) } } ``` |

| Fields ||
|---|---|
| `id` | `string (https://developers.google.com/discovery/v1/type-format format)` ID of this targeting template. This is a read-only, auto-generated field. |
| `accountId` | `string (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. |
| `subaccountId` | `string (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. |
| `advertiserId` | `string (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. |
| `advertiserIdDimensionValue` | ``object (`https://developers.google.com/doubleclick-advertisers/rest/v5/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 (`https://developers.google.com/doubleclick-advertisers/rest/v5/GeoTargeting`)`` Geographical targeting criteria. |
| `technologyTargeting` | ``object (`https://developers.google.com/doubleclick-advertisers/rest/v5/TechnologyTargeting`)`` Technology platform targeting criteria. |
| `dayPartTargeting` | ``object (`https://developers.google.com/doubleclick-advertisers/rest/v5/DayPartTargeting`)`` Time and day targeting criteria. |
| `keyValueTargetingExpression` | ``object (`https://developers.google.com/doubleclick-advertisers/rest/v5/KeyValueTargetingExpression`)`` Key-value targeting criteria. |
| `languageTargeting` | ``object (`https://developers.google.com/doubleclick-advertisers/rest/v5/LanguageTargeting`)`` Language targeting criteria. |
| `listTargetingExpression` | ``object (`https://developers.google.com/doubleclick-advertisers/rest/v5/ListTargetingExpression`)`` Remarketing list targeting criteria. |
| `kind` | `string` Identifies what kind of resource this is. Value: the fixed string `"dfareporting#targetingTemplate"`. |
| `contextualKeywordTargeting` | ``object (`https://developers.google.com/doubleclick-advertisers/rest/v5/ContextualKeywordTargeting`)`` Optional. Contextual keyword targeting criteria. |

| ## Methods ||
|---|---|
| ### `https://developers.google.com/doubleclick-advertisers/rest/v5/targetingTemplates/get` | Gets one targeting template by ID. |
| ### `https://developers.google.com/doubleclick-advertisers/rest/v5/targetingTemplates/insert` | Inserts a new targeting template. |
| ### `https://developers.google.com/doubleclick-advertisers/rest/v5/targetingTemplates/list` | Retrieves a list of targeting templates, optionally filtered. |
| ### `https://developers.google.com/doubleclick-advertisers/rest/v5/targetingTemplates/patch` | Updates an existing targeting template. |
| ### `https://developers.google.com/doubleclick-advertisers/rest/v5/targetingTemplates/update` | Updates an existing targeting template. |