You are here: Developers > Ad Request API > Structured ad requests > Standalone ad requests

Standalone ad requests

The following example shows an ad requestCommunication from a web browser or app to an ad server to display an ad. for an XML response, which will fulfill a single ad unitThe smallest inventory component that represents the space on a site where ads display..

Standalone request XML ad request

http://delivery_server_domain/w/1.0/arx?auid=6

The following example shows a request for a standalone JSON response, which will fulfill a single ad unit.

Standalone request JSON ad request

http://delivery_server_domain/w/1.0/arj?auid=6

The following example shows a request for a standalone JSONP response, which will fulfill a single ad unit.

Standalone request JSONP ad request

http://delivery_server_domain/w/1.0/arj?auid=6&callback=foo

Where:

  • http is the protocol. If your ad space uses SSL/TLS, use https instead.

  • delivery_server_domain. The hostname of your OpenX delivery server

  • /w. Indicates the web delivery medium

  • /1.0. Indicates version 1.0 of the OpenX Supply API

  • /arx or /arj. Indicates a request to serve structured XML delivery response (/arx) or a JSON delivery response (/arj)

  • ?. Separates the ad request from the ad request parameters

  • auid. The ad unit ID

  • &. Separates each parameter

  • callback. Indicates the JavaScript function wrapper to return in the JSONP response

Feedback form