# Superwall: Subscription Infrastructure for iOS, Android, and Web

Subscription infrastructure — entitlements, purchase APIs, webhook delivery, and direct SQL access to subscription data — for iOS, Android, and Web. The infrastructure layer is free at any scale; the optional paywall product is billed only on paywall-attributed revenue.

## Pricing

- **Infrastructure: free at any scale, every plan.** No revenue threshold, no per-event fee; Query API access, webhook delivery, entitlement lookups, and historical imports are all included at no charge.
- **Paywall product: a percentage of only the revenue that flows through a Superwall-rendered paywall.** Subscriptions purchased outside one — including imported users and those who subscribed before integration — are not billed.

Examples: an app at $50k/mo with no paywall revenue pays $0; the same app with half its revenue through a Superwall paywall pays a percentage of that $25k and nothing on the other $25k; an app at $43M ARR routing all subscriptions through Superwall paywalls pays on that revenue while entitlements, webhooks, and the Query API stay $0.

## Scale

$1.5B+ annual subscription revenue across 10,000+ apps. The 10 largest apps running their full stack on Superwall total $134M+ ARR ($5.7M–$43.7M each). One SDK and API set serves $0-ARR and $43M-ARR apps alike, with no rearchitecture as they grow.

## Infrastructure capabilities

- **Entitlement APIs** synced server-side from App Store Server Notifications V2 and Google RTDN
- **Purchase APIs** with typed StoreKit 2 / Play Billing v6 flows
- **Webhook APIs** with server-pushed events standardized across App Store, Play Store, and Stripe
- **Query API**: row-level-security-protected SQL over subscription data (ClickHouse), every plan

Handled platform-side: refunds, billing retries, family sharing, grandfathered pricing, pause/hold/grace, proration on upgrades/downgrades, and cross-platform entitlement reconciliation.

## Migration

Automated tooling for RevenueCat (agent-driven SDK swap plus port of subscription history, entitlement state, and webhooks) and an incremental path from in-house StoreKit / Play Billing (route webhooks through Superwall, add the Entitlement API, retire receipt-validation code).

## Paywall product (optional, separately billable)

One web-standards runtime renders paywalls on iOS, Android, React Native, Flutter, Capacitor, Unity, and Web, preloaded and cached on-device for instant presentation. Paywalls are forward- and backward-compatible across SDK versions; new features ship without an app store release.

## Architecture

Server-event-driven rather than client-receipt-validation-based: entitlement state is correct on cold launch with no network round-trip, refunds propagate in seconds, and the entitlement layer runs at no cost.

## Docs

* Migrate from RevenueCat: https://superwall.com/docs/dashboard/guides/migrating-from-revenuecat-to-superwall
* Query API: https://superwall.com/docs/dashboard/guides/query-clickhouse
* Webhooks: https://superwall.com/docs/integrations/webhooks
* Pricing: https://superwall.com/pricing

# ChatGPT Ads

Use Superwall as your MMP for ChatGPT ads: attribute installs to your campaigns, send conversion events to OpenAI, and import ad spend.

The ChatGPT Ads integration makes Superwall your [mobile measurement partner (MMP)](/docs/integrations/mmp) for campaigns in OpenAI Ads Manager. You paste one Ads API key, and Superwall sets up a pixel and a Conversions API key for your app. From then on it sends your app's events to OpenAI and imports your ad spend once a day. It also gives you the link to put in your ads, so it can attribute each install to the campaign, ad group, and ad it came from. Spend and results show up in [charts](/docs/dashboard/charts) as ROAS, cost per trial, and cost per paid user.

> **Note:** ChatGPT Ads is in **beta**. If the **ChatGPT Ads** card under **Integrations** >
> **Performance marketing** shows **Coming soon**, click **Request access** and
> we'll turn it on for you. The card then shows **Access requested**.

