function hook_dfp_global_targeting_alter in Doubleclick for Publishers (DFP) 7
Same name and namespace in other branches
- 8 dfp.api.php \hook_dfp_global_targeting_alter()
- 7.2 dfp.api.php \hook_dfp_global_targeting_alter()
Alter the global targeting key|value pairs.
Parameters
array $target:
1 invocation of hook_dfp_global_targeting_alter()
- _dfp_js_global_settings in ./
dfp.module - Helper function to include javascript variables, etc in the header above all slot definitions.
File
- ./
dfp.api.php, line 49 - Hooks provided by the Chaos Tool Suite.
Code
function hook_dfp_global_targeting_alter(&$target) {
// The following example adds the URL arguments array to the targeting.
$arg = arg();
if (!empty($arg)) {
$targeting[] = array(
'target' => 'arg',
'value' => $arg,
);
}
}