Class: Google::Apis::YoutubePartnerV1::VideoAdvertisingOptionGetEnabledAdsResponse
- Inherits:
-
Object
- Object
- Google::Apis::YoutubePartnerV1::VideoAdvertisingOptionGetEnabledAdsResponse
- 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
-
#ad_breaks ⇒ Array<Google::Apis::YoutubePartnerV1::AdBreak>
A list of ad breaks that occur in a claimed YouTube video.
-
#ads_on_embeds ⇒ Boolean
(also: #ads_on_embeds?)
This field indicates whether YouTube can show ads when the video is played in an embedded player.
-
#countries_restriction ⇒ Array<Google::Apis::YoutubePartnerV1::CountriesRestriction>
A list that identifies the countries where ads can run and the types of ads allowed in those countries.
-
#id ⇒ String
The ID that YouTube uses to uniquely identify the claimed video.
-
#kind ⇒ String
The type of the API resource.
Instance Method Summary collapse
-
#initialize(**args) ⇒ VideoAdvertisingOptionGetEnabledAdsResponse
constructor
A new instance of VideoAdvertisingOptionGetEnabledAdsResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ VideoAdvertisingOptionGetEnabledAdsResponse
Returns a new instance of VideoAdvertisingOptionGetEnabledAdsResponse
3888 3889 3890 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3888 def initialize(**args) update!(**args) end |
Instance Attribute Details
#ad_breaks ⇒ Array<Google::Apis::YoutubePartnerV1::AdBreak>
A list of ad breaks that occur in a claimed YouTube video.
Corresponds to the JSON property adBreaks
3862 3863 3864 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3862 def ad_breaks @ad_breaks end |
#ads_on_embeds ⇒ Boolean Also known as: ads_on_embeds?
This field indicates whether YouTube can show ads when the video is played in
an embedded player.
Corresponds to the JSON property adsOnEmbeds
3868 3869 3870 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3868 def @ads_on_embeds end |
#countries_restriction ⇒ Array<Google::Apis::YoutubePartnerV1::CountriesRestriction>
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
3875 3876 3877 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3875 def countries_restriction @countries_restriction end |
#id ⇒ String
The ID that YouTube uses to uniquely identify the claimed video.
Corresponds to the JSON property id
3880 3881 3882 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3880 def id @id end |
#kind ⇒ String
The type of the API resource. For this resource, the value is youtubePartner#
videoAdvertisingOptionGetEnabledAds.
Corresponds to the JSON property kind
3886 3887 3888 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3886 def kind @kind end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3893 3894 3895 3896 3897 3898 3899 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3893 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 |