RevenueCat integration

Connect Apple Ads attribution via RevenueCat

Use this if your app already uses RevenueCat for subscriptions. Four steps, five minutes.

1

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.

2

Collect the attribution token

Add this line after Purchases.configure() on app launch:

Swift
Purchases.shared.attribution.enableAdServicesAttributionTokenCollection()
Flutter
await Purchases.enableAdServicesAttributionTokenCollection();

That's it. RevenueCat handles the rest automatically.

3

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.

4

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().