class Google::Apis::DfareportingV3_5::DynamicTargetingKey

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 Studio dynamic creatives. Use these labels instead of numeric Campaign Manager IDs (such as placement IDs) to save time and avoid errors in your dynamic feeds.

Attributes

kind[RW]

Identifies what kind of resource this is. Value: the fixed string “ dfareporting#dynamicTargetingKey”. Corresponds to the JSON property `kind` @return [String]

name[RW]

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` @return [String]

object_id_prop[RW]

ID of the object of this dynamic targeting key. This is a required field. Corresponds to the JSON property `objectId` @return [Fixnum]

object_type[RW]

Type of the object of this dynamic targeting key. This is a required field. Corresponds to the JSON property `objectType` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/dfareporting_v3_5/classes.rb, line 5346
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/dfareporting_v3_5/classes.rb, line 5351
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