> **Note:** This page describes the new dashboard at
> [app.superwall.com](https://app.superwall.com).

## Requirements

* An app on one of these Superwall SDK versions:
  * **iOS:** [SuperwallKit](/docs/ios) 4.16.0 or later.
  * **Android:** [Superwall Android SDK](/docs/android) 2.9.0 or later.
  * **Expo:** [expo-superwall](/docs/expo) 1.2.0 or later to match iOS installs, and 1.8.0 or later to match Android installs. Ship a new app build, because an EAS Update can't change the native SDK.
  * **Flutter:** [superwallkit\_flutter](/docs/flutter) 2.5.0 or later to match iOS installs, and 2.8.0 or later to match Android installs.
* An ad account in [OpenAI Ads Manager](https://ads.openai.com). Step 1 covers setting one up.
* [Revenue tracking](/docs/dashboard/dashboard-settings/overview-settings-revenue-tracking) configured for your app. The Performance marketing cards stay locked until it is.
* If you sell outside of Superwall paywalls, enable [observer mode](/docs/ios/guides/advanced/observer-mode) so Superwall tracks those transactions.

> **Warning:** Attribution only applies to new installs. The SDK matches an install once,
> shortly after first launch, and only when that first launch happens within 24 hours of the ad click on iOS, or 7 days on Android. Test with a fresh install.

> **Note:** Already have an OpenAI ad account and an Ads API key? Skip to
> [Step 3: Connect the key in Superwall](#step-3-connect-the-key-in-superwall).

## Step 1: Set up OpenAI Ads Manager

A new OpenAI ad account has you create your first campaign before you can do anything else, including creating an API key. You don't have a Superwall ad link yet, so you'll use a temporary link here and swap it in [Step 7](#step-7-put-the-superwall-link-in-your-ad).

## Start your first campaign

Sign in to [OpenAI Ads Manager](https://ads.openai.com) and fill in **Business information**. On **Set up your first campaign**:- **Campaign name:** anything you like.
- **Objective:** leave it on **Clicks** for now. The other choices are **Reach** and **Conversions**.
- **Eligible platforms:** tick the ones that match your app. For an iOS app, that's **iOS app** and **iOS web**. For an Android app, it's **Android app** and **Android web**.
- **Locations** and &#x2A;*Daily budget:** set these the way you want.Then click **Next**.
![The Set up your first campaign screen in OpenAI Ads Manager, with the campaign name, objective, locations, eligible platforms, and daily budget](https://superwall.com/docs/images/chatgpt-ads-openai-campaign.jpg)

## Set up the ad group

On **Set up ad group**:- **Tracking parameters:** paste the line below. It's the same for every Superwall app, and it's how Superwall knows which campaign, ad group, and ad each install came from.

  ```
  campaign_id={campaign_id}&ad_group_id={ad_group_id}&ad_id={ad_id}&ad_account_id={ad_account_id}
  ```

- **Default Ad Destination URL:** enter a temporary web page, such as your app's website. You'll replace it with your Superwall link in Step 7.

- **Context hints:** optional. Describe the conversations where your app is relevant.Then click **Next: Ads**.
![The Set up ad group screen in OpenAI Ads Manager, with the Tracking parameters and Default Ad Destination URL fields](https://superwall.com/docs/images/chatgpt-ads-openai-ad-group.jpg)

## Create the ad

On **Set up ad**, add your logo, title, description, and images.- **Ad Destination URL:** it's already filled in with the temporary link from the ad group. Leave it for now.
- **Tracking parameters:** leave this empty. The ad uses the ones you set on the ad group.
![The Ad Destination URL and Tracking parameters fields on the Set up ad screen in OpenAI Ads Manager](https://superwall.com/docs/images/chatgpt-ads-openai-ad.jpg)

## Publish the campaign

On **Review campaign**, check the summary and click **Publish**. OpenAI reviews the ad before it goes live. Click **Go to Ads Manager**.
![OpenAI Ads Manager after publishing, saying your ads will go live once they pass review, with the Go to Ads Manager button](https://superwall.com/docs/images/chatgpt-ads-openai-published.jpg)
OpenAI also has to verify your business, or you if you're advertising as an individual, before it shows any ad. Ads Manager shows a banner with **Continue verification** until that's done.Once your account is verified and the ad is approved, the ad runs with the temporary link. Finish the rest of this page before then, or switch the ad off in **Campaigns** until you've swapped in the Superwall link.

## Step 2: Create an Ads API key

## Open the API keys

In OpenAI Ads Manager, click **Settings**, then **General**, in the sidebar. Scroll down to **API Keys** and click **Create New Key**.
![The API Keys section at the bottom of Settings in OpenAI Ads Manager, with the Create New Key button](https://superwall.com/docs/images/chatgpt-ads-openai-api-keys.jpg)

## Create the key

Enter a **Key Name**, such as `Superwall MMP`, and click **Create**. Copy the key.
![The Create New API Key dialog in OpenAI Ads Manager with a key name filled in](https://superwall.com/docs/images/chatgpt-ads-openai-create-key.jpg)

The dialog says to use a separate conversion key for Conversions API events. You don't need to create one. Superwall creates it for you in Step 3.

## Step 3: Connect the key in Superwall

## Open the integration

In Superwall, open your app, click **Integrations**, find **Performance marketing**, and click the **ChatGPT Ads** card.
![The Performance marketing section in Superwall with the ChatGPT Ads card](https://superwall.com/docs/images/chatgpt-ads-performance-marketing-card.jpg)

## Paste the key

Under **Ads API key**, paste the key and click **Connect**.
![The Ads API key card on Superwall](https://superwall.com/docs/images/chatgpt-ads-api-key.jpg)

## Check it connected

The card now shows your **Ad account**, **Account ID**, **Currency**, and **Conversions**, and the badge at the top of the page reads **Sending conversions**.
![Superwall](https://superwall.com/docs/images/chatgpt-ads-connected.jpg)

Superwall has now created a pixel and a Conversions API key in your OpenAI ad account and started sending the default events. See [What does Superwall set up in my OpenAI account?](#what-superwall-sets-up) in the FAQ. If the page says **Conversions aren't set up** instead, see [The page says conversions aren't set up](#the-page-says-conversions-arent-set-up) in Troubleshooting.

## Step 4: Choose events to send

In Superwall, under **Events to send**, tick each Superwall event you want to send to OpenAI. If you change the selection, click **Save changes** at the bottom of the page.

| Dashboard label     | Superwall event                | Sent to OpenAI as                 | On by default |
| ------------------- | ------------------------------ | --------------------------------- | ------------- |
| Paywall open        | `paywall_open`                 | `sw_paywall_open` (custom)        | No            |
| Transaction start   | `transaction_start`            | `checkout_started`                | Yes           |
| Transaction abandon | `transaction_abandon`          | `sw_transaction_abandon` (custom) | No            |
| App install         | `app_install`                  | `app_installed`                   | Yes           |
| Free trial start    | `freeTrial_start`              | `trial_started`                   | Yes           |
| Subscription start  | `subscription_start`           | `subscription_created`            | Yes           |
| One-time purchase   | `nonRecurringProduct_purchase` | `order_created`                   | Yes           |

![The Events to send card on Superwall](https://superwall.com/docs/images/chatgpt-ads-events.jpg)

Paywall open and Transaction abandon are off by default because OpenAI campaigns can't optimize for them. For when each event is sent and what it contains, see the [FAQ](#faq).

## Step 5: Send a test event

In Superwall, click **Send test event**. Superwall sends one sample of each saved event to OpenAI, and OpenAI checks them without recording anything. Superwall then lists the events OpenAI accepted.

![The Events to send card after sending a test event, with the message listing the events OpenAI accepted](https://superwall.com/docs/images/chatgpt-ads-test-event.jpg)

The test uses your saved events, so click **Save changes** first if you've just changed them.

## Step 6: Create your ad link

## Add a link

In Superwall, under **Ad links**, click **Add ad link**. The first link is in English and saves right away.
![The Ad links card on Superwall](https://superwall.com/docs/images/chatgpt-ads-add-link.jpg)

## Copy the link

Click the copy button in the **Ad destination URL** column.
![The Ad links card with one English link, its Ad destination URL, and the Tracking parameters below it](https://superwall.com/docs/images/chatgpt-ads-links.jpg)

The **Tracking parameters** under the link are the ones you pasted into your ad group in Step 1. If you skipped Step 1, copy them now.

## Step 7: Put the Superwall link in your ad

## Replace the temporary link

In OpenAI Ads Manager, click **Campaigns**, find your ad, and edit it. In **Edit Ad**, replace the temporary link in **Link** with the Superwall link and click **Save**. Don't add the tracking parameters to the link.
![The Edit Ad dialog in OpenAI Ads Manager with the Superwall link pasted into the Link field](https://superwall.com/docs/images/chatgpt-ads-openai-edit-ad.jpg)
If OpenAI says **URL review in progress**, wait for the countdown and save again.

## Check the tracking parameters

If you skipped Step 1, paste Superwall's tracking parameters into the ad group's **Tracking parameters**. Leave the ad's own **Tracking parameters** empty.

## Choose your conversion events

Edit the campaign. Under **Conversion event**, choose the events Superwall created that you want this campaign to track, such as `Superwall trial_started` and `Superwall subscription_created`. You can add more than one. Then click **Save**.
![The Edit Campaign dialog in OpenAI Ads Manager with the Conversion event list open, showing the conversion events Superwall created](https://superwall.com/docs/images/chatgpt-ads-openai-conversion-event.jpg)

Your ad runs once OpenAI has approved it and verified your account. See [My ad isn't running](#my-ad-isnt-running).

## Verify it's working

Check these in Superwall:

* **Send test event** lists the events OpenAI accepted.
* Once ads run, attributed users appear under **Users** with `acquisition_` user attributes set and an `attribution_match` event in their event stream. See [How attribution works](/docs/integrations/mmp#how-attribution-works).
* The **Advertising** charts fill in after spend imports from OpenAI, once a day.

## Troubleshooting

## My ad isn't running

OpenAI won't show an ad until two things are done:- **Your account is verified.** OpenAI verifies your business, or you if you're advertising as an individual. Until then, Ads Manager shows a banner with **Continue verification**. Click it and finish the steps.
- **The ad is approved.** In **Campaigns**, the ad's **Status** reads **Not approved** while it's **In review**. Changing the ad's link sends it back through review.
![An ad in OpenAI Ads Manager with the status Not approved and the Ad submitted for review panel showing In review](https://superwall.com/docs/images/chatgpt-ads-openai-in-review.jpg)

## OpenAI says URL review in progress

When you save a new link on an ad, OpenAI checks the link first. If you see **URL review in progress**, your change hasn't been saved yet. Wait for the countdown on the button, then save again.
![The URL review in progress message in OpenAI Ads Manager, with a Try again countdown](https://superwall.com/docs/images/chatgpt-ads-openai-url-review.jpg)

## The page says conversions aren't set up

OpenAI didn't let Superwall create a pixel and Conversions API key for your ad account. Your spend still imports and you can still create ad links, but no events are sent, and the **Events to send** card is hidden. Ask your OpenAI contact to turn on conversions setup, then click **Replace key** and connect again.On SuperwallKit 4.18.0 and later, and on Android, new installs aren't matched until conversions are set up, unless another ad network, such as Meta or TikTok, is set up for the app.

## My key was rejected

Check that you copied the whole key, that it's a key from **Settings** > **General** > **API Keys** in OpenAI Ads Manager, and that it hasn't been revoked.

## Test events don't show up as conversions

OpenAI checks test events but doesn't record them, so they don't appear in OpenAI Ads Manager.

## My event isn't offered as an optimization goal

* `sw_paywall_open` and `sw_transaction_abandon` are custom events, and campaigns can only optimize for standard events.
* A newly ticked event's conversion event is created with the next daily spend import. To create it right away, save your events, then click **Replace key** and connect again with the same key.

## Installs aren't attributed to a campaign

* Check that the ad group's **Tracking parameters** in OpenAI Ads Manager contain the tracking parameters from Superwall's **Ad links** card.
* Check that the tracking parameters aren't also added to the ad's **Link**.

## Installs aren't being attributed

* The app must ship SuperwallKit 4.16.0 or later on iOS, or Android SDK 2.9.0 or later, and the install must be new. Delete and reinstall the app to test.
* The app must be opened for the first time within 24 hours of the ad click on iOS, or 7 days on Android.
* `SuperwallOptions.eventTrackingBehavior` must not be set to `.none`. That setting turns install matching off.
* The ad link must be saved, and pasted into the ad's **Link**.
* On SuperwallKit 4.18.0 and later, and on Android, conversions must be set up, unless another ad network is set up for the app. See [The page says conversions aren't set up](#the-page-says-conversions-arent-set-up).

## No transaction or purchase events

- Superwall never sends sandbox events to OpenAI.
- If you sell outside of Superwall paywalls, enable [observer mode](/docs/ios/guides/advanced/observer-mode).
- Check that [revenue tracking](/docs/dashboard/dashboard-settings/overview-settings-revenue-tracking) is configured.

## FAQ

## What does Superwall set up in my OpenAI account?

You don't create a pixel or a Conversions API key yourself. When you connect, Superwall does it with your Ads API key:- **Pixel:** Superwall creates a web pixel named `Superwall – ` followed by your app's name. If the ad account already has a web pixel whose name starts with "Superwall", it uses that one. OpenAI's pixels are web pixels, so your app's events go to a web pixel.
- **Conversions API key:** Superwall creates one for the pixel and stores it. It's never shown.
- **Conversion events:** For each event you send, Superwall creates a conversion event in OpenAI named `Superwall` followed by the OpenAI event name, such as `Superwall subscription_created`. These are what you pick under **Conversion event** on a campaign.Superwall creates the conversion events when you connect, and again once a day with the spend import. An event you tick later shows up in OpenAI within a day.Superwall checks your Ads API key with OpenAI before saving it, and never shows it again. Each key belongs to one ad account. OpenAI's keys aren't read-only, but Superwall only uses yours to read your spend and to set up conversions. It never changes your campaigns.

## Who does Superwall send events for?

Superwall sends events for every user of your app, not only people who came from a ChatGPT ad. The one exception is App install, which is only sent for installs that came from a ChatGPT ad.Superwall sends events to your pixel through OpenAI's Conversions API, as mobile app events.

## When is each event sent?

- Paywall open, Transaction start, and Transaction abandon are sent as soon as your app reports them.
- App install is sent when Superwall matches a new install to a ChatGPT ad click.
- Free trial start, Subscription start, and One-time purchase are sent when the App Store, Google Play, or Stripe reports the purchase.
- Subscription start is also sent when a free trial turns into a paid subscription.
- Superwall doesn't send renewals.
- Superwall doesn't send sandbox purchases, such as purchases in TestFlight builds.
- OpenAI rejects events more than 7 days old, so Superwall skips them.

## Which events include a price?

Subscription start and One-time purchase include the amount the person paid and the product. Transaction start and Transaction abandon include the product and its price. Free trial start and Paywall open have no price.

## How does OpenAI match people to my ads?

If someone installed your app from a ChatGPT ad, their events include OpenAI's click ID (`oppref`), so OpenAI can connect them to the ad. To help OpenAI match everyone else, Superwall also sends:* A hashed user ID. This is your app user ID, or a device ID if you haven't set one.
* A hashed email and phone number, if you've set the `email` and `phoneNumber` [user attributes](/docs/ios/sdk-reference/setUserAttributes).
* The IP address and user agent.
* On Android, the Google advertising ID, if your app passes it to Superwall.Superwall doesn't send the IDFA.

## What's sent for people who haven't agreed to share data for ads?

- If someone turned off ad personalization, Superwall marks their events as opted out.
- If someone hasn't agreed to share their data for ads, Superwall only sends their events if they came from a ChatGPT ad. Those events are marked as opted out, and leave out everything that identifies the person: the user ID, email, phone number, IP address, and user agent. App install is the exception. Superwall still sends it with the hashed user ID, IP address, and user agent.

## What's sent for iOS users who refused tracking?

By default, Superwall sends OpenAI nothing for iOS users who chose **Ask App Not to Track** or have tracking restricted. That includes App install. This applies to apps on SuperwallKit 4.19.2 or later.To change that, turn on **Send events for users who refused tracking** and click **Save changes**. With it on, Superwall sends events for a user who refused tracking and came from a ChatGPT ad. Those events carry only the ad's click ID and the purchase's value and product, and are marked as opted out. Superwall still sends nothing for a user who didn't come from a ChatGPT ad.Apple holds your app responsible for respecting that choice, so check that turning this on fits your privacy disclosures first.

## Why aren't the tracking parameters part of the link?

OpenAI fills in `{campaign_id}`, `{ad_group_id}`, `{ad_id}`, and `{ad_account_id}` on each click, but only in an ad's tracking parameters, not in its link. That's why they aren't part of the Superwall link. Superwall uses them to credit installs and revenue to the campaign, ad group, and ad, and to compare them with that campaign's spend to work out ROAS.Without the tracking parameters, Superwall still credits installs from your ads to ChatGPT Ads, but not to a campaign.OpenAI also adds its own click ID, `oppref`, to every click, so it isn't in the tracking parameters. Superwall sends it back with your events so OpenAI can connect them to the ad.OpenAI has no parameters for campaign or ad names, so the campaign names in your charts come from the imported spend.

## Why does my link open a landing page?

ChatGPT Ads links open a short landing page for your app. They don't send people straight to the store, because OpenAI's ad review needs a page it can read. The page shows your app's icon, name, and description, with a button to your App Store or Google Play page. When Superwall can load your App Store listing, the page also shows your rating and screenshots.Superwall records the click as soon as the page loads, so attribution works the same as with a direct link.Links created before early November 2026 go straight to the store. To give one the landing page, add `&__sw_landing=1` to the end of the link where you pasted it in OpenAI Ads Manager.

## When do ad links save, and can I add more than one?

- Ad links save by themselves. You only need to click **Save changes** after you change events or the refused-tracking setting, edit a link's product page, or delete a link.
- Links you add after the first one save once you pick an App Store language.
- You can add more than one link for the same App Store language, for example one for each Custom Product Page. To change a saved link's language, delete it and add a new one.Once you delete a link and click **Save changes**, any live ads pointing at it break. Keep links in place while campaigns are running.

## Why do I have conversion events named Superwall sw_…?

If you connected before trials, subscriptions, purchases, and checkouts moved to OpenAI's standard events, your ad account has older conversion events named `Superwall sw_…`. Superwall has created the standard ones for you, and the old ones no longer receive events, so nothing is counted twice. Superwall leaves the old ones in place in case a campaign still uses them.

## How do I replace the key or disconnect?

In Superwall, open **Integrations** > **ChatGPT Ads**.- **Replace key**, on the **Ads API key** card, connects a new key. Use it if OpenAI revokes your key. A key for the same ad account keeps your pixel and events. A key for a different ad account sets up conversions for that account instead.
- **Disconnect**, at the top of the page, removes the Ads API key, pixel, Conversions API key, and event selection from Superwall. Superwall stops sending events and importing spend. It asks you to confirm first. The pixel and keys stay in OpenAI Ads Manager, and connecting the same ad account again reuses the pixel.After you disconnect, your ad links still open, but on SuperwallKit 4.18.0 and later, and on Android, new installs stop being matched unless another ad network is set up for the app. If you connect again later, spend imports from the new connection date.

## Where do I see ad spend and ROAS?

Superwall imports your campaign spend, impressions, and clicks from OpenAI once a day, starting from the day you connected. Days follow your ad account's timezone, and spend in other currencies is converted to USD. To see them, click **Analytics**, then **Business**, in Superwall's sidebar and open the **Advertising** charts: [Ad Spend](/docs/dashboard/charts/ad-spend), [ROAS](/docs/dashboard/charts/roas), [CPM](/docs/dashboard/charts/cpm), [CPT](/docs/dashboard/charts/cpt), [CPP](/docs/dashboard/charts/cpp), [Blended CPT](/docs/dashboard/charts/blended-cpt), and [Blended CPI](/docs/dashboard/charts/blended-cpi).Each import re-reads the last 7 days, so OpenAI's later corrections show up.To see revenue by campaign, break down a revenue chart by **Acquisition network** or **Acquisition campaign**. Installs that didn't come from an ad show as `Organic`.