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


113
114
115
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 113

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


92
93
94
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 92

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


99
100
101
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 99

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


105
106
107
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 105

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


111
112
113
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 111

def ugc_ad_formats
  @ugc_ad_formats
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


118
119
120
121
122
123
# 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