Reference documentation and code samples for the Google Shopping Merchant Notifications V1beta Client class ProductChange.
The change that happened to the product including old value, new value, country code as the region code and reporting context.
Generated from protobuf message google.shopping.merchant.notifications.v1beta.ProductChange
Namespace
Google \ Shopping \ Merchant \ Notifications \ V1betaMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description | 
| data | arrayOptional. Data for populating the Message object. | 
| ↳ old_value | stringThe old value of the changed resource or attribute. | 
| ↳ new_value | stringThe new value of the changed resource or attribute. | 
| ↳ region_code | stringCountries that have the change (if applicable) | 
| ↳ reporting_context | intReporting contexts that have the change (if applicable) | 
getOldValue
The old value of the changed resource or attribute.
| Returns | |
|---|---|
| Type | Description | 
| string | |
hasOldValue
clearOldValue
setOldValue
The old value of the changed resource or attribute.
| Parameter | |
|---|---|
| Name | Description | 
| var | string | 
| Returns | |
|---|---|
| Type | Description | 
| $this | |
getNewValue
The new value of the changed resource or attribute.
| Returns | |
|---|---|
| Type | Description | 
| string | |
hasNewValue
clearNewValue
setNewValue
The new value of the changed resource or attribute.
| Parameter | |
|---|---|
| Name | Description | 
| var | string | 
| Returns | |
|---|---|
| Type | Description | 
| $this | |
getRegionCode
Countries that have the change (if applicable)
| Returns | |
|---|---|
| Type | Description | 
| string | |
hasRegionCode
clearRegionCode
setRegionCode
Countries that have the change (if applicable)
| Parameter | |
|---|---|
| Name | Description | 
| var | string | 
| Returns | |
|---|---|
| Type | Description | 
| $this | |
getReportingContext
Reporting contexts that have the change (if applicable)
| Returns | |
|---|---|
| Type | Description | 
| int | |
hasReportingContext
clearReportingContext
setReportingContext
Reporting contexts that have the change (if applicable)
| Parameter | |
|---|---|
| Name | Description | 
| var | int | 
| Returns | |
|---|---|
| Type | Description | 
| $this | |