How to test SKAdNetwork
Key takeaways
- On iOS 18+, enable Developer Mode and turn on AdAttributionKit Developer Mode. Conversion windows shrink to 3 minutes (0–3, 3–6, 6–9).
- Development impressions use publisher item identifier
0(AAK) or source App Store ID0(SKAN), and production impressions take priority. - On older iOS, install Apple's testing profile, which works for both frameworks and cuts the wait to about 5 minutes.
- Use a real (not Sandbox) Apple Account, inspect postbacks through an HTTP proxy, and verify signatures with the development keys.
Waiting 24–48 hours for a real postback makes testing slow. Apple provides several tools that cut the wait to minutes. Most work for both SKAdNetwork and AdAttributionKit.
Option 1: Developer Mode (iOS 18 and later)
- Turn on Developer Mode on the test device.
- Open Settings → Developer → Ad Attribution Testing and enable AdAttributionKit Developer Mode. It switches off automatically after two weeks.
- Sign ads as development impressions: set the publisher item identifier to
0in AdAttributionKit, or the source App Store ID to0for SKAdNetwork in-app ads. With Developer Mode on, SKAdNetwork registers all web ads as development impressions. - Install, launch and update the conversion value. Each conversion window shrinks to 3 minutes: 0–3, 3–6 and 6–9 minutes.
Development postbacks aren’t subject to re-engagement rate limits. Production impressions always take priority over development impressions.
Option 2: Development postbacks from Settings (iOS 18.4 and later)
To test your server without running an ad at all: Settings → Developer → Development Postbacks. Enter the bundle ID of an installed app, set the destination URL, edit postback properties such as conversion value, coarse value and country code, then transmit. These postbacks use ad network ID development.adattributionkit and the development signing key apple-development-identifier/1.
Option 3: Testing profile (iOS 14 and later)
Apple’s downloadable testing profile works for both SKAdNetwork and AdAttributionKit. With it installed, the app has five minutes to update its conversion value after registering, and the postback is sent within another five minutes. The profile expires after two weeks.
Option 4: StoreKitTest in Xcode
The StoreKitTest framework lets ad networks validate ad impression signatures and test postback handling in unit tests, without a device flow.
Tips for every method
- Sign in with a production Apple Account. Sandbox accounts aren’t supported.
- Inspect postbacks with an HTTP proxy. Set it under Settings → Wi-Fi → your network → Configure Proxy.
- Verify signatures with the development public keys (
apple-development-identifier/0for end-to-end development postbacks), and the production keyapple-cas-identifier/0in live traffic. - Test every window: update the value in each window, try
lockPostback, and check that later postbacks contain coarse values.
Frequently asked questions
How do I test SKAdNetwork postbacks quickly?
On iOS 18 or later, enable Developer Mode and the AdAttributionKit Developer Mode switch under Settings → Developer → Ad Attribution Testing; it works for SKAdNetwork too and shrinks conversion windows to minutes. On earlier versions, install Apple's testing profile, which reduces postback timing to about five minutes.
Can I test SKAdNetwork with a Sandbox Apple Account?
No. Testing ad attributions requires a production Apple Account. Neither SKAdNetwork nor AdAttributionKit supports Sandbox accounts.
How do I test postbacks without running an ad?
From iOS 18.4, Settings → Developer → Development Postbacks lets you configure and send development postbacks for an installed app to a URL you choose. These postbacks are signed with a separate development key.