Class: Google::Apis::AdsenseV2::ListLinkedAdUnitsResponse

Inherits:
Object
  • Object
show all
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 ad units linked to a custom channel list rpc.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ListLinkedAdUnitsResponse

Returns a new instance of ListLinkedAdUnitsResponse.



613
614
615
# File 'lib/google/apis/adsense_v2/classes.rb', line 613

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

Instance Attribute Details

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

The ad units returned in the list response. Corresponds to the JSON property adUnits



605
606
607
# File 'lib/google/apis/adsense_v2/classes.rb', line 605

def ad_units
  @ad_units
end

#next_page_tokenString

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

Returns:

  • (String)


611
612
613
# File 'lib/google/apis/adsense_v2/classes.rb', line 611

def next_page_token
  @next_page_token
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



618
619
620
621
# File 'lib/google/apis/adsense_v2/classes.rb', line 618

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