Google Ads Data Manager V1 Client - Class Item (0.1.0)

Reference documentation and code samples for the Google Ads Data Manager V1 Client class Item.

Represents an item in the cart associated with the event.

Generated from protobuf message google.ads.datamanager.v1.Item

Namespace

Google \ Ads \ DataManager \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ merchant_product_id string

Optional. The product ID within the Merchant Center account.

↳ quantity int|string

Optional. The number of this item associated with the event.

↳ unit_price float

Optional. The unit price excluding tax, shipping, and any transaction level discounts.

↳ item_id string

Optional. A unique identifier to reference the item.

↳ additional_item_parameters array<ItemParameter>

Optional. A bucket of any event parameters related to an item to be included within the event that were not already specified using other structured fields.

getMerchantProductId

Optional. The product ID within the Merchant Center account.

Returns
Type Description
string

setMerchantProductId

Optional. The product ID within the Merchant Center account.

Parameter
Name Description
var string
Returns
Type Description
$this

getQuantity

Optional. The number of this item associated with the event.

Returns
Type Description
int|string

setQuantity

Optional. The number of this item associated with the event.

Parameter
Name Description
var int|string
Returns
Type Description
$this

getUnitPrice

Optional. The unit price excluding tax, shipping, and any transaction level discounts.

Returns
Type Description
float

setUnitPrice

Optional. The unit price excluding tax, shipping, and any transaction level discounts.

Parameter
Name Description
var float
Returns
Type Description
$this

getItemId

Optional. A unique identifier to reference the item.

Returns
Type Description
string

setItemId

Optional. A unique identifier to reference the item.

Parameter
Name Description
var string
Returns
Type Description
$this

getAdditionalItemParameters

Optional. A bucket of any event parameters related to an item to be included within the event that were not already specified using other structured fields.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setAdditionalItemParameters

Optional. A bucket of any event parameters related to an item to be included within the event that were not already specified using other structured fields.

Parameter
Name Description
var array<ItemParameter>
Returns
Type Description
$this