Google Shopping Merchant Conversions V1beta Client - Class CreateConversionSourceRequest (0.1.1)

Reference documentation and code samples for the Google Shopping Merchant Conversions V1beta Client class CreateConversionSourceRequest.

Request message for the CreateConversionSource method.

Generated from protobuf message google.shopping.merchant.conversions.v1beta.CreateConversionSourceRequest

Namespace

Google \ Shopping \ Merchant \ Conversions \ V1beta

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ parent string

Required. The merchant account that will own the new conversion source. Format: accounts/{account}

↳ conversion_source Google\Shopping\Merchant\Conversions\V1beta\ConversionSource

Required. The conversion source description. A new ID will be automatically assigned to it upon creation.

getParent

Required. The merchant account that will own the new conversion source.

Format: accounts/{account}

Returns
Type Description
string

setParent

Required. The merchant account that will own the new conversion source.

Format: accounts/{account}

Parameter
Name Description
var string
Returns
Type Description
$this

getConversionSource

Required. The conversion source description. A new ID will be automatically assigned to it upon creation.

Returns
Type Description
Google\Shopping\Merchant\Conversions\V1beta\ConversionSource|null

hasConversionSource

clearConversionSource

setConversionSource

Required. The conversion source description. A new ID will be automatically assigned to it upon creation.

Parameter
Name Description
var Google\Shopping\Merchant\Conversions\V1beta\ConversionSource
Returns
Type Description
$this

static::build

Parameters
Name Description
parent string

Required. The merchant account that will own the new conversion source. Format: accounts/{account} Please see Google\Shopping\Merchant\Conversions\V1beta\ConversionSourcesServiceClient::accountName() for help formatting this field.

conversionSource Google\Shopping\Merchant\Conversions\V1beta\ConversionSource

Required. The conversion source description. A new ID will be automatically assigned to it upon creation.

Returns
Type Description
Google\Shopping\Merchant\Conversions\V1beta\CreateConversionSourceRequest