Class: Google::Apis::YoutubePartnerV1::VideoAdvertisingOptionGetEnabledAdsResponse

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

Returns a new instance of VideoAdvertisingOptionGetEnabledAdsResponse.


3697
3698
3699
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3697

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

Instance Attribute Details

#ad_breaksArray<Google::Apis::YoutubePartnerV1::AdBreak>

A list of ad breaks that occur in a claimed YouTube video. Corresponds to the JSON property adBreaks


3671
3672
3673
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3671

def ad_breaks
  @ad_breaks
end

#ads_on_embedsBoolean 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

Returns:

  • (Boolean)

3677
3678
3679
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3677

def ads_on_embeds
  @ads_on_embeds
end

#countries_restrictionArray<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


3684
3685
3686
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3684

def countries_restriction
  @countries_restriction
end

#idString

The ID that YouTube uses to uniquely identify the claimed video. Corresponds to the JSON property id

Returns:

  • (String)

3689
3690
3691
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3689

def id
  @id
end

#kindString

The type of the API resource. For this resource, the value is youtubePartner# videoAdvertisingOptionGetEnabledAds. Corresponds to the JSON property kind

Returns:

  • (String)

3695
3696
3697
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3695

def kind
  @kind
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


3702
3703
3704
3705
3706
3707
3708
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3702

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