This guide is primarily intended for developers, who is responsible for server-server integration with WapStart Plus1 Ad Network.
In order to use API, developer MUST be registered at WapStart Plus1 Ad Network and have an ad space with SID.
API versions are maintained using the endpoint to which requests need to be sent. Current stable endpoint is http://api.plus1.wapstart.co/v1
To start showing ads on current ad space developer MUST implement two steps:
Developer MUST send valid HTTP POST request with JSON-encoded body to http://api.plus1.wapstart.co/v1/ads/{SID}.json
You can also use Google Protocol Buffers format. In this case you should send request to http://api.plus1.wapstart.co/v1/ads/{SID}.pb with Google Protobuf encoded body.
Please ensure that you are sending Content-Type header which depends on request format:
On successful request WapStart servers will return HTTP response depending on ads presence for current SID:
View detailed information about request
and response »
For each ad in response for ad request we provide vlink field, which contains an URL for pingback when an actual view of current ad happens.
Developer MUST send valid HTTP GET request to an URL from vlink field
(
simply add 1x1 GIF image with "src" attribute equal to this URL
<img src="{vlink}"/>
)