Google Shopping Merchant Promotions V1 Client - Class ListPromotionsResponse (1.2.1)

Reference documentation and code samples for the Google Shopping Merchant Promotions V1 Client class ListPromotionsResponse.

Response message for the ListPromotions method.

Generated from protobuf message google.shopping.merchant.promotions.v1.ListPromotionsResponse

Namespace

Google \ Shopping \ Merchant \ Promotions \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ promotions array<Promotion>

The processed promotions from the specified account.

↳ next_page_token string

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

getPromotions

The processed promotions from the specified account.

Returns
Type Description
Google\Protobuf\RepeatedField<Promotion>

setPromotions

The processed promotions from the specified account.

Parameter
Name Description
var array<Promotion>
Returns
Type Description
$this

getNextPageToken

A token, which can be sent as page_token to retrieve the next page.

If this field is omitted, there are no subsequent pages.

Returns
Type Description
string

setNextPageToken

A token, which can be sent as page_token to retrieve the next page.

If this field is omitted, there are no subsequent pages.

Parameter
Name Description
var string
Returns
Type Description
$this