The next table describes the parameters from the above live preview URL:
|The Id of the creative|
|The Id of the booked position|
|The template of the creative's format|
|The width of the creative in pixels|
|The height of the creative in pixels|
|The name 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 will be generated by the SDK code.
The JSON / JSONP preview can be requested asynchronous. 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 how to preview 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 root server of the preview host domain. 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, such as Adobe Flash Player, to talk to servers other than the one it is hosted on.