Class: Google::Apis::AdmobV1beta::ListAdUnitsResponse
- Inherits:
-
Object
- Object
- Google::Apis::AdmobV1beta::ListAdUnitsResponse
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/admob_v1beta/classes.rb,
generated/google/apis/admob_v1beta/representations.rb,
generated/google/apis/admob_v1beta/representations.rb
Overview
Response for the ad units list request.
Instance Attribute Summary collapse
-
#ad_units ⇒ Array<Google::Apis::AdmobV1beta::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.
428 429 430 |
# File 'generated/google/apis/admob_v1beta/classes.rb', line 428 def initialize(**args) update!(**args) end |
Instance Attribute Details
#ad_units ⇒ Array<Google::Apis::AdmobV1beta::AdUnit>
The resulting ad units for the requested account.
Corresponds to the JSON property adUnits
420 421 422 |
# File 'generated/google/apis/admob_v1beta/classes.rb', line 420 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
426 427 428 |
# File 'generated/google/apis/admob_v1beta/classes.rb', line 426 def next_page_token @next_page_token end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
433 434 435 436 |
# File 'generated/google/apis/admob_v1beta/classes.rb', line 433 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 |