Google Shopping Merchant Products V1beta Client - Class AutomatedDiscounts (0.5.0)

Reference documentation and code samples for the Google Shopping Merchant Products V1beta Client class AutomatedDiscounts.

Information regarding Automated Discounts.

Generated from protobuf message google.shopping.merchant.products.v1beta.AutomatedDiscounts

Namespace

Google \ Shopping \ Merchant \ Products \ V1beta

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ prior_price Google\Shopping\Type\Price

The price prior to the application of the first price reduction. Absent if the information about the prior price of the product is not available.

↳ prior_price_progressive Google\Shopping\Type\Price

The price prior to the application of consecutive price reductions. Absent if the information about the prior price of the product is not available.

↳ gad_price Google\Shopping\Type\Price

The current sale price for products with a price optimized using Google Automated Discounts (GAD). Absent if the information about the GAD_price of the product is not available.

getPriorPrice

The price prior to the application of the first price reduction.

Absent if the information about the prior price of the product is not available.

Returns
Type Description
Google\Shopping\Type\Price|null

hasPriorPrice

clearPriorPrice

setPriorPrice

The price prior to the application of the first price reduction.

Absent if the information about the prior price of the product is not available.

Parameter
Name Description
var Google\Shopping\Type\Price
Returns
Type Description
$this

getPriorPriceProgressive

The price prior to the application of consecutive price reductions.

Absent if the information about the prior price of the product is not available.

Returns
Type Description
Google\Shopping\Type\Price|null

hasPriorPriceProgressive

clearPriorPriceProgressive

setPriorPriceProgressive

The price prior to the application of consecutive price reductions.

Absent if the information about the prior price of the product is not available.

Parameter
Name Description
var Google\Shopping\Type\Price
Returns
Type Description
$this

getGadPrice

The current sale price for products with a price optimized using Google Automated Discounts (GAD). Absent if the information about the GAD_price of the product is not available.

Returns
Type Description
Google\Shopping\Type\Price|null

hasGadPrice

clearGadPrice

setGadPrice

The current sale price for products with a price optimized using Google Automated Discounts (GAD). Absent if the information about the GAD_price of the product is not available.

Parameter
Name Description
var Google\Shopping\Type\Price
Returns
Type Description
$this