Class: Google::Apis::DfareportingV3_3::TargetingTemplate

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/dfareporting_v3_3/classes.rb,
generated/google/apis/dfareporting_v3_3/representations.rb,
generated/google/apis/dfareporting_v3_3/representations.rb

Overview

Contains properties of a targeting template. A targeting template encapsulates targeting information which can be reused across multiple ads.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TargetingTemplate

Returns a new instance of TargetingTemplate.



11412
11413
11414
# File 'generated/google/apis/dfareporting_v3_3/classes.rb', line 11412

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#account_idFixnum

Account ID of this targeting template. This field, if left unset, will be auto- generated on insert and is read-only after insert. Corresponds to the JSON property accountId

Returns:

  • (Fixnum)


11346
11347
11348
# File 'generated/google/apis/dfareporting_v3_3/classes.rb', line 11346

def 
  @account_id
end

#advertiser_idFixnum

Advertiser ID of this targeting template. This is a required field on insert and is read-only after insert. Corresponds to the JSON property advertiserId

Returns:

  • (Fixnum)


11352
11353
11354
# File 'generated/google/apis/dfareporting_v3_3/classes.rb', line 11352

def advertiser_id
  @advertiser_id
end

#advertiser_id_dimension_valueGoogle::Apis::DfareportingV3_3::DimensionValue

Represents a DimensionValue resource. Corresponds to the JSON property advertiserIdDimensionValue



11357
11358
11359
# File 'generated/google/apis/dfareporting_v3_3/classes.rb', line 11357

def advertiser_id_dimension_value
  @advertiser_id_dimension_value
end

#day_part_targetingGoogle::Apis::DfareportingV3_3::DayPartTargeting

Day Part Targeting. Corresponds to the JSON property dayPartTargeting



11362
11363
11364
# File 'generated/google/apis/dfareporting_v3_3/classes.rb', line 11362

def day_part_targeting
  @day_part_targeting
end

#geo_targetingGoogle::Apis::DfareportingV3_3::GeoTargeting

Geographical Targeting. Corresponds to the JSON property geoTargeting



11367
11368
11369
# File 'generated/google/apis/dfareporting_v3_3/classes.rb', line 11367

def geo_targeting
  @geo_targeting
end

#idFixnum

ID of this targeting template. This is a read-only, auto-generated field. Corresponds to the JSON property id

Returns:

  • (Fixnum)


11372
11373
11374
# File 'generated/google/apis/dfareporting_v3_3/classes.rb', line 11372

def id
  @id
end

#key_value_targeting_expressionGoogle::Apis::DfareportingV3_3::KeyValueTargetingExpression

Key Value Targeting Expression. Corresponds to the JSON property keyValueTargetingExpression



11377
11378
11379
# File 'generated/google/apis/dfareporting_v3_3/classes.rb', line 11377

def key_value_targeting_expression
  @key_value_targeting_expression
end

#kindString

Identifies what kind of resource this is. Value: the fixed string " dfareporting#targetingTemplate". Corresponds to the JSON property kind

Returns:

  • (String)


11383
11384
11385
# File 'generated/google/apis/dfareporting_v3_3/classes.rb', line 11383

def kind
  @kind
end

#language_targetingGoogle::Apis::DfareportingV3_3::LanguageTargeting

Language Targeting. Corresponds to the JSON property languageTargeting



11388
11389
11390
# File 'generated/google/apis/dfareporting_v3_3/classes.rb', line 11388

def language_targeting
  @language_targeting
end

#list_targeting_expressionGoogle::Apis::DfareportingV3_3::ListTargetingExpression

Remarketing List Targeting Expression. Corresponds to the JSON property listTargetingExpression



11393
11394
11395
# File 'generated/google/apis/dfareporting_v3_3/classes.rb', line 11393

def list_targeting_expression
  @list_targeting_expression
end

#nameString

Name of this targeting template. This field is required. It must be less than 256 characters long and unique within an advertiser. Corresponds to the JSON property name

Returns:

  • (String)


11399
11400
11401
# File 'generated/google/apis/dfareporting_v3_3/classes.rb', line 11399

def name
  @name
end

#subaccount_idFixnum

Subaccount ID of this targeting template. This field, if left unset, will be auto-generated on insert and is read-only after insert. Corresponds to the JSON property subaccountId

Returns:

  • (Fixnum)


11405
11406
11407
# File 'generated/google/apis/dfareporting_v3_3/classes.rb', line 11405

def subaccount_id
  @subaccount_id
end

#technology_targetingGoogle::Apis::DfareportingV3_3::TechnologyTargeting

Technology Targeting. Corresponds to the JSON property technologyTargeting



11410
11411
11412
# File 'generated/google/apis/dfareporting_v3_3/classes.rb', line 11410

def technology_targeting
  @technology_targeting
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
# File 'generated/google/apis/dfareporting_v3_3/classes.rb', line 11417

def update!(**args)
  @account_id = args[:account_id] if args.key?(:account_id)
  @advertiser_id = args[:advertiser_id] if args.key?(:advertiser_id)
  @advertiser_id_dimension_value = args[:advertiser_id_dimension_value] if args.key?(:advertiser_id_dimension_value)
  @day_part_targeting = args[:day_part_targeting] if args.key?(:day_part_targeting)
  @geo_targeting = args[:geo_targeting] if args.key?(:geo_targeting)
  @id = args[:id] if args.key?(:id)
  @key_value_targeting_expression = args[:key_value_targeting_expression] if args.key?(:key_value_targeting_expression)
  @kind = args[:kind] if args.key?(:kind)
  @language_targeting = args[:language_targeting] if args.key?(:language_targeting)
  @list_targeting_expression = args[:list_targeting_expression] if args.key?(:list_targeting_expression)
  @name = args[:name] if args.key?(:name)
  @subaccount_id = args[:subaccount_id] if args.key?(:subaccount_id)
  @technology_targeting = args[:technology_targeting] if args.key?(:technology_targeting)
end