Get a data source
get_data_sourceRetrieve a data source's configuration by ID or full name, showing type, input, feed, and fetch settings. Use it to verify whether a file-based feed can be re-fetched.
Instructions
Returns one data source by its numeric ID (or full resource name): type, input (API/FILE/UI/AUTOFEED), feed configuration and fetch settings. Check input before calling fetch_data_source — only file-based feeds with fetch settings can be re-fetched.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | No | Merchant Center account ID (digits, e.g. "123456"). Omit to use the GOOGLE_MERCHANTS_ACCOUNT_ID default. | |
| data_source | Yes | Data source: numeric ID (e.g. "104628") or full name "accounts/{account}/dataSources/{id}". Product/promotion writes require an API-type data source (input: API), not a file feed. |