Class: Google::Apis::ContentV2_1::ListPromotionResponse

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/content_v2_1/classes.rb,
lib/google/apis/content_v2_1/representations.rb,
lib/google/apis/content_v2_1/representations.rb

Overview

Response message for Promotions.List method.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ListPromotionResponse

Returns a new instance of ListPromotionResponse.



6481
6482
6483
# File 'lib/google/apis/content_v2_1/classes.rb', line 6481

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

Instance Attribute Details

#next_page_tokenString

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages. Corresponds to the JSON property nextPageToken

Returns:

  • (String)


6474
6475
6476
# File 'lib/google/apis/content_v2_1/classes.rb', line 6474

def next_page_token
  @next_page_token
end

#promotionsArray<Google::Apis::ContentV2_1::Promotion>

List of all available promotions for the merchant. Corresponds to the JSON property promotions



6479
6480
6481
# File 'lib/google/apis/content_v2_1/classes.rb', line 6479

def promotions
  @promotions
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6486
6487
6488
6489
# File 'lib/google/apis/content_v2_1/classes.rb', line 6486

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