Class: Google::Apis::AdmobV1::ListAdUnitsResponse

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_unitsArray<Google::Apis::AdmobV1::AdUnit>

The resulting ad units for the requested account. Corresponds to the JSON property adUnits

Returns:



428
429
430
# File 'lib/google/apis/admob_v1/classes.rb', line 428

def ad_units
  @ad_units
end

#next_page_tokenString

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

Returns:

  • (String)


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