# AppsFlyer (v1)

Information note **AppsFlyer is supported by the Singer community**   
This integration is powered by [Singer's](https://www.singer.io/) AppsFlyer tap. For support, [visit the GitHub repo](https://github.com/singer-io/tap-appsflyer) or [join the Singer Slack](https://singer-slackin.herokuapp.com/).

## AppsFlyer integration summary

Stitch’s 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) . Refer to the [Schema](https://help.qlik.com/en-US/stitch/integrations/saas/appsflyer#schema) section for a list of objects available for replication.

## AppsFlyer feature snapshot

A high-level look at Stitch's AppsFlyer (v1) integration, including release status, useful links, and the features supported in Stitch.

| **STITCH** |  |  |  |
| --- | --- | --- | --- |
| **[Release status](https://help.qlik.com/en-US/stitch/integrations/identify-an-integration-version)** | Released on December 11, 2017 | **Supported by**<br><br>the Info icon<br><br>Indicates if the integration is supported by Stitch or the Singer community. | [Singer Community](https://www.singer.io/) |
| **Stitch plan**<br><br>the Info icon<br><br>The type of Stitch plan required to use the integration. | Standard | **[API availability](https://help.qlik.com/en-US/stitch/developers/stitch-connect/guides/source-destination-reference)**<br><br>the Info icon<br><br>Indicates if the integration is available as a source in Stitch Connect. | the Success icon<br><br>This version of the integration is available via the API.<br><br><br>Available |
| **Singer GitHub repository** | Not applicable |  |  |
| **REPLICATION SETTINGS** |  |  |  |
| **[Anchor Scheduling](https://help.qlik.com/en-US/stitch/replication/replication-scheduling/anchor-scheduling)**<br><br>the Info icon<br><br>A type of replication scheduling where an integration's Replication Frequency is anchored to a time you select. | the Success icon<br><br>This feature is supported for this version of the integration.<br><br><br>Supported | **[Advanced Scheduling](https://help.qlik.com/en-US/stitch/replication/replication-scheduling/advanced-scheduling)**<br><br>the Info icon<br><br>A type of replication scheduling that allows you to specify granular start times for data extraction using cron expressions. | the Success icon<br><br>This feature is supported for this version of the integration.<br><br><br>Supported |
| **Table-level reset**<br><br>the Info icon<br><br>Indicates if data can be reset at the table level. If unsupported, data can only be reset at the integration level. | the Remove icon<br><br>Table-level resets are not supported for this integration. Resets are only supported at the integration level.<br><br><br>Unsupported | **[Configurable Replication Methods](https://help.qlik.com/en-US/stitch/replication/replication-methods)**<br><br>the Info icon<br><br>Indicates if Replication Methods can be defined by you for tables in the integration. | the Remove icon<br><br>Configurable Replication Methods are not supported for this integration. Stitch will use pre-defined replication methods for tables you set to replicate.<br><br><br>Unsupported |
| **DATA SELECTION** |  |  |  |
| **Table selection**<br><br>the Info icon<br><br>The ability to select individual tables for replication in the Stitch interface. If table selection is unavailable, all tables and all the columns they contain will be set to replicate by default. | the Success icon<br><br>This feature is supported for this version of the integration.<br><br><br>Supported | **Column selection**<br><br>the Info icon<br><br>The ability to select individual columns for replication in the Stitch interface. If column selection is unavailable, all columns will be set to replicate by default. | the Success icon<br><br>This feature is supported for this version of the integration.<br><br><br>Supported |
| **Select all**<br><br>the Info icon<br><br>Indicates if the integration supports selecting all available tables and columns. | the Success icon<br><br>Supported<br><br><br>Supported |  |  |
| **TRANSPARENCY** |  |  |  |
| **[Extraction Logs](https://help.qlik.com/en-US/stitch/replication/extractions/integration-extraction-logs)**<br><br>the Info icon<br><br>Logs detailing the Extraction phase of the replication process for a given integration. Includes error info, should an error occur. | the Success icon<br><br>This feature is supported for this version of the integration.<br><br><br>Supported | **[Loading Reports](https://help.qlik.com/en-US/stitch/replication/integration-loading-reports)**<br><br>the Info icon<br><br>Reports detailing the Loading phase of the replication process for a given integration. Includes the number of rows loaded for each table and error info, should an error occur. | the Success icon<br><br>This feature is supported for this version of the integration.<br><br><br>Supported |

## Connecting AppsFlyer

### AppsFlyer setup requirements

To set up AppsFlyer in Stitch, you need:

* **To be the AppsFlyer Account Owner.** Only Account Owners have access to API credentials in AppsFlyer, which is required to set up the integration.

* **Access to raw data exports in AppsFlyer.** Stitch’s AppsFlyer integration uses the [Raw Data Report API](https://support.appsflyer.com/hc/en-us/articles/208387843-Raw-Data-Reports-V5-) to replicate installation and in-app event data. Access to raw data is an AppsFlyer premium feature, which may only be available on their higher tiers.

  To determine if you have access to raw data pulling, [follow these instructions](https://support.appsflyer.com/hc/en-us/articles/207034366-API-Policy#2-raw-data-reports-via-pull-api) in AppsFlyer’s documentation.

### Step 1: Retrieve the app ID

Sign into your AppsFlyer account.

Depending on the app’s type (iOS, Android, or Windows), the app ID format will vary:

* **iOS** - This will be the iTunes ID of your app. Example: `id987654321`.
* **Android** - This will be the package name registered on AppsFlyer. For example: If the package is registered as `com.stitchdata.test`, the ID would be `com.stitchdata.test`.
* **Windows** - This will be the Windows app ID. For example: `f1e2d3c4b5a6`

The location of each type of app ID is highlighted in the image below:

![AppsFlyer app ID locations](https://help.qlik.com/en-US/stitch/images/integrations/appsflyer-app-ids.png)AppsFlyer app ID locationsAppsFlyer app ID locations

### Step 2: Retrieve the account's API key

Information note You must be the Account Owner in AppsFlyer to complete this step.

1. In the list of apps, click the app you want to replicate data from. This will open the app’s dashboard page.
2. Under the **Integration** section, click **API Access.**
3. Copy the key from the **Your API Key** field.

### Step 3: Add AppsFlyer as a Stitch data source

1. [Sign into your Stitch account](https://app.stitchdata.com/).

2. On the Stitch Dashboard page, click the **Add Integration** button.

3. Click the **AppsFlyer** icon.

4. Enter a name for the integration. This is the name that will display on the Stitch Dashboard for the integration; it’ll also be used to create the schema in your destination.

   For example, the name “Stitch AppsFlyer” would create a schema called `stitch_appsflyer` in the destination. **Note**: Schema names cannot be changed after you save the integration.

5. In the **App ID** field, enter the ID of the app you want to replicate data from.

6. In the **API Token** field, paste the API key from [Step 2](https://help.qlik.com/en-US/stitch/integrations/saas/appsflyer#retrieve-your-api-key).

### Step 4: Define the historical replication start date

The Sync Historical Data setting defines the starting date for your AppsFlyer integration. This means that data **equal to or newer than this date** will be replicated to your data warehouse.

Change this setting if you want to replicate data beyond AppsFlyer’s default setting of **60 days**. For a detailed look at historical replication jobs, check out the [Syncing Historical SaaS Data](https://help.qlik.com/en-US/stitch/replication/syncing-historical-saas-data-resetting-replication-keys) guide.

**Note**: AppsFlyer imposes limits on date ranges for replicating historical data. If the **Start Date** is more than 90 days from the current date, replication will be unsuccessful. Refer to the [Historical AppsFlyer data limitations](https://help.qlik.com/en-US/stitch/integrations/saas/appsflyer#historical-appsflyer-data-limitations) section for more info.

### Step 5: Create a replication schedule

Information note Replication schedules affect the time Extraction begins, not the time to data loaded. Refer to the [Replication Scheduling](https://help.qlik.com/en-US/stitch/replication/replication-scheduling) documentation for more information.

In the **Replication Frequency** section, you’ll create the integration’s [replication schedule](https://help.qlik.com/en-US/stitch/replication/replication-scheduling). An integration’s replication schedule determines how often Stitch runs a replication job, and the time that job begins.

AppsFlyer integrations support the following replication scheduling methods:

* [Replication Frequency](https://help.qlik.com/en-US/stitch/replication/replication-scheduling/replication-frequency)

* [Anchor Scheduling](https://help.qlik.com/en-US/stitch/replication/replication-scheduling/anchor-scheduling)

* [Advanced Scheduling using Cron](https://help.qlik.com/en-US/stitch/replication/replication-scheduling/advanced-scheduling) (Advanced or Premium plans only)

To keep your row usage low, consider setting the integration to replicate less frequently. See the [Understanding and Reducing Your Row Usage guide](https://help.qlik.com/en-US/stitch/getting-started/understanding-stitch-usage) for tips on reducing your usage.

### Step 6: Set objects to replicate

Information note **Is an object missing or not replicating?** Verify that the object meets the requirements for [selection](https://help.qlik.com/en-US/stitch/replication/extractions/data-selection/setting-tables-and-columns-to-replicate#selection-requirements) and [replication](https://help.qlik.com/en-US/stitch/replication/extractions/data-selection/setting-tables-and-columns-to-replicate#replication-requirements).

The last step is to select the tables and columns you want to replicate. [Learn about the available tables for this integration.](https://help.qlik.com/en-US/stitch/integrations/saas/appsflyer#schema)

**Note**: If a replication job is currently in progress, new selections won’t be used until the next job starts.

* Selection options
* Individual tables and columns
* All tables and columns

For AppsFlyer integrations, you can select:

1. **Individual tables and columns**

2. **All tables and columns**

Click the tabs to view instructions for each selection method.

1. In the Integration Details page, click the **Tables to Replicate** tab.

2. Locate a table you want to replicate.

3. To track a table, click the **checkbox** next to the table’s name. A blue checkmark means the table is set to replicate.

4. To track a column, click the **checkbox** next to the column’s name. A blue checkmark means the column is set to replicate.

5. Repeat this process for all the tables and columns you want to replicate.

Information note **Important**: Using the **Select All** feature will overwrite any previous selections. However, selections aren’t final until **Finalize Your Selections** is clicked. Clicking **Cancel** will restore your previous selections. Refer to the [Select All guide](https://help.qlik.com/en-US/stitch/replication/extractions/data-selection/setting-tables-and-columns-to-replicate#set-all-data-to-replicate) for more info about this feature.

1. Click into the integration from the Stitch Dashboard page.

2. Click the **Tables to Replicate** tab.

3. In the list of tables, click the box next to the **Table Names** column.

4. In the menu that displays, click **Track all Tables and Fields**:

   ![The Track all Tables and Fields menu in the Tables to Replicate tab](https://help.qlik.com/en-US/stitch/images/replication/select-all-tables-menu.png)The Track all Tables and Fields menu in the Tables to Replicate tabThe Track all Tables and Fields menu in the Tables to Replicate tab

5. Click the **Finalize Your Selections** button at the bottom of the page to save your data selections.

### Initial and historical replication jobs

After you finish setting up AppsFlyer, its **Sync Status** may show as **Pending** on either the Stitch Dashboard or in the Integration Details page.

For a new integration, a **Pending** status indicates that Stitch is in the process of scheduling the initial replication job for the integration. **This may take some time to complete.**

Information note

**Initial replication jobs with Anchor Scheduling**

If using Anchor Scheduling, an initial replication job may not kick off immediately. This depends on the selected Replication Frequency and Anchor Time. Refer to the [Anchor Scheduling](https://help.qlik.com/en-US/stitch/replication/replication-scheduling#job-scheduling-and-anchor-times) documentation for more information.

#### Free historical data loads

The first seven days of replication, beginning when data is first replicated, are free. Rows replicated from the new integration during this time won’t count towards your quota. Stitch offers this as a way of testing new integrations, measuring usage, and ensuring historical data volumes don’t quickly consume your quota.

Information note **Replication will continue after the seven days are over**. If you’re no longer interested in this source, be sure to **pause** or **delete** the integration to prevent unwanted usage.

## AppsFlyer replication

### Historical AppsFlyer data limitations

[Due to limits imposed by AppsFlyer on date ranges while querying](https://support.appsflyer.com/hc/en-us/articles/209680773-Export-Data-Reports#the-reports), only the past **90 days’** of historical data is available for any given app.

If the integration’s **Start Date** setting in Stitch is set to a date older than 90 days ago, extraction errors will occur and be surfaced in the integration’s [Extraction Logs](https://help.qlik.com/en-US/stitch/replication/extractions/integration-extraction-logs).

### AppsFlyer API call limits and Replication Frequency

In addition to historical limitations, AppsFlyer also [imposes a limit on the number of raw data API calls](https://support.appsflyer.com/hc/en-us/articles/207034366-API-Policy#2-raw-data-reports-via-pull-api) that can be made per day. Currently, the maximum is **10 API calls per day, per app** and increases when upgrading to a higher AppsFlyer tier.

Each time Stitch requests data for an app - or a single AppsFlyer integration - two API calls will be used: One to replicate `in_app_events`, and one for `installs`.

If your Stitch AppsFlyer integration is set to replicate frequently (ex: every 30 minutes), you may quickly consume your AppsFlyer API quota. When this occurs, Stitch will pause replication and resume where it left off when more quota is available.

To avoid disruptions in replication, we recommend selecting a lower [Replication Frequency](https://help.qlik.com/en-US/stitch/replication/replication-scheduling/replication-frequency), such as 12 or 24 hours.

## AppsFlyer table reference

Information note

**Schemas and versioning**

Schemas and naming conventions can change from version to version, so we recommend verifying your integration’s version before continuing.

The schema and info displayed below is for **version 1** of this integration.

This is the latest version of the AppsFlyer integration.

Information note

**Table and column names in your destination**

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

For example: Object names are lowercased in Redshift (`CusTomERs` &gt; `customers`), while case is maintained in PostgreSQL destinations (`CusTomERs` &gt; `CusTomERs`). Refer to the [Loading Guide](https://help.qlik.com/en-US/stitch/replication/loading/destination-guides) for your destination for more info.

### in\_app\_events

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

| **Replication Method [](https://help.qlik.com/en-US/stitch/replication/replication-methods)[the Info icon](https://help.qlik.com/en-US/stitch/replication/replication-methods)[](https://help.qlik.com/en-US/stitch/replication/replication-methods)** | Key-based Incremental |
| --- | --- |
| **Primary Keys ![](https://help.qlik.com/en-US/stitch/images/replication/primary-key-icon.svg)** | event\_time<br><br>event\_name<br><br>appsflyer\_id |
| **Replication Key ![](https://help.qlik.com/en-US/stitch/images/replication/replication-key-icon.svg)** | event\_time |
| **Useful links** | [AppsFlyer documentation](https://support.appsflyer.com/hc/en-us/articles/208387843-Raw-Data-Reports-V5- "Opens in new tab: AppsFlyer documentation")<br><br><br>[in_app_events schema on GitHub](https://github.com/singer-io/tap-appsflyer/blob/master/tap_appsflyer/schemas/in_app_events.json "Opens in new tab: in_app_events schema on GitHub")<br><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

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

### installs

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

| **Replication Method [](https://help.qlik.com/en-US/stitch/replication/replication-methods)[the Info icon](https://help.qlik.com/en-US/stitch/replication/replication-methods)[](https://help.qlik.com/en-US/stitch/replication/replication-methods)** | Key-based Incremental |
| --- | --- |
| **Primary Keys ![](https://help.qlik.com/en-US/stitch/images/replication/primary-key-icon.svg)** | event\_time<br><br>event\_name<br><br>appsflyer\_id |
| **Replication Key ![](https://help.qlik.com/en-US/stitch/images/replication/replication-key-icon.svg)** | attributed\_touch\_time |
| **Useful links** | [AppsFlyer documentation](https://support.appsflyer.com/hc/en-us/articles/208387843-Raw-Data-Reports-V5- "Opens in new tab: AppsFlyer documentation")<br><br><br>[installs schema on GitHub](https://github.com/singer-io/tap-appsflyer/blob/master/tap_appsflyer/schemas/installs.json "Opens in new tab: installs schema on GitHub")<br><br><br>[AppsFlyer API method](https://dev.appsflyer.com/hc/reference/get_app-id-installs-report-v5 "Opens in new tab: AppsFlyer API method") |

installs table schema

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

### organic\_installs

The `organic_installs` table contains information about organic installs.

| **Replication Method [](https://help.qlik.com/en-US/stitch/replication/replication-methods)[the Info icon](https://help.qlik.com/en-US/stitch/replication/replication-methods)[](https://help.qlik.com/en-US/stitch/replication/replication-methods)** | Key-based Incremental |
| --- | --- |
| **Primary Keys ![](https://help.qlik.com/en-US/stitch/images/replication/primary-key-icon.svg)** | event\_time<br><br>event\_name<br><br>appsflyer\_id |
| **Replication Key ![](https://help.qlik.com/en-US/stitch/images/replication/replication-key-icon.svg)** | event\_time |
| **Useful links** | [AppsFlyer documentation](https://support.appsflyer.com/hc/en-us/articles/208387843-Raw-Data-Reports-V5- "Opens in new tab: AppsFlyer documentation")<br><br><br>[organic_installs schema on GitHub](https://github.com/singer-io/tap-appsflyer/blob/master/tap_appsflyer/schemas/organic_installs.json "Opens in new tab: organic_installs schema on GitHub")<br><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

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