Class: Google::Apis::YoutubePartnerV1::CampaignList

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

Constructor Details

#initialize(**args) ⇒ CampaignList

Returns a new instance of CampaignList.



708
709
710
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 708

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

Instance Attribute Details

#itemsArray<Google::Apis::YoutubePartnerV1::Campaign>

A list of campaigns. Corresponds to the JSON property items



700
701
702
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 700

def items
  @items
end

#kindString

The type of the API response. For this operation, the value is youtubePartner# campaignList. Corresponds to the JSON property kind

Returns:

  • (String)


706
707
708
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 706

def kind
  @kind
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



713
714
715
716
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 713

def update!(**args)
  @items = args[:items] if args.key?(:items)
  @kind = args[:kind] if args.key?(:kind)
end