You'll work in two windows: Appsium makes a webhook address and a secret value, RevenueCat sends every purchase to it, and Apple's attribution tells Appsium which ad brought the buyer. Here is each step, and what to check when numbers don't show up.
Before you start
- RevenueCat in your app. Purchases go through RevenueCat's SDK, and you can open the project in the RevenueCat dashboard with permission to add integrations.
- Apple Ads connected in Appsium for the same app. If it isn't yet, follow How to connect Apple Ads to Appsium first. ROAS needs both the spend and the revenue.
- Apple Ads attribution in the app. The app calls
Purchases.shared.attribution.enableAdServicesAttributionTokenCollection()(iOS 14.3 and later). Many apps already do. Without it purchases still arrive, but not which campaign or keyword they came from.
Step 1: Create the webhook in Appsium
Open your app in Appsium and go to Apple Ads › Overview. In the Revenue card, click Connect RevenueCat, then Create webhook URL. You can also start from Settings › Apps and connections › RevenueCat, which lists every app with Apple Ads connected.
Step 2: Add the webhook in RevenueCat
- Open IntegrationsIn the RevenueCat dashboard, pick the project, then Integrations in the left menu. It's its own menu item, not under Project settings.
- Add a webhookClick Webhooks, then Add new configuration, and name it Appsium.
- Paste the two valuesCopy the Webhook URL from Appsium into the URL field and the Authorization header value into the authorization header field, exactly as shown. You don't need to add "Bearer" in front.
- Pick what to sendChoose the app, the Production environment and all event types, then save. Sandbox purchases are ignored either way.
Step 3: Turn on Apple Ads attribution
On the same Integrations page, search for Apple Search Ads and turn it on. Either the Basic or the Advanced setup works. RevenueCat then asks Apple for each new customer's attribution and keeps it on the customer, so later renewals count for the same keyword.
Step 4: Send a test event
Open the Appsium webhook in RevenueCat and click Send test event. The Appsium window checks every few seconds and turns green when the event arrives. A test event moves no money, so revenue keeps the estimate until the first real purchase.
What you'll see in Appsium
- Overview: revenue and ROAS for the date range, marked RevenueCat, with how many paying customers came from Apple Ads. Set a target ROAS and anything below it shows in red.
- Campaigns and Keywords: revenue and ROAS on every row, against the spend of the same days.
- Rules: conditions on ROAS and revenue, such as lowering bids where a keyword brings back less than it costs.
- Weekly email on Pro: revenue and ROAS for the week next to spend and installs.
Revenue is net proceeds in USD: the price minus RevenueCat's estimated tax and store commission. Refunds are subtracted on the day they happen.
If something doesn't show up
enableAdServicesAttributionTokenCollection(). Attribution can take up to 7 days, and Apple doesn't share it for installs from ad groups that target age or gender.How to disconnect
In Appsium, open the RevenueCat window and click Disconnect RevenueCat: the purchases Appsium received are deleted and revenue goes back to the App Store Connect estimate. Then delete the Appsium webhook under Integrations › Webhooks in RevenueCat.
Frequently asked questions
Do I need RevenueCat to see ROAS in Appsium?
No. Without it, Appsium estimates revenue from App Store Connect: in each country, the proceeds from App Store search times the share of search downloads that came from ads, spread over campaigns and keywords by installs. RevenueCat replaces the estimate with real purchases tied to the exact campaign and keyword.
Which RevenueCat events does Appsium use?
Initial purchases, renewals, non-renewing purchases and product changes count as revenue, and refunds are subtracted. Trials, cancellations without a refund, sandbox purchases and test events move no money, so they don't change revenue.
Is the revenue gross or net?
Net: proceeds in USD after the tax and store commission RevenueCat estimates for each transaction. It's the money you keep, which is what ROAS should compare with spend.
Will my past purchases show up?
RevenueCat sends purchases from the moment the webhook is added. Days before the first purchase it sends keep the App Store Connect estimate, so your history still has a ROAS.
Why do some purchases show no campaign or keyword?
Attribution comes from Apple through RevenueCat's Apple Search Ads integration. It needs the integration turned on and the app collecting the AdServices token, it can take up to 7 days to arrive, and Apple doesn't share it for some installs, such as those from ad groups that target age or gender.
Is it safe?
The webhook only receives purchase events; it can't read or change anything in RevenueCat. Each request has to carry the authorization value Appsium gave you, which Appsium stores only as a hash. You can disconnect in Appsium or delete the webhook in RevenueCat at any time.



