Google Ads Data Manager V1 Client - Class CartData (0.1.1)

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

The cart data associated with the event.

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

Namespace

Google \ Ads \ DataManager \ V1

Methods

__construct

Constructor.

Parameters
Name
Description
data
array

Optional. Data for populating the Message object.

↳ merchant_id
string

Optional. The Merchant Center ID associated with the items.

↳ merchant_feed_label
string

Optional. The Merchant Center feed label associated with the feed of the items.

↳ merchant_feed_language_code
string

Optional. The language code in ISO 639-1 associated with the Merchant Center feed of the items.where your items are uploaded.

↳ transaction_discount
float

Optional. The sum of all discounts associated with the transaction.

↳ items
array< Item >

Optional. The list of items associated with the event.

getMerchantId

Optional. The Merchant Center ID associated with the items.

Returns
Type
Description
string

setMerchantId

Optional. The Merchant Center ID associated with the items.

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getMerchantFeedLabel

Optional. The Merchant Center feed label associated with the feed of the items.

Returns
Type
Description
string

setMerchantFeedLabel

Optional. The Merchant Center feed label associated with the feed of the items.

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getMerchantFeedLanguageCode

Optional. The language code in ISO 639-1 associated with the Merchant Center feed of the items.where your items are uploaded.

Returns
Type
Description
string

setMerchantFeedLanguageCode

Optional. The language code in ISO 639-1 associated with the Merchant Center feed of the items.where your items are uploaded.

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getTransactionDiscount

Optional. The sum of all discounts associated with the transaction.

Returns
Type
Description
float

setTransactionDiscount

Optional. The sum of all discounts associated with the transaction.

Parameter
Name
Description
var
float
Returns
Type
Description
$this

getItems

Optional. The list of items associated with the event.

Returns
Type
Description

setItems

Optional. The list of items associated with the event.

Parameter
Name
Description
var
array< Item >
Returns
Type
Description
$this
Design a Mobile Site
View Site in Mobile | Classic
Share by: