Class: Google::Apis::DfareportingV2_7::DynamicTargetingKey

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

Overview

Contains properties of a dynamic targeting key. Dynamic targeting keys are unique, user-friendly labels, created at the advertiser level in DCM, that can be assigned to ads, creatives, and placements and used for targeting with DoubleClick Studio dynamic creatives. Use these labels instead of numeric DCM IDs (such as placement IDs) to save time and avoid errors in your dynamic feeds.

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) ⇒ DynamicTargetingKey

Returns a new instance of DynamicTargetingKey



5186
5187
5188
# File 'generated/google/apis/dfareporting_v2_7/classes.rb', line 5186

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

Instance Attribute Details

#kindString

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

Returns:

  • (String)


5167
5168
5169
# File 'generated/google/apis/dfareporting_v2_7/classes.rb', line 5167

def kind
  @kind
end

#nameString

Name of this dynamic targeting key. This is a required field. Must be less than 256 characters long and cannot contain commas. All characters are converted to lowercase. Corresponds to the JSON property name

Returns:

  • (String)


5174
5175
5176
# File 'generated/google/apis/dfareporting_v2_7/classes.rb', line 5174

def name
  @name
end

#object_id_propFixnum

ID of the object of this dynamic targeting key. This is a required field. Corresponds to the JSON property objectId

Returns:

  • (Fixnum)


5179
5180
5181
# File 'generated/google/apis/dfareporting_v2_7/classes.rb', line 5179

def object_id_prop
  @object_id_prop
end

#object_typeString

Type of the object of this dynamic targeting key. This is a required field. Corresponds to the JSON property objectType

Returns:

  • (String)


5184
5185
5186
# File 'generated/google/apis/dfareporting_v2_7/classes.rb', line 5184

def object_type
  @object_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5191
5192
5193
5194
5195
5196
# File 'generated/google/apis/dfareporting_v2_7/classes.rb', line 5191

def update!(**args)
  @kind = args[:kind] if args.key?(:kind)
  @name = args[:name] if args.key?(:name)
  @object_id_prop = args[:object_id_prop] if args.key?(:object_id_prop)
  @object_type = args[:object_type] if args.key?(:object_type)
end