Updated: Jan 14th, 2019
The page explains how to use the Adomni API to purchase ad space on Adomni devices.
For the purposes of this tutorial we will assume that the user already has an advertiser account on Adomni.com, and has access to the credentials for that account. We also assume that the user also has already set up a valid payment instrument such that the transaction will not fail due to lack of funds.
Note: See our API Browser for details about each endpoint below, such as fields to pass in the request body.
First, generate a valid token for your advertiser account using the POST /access-tokens endpoint (see detailed instructions on authentication)
Initialize a new order by making a call to
POST /orders (see our API Browser for specific fields to pass in the request body). The HTTP response object will contain an order ID for use with the additional steps below.
Search against Adomni's real time device inventory using:
GET /devices/search and check availability/pricing for a given device using:
Add one or more pieces of inventory (along with details about the reservation such as time period) to the order using
Checkout (finalize) the order using
Checkout can fail for a number of reasons, the biggest is that the inventory became unavailable during the course of the order building process.
If checkout fails you may remove/modify the elements which caused the order to fail, and then reattempt checkout by another submission to the checkout endpoint.
Immediately after order checkout, the order will be in a pending state, awaiting content upload and assignment.
See our walkthrough on uploading content for more details.
The API endpoint for assigning content is a work-in-progress.
At any time once an order is generated, you may generate a proof-of-play report which comes in 2 forms, either summary which gives just summary information of how the order was executed, or full which contains a full listing of every every play that was recorded against the order. The report will have a state either IN_PROCESS or COMPLETE, depending on whether the order is still running.