Reference documentation and code samples for the Google Shopping Merchant Conversions V1beta Client class GoogleAnalyticsLink.
"Google Analytics Link" sources can be used to get conversion data from an existing Google Analytics property into the linked Merchant Center account.
Generated from protobuf message google.shopping.merchant.conversions.v1beta.GoogleAnalyticsLink
Namespace
Google \ Shopping \ Merchant \ Conversions \ V1betaMethods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ property_id |
int|string
Required. Immutable. ID of the Google Analytics property the merchant is linked to. |
↳ attribution_settings |
AttributionSettings
Output only. Attribution settings for the linked Google Analytics property. |
↳ property |
string
Output only. Name of the Google Analytics property the merchant is linked to. |
getPropertyId
Required. Immutable. ID of the Google Analytics property the merchant is linked to.
Returns | |
---|---|
Type | Description |
int|string |
setPropertyId
Required. Immutable. ID of the Google Analytics property the merchant is linked to.
Parameter | |
---|---|
Name | Description |
var |
int|string
|
Returns | |
---|---|
Type | Description |
$this |
getAttributionSettings
Output only. Attribution settings for the linked Google Analytics property.
Returns | |
---|---|
Type | Description |
AttributionSettings|null |
hasAttributionSettings
clearAttributionSettings
setAttributionSettings
Output only. Attribution settings for the linked Google Analytics property.
Parameter | |
---|---|
Name | Description |
var |
AttributionSettings
|
Returns | |
---|---|
Type | Description |
$this |
getProperty
Output only. Name of the Google Analytics property the merchant is linked to.
Returns | |
---|---|
Type | Description |
string |
setProperty
Output only. Name of the Google Analytics property the merchant is linked to.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |