Class: Google::Apis::YoutubePartnerV1::AdSlot
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::YoutubePartnerV1::AdSlot
 
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/youtube_partner_v1/classes.rb,
 generated/google/apis/youtube_partner_v1/representations.rb,
 generated/google/apis/youtube_partner_v1/representations.rb
Instance Attribute Summary collapse
- 
  
    
      #id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    A value that identifies the ad slot to the ad server. 
- 
  
    
      #type  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The type of ad that runs in the slot. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ AdSlot 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of AdSlot. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ AdSlot
Returns a new instance of AdSlot
| 73 74 75 | # File 'generated/google/apis/youtube_partner_v1/classes.rb', line 73 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#id ⇒ String
A value that identifies the ad slot to the ad server.
Corresponds to the JSON property id
| 65 66 67 | # File 'generated/google/apis/youtube_partner_v1/classes.rb', line 65 def id @id end | 
#type ⇒ String
The type of ad that runs in the slot. The value may affect YouTube's fallback
behavior if the third-party platform does not return ads.
Corresponds to the JSON property type
| 71 72 73 | # File 'generated/google/apis/youtube_partner_v1/classes.rb', line 71 def type @type end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 78 79 80 81 | # File 'generated/google/apis/youtube_partner_v1/classes.rb', line 78 def update!(**args) @id = args[:id] if args.key?(:id) @type = args[:type] if args.key?(:type) end |