Integrating with Appsflyer Push API

Introduction

When adding an app to TrafficGuard you will need to configure the mobile measurement platform (MMP) so TrafficGuard can send click data to the MMP and authorise the MMP to send us notifications for installs and events.

Appsflyer's Push API sends us all the required data points to conduct measurement & verification.

Prerequisites

You need to be an Appsflyer customer and have the Appsflyer SDK installed in your app.

TrafficGuard Portal 

  1. Open the TrafficGuard Portal
  2. If you are an Agency user, select the organisation to which you want to add the app
  3. Make sure you have added your apps under Properties & selected Appsflyer as the Input 
  4. Go to Settings from the side navigation & grab the Organisation ID & Measurement API key 

Appsflyer Portal 

Configure the push API endpoint from your Appsflyer dashboard. The below endpoint & instructions are for clients using  Push API V2

Appsflyer Push API v1 has now been retired and anyone using Push Api v1 is recommended to migrate to Push API v2.
If you are still using v1, please contact integrations@trafficguard.ai for the v1 endpoint URL. 

  1. On the Appsflyer dashboard, on the left hand menu go to Integration > API Access. Scroll down to the Push API section. The Push API section displays.
  2. Scroll down to the Push API section, Choose method - POST and click Add Postback.  Enter the given URL in the Postback URL field (as shown below).
  3. Configure your postback URL
    1. Replace the below fields with your Organisation ID and Measurement API key
    2. Postback URL: https://integrate.trafficguard.ai/appsflyer/v2/postback/(org_id)/(API_Key)
    3. Example
      1. (org_id) - example_org
      2. (API_Key) - M2Qil6ZJgk
      3. Final URL should look like this - https://integrate.trafficguard.ai/appsflyer/v2/postback/example_org/M2Qil6ZJgk
  4. Select the event types. Note! If the in-app event messages are disabled, it means no in-app events have been recorded to now.
  5. Make sure to enable Organic
  6. Select all fields - 

  7. Select all in-app events 
  8. Click Save
    The Push API is now active
    Install & event data is sent to our endpoint url.

Test the endpoint using the procedure that follows.
    1. Click Send Test.
      • A test result message displays below the Send Test button.
      • A test message is sent to the endpoint.
    2. Check that the endpoint received the test message.
      • A copy of the message sent will be displayed 


Notify the TrafficGuard team once you have configured your endpoint. The team will make sure that it's been set up correctly.