Class: Google::Apis::AdsenseV2::ListChildAccountsResponse

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

Overview

Response definition for the child account list rpc.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ListChildAccountsResponse

Returns a new instance of ListChildAccountsResponse.



561
562
563
# File 'lib/google/apis/adsense_v2/classes.rb', line 561

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

Instance Attribute Details

#accountsArray<Google::Apis::AdsenseV2::Account>

The accounts returned in this list response. Corresponds to the JSON property accounts



553
554
555
# File 'lib/google/apis/adsense_v2/classes.rb', line 553

def accounts
  @accounts
end

#next_page_tokenString

Continuation token used to page through accounts. To retrieve the next page of the results, set the next request's "page_token" value to this. Corresponds to the JSON property nextPageToken

Returns:

  • (String)


559
560
561
# File 'lib/google/apis/adsense_v2/classes.rb', line 559

def next_page_token
  @next_page_token
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



566
567
568
569
# File 'lib/google/apis/adsense_v2/classes.rb', line 566

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