Class: Google::Apis::YoutubePartnerV1::AllowedAdvertisingOptions
- Inherits:
-
Object
- Object
- Google::Apis::YoutubePartnerV1::AllowedAdvertisingOptions
- 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
-
#ads_on_embeds ⇒ Boolean
(also: #ads_on_embeds?)
This setting indicates whether the partner can display ads when videos run in an embedded player.
-
#kind ⇒ String
This property identifies the resource type.
-
#lic_ad_formats ⇒ Array<String>
A list of ad formats that the partner is allowed to use for its uploaded videos.
-
#ugc_ad_formats ⇒ Array<String>
A list of ad formats that the partner is allowed to use for claimed, user- uploaded content.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AllowedAdvertisingOptions
constructor
A new instance of AllowedAdvertisingOptions.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ AllowedAdvertisingOptions
Returns a new instance of 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_embeds ⇒ Boolean 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 end |
#kind ⇒ String
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_formats ⇒ Array<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_formats ⇒ Array<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 |