Google Shopping Merchant Reports V1 Client - Class StatusPerReportingContext (1.3.0)

Reference documentation and code samples for the Google Shopping Merchant Reports V1 Client class StatusPerReportingContext.

Status of the product for a specific reporting context.

Equivalent to DestinationStatus in Products API.

Generated from protobuf message google.shopping.merchant.reports.v1.ProductView.StatusPerReportingContext

Namespace

Google \ Shopping \ Merchant \ Reports \ V1 \ ProductView

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ reporting_context int

Reporting context the status applies to.

↳ approved_countries string[]

List of approved countries in the reporting context, represented in ISO 3166 format, for example, US.

↳ disapproved_countries string[]

List of disapproved countries in the reporting context, represented in ISO 3166 format, for example, US.

↳ pending_countries string[]

List of pending countries in the reporting context, represented in ISO 3166 format, for example, US.

getReportingContext

Reporting context the status applies to.

Returns
Type Description
int

hasReportingContext

clearReportingContext

setReportingContext

Reporting context the status applies to.

Parameter
Name Description
var int
Returns
Type Description
$this

getApprovedCountries

List of approved countries in the reporting context, represented in ISO 3166 format, for example, US.

Returns
Type Description
Google\Protobuf\RepeatedField<string>

setApprovedCountries

List of approved countries in the reporting context, represented in ISO 3166 format, for example, US.

Parameter
Name Description
var string[]
Returns
Type Description
$this

getDisapprovedCountries

List of disapproved countries in the reporting context, represented in ISO 3166 format, for example, US.

Returns
Type Description
Google\Protobuf\RepeatedField<string>

setDisapprovedCountries

List of disapproved countries in the reporting context, represented in ISO 3166 format, for example, US.

Parameter
Name Description
var string[]
Returns
Type Description
$this

getPendingCountries

List of pending countries in the reporting context, represented in ISO 3166 format, for example, US.

Returns
Type Description
Google\Protobuf\RepeatedField<string>

setPendingCountries

List of pending countries in the reporting context, represented in ISO 3166 format, for example, US.

Parameter
Name Description
var string[]
Returns
Type Description
$this