# AppsFlyer

AppsFlyer is a SaaS mobile marketing analytics and attribution platform.

AppsFlyer integration replicates data using the [AppsFlyer Raw Data Reports V5 API](https://support.appsflyer.com/hc/en-us/articles/360007530258-Using-Pull-API-raw-data).

See the [Schema](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Appsflyer.htm#Schema) section for a list of objects available for replication.

## Preparing for authentication

To access your data, you need to authenticate the connection with your account credentials.

Information noteMake sure that the account you use has read access to the tables you want to fetch.

To retrieve your app ID:

1. Log into your AppsFlyer account.
2. In the Pending Apps section, locate and copy your app ID depending on the app's type:
   * iOS: This is the iTunes ID of your app. Example: id987654321.
   * Android: This is the package name registered on AppsFlyer. For example: If the package is registered as com.yourcompany.test, the ID is com.yourcompany.test.
   * Windows: This is the Windows app ID. For example: f1e2d3c4b5a6.

To retrieve your API key:

1. You must be the Account Owner in AppsFlyer to complete this step.
2. In the list of apps, click the app you want to replicate data from. This opens the app’s dashboard page.
3. Under the Integration section, click API Access.
4. Copy the key from the Your API Key field.

## Creating the connection

For more information, see [Connecting to SaaS applications](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/Landing/connecting-web-applications.htm).

1. Fill in the required connection properties.

2. Provide a name for the connection in Connection name.

3. Select Open connection metadata to define metadata for the connection when it has been created.

4. Click Create.

Connection settings

| Setting | Description |
| --- | --- |
| Data gateway | Select a Data Movement gateway if required by your use case.<br><br>Information note<br><br>This field is not available with the Qlik Talend Cloud Starter subscription, as it does not support Data Movement gateway. If you have another subscription tier and do not want to use Data Movement gateway, select None.<br><br>For information on the benefits of Data Movement gateway and use cases that require it, see [Qlik Data Gateway - Data Movement](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Gateways/replication-gateway.htm). |
| Start Date | Enter the date, in the format `MM/DD/YYYY`, from which the data must be replicated from your source to your target. |
| API Token | API token. |
| App ID | App ID. |

## Schema

Information note

Schemas and naming conventions can change from version to version. It is recommended to verify your version before continuing.

Depending on your destination, table and column names may not appear as they are outlined below.

### in\_app\_events

The `in_app_events` table contains information about in-app events for iOS and Android apps.

| **Replication Method** | CDC |
| --- | --- |
| **Primary Keys** | appsflyer\_id<br><br>event\_name<br><br>event\_time |
| **Replication Key** | event\_time |
| **Useful links** | [AppsFlyer documentation](https://support.appsflyer.com/hc/en-us/articles/208387843-Raw-Data-Reports-V5-)<br><br>[AppsFlyer API method](https://dev.appsflyer.com/hc/reference/get_app-id-in-app-events-report-v5 "Opens in new tab: AppsFlyer API method") |

in\_app\_events table schema

| **advertising\_id**<br><br><br>STRING |
| --- |
| **af\_ad**<br><br><br>STRING |
| **af\_ad\_id**<br><br><br>STRING |
| **af\_ad\_type**<br><br><br>STRING |
| **af\_adset**<br><br><br>STRING |
| **af\_adset\_id**<br><br><br>STRING |
| **af\_attribution\_lookback**<br><br><br>STRING |
| **af\_c\_id**<br><br><br>STRING |
| **af\_channel**<br><br><br>STRING |
| **af\_cost\_currency**<br><br><br>STRING |
| **af\_cost\_model**<br><br><br>STRING |
| **af\_cost\_value**<br><br><br>STRING |
| **af\_keywords**<br><br><br>STRING |
| **af\_prt**<br><br><br>STRING |
| **af\_reengagement\_window**<br><br><br>STRING |
| **af\_siteid**<br><br><br>STRING |
| **af\_sub1**<br><br><br>STRING |
| **af\_sub2**<br><br><br>STRING |
| **af\_sub3**<br><br><br>STRING |
| **af\_sub4**<br><br><br>STRING |
| **af\_sub5**<br><br><br>STRING |
| **af\_sub\_siteid**<br><br><br>STRING |
| **android\_id**<br><br><br>STRING |
| **app\_id**<br><br><br>STRING |
| **app\_name**<br><br><br>STRING |
| **app\_version**<br><br><br>STRING |
| **appsflyer\_id**<br><br><br>STRING |
| **attributed\_touch\_time**<br><br><br>DATE-TIME |
| **attributed\_touch\_type**<br><br><br>STRING |
| **bundle\_id**<br><br><br>STRING |
| **campaign**<br><br><br>STRING |
| **carrier**<br><br><br>STRING |
| **city**<br><br><br>STRING |
| **contributor1\_af\_prt**<br><br><br>STRING |
| **contributor1\_campaign**<br><br><br>STRING |
| **contributor1\_media\_source**<br><br><br>STRING |
| **contributor1\_touch\_time**<br><br><br>STRING |
| **contributor1\_touch\_type**<br><br><br>STRING |
| **contributor2\_af\_prt**<br><br><br>STRING |
| **contributor2\_campaign**<br><br><br>STRING |
| **contributor2\_media\_source**<br><br><br>STRING |
| **contributor2\_touch\_time**<br><br><br>STRING |
| **contributor2\_touch\_type**<br><br><br>STRING |
| **contributor3\_af\_prt**<br><br><br>STRING |
| **contributor3\_campaign**<br><br><br>STRING |
| **contributor3\_media\_source**<br><br><br>STRING |
| **contributor3\_touch\_time**<br><br><br>STRING |
| **contributor3\_touch\_type**<br><br><br>STRING |
| **country\_code**<br><br><br>STRING |
| **customer\_user\_id**<br><br><br>INTEGER, STRING |
| **device\_type**<br><br><br>STRING |
| **dma**<br><br><br>STRING |
| **event\_name**<br><br><br>STRING |
| **event\_revenue**<br><br><br>STRING |
| **event\_revenue\_currency**<br><br><br>STRING |
| **event\_revenue\_usd**<br><br><br>STRING |
| **event\_source**<br><br><br>STRING |
| **event\_time**<br><br><br>DATE-TIME |
| **event\_value**<br><br><br>STRING |
| **http\_referrer**<br><br><br>STRING |
| **idfa**<br><br><br>STRING |
| **idfv**<br><br><br>STRING |
| **imei**<br><br><br>STRING |
| **install\_time**<br><br><br>DATE-TIME |
| **ip**<br><br><br>STRING |
| **is\_primary\_attribution**<br><br><br>BOOLEAN |
| **is\_receipt\_validated**<br><br><br>BOOLEAN |
| **is\_retargeting**<br><br><br>BOOLEAN |
| **language**<br><br><br>STRING |
| **media\_source**<br><br><br>STRING |
| **operator**<br><br><br>STRING |
| **original\_url**<br><br><br>STRING |
| **os\_version**<br><br><br>STRING |
| **platform**<br><br><br>STRING |
| **postal\_code**<br><br><br>STRING |
| **region**<br><br><br>STRING |
| **retargeting\_conversion\_type**<br><br><br>STRING |
| **sdk\_version**<br><br><br>STRING |
| **state**<br><br><br>STRING |
| **user\_agent**<br><br><br>STRING |
| **wifi**<br><br><br>BOOLEAN |

### installations

The `installations` table contains information about iOS and Android app installations.

| **Replication Method** | CDC |
| --- | --- |
| **Primary Keys** | appsflyer\_id<br><br>event\_name<br><br>event\_time |
| **Replication Key** | event\_time |
| **Useful links** | [AppsFlyer documentation](https://support.appsflyer.com/hc/en-us/articles/208387843-Raw-Data-Reports-V5-)<br><br>[AppsFlyer API method](https://dev.appsflyer.com/hc/reference/get_app-id-installs-report-v5 "Opens in new tab: AppsFlyer API method") |

installations table schema

| **advertising\_id**<br><br><br>STRING |
| --- |
| **af\_ad**<br><br><br>STRING |
| **af\_ad\_id**<br><br><br>STRING |
| **af\_ad\_type**<br><br><br>STRING |
| **af\_adset**<br><br><br>STRING |
| **af\_adset\_id**<br><br><br>STRING |
| **af\_attribution\_lookback**<br><br><br>STRING |
| **af\_c\_id**<br><br><br>STRING |
| **af\_channel**<br><br><br>STRING |
| **af\_cost\_currency**<br><br><br>STRING |
| **af\_cost\_model**<br><br><br>STRING |
| **af\_cost\_value**<br><br><br>STRING |
| **af\_keywords**<br><br><br>STRING |
| **af\_prt**<br><br><br>STRING |
| **af\_reengagement\_window**<br><br><br>STRING |
| **af\_siteid**<br><br><br>STRING |
| **af\_sub1**<br><br><br>STRING |
| **af\_sub2**<br><br><br>STRING |
| **af\_sub3**<br><br><br>STRING |
| **af\_sub4**<br><br><br>STRING |
| **af\_sub5**<br><br><br>STRING |
| **af\_sub\_siteid**<br><br><br>STRING |
| **android\_id**<br><br><br>STRING |
| **app\_id**<br><br><br>STRING |
| **app\_name**<br><br><br>STRING |
| **app\_version**<br><br><br>STRING |
| **appsflyer\_id**<br><br><br>STRING |
| **attributed\_touch\_time**<br><br><br>DATE-TIME |
| **attributed\_touch\_type**<br><br><br>STRING |
| **bundle\_id**<br><br><br>STRING |
| **campaign**<br><br><br>STRING |
| **carrier**<br><br><br>STRING |
| **city**<br><br><br>STRING |
| **contributor1\_af\_prt**<br><br><br>STRING |
| **contributor1\_campaign**<br><br><br>STRING |
| **contributor1\_media\_source**<br><br><br>STRING |
| **contributor1\_touch\_time**<br><br><br>STRING |
| **contributor1\_touch\_type**<br><br><br>STRING |
| **contributor2\_af\_prt**<br><br><br>STRING |
| **contributor2\_campaign**<br><br><br>STRING |
| **contributor2\_media\_source**<br><br><br>STRING |
| **contributor2\_touch\_time**<br><br><br>STRING |
| **contributor2\_touch\_type**<br><br><br>STRING |
| **contributor3\_af\_prt**<br><br><br>STRING |
| **contributor3\_campaign**<br><br><br>STRING |
| **contributor3\_media\_source**<br><br><br>STRING |
| **contributor3\_touch\_time**<br><br><br>STRING |
| **contributor3\_touch\_type**<br><br><br>STRING |
| **country\_code**<br><br><br>STRING |
| **customer\_user\_id**<br><br><br>INTEGER, STRING |
| **device\_type**<br><br><br>STRING |
| **dma**<br><br><br>STRING |
| **event\_name**<br><br><br>STRING |
| **event\_revenue**<br><br><br>STRING |
| **event\_revenue\_currency**<br><br><br>STRING |
| **event\_revenue\_usd**<br><br><br>STRING |
| **event\_source**<br><br><br>STRING |
| **event\_time**<br><br><br>DATE-TIME |
| **event\_value**<br><br><br>STRING |
| **http\_referrer**<br><br><br>STRING |
| **idfa**<br><br><br>STRING |
| **idfv**<br><br><br>STRING |
| **imei**<br><br><br>STRING |
| **install\_time**<br><br><br>DATE-TIME |
| **ip**<br><br><br>STRING |
| **is\_primary\_attribution**<br><br><br>BOOLEAN |
| **is\_receipt\_validated**<br><br><br>BOOLEAN |
| **is\_retargeting**<br><br><br>BOOLEAN |
| **language**<br><br><br>STRING |
| **media\_source**<br><br><br>STRING |
| **operator**<br><br><br>STRING |
| **original\_url**<br><br><br>STRING |
| **os\_version**<br><br><br>STRING |
| **platform**<br><br><br>STRING |
| **postal\_code**<br><br><br>STRING |
| **region**<br><br><br>STRING |
| **retargeting\_conversion\_type**<br><br><br>STRING |
| **sdk\_version**<br><br><br>STRING |
| **state**<br><br><br>STRING |
| **user\_agent**<br><br><br>STRING |
| **wifi**<br><br><br>BOOLEAN |

### organic\_installs

The `organic_installs` table contains information about organic installs.

| **Replication Method** | CDC |
| --- | --- |
| **Primary Keys** | appsflyer\_id<br><br>event\_name<br><br>event\_time |
| **Replication Key** | event\_time |
| **Useful links** | [AppsFlyer documentation](https://support.appsflyer.com/hc/en-us/articles/208387843-Raw-Data-Reports-V5-)<br><br>[AppsFlyer API method](https://dev.appsflyer.com/hc/reference/get_app-id-organic-installs-report-v5 "Opens in new tab: AppsFlyer API method") |

organic\_installs table schema

| **advertising\_id**<br><br><br>STRING |
| --- |
| **af\_ad**<br><br><br>STRING |
| **af\_ad\_id**<br><br><br>STRING |
| **af\_ad\_type**<br><br><br>STRING |
| **af\_adset**<br><br><br>STRING |
| **af\_adset\_id**<br><br><br>STRING |
| **af\_attribution\_lookback**<br><br><br>STRING |
| **af\_c\_id**<br><br><br>STRING |
| **af\_channel**<br><br><br>STRING |
| **af\_cost\_currency**<br><br><br>STRING |
| **af\_cost\_model**<br><br><br>STRING |
| **af\_cost\_value**<br><br><br>STRING |
| **af\_keywords**<br><br><br>STRING |
| **af\_prt**<br><br><br>STRING |
| **af\_reengagement\_window**<br><br><br>STRING |
| **af\_siteid**<br><br><br>STRING |
| **af\_sub1**<br><br><br>STRING |
| **af\_sub2**<br><br><br>STRING |
| **af\_sub3**<br><br><br>STRING |
| **af\_sub4**<br><br><br>STRING |
| **af\_sub5**<br><br><br>STRING |
| **af\_sub\_siteid**<br><br><br>STRING |
| **android\_id**<br><br><br>STRING |
| **app\_id**<br><br><br>STRING |
| **app\_name**<br><br><br>STRING |
| **app\_version**<br><br><br>STRING |
| **appsflyer\_id**<br><br><br>STRING |
| **attributed\_touch\_time**<br><br><br>DATE-TIME |
| **attributed\_touch\_type**<br><br><br>STRING |
| **bundle\_id**<br><br><br>STRING |
| **campaign**<br><br><br>STRING |
| **carrier**<br><br><br>STRING |
| **city**<br><br><br>STRING |
| **contributor1\_af\_prt**<br><br><br>STRING |
| **contributor1\_campaign**<br><br><br>STRING |
| **contributor1\_media\_source**<br><br><br>STRING |
| **contributor1\_touch\_time**<br><br><br>STRING |
| **contributor1\_touch\_type**<br><br><br>STRING |
| **contributor2\_af\_prt**<br><br><br>STRING |
| **contributor2\_campaign**<br><br><br>STRING |
| **contributor2\_media\_source**<br><br><br>STRING |
| **contributor2\_touch\_time**<br><br><br>STRING |
| **contributor2\_touch\_type**<br><br><br>STRING |
| **contributor3\_af\_prt**<br><br><br>STRING |
| **contributor3\_campaign**<br><br><br>STRING |
| **contributor3\_media\_source**<br><br><br>STRING |
| **contributor3\_touch\_time**<br><br><br>STRING |
| **contributor3\_touch\_type**<br><br><br>STRING |
| **country\_code**<br><br><br>STRING |
| **customer\_user\_id**<br><br><br>INTEGER, STRING |
| **device\_type**<br><br><br>STRING |
| **dma**<br><br><br>STRING |
| **event\_name**<br><br><br>STRING |
| **event\_revenue**<br><br><br>STRING |
| **event\_revenue\_currency**<br><br><br>STRING |
| **event\_revenue\_usd**<br><br><br>STRING |
| **event\_source**<br><br><br>STRING |
| **event\_time**<br><br><br>DATE-TIME |
| **event\_value**<br><br><br>STRING |
| **http\_referrer**<br><br><br>STRING |
| **idfa**<br><br><br>STRING |
| **idfv**<br><br><br>STRING |
| **imei**<br><br><br>STRING |
| **install\_time**<br><br><br>DATE-TIME |
| **ip**<br><br><br>STRING |
| **is\_primary\_attribution**<br><br><br>BOOLEAN |
| **is\_receipt\_validated**<br><br><br>BOOLEAN |
| **is\_retargeting**<br><br><br>BOOLEAN |
| **language**<br><br><br>STRING |
| **media\_source**<br><br><br>STRING |
| **operator**<br><br><br>STRING |
| **original\_url**<br><br><br>STRING |
| **os\_version**<br><br><br>STRING |
| **platform**<br><br><br>STRING |
| **postal\_code**<br><br><br>STRING |
| **region**<br><br><br>STRING |
| **retargeting\_conversion\_type**<br><br><br>STRING |
| **sdk\_version**<br><br><br>STRING |
| **state**<br><br><br>STRING |
| **user\_agent**<br><br><br>STRING |
| **wifi**<br><br><br>BOOLEAN |