Reference documentation and code samples for the Google Shopping Merchant Promotions V1 Client class PromotionStatus.
The status of the promotion.
Generated from protobuf message google.shopping.merchant.promotions.v1.PromotionStatus
Namespace
Google \ Shopping \ Merchant \ Promotions \ V1Methods
__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 |
↳ 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 |
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 |
|