Advertisement
Guest User

Untitled

a guest
Jan 28th, 2020
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.00 KB | None | 0 0
  1. Поставить в HEAD
  2.  
  3. <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://yastatic.net/pcode/adfox/loader.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=198116&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>
  4. <script async src='https://yastatic.net/pcode/adfox/header-bidding.js'></script>
  5. <script>
  6. const adfoxBiddersMap = {
  7. 'myTarget': '816008' ,
  8. 'betweenDigital': '871789' ,
  9. 'buzzoola': '880620' ,
  10. };
  11. var adUnits = [
  12. {
  13. code: 'adfox_15801258386751602',
  14. sizes: [ [300,600] ],
  15. bids: [
  16. {
  17. bidder: 'myTarget',
  18. params: {
  19. placementId: 695365,
  20. }
  21. }, {
  22. bidder: 'betweenDigital',
  23. params: {
  24. placementId: 3736331,
  25. }
  26. }, {
  27. bidder: 'buzzoola',
  28. params: {
  29. placementId: 1216505,
  30. }
  31. },
  32. ]
  33. },
  34. {
  35. code: 'adfox_158012585348446132',
  36. sizes: [ [300,300],[300,250] ],
  37. bids: [
  38. {
  39. bidder: 'myTarget',
  40. params: {
  41. placementId: 695367,
  42. }
  43. }, {
  44. bidder: 'betweenDigital',
  45. params: {
  46. placementId: 3736332,
  47. }
  48. }, {
  49. bidder: 'buzzoola',
  50. params: {
  51. placementId: 1217263,
  52. }
  53. },
  54. ]
  55. },
  56. {
  57. code: 'adfox_158012586719999335',
  58. sizes: [ [300,250] ],
  59. bids: [
  60. {
  61. bidder: 'myTarget',
  62. params: {
  63. placementId: 695369,
  64. }
  65. }, {
  66. bidder: 'betweenDigital',
  67. params: {
  68. placementId: 3736333,
  69. }
  70. }, {
  71. bidder: 'buzzoola',
  72. params: {
  73. placementId: 1217264,
  74. }
  75. },
  76. ]
  77. },
  78. {
  79. code: 'adfox_158012588059643711',
  80. sizes: [ [728,90] ],
  81. bids: [
  82. {
  83. bidder: 'myTarget',
  84. params: {
  85. placementId: 695371,
  86. }
  87. }, {
  88. bidder: 'betweenDigital',
  89. params: {
  90. placementId: 3736334,
  91. }
  92. }, {
  93. bidder: 'buzzoola',
  94. params: {
  95. placementId: 1217265,
  96. }
  97. },
  98. ]
  99. },
  100.  
  101. ];
  102. var userTimeout = 700;
  103. window.YaHeaderBiddingSettings = {
  104. biddersMap: adfoxBiddersMap,
  105. adUnits: adUnits,
  106. timeout: userTimeout
  107. };
  108. </script>
  109.  
  110. --------------------------------------------------------------------
  111.  
  112. Поставить в BODY
  113.  
  114. 300х600 (сайдбар, первый блок)
  115.  
  116. <!-- CLICKIO AdFox unit 653456 -->
  117. <div id='adfox_15801258386751602'></div>
  118. <script>
  119. (function(w, n) {
  120. w[n] = w[n] || [];
  121. w[n].push([{
  122. ownerId: 257193,
  123. containerId: 'adfox_15801258386751602',
  124. params: {
  125. pk: __clADF__.state,
  126. pp: 'kss',
  127. ps: 'dfmg',
  128. p2: 'fpxb'
  129. }
  130. }, [ 'desktop', 'tablet', 'phone'], {
  131. tabletWidth: 1024,
  132. phoneWidth: 767,
  133. isAutoReloads: false
  134. }]);})(window, 'adfoxAsyncParamsAdaptive');
  135. </script>
  136. --------------------------------------------------------------------
  137.  
  138. 300х300 (сайдбар, третий блок)
  139.  
  140. <!-- CLICKIO AdFox unit 653458 -->
  141. <div id='adfox_158012585348446132'></div>
  142. <script>
  143. (function(w, n) {
  144. w[n] = w[n] || [];
  145. w[n].push([{
  146. ownerId: 257193,
  147. containerId: 'adfox_158012585348446132',
  148. params: {
  149. pk: __clADF__.state,
  150. pp: 'kst',
  151. ps: 'dfmg',
  152. p2: 'fpxb'
  153. }
  154. }, [ 'desktop', 'tablet', 'phone'], {
  155. tabletWidth: 1024,
  156. phoneWidth: 767,
  157. isAutoReloads: false
  158. }]);})(window, 'adfoxAsyncParamsAdaptive');
  159. </script>
  160. --------------------------------------------------------------------
  161.  
  162. 300х250 (под статьей внизу, первый блок)
  163.  
  164. <!-- CLICKIO AdFox unit 653460 -->
  165. <div id='adfox_158012586719999335'></div>
  166. <script>
  167. (function(w, n) {
  168. w[n] = w[n] || [];
  169. w[n].push([{
  170. ownerId: 257193,
  171. containerId: 'adfox_158012586719999335',
  172. params: {
  173. pk: __clADF__.state,
  174. pp: 'ksu',
  175. ps: 'dfmg',
  176. p2: 'fpxb'
  177. }
  178. }, [ 'desktop', 'tablet', 'phone'], {
  179. tabletWidth: 1024,
  180. phoneWidth: 767,
  181. isAutoReloads: false
  182. }]);})(window, 'adfoxAsyncParamsAdaptive');
  183. </script>
  184. --------------------------------------------------------------------
  185.  
  186. 728х90 (в шапке)
  187.  
  188. <!-- CLICKIO AdFox unit 653462 -->
  189. <div id='adfox_158012588059643711'></div>
  190. <script>
  191. (function(w, n) {
  192. w[n] = w[n] || [];
  193. w[n].push([{
  194. ownerId: 257193,
  195. containerId: 'adfox_158012588059643711',
  196. params: {
  197. pk: __clADF__.state,
  198. pp: 'ksv',
  199. ps: 'dfmg',
  200. p2: 'fpxb'
  201. }
  202. }, [ 'desktop', 'tablet', 'phone'], {
  203. tabletWidth: 1024,
  204. phoneWidth: 767,
  205. isAutoReloads: false
  206. }]);})(window, 'adfoxAsyncParamsAdaptive');
  207. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement