> ## 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.

# Update Data Source

> Update selected fields on an existing Google Merchant Center data source, including its display name, targeting, destinations, or file settings

Update selected fields on an existing Google Merchant Center data source, including its display name, targeting, destinations, or file settings.

|                       |                          |
| --------------------- | ------------------------ |
| **App**               | Google Merchant Center   |
| **Operation ID**      | `gmc_update_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 that owns the data source.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| `data_source_id` | string or SelectItem | Yes      | -       | Google Merchant Center data source ID. Use gmc\_list\_data\_sources first to find the ID.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| `update_mask`    | string               | Yes      | -       | Required Google FieldMask containing comma-separated DataSource fields to update, using official REST field names, for example displayName or displayName,fileInput.fetchSettings. A masked field omitted from data\_source is deleted. Full replacement with \* is not supported by Google.                                                                                                                                                                                                                                                                                                                                                                    |
| `data_source`    | object or string     | Yes      | -       | Official Google Merchant API DataSource patch body as an object or JSON string. Use Google's REST field names exactly. Only include values being changed; nested objects are sent unchanged and validated by Google. The resource name is added from account and data\_source\_id. An empty object is valid when deleting every field named by update\_mask. Examples: rename a source: \{"displayName":"Updated supplemental feed"}; change file fetch settings: \{"fileInput":\{"fetchSettings":\{"enabled":true,"fetchUri":"`https://example.com/feed.xml`","frequency":"DAILY","fetchHour":6,"timeZone":"America/New\_York"}}}; remove a masked field: \{}. |

### SelectItem

| Field   | Type   | Required | Default | Description                                                                                          |
| ------- | ------ | -------- | ------- | ---------------------------------------------------------------------------------------------------- |
| `value` | string | Yes      | -       | The value of the selectable item.                                                                    |
| `label` | string | Yes      | -       | The label of the selectable item, used for display purposes. If not provided, defaults to the value. |

## Output

**Type**: `Dict`

Returns the updated Google Merchant Center DataSource resource and applied update mask.

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