> ## Documentation Index
> Fetch the complete documentation index at: https://docs.markifact.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Create Data Source

> Create a Google Merchant Center primary or supplemental product feed, inventory feed, promotion feed, review feed, or supported file source; a primary source is required before uploading products

Create a Google Merchant Center primary or supplemental product feed, inventory feed, promotion feed, review feed, or supported file source; a primary source is required before uploading products.

|                       |                          |
| --------------------- | ------------------------ |
| **App**               | Google Merchant Center   |
| **Operation ID**      | `gmc_create_data_source` |
| **Type**              | Action                   |
| **Connection**        | `gmc` (required)         |
| **Credits per run**   | 1                        |
| **Agent / MCP tool**  | Yes                      |
| **Requires approval** | Yes (write operation)    |

## Inputs

| Field         | Type             | Required | Default | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| ------------- | ---------------- | -------- | ------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `account`     | DynamicAccount   | Yes      | -       | Select the Merchant Center account in which to create the data source.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| `data_source` | object or string | Yes      | -       | Official Google Merchant API DataSource create body as an object or JSON string. Use Google's REST field names exactly. Markifact validates the top-level resource shape only; nested objects are sent unchanged and validated by Google. Do not include output-only fields such as name, dataSourceId, or input. See the Merchant API accounts.dataSources resource documentation for additional nested fields and current restrictions. Examples: primary API source for any label/language: \{"displayName":"API products","primaryProductDataSource":\{"countries":\["US"]}}; targeted primary source: \{"displayName":"US English products","primaryProductDataSource":\{"feedLabel":"US","contentLanguage":"en","countries":\["US"],"destinations":\[\{"destination":"SHOPPING\_ADS","state":"ENABLED"}]}}; common use case, supplemental feed for enriching existing products across any label/language: \{"displayName":"Supplemental product data","supplementalProductDataSource":\{}}; targeted supplemental feed: \{"displayName":"US English supplemental data","supplementalProductDataSource":\{"feedLabel":"US","contentLanguage":"en"}}; promotion source: \{"displayName":"US promotions","promotionDataSource":\{"targetCountry":"US","contentLanguage":"en"}}. |

## Output

**Type**: `Dict`

Returns the created Google Merchant Center DataSource resource.

**Fields**: dynamic (depend on the inputs)
