Display:none (Adsense)

Imam vprašanje glede Adsense oglasov. Na spletni strani imam Googlove adsense oglase, katerih pa na mobilni verziji ne želim prikazovati. Na mobilni napravi se namreč le-ti pojavijo preveč blizu logotipa in navigacije, kar pa ni po Googlovih pravilih.

Sedaj me pa zanima takšna rešitev s CSSjem.
Primer:

@media only screen and (max-width: 320px) {
.prostorzoglasom{Display:none;}
}

Ali je boljše uporabiti kakšno drugo rešitev? Kajti mislim, da Display:none; ni v skladu s pravili, saj se še vedno šteje kot prikaz oglasa.

Hvala.

3 odgovori

Sem že dobil odgovor, sicer na Adsensovi supportovi strani.
*Hiding an ad unit

In certain cases, particularly on smaller mobile devices, you might not want to show an ad at all. If you do want to hide an ad unit, you can set a parameter with CSS media queries so that no ad request is made and no ad is shown.
Even with this flexibility, please remember to always follow our ad placement policies. Keep in mind that only limited modifications to your code are permitted by our program policies.*

Example:

@media (max-width: 400px) { .adslot_1 { display: none; } }

4

Pozabil sem omeniti, da to pravilo velja le za responsive oglasno kodo.

remember to always follow our ad placement policies. Keep in mind that only limited modifications to your code are permitted by our program policies.


watson