Class: Google::Apis::AdsenseV2::ListLinkedAdUnitsResponse

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 ad units linked to a custom channel list rpc.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ListLinkedAdUnitsResponse

Returns a new instance of ListLinkedAdUnitsResponse.



686
687
688
# File 'lib/google/apis/adsense_v2/classes.rb', line 686

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

Instance Attribute Details

#ad_unitsArray<Google::Apis::AdsenseV2::AdUnit>

The ad units returned in the list response. Corresponds to the JSON property adUnits



678
679
680
# File 'lib/google/apis/adsense_v2/classes.rb', line 678

def ad_units
  @ad_units
end

#next_page_tokenString

Continuation token used to page through ad units. 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)


684
685
686
# File 'lib/google/apis/adsense_v2/classes.rb', line 684

def next_page_token
  @next_page_token
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



691
692
693
694
# File 'lib/google/apis/adsense_v2/classes.rb', line 691

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