Commerce Catalyst Conversion Imports
Retailers record purchases in their own systems, in store and online. A conversion import takes a file of those purchases and gives it to AdButler, which credits each one to the ads the shopper saw before buying. This is closed-loop attribution, and the matches show in your conversion reports and on the import itself. Commerce Catalyst checks every row first and shows you what it found, so nothing reaches AdButler until you click Send. You will learn:
- How to get your account ready.
- How AdButler matches a purchase.
- How to prepare your file.
- How to run an import.
- Where matched purchases show.
- How to import with the API.
Before you start
For purchases to be matched to ads, the AdButler account needs three things in place.
- A product catalog: holding the SKUs that appear in your file. Purchases are matched by SKU.
- Ads linked to catalog products: AdButler only credits purchases of SKUs an ad actually carried. Products can be linked to image and native ads as companion products, which SparkLIT support switches on for the account.
- The shopper's ID on the ad request: the same ID that is in your file.
Which shopper ID to use
- A User DB ID: such as a loyalty number. This needs User DB on the account, and it works both in store and online.
- An anonymous ID (
adb_uid): for online purchases. No User DB is needed, but your site must send its own shopper or session ID as theadb_uidparameter on every ad request, and your file must use that same ID.
adb_uid, ads are recorded with no shopper ID and no purchase can be matched. AdButler records its own browser ID only on accounts with User DB.The import page checks all of this when it opens and tells you what is missing.
How AdButler matches a purchase
- The lookback window: AdButler looks for an impression or click of an ad carrying the purchased SKU, for the same shopper, in the 14 days before the purchase and up to 10 minutes after it. The window is the same for every account and cannot be changed.
- Last touch: the purchase is credited to the shopper's most recent impression or click, whichever came last. Clicks do not take priority over impressions, both kinds are always counted, and you cannot choose after-click only.
- Timing: matching runs within an hour or two of each purchase time.
- Counted once: each purchase, meaning each transaction ID and SKU together, is credited once. Sending the same purchase again never counts it twice.
- Age limit: purchases older than 28 days cannot be imported. They would rarely match, and they are expensive for AdButler to look up.
Preparing your file
Your file is a CSV, separated by commas, semicolons or tabs, and up to 45 MB, which is about 500,000 rows. Use one row per item bought. A title line above the header row is skipped. Column names can be anything you like: you match them to the fields below when you upload, and your choice is remembered for next time.
Required fields
- Shopper ID (
user_id): the ID the shopper had when they saw the ad, either a User DB ID or the anonymous ID sent asadb_uid. - SKU (
skuorproduct_id): the product bought, exactly as it appears in the catalog. - Purchase date and time (
timestamp): ISO 8601 such as2026-11-16T14:05:00-05:00, orYYYY-MM-DD HH:MM[:SS], orYYYY-MM-DD. Without a time zone, the AdButler account's time zone is used. A date on its own means the end of that day.
Optional fields
- Transaction ID (
transaction_id): your order or receipt number. Rows that share an ID are treated as one purchase. This one is strongly recommended. - Unit price (
price): the price of a single unit. Currency symbols and thousands separators are fine. - Quantity (
quantity): whole units, and it defaults to 1. Weighed items, such as 1.25, are sent as 1 item priced at the line total. A quantity of 0 is sent with a warning. - Discount (
discount): the discount on that line. - Sales channel (
sales_channel): for examplein-storeoronline. Leave it out and the default you chose for the import is used.
How rows become purchases
- Without a transaction ID: rows for the same shopper at the same time become one purchase. Commerce Catalyst gives it a stable ID made from the account, the shopper and the purchase time, so re-sending the file still does not count it twice.
- The same SKU on several lines: of one purchase is sent as a single line, with the quantities added and the price averaged by quantity, because AdButler credits a SKU once per purchase.
Rows that cannot be used
Rows with no shopper ID or SKU, an unreadable date, a date in the future or older than 28 days, or a price that is not a number are left out of the import. The summary shows how many of each, and the Rows with problems download lists every rejected row and what was wrong with it.
Running an import
Conversions, next to UserDB & Audiences, lists every import you have run. To add one, choose New import.
- Review the account check.
- Choose the catalog, the kind of shopper ID, the User DB if you are using one, and the default sales channel.
- Pick your file and match its columns. The first rows are shown so you can see how they will be read.
- Click Upload and check. Every row is checked in the background, and large files take a few minutes.
- Review the summary, then click Send.
What the progress tells you
- Accepted: AdButler took the purchase.
- Not recognised: AdButler refused it, almost always because the shopper ID is not in the chosen User DB.
- Couldn't be sent: still failing after 5 tries.
Who can run an import
Anyone who can manage UserDB & Audiences, because purchases are shopper-level data. Brand portal users never see imports.
Where matched purchases show
- On the import: Matched to ads shows how many of the purchases AdButler has matched so far, split by click and by view, with their value.
- Reports, then Conversion details: one row per credited purchase, with the ad, the purchase time and value, and Attribution, which reads either Click or View with the date the shopper saw the ad. The same report is in AdButler as Conversion Details.
- Conversion totals in the standard reports: conversions, conversion value and conversion rate count after-click purchases only. After-view purchases appear only in Conversion details and on the import.
Importing with the API
The same imports are available with a Commerce Catalyst API key, sent as Authorization: Bearer cc_…, whose owner can manage UserDB & Audiences.
The endpoints
GET /api/v1/self-service/conversion-imports/precheck: the account check, returning the account ID, time zone, catalogs, User DBs and any problems.POST /api/v1/self-service/conversion-imports: the upload, asmultipart/form-data, takingfile,catalogId,idType(udboradb),userDbId(withudb),salesChannel,mapping(JSON, field to column, optional and guessed from your headers otherwise) andsend(trueto send as soon as the file is checked).GET /api/v1/self-service/conversion-imports: your imports, newest first.GET /api/v1/self-service/conversion-imports/{id}: one import, with its status, counts and problems.GET /api/v1/self-service/conversion-imports/{id}/errors.csv: the rows with problems.GET /api/v1/self-service/conversion-imports/{id}/results: the purchases AdButler has matched.POST /api/v1/self-service/conversion-imports/{id}/send: sends a checked import. Pass{"confirmRepeat": true}for a repeat.POST /api/v1/self-service/conversion-imports/{id}/cancel: stops an import.
send=true, an import that repeats an earlier one is not sent automatically. It waits as ready, with a message, for an explicit send.An example upload
curl -X POST https://commercecatalyst.adbutler.com/api/v1/self-service/conversion-imports \
-H "Authorization: Bearer cc_…" \
-F file=@purchases-2026-11-16.csv -F catalogId=10029 -F idType=udb -F userDbId=7 -F salesChannel=in-store -F send=true
Webhooks
Webhooks tell your own system how an import went, so there is no need to poll for the result. See the webhooks guide for how to set them up.
conversion_import.completed: the import finished sending.conversion_import.failed: the file could not be used.conversion_import.paused: AdButler kept refusing purchases.
data.conversionImport, the same object that GET /conversion-imports/{id} returns.