Class: Google::Apis::AdmobV1beta::ListCampaignsResponse

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/admob_v1beta/classes.rb,
lib/google/apis/admob_v1beta/representations.rb,
lib/google/apis/admob_v1beta/representations.rb

Overview

Response for the ListCampaignsRequest.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ListCampaignsResponse

Returns a new instance of ListCampaignsResponse.



1036
1037
1038
# File 'lib/google/apis/admob_v1beta/classes.rb', line 1036

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

Instance Attribute Details

#campaignsArray<Google::Apis::AdmobV1beta::Campaign>

The resulting mediation groups for the requested account. Corresponds to the JSON property campaigns



1028
1029
1030
# File 'lib/google/apis/admob_v1beta/classes.rb', line 1028

def campaigns
  @campaigns
end

#next_page_tokenString

Used to set the page_token in the ListCampaignsRequest to retrieve the next page. If this field is omitted, there are no subsequent pages. Corresponds to the JSON property nextPageToken

Returns:

  • (String)


1034
1035
1036
# File 'lib/google/apis/admob_v1beta/classes.rb', line 1034

def next_page_token
  @next_page_token
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1041
1042
1043
1044
# File 'lib/google/apis/admob_v1beta/classes.rb', line 1041

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