The next table describes the parameters from the above live preview URL:
|The ID of the creative|
|The ID of the booked position|
|The code of the creative's format|
|The width of the creative in pixels|
|The height of the creative in pixels|
|The key of the creative|
Requesting a preview of a creative can be done using one of the following languages:
This URL must be set as the source for a
<script>tag and the URL.
The JSON / JSONP preview can be requested asynchronously. The returned JSON has the same structure as the live JSON and can be processed in the same way as the live JSON response.
The JSON / JSONP URLs also support multiple creatives. Repeating the
id parameter will return multiple creatives:
More info on previewing multiple creatives can be found at Composing a live preview with more than one creative. This method will add all necessary info to the page URL and displays a preview of more than one creative on the same page.
To preview XML files (such as VAST) correctly in the Adhese interface, a crossdomain.xml file is added to the preview host domain's root server. For security reasons, the process of previewing a creative is hosted at a different domain than your original admin domain of Adhese. This inhibits the crossdomain.xml file to have free access to the admin host. The crossdomain.xml file is a cross-domain policy file that enables a web client, to talk to servers other than the one it is hosted on.