Skip to main content

AppsFlyer Pull API

Last updated 10/05/2026
tip

Note that data generated by third-party data integration counts toward the cluster's data consumption

Summary​

Interface overview​

InterfaceTypeGranularityAttributionCostRevenueImpressionsClicksConversions
Pull APIAPIAggregated metrics✅✅✅✅✅

The AppsFlyer Pull API aggregated metrics API provides different types of aggregated metric data. The AE system currently supports pulling Partners and Geo data.

Integration process​

  1. Log in to the AppsFlyer dashboard and get the V2.0 API Token and App ID
  2. Log in to the AE backend, go to the Third-party Integration module, add an AppsFlyer Pull API plan, and complete the related configuration
  3. Check whether the AE system receives the data successfully, and build reports

1. Get the API Token and App ID​

1.1 Get the API Token​

Get the V2.0 API token for Pull API

1.2 Get the App ID​

You can find your app's App ID under My Apps in the AppsFlyer dashboard. On Android, it starts with com., such as com.demoapp.ta; on iOS, it starts with id, such as id12345678

2. Plan configuration​

After getting the AppsFlyer API token and App ID, you can log in to the AE system and configure the new plan in the Third-party Integration module. The image below shows the configuration page of AppsFlyer Pull API. Follow this section to create the plan:

2.1 Authorization information configuration​

Click the Configure authorization information button under Authorization Information, and enter the API Token and App ID in the pop-up

2.2 Sync Schedule​

In the Sync Schedule module, you can set the policy for the AE system to pull AppsFlyer Pull API data on a schedule. You can choose to pull data for the last several days at a specific time every day. You can pull data from up to the past 1000 days, with a maximum of 31 days per pull. Because pulled data also counts toward the data volume, avoid pulling data for overly long periods on a schedule

2.3 Receive Settings​

You can control whether the data is written as events. If you turn this off, the data is not written to the event table, so do not turn off this setting.

2.4 Configuration​

Finally, in the Configuration module, you can control the detailed settings of data pulling, including the data type, the dimensions to pull, and the event name after ingestion.

The content of the configuration is a JSON, which you can customize as follows:

ModuleNameDescription
sink_eventevent_mappingEvent name after ingestion; customizable
sourcereport_typesThe type of data to pull; customizable, but only one can be selected. Options are partner and geo, which pull data by media source and by region respectively

transfer

double_columnsNumeric field definitions. Fields entered here are stored as numeric types. Enter the field names after ingestion
fields_whitelistField filter; list type. If the list is not empty, the AE system stores only the fields in the list and discards fields that are not in the list
extra_paramsmedia_sourceNot required by default. Configure it only when you need to pull Facebook data separately; in that case, enter facebook

2.4.1 Partner data​

This section describes Partner data. This report is based on LTV data, that is, it pulls the subsequent data of new users who installed within the specified time period.

Field meaningField nameRemarks
Data time#event_time
Agencyagency_pmd_af_prt
Media sourcemedia_source_pid
Campaign namecampaign_c
ARPUarpuMetric field; numeric type; add it to transfer.double_columns
Average eCPIaverage_ecpi
Clicksclicks
Conversion rateconversion_rate
CTRctr
Impressionsimpressions
Installsinstalls
Loyal Usersloyal_users
Loyal Users/Installsloyal_users_installs
ROIroi
Sessionssessions
Total Costtotal_cost
Total revenuetotal_revenue

Because Facebook's data format differs from that of other media sources, if you only need to pull Facebook data, you can add a "media_source":"facebook" entry to extra_params. The following fields are then added:

Field meaningField name
Campaign namecampaign_name
Campaign IDcampaign_id
Ad IDadgroup_id
Ad nameadgroup_name
Ad group IDadset_id
Ad group nameadset_name

2.4.2 Geo data​

This section describes Geo data. This report is based on LTV data, that is, it pulls the subsequent data of new users who installed within the specified time period.

Because Facebook's data format differs from that of other media sources, the AE system pulls Facebook-only data and data from all platforms separately. The following fields are available from Geo:

FieldIngested nameRemarks
Country/Regioncountry
Data time#event_time
Agencyagency_pmd_af_prt
Media sourcemedia_source_pid
Campaign namecampaign_c
ARPUarpuMetric field; numeric type; add it to transfer.double_columns
Clicksclicks
Conversion rateconversion_rate
Installsinstalls
Loyal usersloyal_users
Sessionssessions
Total revenuetotal_revenue

Because Facebook's data format differs from that of other media sources, if you only need to pull Facebook data, you can add a "media_source":"facebook" entry to extra_params. The following fields are then added:

Field meaningField name
Campaign namecampaign_name
Campaign IDcampaign_id
Ad IDadgroup_id
Ad nameadgroup_name
Ad group IDadset_id
Ad group nameadset_name

2.5 Data ingestion rules​

By default, we write the pulled data to the AE project as events:

  • Because the Pull API aggregated metrics API returns aggregated data, we use a fixed value as the user identifier. You can think of all the data as attached to one virtual user

  • The Date field in the data, that is, the user's install date, is used as the event's #event_time

  • The event names in the data are:

    • Partner
      • appsflyer_partner_data
    • Geo
      • appsflyer_geo_data
  • All other fields are ingested

2.6 Standardized fields​

The following event properties are standardized:

Original fieldStandardized fieldDescription
media_source_pidte_ads_object.media_sourceMedia source
campaign_c (all platforms)te_ads_object.campaign_nameCampaign name
campaign_id(Facebook)te_ads_object.campaign_id(Facebook) Campaign ID
campaign_name(Facebook)te_ads_object.campaign_name(Facebook) Campaign name
adset_id(Facebook)te_ads_object.ad_group_id(Facebook) Ad group ID
adset_name(Facebook)te_ads_object.ad_group_name(Facebook) Ad group name
adgroup_id(Facebook)te_ads_object.ad_id(Facebook) Ad ID
adgroup_name(Facebook)te_ads_object.ad_name(Facebook) Ad name
countryte_ads_object.countryCountry or region code
platformte_ads_object.platformPlatform, such as Android or iOS
app_idte_ads_object.app_idApp ID
app_namete_ads_object.app_nameApp name
currencyte_ads_object.currencyCurrency
impressionste_ads_object.impressionsImpressions
clickste_ads_object.clicksClicks
installste_ads_object.installsConversions (installs)
total_costte_ads_object.costCampaign cost
Was this page helpful?