Class: Google::Apis::DfareportingV3_2::DynamicTargetingKey
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::DfareportingV3_2::DynamicTargetingKey
 
 
- Includes:
 - Core::Hashable, Core::JsonObjectSupport
 
- Defined in:
 - generated/google/apis/dfareporting_v3_2/classes.rb,
generated/google/apis/dfareporting_v3_2/representations.rb,
generated/google/apis/dfareporting_v3_2/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 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.
Instance Attribute Summary collapse
- 
  
    
      #kind  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Identifies what kind of resource this is.
 - 
  
    
      #name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Name of this dynamic targeting key.
 - 
  
    
      #object_id_prop  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
ID of the object of this dynamic targeting key.
 - 
  
    
      #object_type  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Type of the object of this dynamic targeting key.
 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ DynamicTargetingKey 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of DynamicTargetingKey.
 - 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Update properties of this object.
 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ DynamicTargetingKey
Returns a new instance of DynamicTargetingKey
      5499 5500 5501  | 
    
      # File 'generated/google/apis/dfareporting_v3_2/classes.rb', line 5499 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#kind ⇒ String
Identifies what kind of resource this is. Value: the fixed string "
dfareporting#dynamicTargetingKey".
Corresponds to the JSON property kind
      5480 5481 5482  | 
    
      # File 'generated/google/apis/dfareporting_v3_2/classes.rb', line 5480 def kind @kind end  | 
  
#name ⇒ String
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
      5487 5488 5489  | 
    
      # File 'generated/google/apis/dfareporting_v3_2/classes.rb', line 5487 def name @name end  | 
  
#object_id_prop ⇒ Fixnum
ID of the object of this dynamic targeting key. This is a required field.
Corresponds to the JSON property objectId
      5492 5493 5494  | 
    
      # File 'generated/google/apis/dfareporting_v3_2/classes.rb', line 5492 def object_id_prop @object_id_prop end  | 
  
#object_type ⇒ String
Type of the object of this dynamic targeting key. This is a required field.
Corresponds to the JSON property objectType
      5497 5498 5499  | 
    
      # File 'generated/google/apis/dfareporting_v3_2/classes.rb', line 5497 def object_type @object_type end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      5504 5505 5506 5507 5508 5509  | 
    
      # File 'generated/google/apis/dfareporting_v3_2/classes.rb', line 5504 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  |