You can get multiple ads as XML if you want to integrate with XML response within your site or app.
With this, the latency to many ads decreases and this enables you to serve ZestADZ Ads at multiple points within your mobile sites or Apps without making any additional requests.
Remember - All ads are based on only that one request - so it is targeted for that specific Phone, IP, Carrier and so on. There fore it is important to serve these ads for the requested client only. |
| |
To get multiple ads as XML, form a url request as below
URL:
http://a.zestadz.com/multiple_ad?ua=[useragent]&ip=[ipaddress]&cid=[client_id]&fcid=[client_id]&meta=[meta_information]
&keyword=[targeting_keyword]&recs=[number of ads to display]&response_type=[ad response type] |
|
| Parameters |
- recs - this could be a maxiumum of 5
- response_type - could be text or xml
- cid - your mobile site or app client id
- url - URL Encoded url from where the request has been made
- ua - URL Encoded User Agent string of the phone from where the request has been made
- ip - the client ip from where the request has been made
|
|
Sample:
http://a.zestadz.com/multiple_ad?ua=NokiaN70/%205.0741.4.0.1%20Series60/2.8%20Profile/MIDP-2.0%20Configuration/CLDC-1.1&ip=122.165.32.211&cid=14131C047A50414347574B574153415E8C&fcid=14131C047 A50414347574B574153415E8C &meta=pepsi&keyword=All&recs=5&response_type=xml |
| |
| Sample Results: |
| <ads> |
| <ad type="picture"> |
| |
<text>NA</text>
<picture>
http://assets.zestadz.com/ad/ad_picture/1605/Airtel1-medium.gif
</picture>
<url>http://a.zestadz.com/waplanding?lm=16%7C-1605~ck</url> |
| </ad> |
| <ad type="picture"> |
| |
<text>NA</text>
<picture>
http://assets.zestadz.com/ad/ad_picture/1604/Airtel2-medium.gif
</picture>
<url>http://a.zestadz.com/waplanding?lm=16%7C-1604~ck</url> |
| </ad> |
| <ad type="picture"> |
| |
<text>NA</text>
<picture>
http://assets.zestadz.com/ad/ad_picture/1604/Airtel2-medium.gif
</picture>
<url>http://a.zestadz.com/waplanding?lm=16%7C-1604~ck</url> |
| </ad> |
| </ads> |
|
|
|
| |