Google Shopping Merchant Conversions V1 Client - Class ConversionSource (1.0.0)

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 \ V1

Methods

__construct

Constructor.

Parameters
Name
Description
data
array

Optional. Data for populating the Message object.

↳ google_analytics_link
GoogleAnalyticsLink

Immutable. Conversion Source of type "Link to Google Analytics Property".

↳ merchant_center_destination
MerchantCenterDestination

Conversion Source of type "Merchant Center Tag 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.

Immutable. Conversion Source of type "Link to Google Analytics Property".

Returns
Type
Description

Immutable. Conversion Source of type "Link to Google Analytics Property".

Parameter
Name
Description
Returns
Type
Description
$this

getMerchantCenterDestination

Conversion Source of type "Merchant Center Tag Destination".

Returns
Type
Description

hasMerchantCenterDestination

setMerchantCenterDestination

Conversion Source of type "Merchant Center Tag Destination".

Parameter
Name
Description
Returns
Type
Description
$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.

Returns
Type
Description
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.

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getState

Output only. Current state of this conversion source. Can't be edited through the API.

Returns
Type
Description
int

setState

Output only. Current state of this conversion source. Can't be edited through the API.

Parameter
Name
Description
var
int
Returns
Type
Description
$this

getExpireTime

Output only. The time when an archived conversion source becomes permanently deleted and is no longer available to undelete.

Returns
Type
Description

hasExpireTime

clearExpireTime

setExpireTime

Output only. The time when an archived conversion source becomes permanently deleted and is no longer available to undelete.

Parameter
Name
Description
Returns
Type
Description
$this

getController

Output only. Controller of the conversion source.

Returns
Type
Description
int

setController

Output only. Controller of the conversion source.

Parameter
Name
Description
var
int
Returns
Type
Description
$this

getSourceData

Returns
Type
Description
string
Design a Mobile Site
View Site in Mobile | Classic
Share by: