ProductChange

  • The JSON representation showcases changes to a product, including the previous and current values.

  • It incorporates region code and reporting context for a comprehensive view of the change.

  • Details of the change are provided through fields like oldValue, newValue, regionCode, and reportingContext.

The change that happened to the product including old value, new value, country code as the region code and reporting context.

JSON representation
{
  "oldValue": string,
  "newValue": string,
  "regionCode": string,
  "reportingContext": enum (ReportingContextEnum)
}
Fields
oldValue

string

The old value of the changed resource or attribute. If empty, it means that the product was created. Will have one of these values : (approved, pending, disapproved, ``)

newValue

string

The new value of the changed resource or attribute. If empty, it means that the product was deleted. Will have one of these values : (approved, pending, disapproved, ``)

regionCode

string

Countries that have the change (if applicable). Represented in the ISO 3166 format.

reportingContext

enum (ReportingContextEnum)

Reporting contexts that have the change (if applicable). Currently this field supports only (SHOPPING_ADS, LOCAL_INVENTORY_ADS, YOUTUBE_SHOPPING, YOUTUBE_CHECKOUT, YOUTUBE_AFFILIATE) from the enum value ReportingContextEnum