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:
Now, your response should be a JSON Object in the following format:
Other possible responses include:
No Geofences in Range
Interaction Input Validation Failed
Some Other Error Occurred
You can call the above API to register ad interactions with the following method in the Android SDK:
campaign is the Interaction JSONObject you pass into the API.