Class: Google::Apis::DfareportingV3_0::TargetingTemplate
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::DfareportingV3_0::TargetingTemplate
 
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/dfareporting_v3_0/classes.rb,
 generated/google/apis/dfareporting_v3_0/representations.rb,
 generated/google/apis/dfareporting_v3_0/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
- 
  
    
      #account_id  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Account ID of this targeting template. 
- 
  
    
      #advertiser_id  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Advertiser ID of this targeting template. 
- 
  
    
      #advertiser_id_dimension_value  ⇒ Google::Apis::DfareportingV3_0::DimensionValue 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Represents a DimensionValue resource. 
- 
  
    
      #day_part_targeting  ⇒ Google::Apis::DfareportingV3_0::DayPartTargeting 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Day Part Targeting. 
- 
  
    
      #geo_targeting  ⇒ Google::Apis::DfareportingV3_0::GeoTargeting 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Geographical Targeting. 
- 
  
    
      #id  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    ID of this targeting template. 
- 
  
    
      #key_value_targeting_expression  ⇒ Google::Apis::DfareportingV3_0::KeyValueTargetingExpression 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Key Value Targeting Expression. 
- 
  
    
      #kind  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Identifies what kind of resource this is. 
- 
  
    
      #language_targeting  ⇒ Google::Apis::DfareportingV3_0::LanguageTargeting 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Language Targeting. 
- 
  
    
      #list_targeting_expression  ⇒ Google::Apis::DfareportingV3_0::ListTargetingExpression 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Remarketing List Targeting Expression. 
- 
  
    
      #name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Name of this targeting template. 
- 
  
    
      #subaccount_id  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Subaccount ID of this targeting template. 
- 
  
    
      #technology_targeting  ⇒ Google::Apis::DfareportingV3_0::TechnologyTargeting 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Technology Targeting. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ TargetingTemplate 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of TargetingTemplate. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ TargetingTemplate
Returns a new instance of TargetingTemplate
| 11391 11392 11393 | # File 'generated/google/apis/dfareporting_v3_0/classes.rb', line 11391 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#account_id ⇒ Fixnum
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
| 11325 11326 11327 | # File 'generated/google/apis/dfareporting_v3_0/classes.rb', line 11325 def account_id @account_id end | 
#advertiser_id ⇒ Fixnum
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
| 11331 11332 11333 | # File 'generated/google/apis/dfareporting_v3_0/classes.rb', line 11331 def advertiser_id @advertiser_id end | 
#advertiser_id_dimension_value ⇒ Google::Apis::DfareportingV3_0::DimensionValue
Represents a DimensionValue resource.
Corresponds to the JSON property advertiserIdDimensionValue
| 11336 11337 11338 | # File 'generated/google/apis/dfareporting_v3_0/classes.rb', line 11336 def advertiser_id_dimension_value @advertiser_id_dimension_value end | 
#day_part_targeting ⇒ Google::Apis::DfareportingV3_0::DayPartTargeting
Day Part Targeting.
Corresponds to the JSON property dayPartTargeting
| 11341 11342 11343 | # File 'generated/google/apis/dfareporting_v3_0/classes.rb', line 11341 def day_part_targeting @day_part_targeting end | 
#geo_targeting ⇒ Google::Apis::DfareportingV3_0::GeoTargeting
Geographical Targeting.
Corresponds to the JSON property geoTargeting
| 11346 11347 11348 | # File 'generated/google/apis/dfareporting_v3_0/classes.rb', line 11346 def geo_targeting @geo_targeting end | 
#id ⇒ Fixnum
ID of this targeting template. This is a read-only, auto-generated field.
Corresponds to the JSON property id
| 11351 11352 11353 | # File 'generated/google/apis/dfareporting_v3_0/classes.rb', line 11351 def id @id end | 
#key_value_targeting_expression ⇒ Google::Apis::DfareportingV3_0::KeyValueTargetingExpression
Key Value Targeting Expression.
Corresponds to the JSON property keyValueTargetingExpression
| 11356 11357 11358 | # File 'generated/google/apis/dfareporting_v3_0/classes.rb', line 11356 def key_value_targeting_expression @key_value_targeting_expression end | 
#kind ⇒ String
Identifies what kind of resource this is. Value: the fixed string "
dfareporting#targetingTemplate".
Corresponds to the JSON property kind
| 11362 11363 11364 | # File 'generated/google/apis/dfareporting_v3_0/classes.rb', line 11362 def kind @kind end | 
#language_targeting ⇒ Google::Apis::DfareportingV3_0::LanguageTargeting
Language Targeting.
Corresponds to the JSON property languageTargeting
| 11367 11368 11369 | # File 'generated/google/apis/dfareporting_v3_0/classes.rb', line 11367 def language_targeting @language_targeting end | 
#list_targeting_expression ⇒ Google::Apis::DfareportingV3_0::ListTargetingExpression
Remarketing List Targeting Expression.
Corresponds to the JSON property listTargetingExpression
| 11372 11373 11374 | # File 'generated/google/apis/dfareporting_v3_0/classes.rb', line 11372 def list_targeting_expression @list_targeting_expression end | 
#name ⇒ String
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
| 11378 11379 11380 | # File 'generated/google/apis/dfareporting_v3_0/classes.rb', line 11378 def name @name end | 
#subaccount_id ⇒ Fixnum
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
| 11384 11385 11386 | # File 'generated/google/apis/dfareporting_v3_0/classes.rb', line 11384 def subaccount_id @subaccount_id end | 
#technology_targeting ⇒ Google::Apis::DfareportingV3_0::TechnologyTargeting
Technology Targeting.
Corresponds to the JSON property technologyTargeting
| 11389 11390 11391 | # File 'generated/google/apis/dfareporting_v3_0/classes.rb', line 11389 def technology_targeting @technology_targeting end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 11396 11397 11398 11399 11400 11401 11402 11403 11404 11405 11406 11407 11408 11409 11410 | # File 'generated/google/apis/dfareporting_v3_0/classes.rb', line 11396 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 |