USER INTERACTIONS


An advertisement can have up to two buttons (a primary and secondary button). The touch buttons are configurable via the Digital2GO content management system. They can be set to perform an action such as opening up a URL, making a phone call, sending an email, opening a map, or playing a video

Via the Digital2GO content management system, you can also trigger these events by touching an ad image.

You can transmit these ad interactions by calling the following API:

https://api.digital2go.com/interactions/register.json

You need to pass in an Interaction JSON object in the following format:


    {
      "campaign_id": 123428614,
      "impression_id": 1742860,
      "device_id": "1AB422B56B3B49AF8389268A9ACD7246",
      "action": "OPEN_URL",
      "timestamp": "2016-08-22 00:00:01"
    }   
  
  

Now, your response should be a JSON Object in the following format:

Other possible responses include:

  • 401 Incorrect Login
  • 404 No Geofences in Range
  • 422 Interaction Input Validation Failed
  • 500 Some Other Error Occurred

 ANDROID

You can call the above API to register ad interactions with the following method in the Android SDK:

where campaign is the Interaction JSONObject you pass into the API.


For additional questions or technical support, please contact developers@digital2go.com.