<div id="ad-container"></div>
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-XXXXXX"
crossorigin="anonymous"></script>
<script>
const adSlots = [
'1234567890', // Slot 1
'0987654321', // Slot 2
'1122334455', // Slot 3
// Добавь сколько нужно
];
const adClient = 'ca-pub-XXXXXX'; // Твой AdSense ID
const container = document.getElementById('ad-container');
let currentIndex = 0;
function loadAd(slot) {
container.innerHTML = `
<ins class="adsbygoogle"
style="display:block"
data-ad-client="${adClient}"
data-ad-slot="${slot}"
data-ad-format="auto"
data-full-width-responsive="true"></ins>
`;
(adsbygoogle = window.adsbygoogle || []).push({});
}
function startRotation() {
loadAd(adSlots[currentIndex]);
const interval = setInterval(() => {
currentIndex++;
if (currentIndex >= adSlots.length) {
clearInterval(interval); // стоп на последнем
return;
}, 30000); // каждые 30 сек
startRotation();
</script>
сдрейфил но доход оч сильно поднимался с ней...выключил через 2 дня...планирую еще раз включить но скрипт будет менять разные эд слоты..может это получше, поддержка ответила на вопрос можно ли то что не могут ничем помочь подсказать
We have reviewed your inquiry with the relevant team. Unfortunately, the specific feature you are requesting, to automatically refresh standard banner ad units at a set interval like 3 minutes, is not a currently supported functionality within Google AdSense.
We understand that this feature would be beneficial for your website, and we appreciate you bringing it to our attention. Please be assured that we have taken your feedback into consideration.
Thank you for your understanding.
поделитесь скрипт пожалуйста.
досехпор используйте "авторотацию обьявлений эдсенс раз в 30 сек", не прилетел никакой предупреждения, поднялся доход?
меня тоже мучает этот вопрос
Никак не могу найти это функция, помогите пожалуйста.
Покажу Вам одно вещи с бегет. скриншот ниже.
Ище меня интересует это, реально ли так ускорить сайт litespeed? 6 mln установки.
https://openlitespeed.org/benchmarks/wp-http2/
не скажешь что это nvme )) - не понял плохо или хорошо?