Google Shopping Merchant Promotions V1beta Client - Class PromotionStatus (0.1.2)

Reference documentation and code samples for the Google Shopping Merchant Promotions V1beta Client class PromotionStatus.

The status of the promotion.

Generated from protobuf message google.shopping.merchant.promotions.v1beta.PromotionStatus

Namespace

Google \ Shopping \ Merchant \ Promotions \ V1beta

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ destination_statuses array<PromotionStatus\DestinationStatus>

Output only. The intended destinations for the promotion.

↳ item_level_issues array<PromotionStatus\ItemLevelIssue>

Output only. A list of issues associated with the promotion.

↳ creation_date Google\Protobuf\Timestamp

Output only. Date on which the promotion has been created in ISO 8601 format: Date, time, and offset, for example 2020-01-02T09:00:00+01:00 or 2020-01-02T09:00:00Z

↳ last_update_date Google\Protobuf\Timestamp

Output only. Date on which the promotion status has been last updated in ISO 8601 format: Date, time, and offset, for example 2020-01-02T09:00:00+01:00 or 2020-01-02T09:00:00Z

getDestinationStatuses

Output only. The intended destinations for the promotion.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setDestinationStatuses

Output only. The intended destinations for the promotion.

Parameter
Name Description
var array<PromotionStatus\DestinationStatus>
Returns
Type Description
$this

getItemLevelIssues

Output only. A list of issues associated with the promotion.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setItemLevelIssues

Output only. A list of issues associated with the promotion.

Parameter
Name Description
var array<PromotionStatus\ItemLevelIssue>
Returns
Type Description
$this

getCreationDate

Output only. Date on which the promotion has been created in ISO 8601 format: Date, time, and offset, for example 2020-01-02T09:00:00+01:00 or 2020-01-02T09:00:00Z

Returns
Type Description
Google\Protobuf\Timestamp|null

hasCreationDate

clearCreationDate

setCreationDate

Output only. Date on which the promotion has been created in ISO 8601 format: Date, time, and offset, for example 2020-01-02T09:00:00+01:00 or 2020-01-02T09:00:00Z

Parameter
Name Description
var Google\Protobuf\Timestamp
Returns
Type Description
$this

getLastUpdateDate

Output only. Date on which the promotion status has been last updated in ISO 8601 format: Date, time, and offset, for example 2020-01-02T09:00:00+01:00 or 2020-01-02T09:00:00Z

Returns
Type Description
Google\Protobuf\Timestamp|null

hasLastUpdateDate

clearLastUpdateDate

setLastUpdateDate

Output only. Date on which the promotion status has been last updated in ISO 8601 format: Date, time, and offset, for example 2020-01-02T09:00:00+01:00 or 2020-01-02T09:00:00Z

Parameter
Name Description
var Google\Protobuf\Timestamp
Returns
Type Description
$this