Connect Apple Ads attribution via RevenueCat
Use this if your app already uses RevenueCat for subscriptions. Four steps, five minutes.
Enable Apple Ads in RevenueCat
In RevenueCat, go to Project → Integrations → Apple Ads Services and enable the integration. If you use Apple Ads Advanced, sign in with Apple and grant Read Only access.
Collect the attribution token
Add this line after Purchases.configure() on app launch:
Purchases.shared.attribution.enableAdServicesAttributionTokenCollection()
await Purchases.enableAdServicesAttributionTokenCollection();
That's it. RevenueCat handles the rest automatically.
Add the ASAPilot webhook
Go to Project → Integrations → Webhooks → Add new. Paste the URL and auth header shown inside the ASAPilot app:
URL: https://<your-webhook-url>
Auth: Bearer <your-token>
Enable both Production and Sandbox.
Test it
Install the app on a real device, make a sandbox purchase, and check your ASAPilot dashboard. Attribution data may take a few minutes to appear.
Common gotcha: calling configure() alone is not enough — you must also call enableAdServicesAttributionTokenCollection().