Merchant Center: Update Data Source
gmc_update_data_sourceChange the settings of one data source (feed) of a Google Merchant Center account: its display name, and for a file Google fetches from a URL or a Google Sheet the fetch schedule (on/off, daily/weekly/monthly, time, weekday or day of month, time zone) and the fetch URL. Only the arguments passed change; feed rules, labels, countries, destinations and the fetch login (username/password, set in Merchant Center) are not touched. Uploaded files, UI-managed and automatic sources have no fetch settings — only their name can change. Needs a STANDARD or ADMIN login.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"data_source": "<data_source>"
},
"name": "gmc_update_data_source"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fetch_uri | No | New URL Google fetches the file from (http, https, ftp, sftp) or the Google Sheet URL. A username/password for a protected URL is set in Merchant Center, not here. | |
| account_id | No | Numeric Merchant Center account id, from gmc_list_accounts. May be left out when the connected login reaches exactly one account. | |
| fetch_time | No | Time of day HH:MM (24-hour) in fetch_time_zone. | |
| data_source | Yes | Numeric data source id, from gmc_list_data_sources. | |
| display_name | No | New display name. | |
| fetch_enabled | No | Turn the scheduled fetch on or off. | |
| fetch_frequency | No | daily, weekly or monthly. | |
| fetch_time_zone | No | IANA time zone of fetch_time, e.g. Europe/Paris. | |
| fetch_day_of_week | No | Weekday for a weekly fetch, e.g. MONDAY. | |
| fetch_day_of_month | No | Day 1–31 for a monthly fetch. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | primary, supplemental, local_inventory, regional_inventory, promotion, product_review, merchant_review or other. | |
| input | Yes | Who writes the source: API, FILE, UI or AUTOFEED. | |
| changed | Yes | The arguments that were applied. | |
| fileName | No | The file name Google expects for an uploaded file. | |
| writable | Yes | True when products in it can be changed through gmc_update_product_input / gmc_insert_product_input (API input). | |
| accountId | Yes | Merchant Center account. | |
| countries | Yes | Target countries of a primary source, when set. | |
| feedLabel | No | Feed label of a product source. | |
| fetchable | Yes | True when Google fetches it from a URL or Google Sheet (gmc_fetch_data_source works). | |
| displayName | Yes | Name shown under Products › Data sources. | |
| dataSourceId | Yes | Numeric data source id. | |
| fetchSettings | No | Fetch schedule of a FETCH or GOOGLE_SHEETS source. | |
| fileInputType | No | UPLOAD, FETCH or GOOGLE_SHEETS for file sources. | |
| contentLanguage | No | Content language of a product source. | |
| takeFromDataSources | Yes | For a primary source: the sources its default rule reads attributes from — 'self' and linked supplemental sources. |