Class: Google::Apis::DfareportingV2_8::PlacementAssignment
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::DfareportingV2_8::PlacementAssignment
 
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/dfareporting_v2_8/classes.rb,
 generated/google/apis/dfareporting_v2_8/representations.rb,
 generated/google/apis/dfareporting_v2_8/representations.rb
Overview
Placement Assignment.
Instance Attribute Summary collapse
- 
  
    
      #active  ⇒ Boolean 
    
    
      (also: #active?)
    
  
  
  
  
    
    
  
  
  
  
  
  
    Whether this placement assignment is active. 
- 
  
    
      #placement_id  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    ID of the placement to be assigned. 
- 
  
    
      #placement_id_dimension_value  ⇒ Google::Apis::DfareportingV2_8::DimensionValue 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Represents a DimensionValue resource. 
- 
  
    
      #ssl_required  ⇒ Boolean 
    
    
      (also: #ssl_required?)
    
  
  
  
  
    
    
  
  
  
  
  
  
    Whether the placement to be assigned requires SSL. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ PlacementAssignment 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of PlacementAssignment. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ PlacementAssignment
Returns a new instance of PlacementAssignment
| 8338 8339 8340 | # File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 8338 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#active ⇒ Boolean Also known as: active?
Whether this placement assignment is active. When true, the placement will be
included in the ad's rotation.
Corresponds to the JSON property active
| 8318 8319 8320 | # File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 8318 def active @active end | 
#placement_id ⇒ Fixnum
ID of the placement to be assigned. This is a required field.
Corresponds to the JSON property placementId
| 8324 8325 8326 | # File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 8324 def placement_id @placement_id end | 
#placement_id_dimension_value ⇒ Google::Apis::DfareportingV2_8::DimensionValue
Represents a DimensionValue resource.
Corresponds to the JSON property placementIdDimensionValue
| 8329 8330 8331 | # File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 8329 def placement_id_dimension_value @placement_id_dimension_value end | 
#ssl_required ⇒ Boolean Also known as: ssl_required?
Whether the placement to be assigned requires SSL. This is a read-only field
that is auto-generated when the ad is inserted or updated.
Corresponds to the JSON property sslRequired
| 8335 8336 8337 | # File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 8335 def ssl_required @ssl_required end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 8343 8344 8345 8346 8347 8348 | # File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 8343 def update!(**args) @active = args[:active] if args.key?(:active) @placement_id = args[:placement_id] if args.key?(:placement_id) @placement_id_dimension_value = args[:placement_id_dimension_value] if args.key?(:placement_id_dimension_value) @ssl_required = args[:ssl_required] if args.key?(:ssl_required) end |