Reference documentation and code samples for the Google Shopping Merchant Conversions V1 Client class ConversionSource.
Represents a conversion source owned by a Merchant account. A merchant account can have up to 200 conversion sources.
Generated from protobuf message google.shopping.merchant.conversions.v1.ConversionSource
Namespace
Google \ Shopping \ Merchant \ Conversions \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ google_analytics_link
↳ merchant_center_destination
↳ name
string
Output only. Identifier. Generated by the Content API upon creation of a new ConversionSource
. Format: [a-z]{4}:.+
The four characters before the colon represent the type of conversion source. Content after the colon represents the ID of the conversion source within that type. The ID of two different conversion sources might be the same across different types. The following type prefixes are supported: * * galk
: For GoogleAnalyticsLink sources. * * mcdn
: For MerchantCenterDestination sources.
↳ state
int
Output only. Current state of this conversion source. Can't be edited through the API.
↳ expire_time
Google\Protobuf\Timestamp
Output only. The time when an archived conversion source becomes permanently deleted and is no longer available to undelete.
↳ controller
int
Output only. Controller of the conversion source.
getGoogleAnalyticsLink
Immutable. Conversion Source of type "Link to Google Analytics Property".
hasGoogleAnalyticsLink
setGoogleAnalyticsLink
Immutable. Conversion Source of type "Link to Google Analytics Property".
$this
getMerchantCenterDestination
Conversion Source of type "Merchant Center Tag Destination".
hasMerchantCenterDestination
setMerchantCenterDestination
Conversion Source of type "Merchant Center Tag Destination".
$this
getName
Output only. Identifier. Generated by the Content API upon creation of a
new ConversionSource
. Format: [a-z]{4}:.+
The four characters before
the colon represent the type of conversion source. Content after the colon
represents the ID of the conversion source within that type. The ID of two
different conversion sources might be the same across different types. The
following type prefixes are supported:
-
galk
: For GoogleAnalyticsLink sources. -
mcdn
: For MerchantCenterDestination sources.
string
setName
Output only. Identifier. Generated by the Content API upon creation of a
new ConversionSource
. Format: [a-z]{4}:.+
The four characters before
the colon represent the type of conversion source. Content after the colon
represents the ID of the conversion source within that type. The ID of two
different conversion sources might be the same across different types. The
following type prefixes are supported:
-
galk
: For GoogleAnalyticsLink sources. -
mcdn
: For MerchantCenterDestination sources.
var
string
$this
getState
Output only. Current state of this conversion source. Can't be edited through the API.
int
setState
Output only. Current state of this conversion source. Can't be edited through the API.
var
int
$this
getExpireTime
Output only. The time when an archived conversion source becomes permanently deleted and is no longer available to undelete.
hasExpireTime
clearExpireTime
setExpireTime
Output only. The time when an archived conversion source becomes permanently deleted and is no longer available to undelete.
$this
getController
Output only. Controller of the conversion source.
int
setController
Output only. Controller of the conversion source.
var
int
$this
getSourceData
string