Usage Note 53360: Creating interstitial ads
Typically, interstitials are not a creative format but are done with code on the page itself which makes an ad call. For example, if you want an ad to appear in a browser window after leaving a page but before the destination page is reached you can use the event handler to call a Javascript function which builds a browser window, defines its attributes, and sets the timeout. Inside the window code would be an ad call which gets the creative.
Alternatively, you can create a custom format which builds the window and calls the ad content. The "body onunload" event handler would then make an ad call to get the ad using this format. Here's a starting point for the template:
<script LANGUAGE="JavaScript">
windowprops = "titlebar=false,type=fullWindow,top=0,left=0" + ",width=" + screen.width + ",height=" + screen.height;
inter1=window.open("","inter1",windowprops);
inter1.document.open();
inter1.document.write(' <ht'+'ml> <head><title>%%X_TITLE%%</title></head><body bgcolor=#%%X_BG_COLOR%% text=#000000 leftmargin=0 topmargin=0 marginwidth=0 marginheight=0><d'+'iv align=center><font color=#000000 face=Arial, Helvetica, sans-serif size=3>');
inter1.document.write('<a href="#" onclick="javascript:window.close();">To continue to the destination page</a></font></div>');
inter1.document.write('<d'+'iv align=center><br><br><br><br>');
inter1.document.write(' <a href="%%CLICKURL%%" target="_blank">');
inter1.document.write(' <IMG SRC="%%MEDIA%%" WIDTH=%%WIDTH%% HEIGHT=%%HEIGHT%% BORDER=0></A> ');
inter1.document.write('</bo'+'dy></di'+'v></ht'+'ml> ');
inter1.document.close();
function tancar()
{
inter1.close();
}
setTimeout('tancar()',%%X_TIMEOUT%%);
</script>
|
Note the custom tokens [those beginning with "%%X_"] that would need to be defined in the creative format.
Operating System and Release Information
| SAS System | SAS Intelligent Advertising for Publishers | N/A | | |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
Creating interstitial ads.
| Date Modified: | 2014-07-31 11:06:18 |
| Date Created: | 2014-06-30 15:24:09 |