---
title: "POST /{merchantId}/conversionsources"
method: POST
path: "/{merchantId}/conversionsources"
tags: ["conversionsources"]
---

# POST /{merchantId}/conversionsources

`POST /{merchantId}/conversionsources`

Creates a new conversion source.

## Path parameters

- `merchantId` string, required

## Request body

- ConversionSource — Represents a conversion source owned by a Merchant account. A merchant account can have up to 200 conversion sources.
  - `conversionSourceId` string — Output only. 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 conversio 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` 'STATE_UNSPECIFIED' | 'ACTIVE' | 'ARCHIVED' | 'PENDING' — Output only. Current state of this conversion source. Can't be edited through the API.
  - `merchantCenterDestination` MerchantCenterDestination — "Merchant Center Destination" sources can be used to send conversion events from a website using a Google tag directly to a Merchant Center account where the source is created.
    - `destinationId` string — Output only. Merchant Center Destination ID.
    - `displayName` string — Required. Merchant-specified display name for the destination. This is the name that identifies the conversion source within the Merchant Center UI. Limited to 64 characters.
    - `attributionSettings` AttributionSettings — Represents attribution settings for conversion sources receiving pre-attribution data.
      - `conversionType` AttributionSettingsConversionType[] — Immutable. Unordered list. List of different conversion types a conversion event can be classified as. A standard "purchase" type will be automatically created if this list is empty at creation time.
        - `name` string — Output only. Conversion event name, as it'll be reported by the client.
        - `includeInReporting` boolean — Output only. Option indicating if the type should be included in Merchant Center reporting.
      - `attributionLookbackWindowInDays` integer — Required. Lookback windows (in days) used for attribution in this source. Supported values are 7, 30, 40.
      - `attributionModel` 'ATTRIBUTION_MODEL_UNSPECIFIED' | 'CROSS_CHANNEL_LAST_CLICK' | 'ADS_PREFERRED_LAST_CLICK' | 'CROSS_CHANNEL_DATA_DRIVEN' | 'CROSS_CHANNEL_FIRST_CLICK' | 'CROSS_CHANNEL_LINEAR' | 'CROSS_CHANNEL_POSITION_BASED' | 'CROSS_CHANNEL_TIME_DECAY'
    - `currencyCode` string — Required. Three-letter currency code (ISO 4217). The currency code defines in which currency the conversions sent to this destination will be reported in Merchant Center.
  - `googleAnalyticsLink` GoogleAnalyticsLink — "Google Analytics Link" sources can be used to get conversion data from an existing Google Analytics property into the linked Merchant Center account.
    - `attributionSettings` AttributionSettings — Represents attribution settings for conversion sources receiving pre-attribution data.
      - `conversionType` AttributionSettingsConversionType[] — Immutable. Unordered list. List of different conversion types a conversion event can be classified as. A standard "purchase" type will be automatically created if this list is empty at creation time.
        - `name` string — Output only. Conversion event name, as it'll be reported by the client.
        - `includeInReporting` boolean — Output only. Option indicating if the type should be included in Merchant Center reporting.
      - `attributionLookbackWindowInDays` integer — Required. Lookback windows (in days) used for attribution in this source. Supported values are 7, 30, 40.
      - `attributionModel` 'ATTRIBUTION_MODEL_UNSPECIFIED' | 'CROSS_CHANNEL_LAST_CLICK' | 'ADS_PREFERRED_LAST_CLICK' | 'CROSS_CHANNEL_DATA_DRIVEN' | 'CROSS_CHANNEL_FIRST_CLICK' | 'CROSS_CHANNEL_LINEAR' | 'CROSS_CHANNEL_POSITION_BASED' | 'CROSS_CHANNEL_TIME_DECAY'
    - `propertyName` string — Output only. Name of the Google Analytics property the merchant is linked to.
    - `propertyId` string, int64 — Required. Immutable. ID of the Google Analytics property the merchant is linked to.
  - `expireTime` string, google-datetime — Output only. The time when an archived conversion source becomes permanently deleted and is no longer available to undelete.

## Response `200`

Successful response

---

[API](https://skmtc.net/google/apis/content.md) · [All operations](https://skmtc.net/google/apis/content/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/google/content/revisions/1033388fc86f/schema)
