Advertisement
clickio

deita.ru adfox codes

Sep 29th, 2021 (edited)
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.62 KB | None | 0 0
  1. Поставить в <head>
  2.  
  3. <script src="https://yandex.ru/ads/system/header-bidding.js" async></script>
  4. <script>
  5. const adfoxBiddersMap = {
  6. 'myTarget': '816008' ,
  7. 'betweenDigital': '871789' ,
  8. 'buzzoola': '880620' ,
  9. };
  10. var adUnits = [
  11. {
  12. code: 'adfox_163292232835318467',
  13. sizes: [ [300,250],[336,280] ],
  14. bids: [ {"bidder":"myTarget","params":{"placementId":"954838"}},{"bidder":"betweenDigital","params":{"placementId":"4425499"}} ]
  15. },{
  16. code: 'adfox_163292322719481720',
  17. sizes: [ [970,90],[1400,200] ],
  18. bids: [ {"bidder":"myTarget","params":{"placementId":"954840"}},{"bidder":"betweenDigital","params":{"placementId":"4425507"}} ]
  19. }
  20. ];
  21. var userTimeout = 500;
  22. window.YaHeaderBiddingSettings = {
  23. biddersMap: adfoxBiddersMap,
  24. adUnits: adUnits,
  25. timeout: userTimeout
  26. };
  27. </script>
  28. <script>(function(){function a(){__clADF__.adxAllowed(0)}var b=window,c=b.document,d=c.getElementsByTagName('head')[0];d||(d=c.createElement('head'),b.appendChild(d)),b.__clADF__={state:0,loaded:0,adxAllowed:function(a){if(1!=this.loaded){n='adfoxAsyncParams',b[n]&&b[n].forEach(function(b){b.params.pk=a}),n1=n+'Scroll',b[n1]&&b[n1].forEach(function(b){b[0].params.pk=a}),n1=n+'Adaptive',b[n1]&&b[n1].forEach(function(b){b[0].params.pk=a}),n='Adaptive',b[n]&&b[n].forEach(function(b){b[0].params.pk=a}),this.state=a;var d=document.createElement('script');d.setAttribute('src','https://yandex.ru/ads/system/context.js'),d.setAttribute('async','async');var e=c.getElementsByTagName('head')[0];e||(e=c.createElement('head'),b.appendChild(e)),e.appendChild(d),this.loaded=1}}};var e=c.createElement('script');e.setAttribute('src','//clickiocdn.com/hbadx/?f=__clADF__&rt='+new Date().getTime()+'&site_id=217728&title='+encodeURIComponent(c.title)+'&r='+encodeURIComponent(c.referrer)),e.setAttribute('async','async'),e.onreadystatechange=function(){'loaded'!=this.readyState&&'complete'!=this.readyState&&setTimeout(a,0)},e.onerror=function(){setTimeout(a,0)},d.appendChild(e),setTimeout(a,3e3)})();</script>
  29. <script>window.yaContextCb = window.yaContextCb || []</script>
  30.  
  31. ---------------------------------------------------------------------
  32. Поставить в <body>
  33.  
  34. AdFox: РСЯ combo
  35. <!-- CLICKIO AdFox unit 681331 -->
  36. <div id='adfox_163292232835318467'></div>
  37. <script>
  38. window.yaContextCb.push(()=>{
  39. Ya.adfoxCode.createScroll({
  40. ownerId: 257193,
  41. containerId: 'adfox_163292232835318467',
  42. params: {
  43. pk: __clADF__.state,
  44. pp: 'vxj',
  45. ps: 'dplm',
  46. p2: 'fpxb',
  47. insertAfter: 'undefined',
  48. insertPosition: '0',
  49. stick: false,
  50. stickTo: 'auto',
  51. stickyColorScheme: 'light'
  52. }
  53. }, [ 'phone'],{
  54. tabletWidth: 1024,
  55. phoneWidth: 767,
  56. isAutoReloads: false
  57. })
  58. })
  59. </script>
  60.  
  61. ---------------------------------------------------------------------
  62.  
  63. Adfox: 1400х200 десктоп
  64.  
  65. <!-- CLICKIO AdFox unit 681333 -->
  66. <div id='adfox_163292322719481720'></div>
  67. <script>
  68. window.yaContextCb.push(()=>{
  69. Ya.adfoxCode.createScroll({
  70. ownerId: 257193,
  71. containerId: 'adfox_163292322719481720',
  72. params: {
  73. pk: __clADF__.state,
  74. pp: 'vxk',
  75. ps: 'dplm',
  76. p2: 'fpxb'
  77. }
  78. }, [ 'desktop'],{
  79. tabletWidth: 1024,
  80. phoneWidth: 767,
  81. isAutoReloads: false
  82. })
  83. })
  84. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement