Class: Google::Apis::AdmobV1beta::ListAdUnitsResponse

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/admob_v1beta/classes.rb,
lib/google/apis/admob_v1beta/representations.rb,
lib/google/apis/admob_v1beta/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.



486
487
488
# File 'lib/google/apis/admob_v1beta/classes.rb', line 486

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

Instance Attribute Details

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

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



478
479
480
# File 'lib/google/apis/admob_v1beta/classes.rb', line 478

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)


484
485
486
# File 'lib/google/apis/admob_v1beta/classes.rb', line 484

def next_page_token
  @next_page_token
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



491
492
493
494
# File 'lib/google/apis/admob_v1beta/classes.rb', line 491

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