Class: Google::Apis::AdsenseV1_4::AdUnits

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/adsense_v1_4/classes.rb,
generated/google/apis/adsense_v1_4/representations.rb,
generated/google/apis/adsense_v1_4/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ AdUnits

Returns a new instance of AdUnits.


580
581
582
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 580

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

Instance Attribute Details

#etagString

ETag of this response for caching purposes. Corresponds to the JSON property etag

Returns:

  • (String)

562
563
564
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 562

def etag
  @etag
end

#itemsArray<Google::Apis::AdsenseV1_4::AdUnit>

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


567
568
569
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 567

def items
  @items
end

#kindString

Kind of list this is, in this case adsense#adUnits. Corresponds to the JSON property kind

Returns:

  • (String)

572
573
574
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 572

def kind
  @kind
end

#next_page_tokenString

Continuation token used to page through ad units. To retrieve the next page of results, set the next request's "pageToken" value to this. Corresponds to the JSON property nextPageToken

Returns:

  • (String)

578
579
580
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 578

def next_page_token
  @next_page_token
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


585
586
587
588
589
590
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 585

def update!(**args)
  @etag = args[:etag] if args.key?(:etag)
  @items = args[:items] if args.key?(:items)
  @kind = args[:kind] if args.key?(:kind)
  @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end