...
Further below, you can define other characteristics of your file:
the format (
CSV
, orXML
)the csv-delimiter (
SEMICOLON
,COMMA
, orTAB
)
Preview
Setting parameter preview to true allows you to download a feed with a vastly reduced file. Use this for testing purposes. File downloads with the parameter preview set to true will not consume any quotas.
Compression
the compression type (
ZIP
orGZ
)
...
Code Block | ||
---|---|---|
| ||
{ "page": 0, "totalPages": 1, "entries": [ { "feedId": "1234", "name": "Example Feed", "advertiserId": "9876", "advertiserName": "Example Advertiser", "lastUpdatedAt": "2022-03-17T11:55:59.761+00:00", "lastModifiedAt": "2022-01-17T10:12:44.121+00:00", "numberOfProducts": 12844, "lastFileHash": "637df52981d762c284d3db9a588carc7", "updateInterval": "0 0,12 * * *", "nextImportScheduledAt": "2022-03-18T11:00:00.000+00:00", "downloadUrl": null, "importUrl": null, "contentType": null, "compression": null, "status": null, "partnerRestrictionEnabled": null, "allowedPartners": null, "lastAction": null, "lastActionStatus": null, "lastActionMessage": null } ], "totalEntries": 1 } |
Note |
---|
Responses are paged. Make sure to process all the pages to not miss out on a feed. |
Debugging and Testing
When you want to integrate a feed for the first time, you may want to download it multiple times without having to concern yourself with rate-limits. For this use-case, you can use the preview mode to get a version of your feed that is vastly reduced in file size. Using preview mode will not consume any quota.
Error handling
If your request cannot be processed, you typically receive an error response like this:
Code Block | ||
---|---|---|
| ||
{
"errors": [
{
"code": "CRE_UNSUPPORTED_COLUMN",
"description": "Requested columns that do not exists in processed file of feed (123): MY_COLUMN"
}
]
} |
Here is a list of the most common error codes and how to best react to them:
Error Code | Reaction |
---|---|
| You requested a column that doesn’t exist. Go to the UI and check the feed mapping again in the download page. |