Class: Google::Apis::DfareportingV2_6::TargetingTemplate
- Inherits:
-
Object
- Object
- Google::Apis::DfareportingV2_6::TargetingTemplate
- 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
-
#account_id ⇒ String
Account ID of this targeting template.
-
#advertiser_id ⇒ String
Advertiser ID of this targeting template.
-
#advertiser_id_dimension_value ⇒ Google::Apis::DfareportingV2_6::DimensionValue
Represents a DimensionValue resource.
-
#day_part_targeting ⇒ Google::Apis::DfareportingV2_6::DayPartTargeting
Day Part Targeting.
-
#geo_targeting ⇒ Google::Apis::DfareportingV2_6::GeoTargeting
Geographical Targeting.
-
#id ⇒ String
ID of this targeting template.
-
#key_value_targeting_expression ⇒ Google::Apis::DfareportingV2_6::KeyValueTargetingExpression
Key Value Targeting Expression.
-
#kind ⇒ String
Identifies what kind of resource this is.
-
#language_targeting ⇒ Google::Apis::DfareportingV2_6::LanguageTargeting
Language Targeting.
-
#list_targeting_expression ⇒ Google::Apis::DfareportingV2_6::ListTargetingExpression
Remarketing List Targeting Expression.
-
#name ⇒ String
Name of this targeting template.
-
#subaccount_id ⇒ String
Subaccount ID of this targeting template.
-
#technology_targeting ⇒ Google::Apis::DfareportingV2_6::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.
11056 11057 11058 |
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 11056 def initialize(**args) update!(**args) end |
Instance Attribute Details
#account_id ⇒ String
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
10990 10991 10992 |
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 10990 def account_id @account_id end |
#advertiser_id ⇒ String
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
10996 10997 10998 |
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 10996 def advertiser_id @advertiser_id end |
#advertiser_id_dimension_value ⇒ Google::Apis::DfareportingV2_6::DimensionValue
Represents a DimensionValue resource.
Corresponds to the JSON property advertiserIdDimensionValue
11001 11002 11003 |
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 11001 def advertiser_id_dimension_value @advertiser_id_dimension_value end |
#day_part_targeting ⇒ Google::Apis::DfareportingV2_6::DayPartTargeting
Day Part Targeting.
Corresponds to the JSON property dayPartTargeting
11006 11007 11008 |
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 11006 def day_part_targeting @day_part_targeting end |
#geo_targeting ⇒ Google::Apis::DfareportingV2_6::GeoTargeting
Geographical Targeting.
Corresponds to the JSON property geoTargeting
11011 11012 11013 |
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 11011 def geo_targeting @geo_targeting end |
#id ⇒ String
ID of this targeting template. This is a read-only, auto-generated field.
Corresponds to the JSON property id
11016 11017 11018 |
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 11016 def id @id end |
#key_value_targeting_expression ⇒ Google::Apis::DfareportingV2_6::KeyValueTargetingExpression
Key Value Targeting Expression.
Corresponds to the JSON property keyValueTargetingExpression
11021 11022 11023 |
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 11021 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
11027 11028 11029 |
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 11027 def kind @kind end |
#language_targeting ⇒ Google::Apis::DfareportingV2_6::LanguageTargeting
Language Targeting.
Corresponds to the JSON property languageTargeting
11032 11033 11034 |
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 11032 def language_targeting @language_targeting end |
#list_targeting_expression ⇒ Google::Apis::DfareportingV2_6::ListTargetingExpression
Remarketing List Targeting Expression.
Corresponds to the JSON property listTargetingExpression
11037 11038 11039 |
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 11037 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
11043 11044 11045 |
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 11043 def name @name end |
#subaccount_id ⇒ String
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
11049 11050 11051 |
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 11049 def subaccount_id @subaccount_id end |
#technology_targeting ⇒ Google::Apis::DfareportingV2_6::TechnologyTargeting
Technology Targeting.
Corresponds to the JSON property technologyTargeting
11054 11055 11056 |
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 11054 def technology_targeting @technology_targeting end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
11061 11062 11063 11064 11065 11066 11067 11068 11069 11070 11071 11072 11073 11074 11075 |
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 11061 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 |