Class: Google::Apis::AdmobV1::ListAdUnitsResponse
- Inherits:
-
Object
- Object
- Google::Apis::AdmobV1::ListAdUnitsResponse
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/admob_v1/classes.rb,
lib/google/apis/admob_v1/representations.rb,
lib/google/apis/admob_v1/representations.rb
Overview
Response for the ad units list request.
Instance Attribute Summary collapse
-
#ad_units ⇒ Array<Google::Apis::AdmobV1::AdUnit>
The resulting ad units for the requested account.
-
#next_page_token ⇒ String
If not empty, indicates that there may be more ad units for the request; this value should be passed in a new
ListAdUnitsRequest
.
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.
436 437 438 |
# File 'lib/google/apis/admob_v1/classes.rb', line 436 def initialize(**args) update!(**args) end |
Instance Attribute Details
#ad_units ⇒ Array<Google::Apis::AdmobV1::AdUnit>
The resulting ad units for the requested account.
Corresponds to the JSON property adUnits
428 429 430 |
# File 'lib/google/apis/admob_v1/classes.rb', line 428 def ad_units @ad_units end |
#next_page_token ⇒ String
If not empty, indicates that there may be more ad units for the request; this
value should be passed in a new ListAdUnitsRequest
.
Corresponds to the JSON property nextPageToken
434 435 436 |
# File 'lib/google/apis/admob_v1/classes.rb', line 434 def next_page_token @next_page_token end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
441 442 443 444 |
# File 'lib/google/apis/admob_v1/classes.rb', line 441 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 |