# Google Shopping Merchant Conversions V1 Client - Class CreateConversionSourceRequest (1.2.0)

1.2.0 (latest) 1.1.3 1.0.0 0.3.0 0.2.1 0.1.5 Reference documentation and code samples for the Google Shopping Merchant Conversions V1 Client class CreateConversionSourceRequest.

Request message for the CreateConversionSource method.

Generated from protobuf message `google.shopping.merchant.conversions.v1.CreateConversionSourceRequest`

## Namespace

Google \\ Shopping \\ Merchant \\ Conversions \\ V1

## 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` | `https://docs.cloud.google.com/php/docs/reference/shopping-merchant-conversions/latest/V1.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** |
| `https://docs.cloud.google.com/php/docs/reference/shopping-merchant-conversions/latest/V1.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` | `https://docs.cloud.google.com/php/docs/reference/shopping-merchant-conversions/latest/V1.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 ConversionSourcesServiceClient::accountName() for help formatting this field. |
| `conversionSource` | `https://docs.cloud.google.com/php/docs/reference/shopping-merchant-conversions/latest/V1.ConversionSource` Required. The conversion source description. A new ID will be automatically assigned to it upon creation. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/shopping-merchant-conversions/latest/V1.CreateConversionSourceRequest` |   |