class Google::Apis::YoutubePartnerV1::VideoAdvertisingOptionGetEnabledAdsResponse

Attributes

ad_breaks[RW]

A list of ad breaks that occur in a claimed YouTube video. Corresponds to the JSON property `adBreaks` @return [Array<Google::Apis::YoutubePartnerV1::AdBreak>]

ads_on_embeds[RW]

This field indicates whether YouTube can show ads when the video is played in an embedded player. Corresponds to the JSON property `adsOnEmbeds` @return [Boolean]

ads_on_embeds?[RW]

This field indicates whether YouTube can show ads when the video is played in an embedded player. Corresponds to the JSON property `adsOnEmbeds` @return [Boolean]

countries_restriction[RW]

A list that identifies the countries where ads can run and the types of ads allowed in those countries. Corresponds to the JSON property `countriesRestriction` @return [Array<Google::Apis::YoutubePartnerV1::CountriesRestriction>]

id[RW]

The ID that YouTube uses to uniquely identify the claimed video. Corresponds to the JSON property `id` @return [String]

kind[RW]

The type of the API resource. For this resource, the value is youtubePartner# videoAdvertisingOptionGetEnabledAds. Corresponds to the JSON property `kind` @return [String]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/youtube_partner_v1/classes.rb, line 3570
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 3575
def update!(**args)
  @ad_breaks = args[:ad_breaks] if args.key?(:ad_breaks)
  @ads_on_embeds = args[:ads_on_embeds] if args.key?(:ads_on_embeds)
  @countries_restriction = args[:countries_restriction] if args.key?(:countries_restriction)
  @id = args[:id] if args.key?(:id)
  @kind = args[:kind] if args.key?(:kind)
end