You are here

function prebid_get_price_granularity in Doubleclick for Publishers (DFP) 7.2

Creates a default pricing bucket.

Return value

array Pricing Granularity for prebid.

1 call to prebid_get_price_granularity()
prebid_preprocess_html in prebid/prebid.module
Implements hook_preprocess_HOOK().

File

prebid/includes/bidder.inc, line 34
bidder.inc

Code

function prebid_get_price_granularity() {
  $buckets = array(
    array(
      'precision' => 2,
      'min' => 0,
      'max' => 1000,
      'increment' => 0.01,
    ),
  );

  // Allow other modules to modify/add pricing buckets.
  drupal_alter('prebid_price_granularity_buckets', $buckets);
  return $buckets;
}