Overview
Attribution tells you how users discovered your app. SpendOwl fetches attribution data from Apple Search Ads and enriches it with campaign, ad group, and keyword details.Automatic Attribution
Attribution is automatically fetched when you callconfigure(). For most apps, you don’t need to do anything else—the data flows to your dashboard automatically.
Manual Attribution Access
Use theattribution() method to access attribution data in your app:
- async/await
- Completion Handler
Attribution Result
TheAttributionResult struct contains all available attribution data:
Attribution Status
Use Cases
Display Campaign Info
Show users which campaign brought them:Analytics Integration
Send attribution to your analytics platform:A/B Testing by Source
Customize experience based on acquisition source:Caching
Attribution data is fetched once and cached:- First call fetches from Apple and SpendOwl servers
- Subsequent calls return the cached result
- Cache persists across app launches
Attribution doesn’t change after install, so caching is safe.
Error Handling
Handle attribution errors gracefully:Next Steps
User Identity
Link attribution to user accounts
AttributionResult Reference
See all attribution fields