AppStance

The AppStance integration sends Superwall subscription and payment events to the AppStance platform for Apple Ads ROAS optimization. Automatically forward iOS transaction data with Apple Search Ads attribution for campaign performance analysis.

This integration is currently in Beta. Features and behavior may change. If you encounter any issues, please reach out to support.

In the Analytics section within Integrations, you can connect your AppStance account to Superwall.

AppStance (formerly Search Ads Optimization / SAO) is an Apple Ads ROAS optimization platform. This integration automatically forwards iOS subscription lifecycle events along with Apple Search Ads attribution data to AppStance, enabling you to measure and optimize your Apple Ads campaign performance.

Required fields

Fill out the following fields and click the Enable AppStance button at the bottom right to save your changes:

  • Integration ID: Must be set to appstance.
  • Anonymous User Behavior: Whether to send or skip events for anonymous users (optional).

Features

  • Apple Ads ROAS Optimization: Connects subscription revenue to Apple Search Ads campaigns
  • Automatic ASA Attribution: Forwards Apple Search Ads attribution fields (org, campaign, ad group, keyword, and more)
  • iOS-Only Filtering: Automatically filters out non-App Store events (Play Store and Stripe events are skipped)
  • Production-Only: Sandbox events are skipped to keep optimization data clean
  • No Authentication Required: The AppStance endpoint is public and does not require API keys
  • Device Identifier Forwarding: Sends IDFV and IDFA when available

Configuration

Optional settings

FieldDescriptionExample
anonymous_user_behaviorWhether to send events for anonymous users"send" or "dontSend"

Example configuration

{
  "anonymous_user_behavior": "send"
}

Event mapping

AppStance uses its own event name mapping, which differs from the standard Superwall event mapping used by other integrations.

Superwall EventPeriod TypeAppStance Event Name
initial_purchaseTRIALfree_trial
initial_purchaseAny otherinitial_purchase
renewalAnyrenewal
cancellationAnycancellation
billing_issueAnybilling_issue
product_changeAnyproduct_change
non_renewing_purchaseAnyinitial_purchase
testAnytest

Event payload

Every event sent to AppStance includes the following fields:

Core fields

FieldTypeDescription
user_idstringUser identifier (uses originalAppUserId or originalTransactionId)
install_timestampnumberTimestamp from purchasedAt
country_codestringCountry code of the user
storestringAlways APP_STORE (non-iOS events are filtered out)
event_unique_idstringUnique event identifier
event_namestringMapped event name (see table above)
event_timestampnumberTimestamp of the event
period_typestringSubscription period type
price_usdnumberTransaction price in USD
proceeds_usdnumberProceeds after store fees in USD
is_trial_conversionbooleanWhether this event is a trial-to-paid conversion

Revenue fields

FieldTypeDescription
revenue_raw_amountnumberPrice in the original purchased currency
revenue_raw_currencystringCurrency code of the original transaction

Transaction fields

FieldTypeDescription
bundle_idstringApp bundle identifier
transaction_idstringTransaction identifier
original_transaction_idstringOriginal transaction identifier
product_idstringProduct identifier
new_product_idstringNew product identifier (for product changes)
is_small_businessbooleanWhether the Small Business Program applies
environmentstringTransaction environment
project_idstringSuperwall project identifier
application_idstringApplication identifier (currently null)

Apple Search Ads attribution

AppStance extracts Apple Search Ads (ASA) attribution data from user attributes and includes it in every event payload. This is the core data that powers Apple Ads ROAS optimization.

FieldDescription
asa_org_idApple Search Ads organization ID
asa_campaign_idCampaign identifier
asa_adgroup_idAd group identifier
asa_keyword_idKeyword identifier
asa_ad_idAd identifier
asa_country_or_regionCountry or region for the campaign
asa_conversion_typeConversion type (e.g., Download, Redownload)
asa_click_dateDate of the ad click
asa_claim_typeClaim type
asa_impression_dateDate of the ad impression

For ASA attribution data to be available, ensure your app has the Apple Search Ads integration configured and that the Superwall SDK is collecting attribution data on the client side.

Device identifiers

AppStance includes device identifiers from user attributes when available:

FieldDescription
idfvIdentifier for Vendor
idfaIdentifier for Advertisers (requires ATT consent)

These identifiers are extracted from userAttributes on the event. If your app collects IDFA (after obtaining App Tracking Transparency consent), it will be forwarded automatically.

Sandbox handling

AppStance is a production-only integration. Sandbox events are automatically skipped and are not sent to AppStance. This ensures that test transactions do not affect your ROAS optimization data.

Additionally, only App Store (iOS) events are forwarded. Events originating from Google Play Store or Stripe are filtered out, since AppStance is focused exclusively on Apple Ads optimization.

User identification

The integration identifies users using the following hierarchy:

  1. Primary: originalAppUserId (if available)
  2. Fallback: originalTransactionId (always present)

If anonymous_user_behavior is set to "dontSend", events for users without a resolved identity are skipped.

Testing the integration

1. Trigger a test event

Use the test event type to verify connectivity. The integration maps test events to the test event name in AppStance.

2. Trigger production events

Since AppStance skips sandbox events, you will need to test with production transactions:

  • iOS: Use TestFlight with a sandbox Apple ID. Note that StoreKit Configuration files do not generate App Store Server Notifications, so webhooks and downstream integrations will not fire.
  • Verify that events appear in your AppStance dashboard.

3. Verify ASA attribution

Confirm that Apple Search Ads attribution fields are populated:

  1. Ensure the Apple Search Ads integration is enabled in Superwall.
  2. Install your app via an Apple Search Ad (or use a test campaign).
  3. Make a purchase and check that asa_campaign_id and related fields are present in AppStance.

Best practices

  1. Enable Apple Search Ads: Ensure the Apple Search Ads integration is configured so that ASA attribution data flows through to AppStance.
  2. Collect IDFA: Request App Tracking Transparency consent to maximize device identifier coverage for attribution matching.
  3. Set User IDs Early: Send originalAppUserId to Superwall as early as possible so that AppStance can consistently identify users across events.
  4. Use Anonymous User Filtering: Set anonymous_user_behavior to "dontSend" if you want to exclude events that lack a resolved user identity.
  5. Monitor Production Data: Since sandbox events are filtered, verify your integration using production transactions or the test event type.

Troubleshooting

Events not appearing in AppStance

  1. Check Platform: Only iOS (App Store) events are sent. Play Store and Stripe events are automatically filtered out.
  2. Check Environment: Sandbox events are skipped. Ensure you are testing with production transactions.
  3. Check Anonymous Users: If anonymous_user_behavior is "dontSend", events for anonymous users are skipped.

Missing ASA attribution data

  1. Check Apple Search Ads Integration: Ensure the Apple Search Ads integration is enabled in Superwall settings.
  2. Check SDK Version: The Superwall SDK must be collecting ASA attribution data on the client side.
  3. Check Timing: There is a delay between app install via a search ad and when Apple sends attribution data. Events that fire before attribution data arrives will have empty ASA fields.

Events not mapping correctly

  1. Check Event Type: Verify the Superwall event name matches one of the supported types in the event mapping table.
  2. Check Period Type: For initial_purchase events, the period type determines whether the event maps to free_trial or initial_purchase.
  3. Non-renewing purchases: These are mapped to initial_purchase in AppStance regardless of period type.

How is this guide?

On this page