SHARE
TWEET

Temp AudienceNetwork Prebid mix standard + native

canhnm Feb 12th, 2019 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var pbjs, adUnits = [{
  2.     code: "div-gpt-ad-1480305988042-5",
  3.     sizes: [
  4.         [320, 160],
  5.         [320, 100]
  6.     ],
  7.     bids: [{
  8.         bidder: "appnexus",
  9.         params: {
  10.             placementId: "12491925"
  11.         }
  12.     }]
  13. }, {
  14.     code: "div-gpt-ad-1514867008810-8",
  15.     sizes: [
  16.         [300, 250]
  17.     ],
  18.     bids: [{
  19.         bidder: "appnexus",
  20.         params: {
  21.             placementId: "13046522"
  22.         }
  23.     }, {
  24.         bidder: "audienceNetwork",
  25.         params: {
  26.             placementId: "1722352131401493_2016996605270376",
  27.             testmode: "False",
  28.             format: "native"
  29.         }
  30.     }, {
  31.         bidder: "audienceNetwork",
  32.         params: {
  33.             placementId: "1722352131401493_1750704791899560"
  34.         }
  35.     }]
  36. }, {
  37.     code: "div-gpt-ad-1480305988042-3",
  38.     sizes: [
  39.         [336, 280],
  40.         [300, 250]
  41.     ],
  42.     bids: [{
  43.         bidder: "appnexus",
  44.         params: {
  45.             placementId: "12491923"
  46.         }
  47.     }, {
  48.         bidder: "audienceNetwork",
  49.         params: {
  50.             placementId: "1722352131401493_2016996915270345",
  51.             testmode: "False",
  52.             format: "native"
  53.         }
  54.     }, {
  55.         bidder: "audienceNetwork",
  56.         params: {
  57.             placementId: "1722352131401493_1750703725233000"
  58.         }
  59.     }]
  60. }, {
  61.     code: "div-gpt-ad-1480305988042-4",
  62.     sizes: [
  63.         [336, 280],
  64.         [300, 250]
  65.     ],
  66.     bids: [{
  67.         bidder: "appnexus",
  68.         params: {
  69.             placementId: "12491924"
  70.         }
  71.     }]
  72. }, {
  73.     code: "div-gpt-ad-1480305988042-1",
  74.     sizes: [
  75.         [320, 640],
  76.         [300, 600]
  77.     ],
  78.     bids: [{
  79.         bidder: "appnexus",
  80.         params: {
  81.             placementId: "12491921"
  82.         }
  83.     }]
  84. }];
  85. (pbjs = pbjs || {}).bidderSettings = {
  86.     audienceNetwork: {
  87.         adserverTargeting: [{
  88.             key: "fb_adid",
  89.             val: function(e) {
  90.                 return e.fbBidId
  91.             }
  92.         }, {
  93.             key: "hb_bidder",
  94.             val: function(e) {
  95.                 return e.bidderCode
  96.             }
  97.         }, {
  98.             key: "hb_pb",
  99.             val: function(e) {
  100.                 return e.pbMg
  101.             }
  102.         }]
  103.     }
  104. }, (pbjs = pbjs || {}).que = pbjs.que || [];
  105. var googletag = googletag || {};
  106. googletag.cmd = googletag.cmd || [], googletag.cmd.push(function() {
  107.     googletag.pubads().disableInitialLoad()
  108. }), pbjs.que.push(function() {
  109.     pbjs.setConfig({
  110.         priceGranularity: "dense"
  111.     }), pbjs.addAdUnits(adUnits), pbjs.requestBids({
  112.         bidsBackHandler: sendAdserverRequest
  113.     })
  114. }), setTimeout(function() {
  115.     sendAdserverRequest()
  116. }, PREBID_TIMEOUT);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top