class Google::Apis::YoutubePartnerV1::AdSlot

Attributes

id[RW]

A value that identifies the ad slot to the ad server. Corresponds to the JSON property `id` @return [String]

type[RW]

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` @return [String]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/youtube_partner_v1/classes.rb, line 73
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# 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