At a glance: Learn about the AppsFlyer attribution link structure and parameters for CTV, PC, and console platforms. Note: For Android and iOS apps, including Android PC games, use mobile attribution link instructions.
Overview
CTV, PC, and console platform direct attribution links allow advertisers to redirect users and collect data following clicks. These direct attribution links are AppsFlyer links that support redirection and attribution for a single destination app on a single platform at a time. The redirection destination is the value of the af_r parameter included in the link.
Note: For Android and iOS apps, including Android PC games, use mobile attribution link instructions.
Attribution links can be directly created by you and placed behind ads. To create such links, follow the instructions in this article.
Alternatively, links can be created via S2S using the Engagements API. This requires some developer work. Note: Links created via S2S can also collect impression data.
Attribution link
Attribution link structure | |
---|---|
Base URL | engagements.appsflyer.com/v1.0/c2s/click/app/ |
Mandatory path parameters |
|
Mandatory query parameters |
|
Other parameters | See all parameters |
URL structure | https://engagements.appsflyer.com/v1.0/c2s/click/app/{platform}/{app_id}?af_media_source={media_source}&af_campaign_id={campaign_id}&af_r={app_store_url} |
Sample URL | https://engagements.appsflyer.com/v1.0/c2s/click/app/steam/123456?af_media_source=aloha&af_campaign_id=1234&af_r=https%3A%2F%2Fstore.steampowered.com%2Fapp%2F440%2FTest_app2%2F%3Futm_term%3Dhello |
Parameters
Parameter | Display name in Raw data export and Pull API | Description | Field type |
---|---|---|---|
platform | Platform |
|
String |
app_id | App ID |
|
String |
af_media_source | Media Source | This is the unique partner identifier as defined on the AppsFlyer platform. The following special characters are not allowed: ;, *, !, @, #, ?, $, ^, :, &, ~, `, =, +, ’, >, <, /, {, }, %. |
String |
af_campaign | Campaign | Campaign name | String |
af_campaign_id | Campaign ID | Campaign ID | String |
af_request_id | N/A | An identifier that uniquely identifies a request by a partner. | String |
af_adset | Adset | Adset name | String |
af_adset_id | Adset ID | Adset ID | String |
af_ad | Ad | Ad name | String |
af_ad_id | Ad ID | Ad ID | String |
af_campaign_type | Campaign Type | Either:
|
String |
af_prt | Partner |
|
String |
af_siteid | Site ID | Unique ID that identifies the publisher that displays the ad |
String |
af_sub_siteid | Sub Site ID | Ad sub-network/publisher ID |
String |
af_click_id | N/A | Ad network unique transaction identifier |
String |
af_lookback_window | N/A |
|
String |
af_ad_placement | N/A | Ad network unique transaction identifier |
String |
af_ad_type | Ad Type |
|
String |
af_channel | Channel | The media source channel through which the ads are distributed, for example, UAC_Search, UAC_Display, Instagram, Meta Audience Network, etc. |
String |
af_model | Device Model | Device model |
String 64 |
af_os_version | N/A |
|
String |
af_device_id_type | N/A | Device identifier type. Either:
|
String |
af_device_id_value | N/A | Device identifier type |
String |
af_r | N/A |
Note: Ensure that the URL domain for af_r is included in your redirect allowlist. |
String |
Traits and limitations
Lookback window | With probabilistic modeling, a fixed lookback window of 24 hours for clicks and impressions is used. The af_lookback_window value is ignored. |
Agency attribution |
|