Reference documentation and code samples for the Google Shopping Merchant Products V1 Client class UnitPricingBaseMeasure.
The UnitPricingBaseMeasure of the product.
Generated from protobuf message google.shopping.merchant.products.v1.UnitPricingBaseMeasure
Namespace
Google \ Shopping \ Merchant \ Products \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ value |
int|string
The denominator of the unit price. |
↳ unit |
string
The unit of the denominator. |
getValue
The denominator of the unit price.
| Returns | |
|---|---|
| Type | Description |
int|string |
|
setValue
The denominator of the unit price.
| Parameter | |
|---|---|
| Name | Description |
var |
int|string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getUnit
The unit of the denominator.
| Returns | |
|---|---|
| Type | Description |
string |
|
setUnit
The unit of the denominator.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|