You are here

function google_admanager_gam_display_ad in DFP Small Business (Google Ad Manager) 6.3

1 string reference to 'google_admanager_gam_display_ad'
gam.inc in plugins/ad_providers/gam.inc

File

plugins/ad_providers/gam.inc, line 57

Code

function google_admanager_gam_display_ad($ad_slot, $conf) {
  google_admanager_add_js('GA_googleAddSlot("' . $conf['account'] . '", "' . $ad_slot['name'] . '");');
  $script = '<script type="text/javascript">GA_googleFillSlot("' . $ad_slot['name'] . '");</script>';
  $style = 'width:' . $ad_slot['width'] . 'px;height:' . $ad_slot['height'] . 'px;';
  return '<div id="gam-holder-' . $ad_slot['name'] . '" class="gam-holder" style="' . $style . '">' . $script . '</div>';
}