REST Resource: targetingTemplates

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

get

Gets one targeting template by ID.

insert

Inserts a new targeting template.

list

Retrieves a list of targeting templates, optionally filtered.

patch

Updates an existing targeting template.

update

Updates an existing targeting template.