AI-generated Key Takeaways
-
A TargetingTemplate encapsulates reusable targeting information for multiple ads.
-
The JSON representation details the structure and fields of a TargetingTemplate resource.
-
TargetingTemplates can be managed using methods like get, insert, list, patch, and update.
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 ( |
| Fields | |
|---|---|
id
|
ID of this targeting template. This is a read-only, auto-generated field. |
accountId
|
Account ID of this targeting template. This field, if left unset, will be auto-generated on insert and is read-only after insert. |
subaccountId
|
Subaccount ID of this targeting template. This field, if left unset, will be auto-generated on insert and is read-only after insert. |
advertiserId
|
Advertiser ID of this targeting template. This is a required field on insert and is read-only after insert. |
advertiserIdDimensionValue
|
Dimension value for the ID of the advertiser. This is a read-only, auto-generated field. |
name
|
Name of this targeting template. This field is required. It must be less than 256 characters long and unique within an advertiser. |
geoTargeting
|
Geographical targeting criteria. |
technologyTargeting
|
Technology platform targeting criteria. |
dayPartTargeting
|
Time and day targeting criteria. |
keyValueTargetingExpression
|
Key-value targeting criteria. |
languageTargeting
|
Language targeting criteria. |
listTargetingExpression
|
Remarketing list targeting criteria. |
kind
|
Identifies what kind of resource this is. Value: the fixed string . |
contextualKeywordTargeting
|
Optional. Contextual keyword targeting criteria. |
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. |

