You are here

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

2 calls to google_admanager_display_ad()
google_admanager_block in ./google_admanager.module
Implementation of hook_block().
_google_admanager_substitute_tags in ./google_admanager.module
Replace all Admanager tags with their corresponding files or images.

File

./google_admanager.module, line 420

Code

function google_admanager_display_ad($delta) {
  ctools_include('plugins');
  $name = variable_get('google_admanager_delivery_method', 'gam');
  $plugin = ctools_get_plugins('google_admanager', 'ad_providers', $name);
  $conf = variable_get('google_admanager_' . $name, $plugin['defaults']);
  if (isset($plugin['display ad']) && function_exists($plugin['display ad'])) {
    $ad_slots = _google_admanager_get_ad_definitions();
    return $plugin['display ad']($ad_slots[$delta], $conf);
  }
}