/** Preview an advertisement.
  */
 public function preview(SS_HTTPRequest $request)
 {
     $request->shift();
     $adID = (int) $request->param('ID');
     $ad = UniadsObject::get()->byID($adID);
     if (!$ad) {
         Controller::curr()->httpError(404);
         return;
     }
     // No impression and click tracking for previews
     $conf = UniadsObject::config();
     $conf->use_js_tracking = false;
     $conf->record_impressions = false;
     $conf->record_impressions_stats = false;
     // Block stylesheets and JS that are not required (using our own template)
     Requirements::clear();
     $template = new SSViewer('UniadsPreview');
     return $template->Process($ad);
 }