Ad Platforms: Sending Sales and Importing Ad Costs
Send sales to Google Ads, Meta, Microsoft Advertising and TikTok automatically, import each campaign's daily cost into your links, and use hashed buyer email and phone for better matching.
Send the sales from your links to Google Ads, Meta (Facebook and Instagram), Microsoft Advertising and TikTok automatically, and bring their ad costs into your reports. The ad platforms then learn which clicks make money, and your profit and ROI stay up to date without typing in costs.
The Ad Platforms page is a plan option. The account owner and admins can use it. Platforms are added as each one approves our access: if a platform says Coming soon, it is not available yet. Without the plan option you can still download a Google Ads import file; see Sending sales to Google Ads.
How it works
- Someone clicks your ad. The ad platform adds its click ID to the address, such as
gclid(Google),fbclid(Meta),msclkid(Microsoft) orttclid(TikTok). SCT saves it with the click. - They buy. Your thank-you page snippet or your affiliate network's postback tells SCT, with the amount.
- About 15 minutes later, SCT sends the sale to each ad platform you set up. The wait lets upsells arrive first, so the platform gets the full amount.
- Every hour, SCT reads each mapped campaign's cost and adds it to the link's ad spend.
Your short link must be the address the ad sends people to, so SCT can save the click ID. Your links, destination URLs and postbacks do not change.
Meta (Facebook and Instagram)
- In Meta Events Manager, open your pixel (dataset). Copy the pixel ID under its name.
- Go to the pixel's Settings, find Conversions API, and click Generate access token. Copy the token.
- On Ad Platforms, paste both in the Meta card and click Connect.
- Under Sales to send, pick a link (or leave it empty for every link), choose the event (Purchase for sales, Lead or CompleteRegistration for sign-ups), and click Add.
- Check it: in Events Manager, open Test events and copy the test code. Back in SCT, click Send a test, paste the code, and send. The $1 test sale shows up in Test events within a minute. It is not counted as a real sale.
SCT sends the sale time, amount and currency, the visitor's IP address and browser from the click, the Facebook click ID
(as fbc), and, if you turn it on, the hashed buyer email and phone. Meta only accepts sales from the last 7
days, so a sale that waited longer (for example, while the connection needed attention) is not sent.
If your thank-you page also runs the Meta pixel with a Purchase event, give both the same event ID to avoid counting a sale
twice. SCT's event ID is sct- followed by the conversion number. Most people only use one of the two.
Google Ads
- In Google Ads, open Goals › Conversions and create a conversion action. Choose Import, then clicks from another source. Name it, for example Affiliate sale. Google asks you to wait a few hours before sending sales to a new action.
- On Ad Platforms, click Sign in with Google and allow access with a Google account that can use your Google Ads account.
- Choose or enter the Google Ads customer ID (for example 123-456-7890). If you reach the account through a manager (MCC) account, enter that ID too. Click Save account details.
- Under Sales to send, choose the conversion action and click Add. Send a test asks Google to check the format without recording anything.
Google only gets sales from Google ad clicks (with a GCLID, GBRAID or WBRAID), up to 90 days after the click.
Scheduled import, without signing in. Google Ads can also fetch your sales from a private address on a schedule. In the Google card, under Scheduled import for Google Ads, enter the conversion name and click Create feed. Copy the address, username and password (the password is shown once). In Google Ads, open Goals › Conversions › Uploads › Schedules, choose HTTPS as the source, paste the three, and pick how often. The feed lists sales from Google ad clicks from the last 7 to 90 days (you choose). Google Ads skips sales it already has. If the password leaks, click New password and update the schedule.
Microsoft Advertising
- In Microsoft Advertising, open Conversions › Conversion goals and create a goal of the type Offline conversions. Wait about two hours before sending sales to it.
- On Ad Platforms, click Sign in with Microsoft.
- Enter the account ID (the number after
aid=in the Microsoft Advertising address bar) and the customer ID (aftercid=). Click Save account details. - Under Sales to send, type the goal name exactly as it appears in Microsoft Advertising, and click Add.
Microsoft gets sales with a Microsoft click ID (MSCLKID), and, if you turn on buyer data, sales with a hashed email or phone. Microsoft has no test mode: send a real or free test sale through your link and check the goal after a few hours.
TikTok
- In TikTok Events Manager, open your web pixel and copy the pixel code.
- In the pixel's Settings, under Events API, generate an access token.
- On Ad Platforms, paste both and click Connect.
- Under Sales to send, choose CompletePayment for sales, and click Add. Use Send a test with the code from Events Manager › Test events.
Which sales are sent
Each line under Sales to send is one link (or every link) and one destination. By default only sales that came from that platform's ads are sent. For Meta, Microsoft and TikTok you can turn that off, so the platform also learns from sales that came from email, other ads or social posts. Google always needs a Google click.
A sale is sent once to each destination. Repeats from your network's postback, or a reloaded thank-you page, are not sent again.
Ad costs
Once you are signed in and the account for costs is set, the platform card shows Ad costs. Click Show campaigns, then pick the link each campaign sends traffic to. Every hour, SCT adds each campaign's cost for each day to that link's ad spend, re-reading the last three days because platforms adjust recent numbers. A newly mapped campaign gets its last 30 days. The entries show on the link's Money tab as Imported.
- If the link also has a cost per click, clear it, or the cost is counted twice.
- The ad account must use the same currency as your SCT account (Dashboard, Revenue & ROI card). Costs in another currency are not imported, and the card says why.
- Removing a campaign from a link stops new costs. Costs already imported stay.
See Analytics and Reports for how ad spend feeds profit and ROI.
Buyer email and phone
Ad platforms match more sales to ad clicks when they get the buyer's email or phone (Google Enhanced Conversions, Meta Advanced Matching). Turn on Use buyer email and phone to match sales on Ad Platforms, then send them:
On the thank-you page, add them to the snippet. Your checkout's merge tags can fill them in:
<script src="https://YOUR-SNIPPET-ADDRESS/track/sct-conv.js?link=AbC123xYz789"
data-amount="47.00" data-email="{buyer_email}" data-phone="{buyer_phone}" async></script>
The snippet turns them into a one-way code (a SHA-256 hash) in the buyer's browser. The email and phone never leave the
page. This needs an https:// page; on other pages they are left out. Phone numbers need the country code, such as
+1 650 555 1212.
In a postback, add your network's tokens, for example:
https://YOUR-SNIPPET-ADDRESS/track/sct-conv.gif?sct_conv_ref={aff_sub2}&amount={payout}&email={email}&pb=YOUR-ACCOUNT-KEY
SCT hashes them as soon as they arrive. The Postback Log shows them as (hidden). Many affiliate networks do not share buyer emails; that is fine, the click ID still works.
Only the hashes are stored, and only while this is on. Turning it off deletes them. Turn it on only if your privacy policy covers sharing customer data with ad platforms, and you have consent where the law requires it (for example in the EU and UK).
Recent sends
The bottom of the page lists the latest sales and what happened to each:
- Waiting to send
- Queued. Shows when it will be tried. New sales wait about 15 minutes; a failed try waits longer each time (5, 15, 60 and 240 minutes).
- Sent
- The platform accepted it. Platforms can take a few hours to show it in their reports.
- Not sent
- The platform cannot use it, with the reason: for example, it did not come from that platform's ads, or it is too old.
- Failed
- The platform refused it, or every retry failed. The reason is the platform's own message.
If a connection shows Needs attention, read its message. Usually the token expired or was removed: paste a new token (Meta, TikTok) or click Sign in again (Google, Microsoft). Sales wait while it is fixed, as long as the platform still accepts them.
Good to know
- Each sale has the ID
sct-plus its conversion number, so platforms drop repeats. - Disconnecting stops sending and cost import for that account. Costs already imported stay on your links.
- Ad click IDs are kept as long as your plan keeps click history. A sale is sent with the click ID it had when it happened.
- You can also send each new sale to your own tools with the New Conversion trigger in Zapier, Make, n8n or the REST API.