Create an adapter
Creates a new feed adapter. The (name, adapter_type) combination must be unique — creating a record that duplicates an existing pair is rejected with a 406 business error (google_merchant_feed_adapter_100_1).
Paths in conf.attribute_params and conf.nested_tags[].attribute that contain dangerous segments (delete, update, save, create, bulk_create, bulk_update, objects, or their __-joined forms) are rejected with a 400 validation error.
To restrict the feed to a specific set of products, supply filter_file as a data URI (data:<mime-type>;base64,<content>) containing an XLS, XLSX, or CSV file with at least one column named sku or base_code.
Token credential sent in the Authorization header, in the form: Token <your-token>. Requires a staff (admin) account.
Fields for creating or updating a product feed adapter.
A human-readable name for this adapter. Together with adapter_type, must be unique.
Main Google FeedAdapter-specific configuration JSON. See the Adapter Configuration (conf) section. Paths in attribute_params and nested_tags[].attribute containing dangerous segments (delete, update, save, create, bulk_create, bulk_update, objects) are rejected with a 400 validation error.
{"feed_filename":"google/feed.xml"}The adapter implementation used to generate the feed. See the Adapter Types table in the Product Feed Adapters section for descriptions.
Whether the adapter participates in scheduled feed generation.
trueWhen true, the adapter is excluded from recurring scheduled runs. Defaults to false.
falseExample: falseTabular file (XLS, XLSX, or CSV) that limits which products are included in the feed, encoded as a data URI: data:<mime-type>;base64,<content> (e.g. data:application/vnd.ms-excel;base64,UEsDB...). The file must contain at least one column named sku or base_code; any other layout is rejected with a 400 validation error. Omit or send null to include all eligible products.
The adapter was created.
A product feed adapter record.
The unique identifier of the adapter. Assigned by the server.
A human-readable name for this adapter. Together with adapter_type, must be unique.
Main Google FeedAdapter-specific configuration. See the Adapter Configuration (conf) section for the recognized top-level keys.
{"feed_filename":"google/feed.xml","schema_data":null}The adapter implementation used to generate the feed. See the Adapter Types table in the Product Feed Adapters section for descriptions.
Whether the adapter is included in scheduled feed generation runs. Inactive adapters can still be triggered on demand.
trueWhen true, the adapter is used only once and excluded from recurring scheduled runs. It can still be triggered manually.
falseThe public URL of the most recently generated feed file, derived from conf.feed_filename and the AWS_S3_BUCKET_URL_TEMPLATE environment variable. null when conf.feed_filename is absent.
https://mybucket.s3.amazonaws.com/google/feed.xmlURL of the stored product filter file, or null when no filter file is configured. When a filter file is set, only products whose sku or base_code appears in the file are included in the generated feed.
The request contains invalid or missing data.
Authentication credentials were not provided or are invalid.
The authenticated user does not have administrator privileges.
The request is well-formed but violates a business rule. The response body carries a stable error_code identifying the rule.
Codes raised by these endpoints:
google_merchant_feed_adapter_100_1— the(name, adapter_type)pair already exists; each combination must be unique.google_merchant_feed_adapter_100_2— a feed generation task is already running for this adapter; only one may run at a time.
POST /api/v1/remote/1/product_merchant_feeds/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 148
{
"name": "Main Google Feed",
"conf": {
"feed_filename": "google/feed.xml"
},
"adapter_type": "base",
"is_active": true,
"is_one_time": false,
"filter_file": null
}{
"pk": 1,
"name": "Main Google Feed",
"conf": {
"feed_filename": "google/feed.xml",
"schema_data": null
},
"adapter_type": "base",
"is_active": true,
"is_one_time": false,
"file_url": "https://mybucket.s3.amazonaws.com/google/feed.xml",
"filter_file": null
}Last updated
Was this helpful?

