Class: Google::Apis::YoutubePartnerV1::AdSlot

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

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

#idString

A value that identifies the ad slot to the ad server. Corresponds to the JSON property id

Returns:

  • (String)


65
66
67
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 65

def id
  @id
end

#typeString

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

Returns:

  • (String)


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