Class: Google::Apis::Adexchangebuyer2V2beta1::AdSize
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::Adexchangebuyer2V2beta1::AdSize
 
 
- Includes:
 - Core::Hashable, Core::JsonObjectSupport
 
- Defined in:
 - generated/google/apis/adexchangebuyer2_v2beta1/classes.rb,
generated/google/apis/adexchangebuyer2_v2beta1/representations.rb,
generated/google/apis/adexchangebuyer2_v2beta1/representations.rb 
Overview
Represents size of a single ad slot, or a creative.
Instance Attribute Summary collapse
- 
  
    
      #height  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The height of the ad slot in pixels.
 - 
  
    
      #size_type  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The size type of the ad slot.
 - 
  
    
      #width  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The width of the ad slot in pixels.
 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ AdSize 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of AdSize.
 - 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Update properties of this object.
 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ AdSize
Returns a new instance of AdSize
      106 107 108  | 
    
      # File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 106 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#height ⇒ Fixnum
The height of the ad slot in pixels.
This field will be present only when size type is PIXEL.
Corresponds to the JSON property height
      93 94 95  | 
    
      # File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 93 def height @height end  | 
  
#size_type ⇒ String
The size type of the ad slot.
Corresponds to the JSON property sizeType
      98 99 100  | 
    
      # File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 98 def size_type @size_type end  | 
  
#width ⇒ Fixnum
The width of the ad slot in pixels.
This field will be present only when size type is PIXEL.
Corresponds to the JSON property width
      104 105 106  | 
    
      # File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 104 def width @width end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      111 112 113 114 115  | 
    
      # File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 111 def update!(**args) @height = args[:height] if args.key?(:height) @size_type = args[:size_type] if args.key?(:size_type) @width = args[:width] if args.key?(:width) end  |