Class: Google::Apis::DfareportingV2_6::TargetingTemplate

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/dfareporting_v2_6/classes.rb,
generated/google/apis/dfareporting_v2_6/representations.rb,
generated/google/apis/dfareporting_v2_6/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

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ TargetingTemplate

Returns a new instance of TargetingTemplate



11070
11071
11072
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 11070

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)


11004
11005
11006
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 11004

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)


11010
11011
11012
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 11010

def advertiser_id
  @advertiser_id
end

#advertiser_id_dimension_valueGoogle::Apis::DfareportingV2_6::DimensionValue

Represents a DimensionValue resource. Corresponds to the JSON property advertiserIdDimensionValue



11015
11016
11017
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 11015

def advertiser_id_dimension_value
  @advertiser_id_dimension_value
end

#day_part_targetingGoogle::Apis::DfareportingV2_6::DayPartTargeting

Day Part Targeting. Corresponds to the JSON property dayPartTargeting



11020
11021
11022
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 11020

def day_part_targeting
  @day_part_targeting
end

#geo_targetingGoogle::Apis::DfareportingV2_6::GeoTargeting

Geographical Targeting. Corresponds to the JSON property geoTargeting



11025
11026
11027
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 11025

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)


11030
11031
11032
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 11030

def id
  @id
end

#key_value_targeting_expressionGoogle::Apis::DfareportingV2_6::KeyValueTargetingExpression

Key Value Targeting Expression. Corresponds to the JSON property keyValueTargetingExpression



11035
11036
11037
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 11035

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)


11041
11042
11043
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 11041

def kind
  @kind
end

#language_targetingGoogle::Apis::DfareportingV2_6::LanguageTargeting

Language Targeting. Corresponds to the JSON property languageTargeting



11046
11047
11048
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 11046

def language_targeting
  @language_targeting
end

#list_targeting_expressionGoogle::Apis::DfareportingV2_6::ListTargetingExpression

Remarketing List Targeting Expression. Corresponds to the JSON property listTargetingExpression



11051
11052
11053
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 11051

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)


11057
11058
11059
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 11057

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)


11063
11064
11065
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 11063

def subaccount_id
  @subaccount_id
end

#technology_targetingGoogle::Apis::DfareportingV2_6::TechnologyTargeting

Technology Targeting. Corresponds to the JSON property technologyTargeting



11068
11069
11070
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 11068

def technology_targeting
  @technology_targeting
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 11075

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