Выплат еще не было. Сам сижу жду
Сделайте так:
@media screen and (min-width: 200px) { .yandex-adaptive { width:190px; height:320px; }}@media screen and (min-width: 260px) { .yandex-adaptive { width:250px; height:300px; }}@media screen and (min-width: 310px) { .yandex-adaptive { width:300px; height:300px; }}@media screen and (min-width: 400px) { .yandex-adaptive { width:380px; height:300px; }}@media screen and (min-width: 500px) { .yandex-adaptive { width:480px; height:300px; }}@media screen and (min-width: 600px) { .yandex-adaptive { width:580px; height:310px; }}@media screen and (min-width: 700px) { .yandex-adaptive { width:680px; height:310px; }}@media screen and (min-width: 800px) { .yandex-adaptive { width:780px; height:310px; }}@media screen and (min-width: 900px) { .yandex-adaptive { width:880px; height:310px; }}@media screen and (min-width: 1000px) { .yandex-adaptive { width:980px; height:310px; }}
Ну а сам блок вот так:
<div id="width" style="margin: 0 auto"><script type="text/javascript">var limmw=document.getElementsByTagName("body")[0].offsetWidth;if (limmw>=645) {var limm="3";} else {var limm="2";}if (limmw<=440) {limm="1";}yandex_partner_id = ХХХХХХ;yandex_site_bg_color = 'FFFFFF';yandex_stat_id = 8;yandex_ad_format = 'direct';yandex_font_family = 'arial';yandex_direct_type = 'posterHorizontal';yandex_direct_border_type = 'ad';yandex_direct_limit = limm;yandex_direct_title_font_size = 3;yandex_direct_links_underline = true;yandex_direct_border_color = 'FBE5C0';yandex_direct_title_color = '0000CC';yandex_direct_url_color = '006600';yandex_direct_text_color = '000000';yandex_direct_hover_color = '0066FF';yandex_direct_favicon = true;yandex_no_sitelinks = true;document.write('<scr'+'ipt type="text/javascript" src="//an.yandex.ru/system/context.js"></scr'+'ipt>');</script></div>
Если есть блок ссылок, то он дает "показы в видимой части - 0%". что в свою очередь сильно тянет вниз общий показатель
а не проще из
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
удалить "async"?
Вопрос решился так:
<script type="text/javascript"> var limmw=document.getElementsByTagName("body")[0].offsetWidth; if (limmw>=645) {var limm="3";} else {var limm="2";} if (limmw<=440) {limm="1";} yandex_partner_id = XXXXXX; yandex_site_bg_color = 'FFFFFF'; yandex_stat_id = 8; yandex_ad_format = 'direct'; yandex_font_family = 'arial'; yandex_direct_type = 'posterHorizontal'; yandex_direct_border_type = 'ad'; yandex_direct_limit = limm; yandex_direct_title_font_size = 3; yandex_direct_links_underline = true; yandex_direct_border_color = 'FBE5C0'; yandex_direct_title_color = '0000CC'; yandex_direct_url_color = '006600'; yandex_direct_text_color = '000000'; yandex_direct_hover_color = '0066FF'; yandex_direct_favicon = true; yandex_no_sitelinks = true; document.write('<scr'+'ipt type="text/javascript" src="//an.yandex.ru/system/context.js"></scr'+'ipt>'); </script>
То есть блоки меняют количество объявлений в зависимости от разрешения экрана. Сразу отвечу наперед, спрашивал у суппорта, сказали что это разрешено. Теперь не могу понять как выровнять блоки по центру, обычными методами не получается.
у меня 300000 показов и 53% =)
Скорее всего кэш, либо действительно блока не хватает. Если у вас траф не изменился, то как объяснить, что у вас количество показов уменьшилось в 2,5 раза? Отсюда и доход
Кто может сказать, использую код:
function yad1() { return ' <style> @media screen and (max-width: 800px) { .yandex-adaptive { width:200px; height:300px; } } @media screen and (max-width: 1024px) { .yandex-adaptive { width:240px; height:400px; } } </style> <div id="yandex_ad" class="yandex-adaptive"></div> <script type="text/javascript"> (function(w, d, n, s, t) { w[n] = w[n] || []; w[n].push(function() { Ya.Direct.insertInto(666666, "yandex_ad", { stat_id: 13, ad_format: "direct", type: "adaptive", border_type: "block", limit: 3, border_radius: true, links_underline: true, site_bg_color: "FFFFFF", border_color: "FBE5C0", title_color: "0000CC", url_color: "006600", text_color: "000000", hover_color: "0066FF", sitelinks_color: "0000CC", favicon: true, no_sitelinks: false, height: 90, width: 720 }); }); t = d.getElementsByTagName("script")[0]; s = d.createElement("script"); s.src = "//an.yandex.ru/system/context.js"; s.type = "text/javascript"; s.async = true; t.parentNode.insertBefore(s, t); })(window, document, "yandex_context_callbacks"); </script>'; } add_shortcode('rsya', 'yad1');
все работает.
использую:
function yad1() { return ' <style> @media screen and (max-width: 330px) { .yandex-adaptive { width:200px; height:300px; } } @media screen and (max-width: 400px) { .yandex-adaptive { width:300px; height:300px; } } @media screen and (max-width: 600px) { .yandex-adaptive { width:400px; height:150px; } } @media screen and (max-width: 800px) { .yandex-adaptive { width:600px; height:100px; } } </style> <div id="yandex_ad" class="yandex-adaptive"></div> <script type="text/javascript"> (function(w, d, n, s, t) { w[n] = w[n] || []; w[n].push(function() { Ya.Direct.insertInto(666666, "yandex_ad", { stat_id: 13, ad_format: "direct", type: "adaptive", border_type: "block", limit: 3, border_radius: true, links_underline: true, site_bg_color: "FFFFFF", border_color: "FBE5C0", title_color: "0000CC", url_color: "006600", text_color: "000000", hover_color: "0066FF", sitelinks_color: "0000CC", favicon: true, no_sitelinks: false, height: 90, width: 720 }); }); t = d.getElementsByTagName("script")[0]; s = d.createElement("script"); s.src = "//an.yandex.ru/system/context.js"; s.type = "text/javascript"; s.async = true; t.parentNode.insertBefore(s, t); })(window, document, "yandex_context_callbacks"); </script>'; } add_shortcode('rsya', 'yad1');
не работает. Почему??
Можете подсказать как сделали вы? у меня один блок над статьей и под статьей
Можно поподробнее насчет первого варианта?