Reference documentation and code samples for the Google Shopping Merchant Products V1 Client class DestinationStatus.
The destination status of the product status.
Equivalent to
StatusPerReportingContext
in Reports API.
Generated from protobuf message google.shopping.merchant.products.v1.ProductStatus.DestinationStatus
Namespace
Google \ Shopping \ Merchant \ Products \ V1 \ ProductStatusMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ reporting_context |
int
The name of the reporting context. |
↳ approved_countries |
string[]
List of country codes (ISO 3166-1 alpha-2) where the offer is approved. |
↳ pending_countries |
string[]
List of country codes (ISO 3166-1 alpha-2) where the offer is pending approval. |
↳ disapproved_countries |
string[]
List of country codes (ISO 3166-1 alpha-2) where the offer is disapproved. |
getReportingContext
The name of the reporting context.
| Returns | |
|---|---|
| Type | Description |
int |
Enum of type ReportingContextEnum. |
setReportingContext
The name of the reporting context.
| Parameter | |
|---|---|
| Name | Description |
var |
int
Enum of type ReportingContextEnum. |
| Returns | |
|---|---|
| Type | Description |
$this |
|
getApprovedCountries
List of country codes (ISO 3166-1 alpha-2) where the offer is approved.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\RepeatedField<string> |
|
setApprovedCountries
List of country codes (ISO 3166-1 alpha-2) where the offer is approved.
| Parameter | |
|---|---|
| Name | Description |
var |
string[]
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getPendingCountries
List of country codes (ISO 3166-1 alpha-2) where the offer is pending approval.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\RepeatedField<string> |
|
setPendingCountries
List of country codes (ISO 3166-1 alpha-2) where the offer is pending approval.
| Parameter | |
|---|---|
| Name | Description |
var |
string[]
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getDisapprovedCountries
List of country codes (ISO 3166-1 alpha-2) where the offer is disapproved.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\RepeatedField<string> |
|
setDisapprovedCountries
List of country codes (ISO 3166-1 alpha-2) where the offer is disapproved.
| Parameter | |
|---|---|
| Name | Description |
var |
string[]
|
| Returns | |
|---|---|
| Type | Description |
$this |
|