There was a problem loading the comments.

The XML API feed implementation

Knowledge Base  »  Publishers  »  Viewing Article

The XML API feed implementation reference has been designed to make ad integration with the websites and ad networks as simple as possible.

Request URL:

Example request: (Macintosh; Intel Mac OS X 10_8_3) AppleWebKit/537.31 (KHTML, like Gecko) Chrome/26.0.1410.65 Safari/537.31 &ip=

Making a Request: Replace the above parameters with valid user request details and perform a GET request.

Request parameters: The XML Request should contain the parameters listed below:

Parameter                 Type                          Description        
endpointStringCorresponds to the type of traffic sent to the feed. NOTE: The endpoint is issued by the system automatically. No changes are needed.
pubidNumericInteger value representing your account id number.
subidStringSub affiliate id to track traffic sub sources / sub affiliates.
feedidNumericInteger value representing your feed id (site id) number.
ipStringActual IP address of the USER. NOTE: This is not the IP address of the server making the request. Format: XXX.XXX.XXX.XXXObtain from REMOTE_ADDR
qString (URL encoded)Query keyword requested by the USER.
numNumericNumber of ads returned by the feed. Default: 10
refString (URL encoded)Full URL of the page where the ads are being displayed. NOTE: Should be exactly the same as the USER's click referer.URL-encoded.
useragentString (URL encoded)Useragent from HTTP header of the USER. Obtain from USER-AGENT
langStringAccepted USER languages. Obtain from HTTP_ACCEPT_LANGUAGE
iab_categoryNumericInteger value representing IAB category of your traffic if applicable. Non-obligatory parameter

Example response:
<result status="OK" response="0.7424771308899">
<title><![CDATA[ Test Ad Title ]]></title>
<description><![CDATA[ Some description goes here ]]></description>
<click><![CDATA[ ]]></click>
<image><![CDATA[ ]]></image>
<pixel><![CDATA[<img width="0" height="0" src="</record>

    Share via
    Thank you for your feedback on this article.

    Related Articles