UserPublisher:IntegrationToolsJSON

From InClickAdServer

Contents

JSON / JSONP Ad Delivery API

The inClick Ad Server JSON and JSONP API is designed for advanced integration of ads into applications, search services, and ad servers that support XML data feeds.

JSON Ad Delivery API Service URL

The URL format for JSON API service requests is as follows:

 http://youradserverURL.net/pathto/ad/json_feed?{requiredAndOptionalParameterNameValuePairs}

JSONP Ad Delivery API Service URL

 http://youradserverURL.net/pathto/ad/jsonp_feed?{requiredAndOptionalParameterNameValuePairs}

Service Request Parameters

Example Use and Sample Code

Parameter name Required? Format Description
p_id Yes Numeric This parameter is used to track ads on the defined publisher account. Without this parameter, the publisher account will not receive credit.
ad_count Yes Integer This is the number of results to be returned for this request.
uip Yes n.n.n.n This is the IP address of the user viewing ads, the end user.
channel Yes Integer This is the channel ID for the request.
callback No function The value of this parameter is the function to call within the resulting JSON object.
p_subid No Alphanumeric This is a secondary identifier used for reporting purposes.
doc_offset No Integer This represents how many ads to offset from the number one position. The default value is 0 (zero).
region
keyword
media_types
referring_page
limited No 0 or 1 This parameter, when set to 1, will restrict results to only matched results, no Run of Channel ads will appear.
publisher_channel_id
sem_url
filter_1
filter_2
filter_3
contextual
user_agent
media_sizes