class Google::Apis::YoutubePartnerV1::AllowedAdvertisingOptions

Attributes

ads_on_embeds[RW]

This setting indicates whether the partner can display ads when videos run in an embedded player. Corresponds to the JSON property `adsOnEmbeds` @return [Boolean]

ads_on_embeds?[RW]

This setting indicates whether the partner can display ads when videos run in an embedded player. Corresponds to the JSON property `adsOnEmbeds` @return [Boolean]

kind[RW]

This property identifies the resource type. Its value is youtubePartner# allowedAdvertisingOptions. Corresponds to the JSON property `kind` @return [String]

lic_ad_formats[RW]

A list of ad formats that the partner is allowed to use for its uploaded videos. Corresponds to the JSON property `licAdFormats` @return [Array<String>]

ugc_ad_formats[RW]

A list of ad formats that the partner is allowed to use for claimed, user- uploaded content. Corresponds to the JSON property `ugcAdFormats` @return [Array<String>]

Public Class Methods

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