Integrating with Appsflyer Push API
TrafficGuard Support avatar
Written by TrafficGuard Support
Updated over a week ago

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 enterprise customer and have the Appsflyer SDK installed in your app.

TrafficGuard Portal

  1. If you are an Agency user, select the organisation to which you want to add the app

  2. Make sure you have added your apps under Properties & selected Appsflyer as the Input.

  3. 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


πŸ’‘ Tip
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 [email protected] 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).
    {IMAGE BROKEN}
    ​

  3. Configure your postback URL
    a. Replace the below fields with your Organisation ID and Measurement API key
    b. Postback URL: https://integrate.trafficguard.ai/appsflyer/v2/postback/(org_id)/(API_Key)
    c. Example
    i. (org_id) - example_org
    ii. (API_Key) - M2Qil6ZJgk
    iii. 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 yet.
​

5. Make sure to enable Organic

Screen Shot 2022-02-17 at 3.37.28 pm

6. Select the correct events names

7. Select key in-app events in the user flow.

Screen Shot 2022-02-17 at 3.39.43 pm

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.
​

a. Click Send Test.

  • A test result message displays below the Send Test button.

  • A test message is sent to the endpoint.
    ​

b. 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.

Did this answer your question?