Class: Google::Apis::YoutubePartnerV1::AllowedAdvertisingOptions

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) ⇒ AllowedAdvertisingOptions

Returns a new instance of AllowedAdvertisingOptions.



80
81
82
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 80

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#ads_on_embedsBoolean Also known as: ads_on_embeds?

This setting indicates whether the partner can display ads when videos run in an embedded player. Corresponds to the JSON property adsOnEmbeds

Returns:

  • (Boolean)


59
60
61
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 59

def ads_on_embeds
  @ads_on_embeds
end

#kindString

This property identifies the resource type. Its value is youtubePartner# allowedAdvertisingOptions. Corresponds to the JSON property kind

Returns:

  • (String)


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

def kind
  @kind
end

#lic_ad_formatsArray<String>

A list of ad formats that the partner is allowed to use for its uploaded videos. Corresponds to the JSON property licAdFormats

Returns:

  • (Array<String>)


72
73
74
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 72

def lic_ad_formats
  @lic_ad_formats
end

#ugc_ad_formatsArray<String>

A list of ad formats that the partner is allowed to use for claimed, user- uploaded content. Corresponds to the JSON property ugcAdFormats

Returns:

  • (Array<String>)


78
79
80
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 78

def ugc_ad_formats
  @ugc_ad_formats
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



85
86
87
88
89
90
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 85

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