---
title: AdServices
framework: AdServices
role: collection
role_heading: Framework
platforms: [iOS 14.3+, iPadOS 14.3+, Mac Catalyst 14.3+, macOS 11.1+, visionOS 1.0+]
path: adservices
---

# AdServices

Attribute app-download campaigns that originate from the App Store on iOS devices.

## Overview

Overview The Apple Ads Attribution API is a solution that combines the AdServices framework and a RESTful API for server-side communication with Apple’s attribution server. The API retrieves Apple Ads attribution data from Apple Ads campaigns. You can measure attribution data using specific Apple Ads campaign metadata against the performance of Apple Ads campaigns. The following diagram illustrates using the AdServices framework in combination with a RESTful endpoint to retrieve attribution data:

In step 1, request a token from the AdServices framework. In step 2, the AdServices framework generates a token. In step 3, use the token in a RESTful API request to retrieve an attribution record from Apple’s attribution server. For more detail, see attributionToken(). In step 4, the attribution record that returns has key-value pairs that correspond to your campaigns in the Apple Ads Campaign Management API. For more detail, see Attribution payload descriptions.

## Topics

### Essentials

- [Changelog](adservices/changelog.md)

### Tokens

- [AAAttribution](adservices/aaattribution.md)

### Errors

- [AAAttributionError](adservices/aaattributionerror.md)
- [AAAttributionErrorDomain](adservices/aaattributionerrordomain.md)
- [AAAttributionError.Code](adservices/aaattributionerror/code.md)
