Reference documentation and code samples for the Google Shopping Merchant Conversions V1beta Client class MerchantCenterDestination.
"Merchant Center Destination" sources can be used to send conversion events from an online store using a Google tag directly to a Merchant Center account where the source is created.
Generated from protobuf message google.shopping.merchant.conversions.v1beta.MerchantCenterDestination
Namespace
Google \ Shopping \ Merchant \ Conversions \ V1betaMethods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ destination |
string
Output only. Merchant Center Destination ID. |
↳ attribution_settings |
AttributionSettings
Required. Attribution settings being used for the Merchant Center Destination. |
↳ display_name |
string
Required. Merchant-specified display name for the destination. This is the name that identifies the conversion source within the Merchant Center UI. Limited to 64 characters. |
↳ currency_code |
string
Required. Three-letter currency code (ISO 4217). The currency code defines in which currency the conversions sent to this destination will be reported in Merchant Center. |
getDestination
Output only. Merchant Center Destination ID.
Returns | |
---|---|
Type | Description |
string |
setDestination
Output only. Merchant Center Destination ID.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getAttributionSettings
Required. Attribution settings being used for the Merchant Center Destination.
Returns | |
---|---|
Type | Description |
AttributionSettings|null |
hasAttributionSettings
clearAttributionSettings
setAttributionSettings
Required. Attribution settings being used for the Merchant Center Destination.
Parameter | |
---|---|
Name | Description |
var |
AttributionSettings
|
Returns | |
---|---|
Type | Description |
$this |
getDisplayName
Required. Merchant-specified display name for the destination. This is the name that identifies the conversion source within the Merchant Center UI.
Limited to 64 characters.
Returns | |
---|---|
Type | Description |
string |
setDisplayName
Required. Merchant-specified display name for the destination. This is the name that identifies the conversion source within the Merchant Center UI.
Limited to 64 characters.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getCurrencyCode
Required. Three-letter currency code (ISO 4217). The currency code defines in which currency the conversions sent to this destination will be reported in Merchant Center.
Returns | |
---|---|
Type | Description |
string |
setCurrencyCode
Required. Three-letter currency code (ISO 4217). The currency code defines in which currency the conversions sent to this destination will be reported in Merchant Center.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |