Documentation
Apple Search Ads
Enrich your attribution data with Apple Search Ads campaign and keyword information. The SDK automatically detects installs from Search Ads — the dashboard configuration connects your account for richer data.
How attribution works
- On iOS 14.3+, the AppSprint SDK calls the
AdServicesframework to fetch an attribution token on first launch. - On older iOS versions, the SDK falls back to the legacy
iAdframework. - The token is sent to the AppSprint API along with the install payload. The API resolves it with Apple's attribution endpoint to determine whether the install came from a Search Ads campaign.
- When an Apple Search Ads account is connected in the dashboard, the API enriches the attribution with campaign name, ad group, keyword, and cost data from the Apple Search Ads API.
SDK setup
No additional SDK code is required. The iOS and React Native SDKs automatically detect and transmit the Apple Search Ads attribution token during configure(). Make sure your app includes the AdServices.framework (linked automatically in most setups).
Dashboard configuration
To connect your Apple Search Ads account and unlock campaign-level data:
- Go to Dashboard → Your App → Integrations → Apple Search Ads.
- Copy the public key displayed on the page.
- In Apple Search Ads → Settings → API, upload the public key and create an API certificate.
- Download the certificate file and upload it back in the AppSprint dashboard along with your
orgIdandclientId. - Once connected, the dashboard's attribution view will display campaign name, ad group, keyword, and match type for Search Ads installs.
Attribution data
When Apple Search Ads attribution is resolved, the following fields are available on the attribution object:
| Field | Description |
|---|---|
| campaignId | Apple Search Ads campaign ID |
| campaignName | Campaign name from the connected account |
| adGroupId | Ad group ID |
| adGroupName | Ad group name |
| keyword | Search keyword that triggered the ad |
| keywordMatchType | Broad, exact, or search match |
| clickDate | Timestamp of the ad click |
| conversionType | Download or redownload |