Class: Google::Apis::AdsenseV2::ListAdUnitsResponse
- Inherits:
-
Object
- Object
- Google::Apis::AdsenseV2::ListAdUnitsResponse
- 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 adunit list rpc.
Instance Attribute Summary collapse
-
#ad_units ⇒ Array<Google::Apis::AdsenseV2::AdUnit>
The ad units returned in the list response.
-
#next_page_token ⇒ String
Continuation token used to page through ad units.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ListAdUnitsResponse
constructor
A new instance of ListAdUnitsResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ListAdUnitsResponse
Returns a new instance of ListAdUnitsResponse.
589 590 591 |
# File 'lib/google/apis/adsense_v2/classes.rb', line 589 def initialize(**args) update!(**args) end |
Instance Attribute Details
#ad_units ⇒ Array<Google::Apis::AdsenseV2::AdUnit>
The ad units returned in the list response.
Corresponds to the JSON property adUnits
581 582 583 |
# File 'lib/google/apis/adsense_v2/classes.rb', line 581 def ad_units @ad_units end |
#next_page_token ⇒ String
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
587 588 589 |
# File 'lib/google/apis/adsense_v2/classes.rb', line 587 def next_page_token @next_page_token end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
594 595 596 597 |
# File 'lib/google/apis/adsense_v2/classes.rb', line 594 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 |