• Let me firt explain my situation. I use optimized ads from google adsense. I get this code from them, like a solution, how to control the size of your ads in a responsive style. So my code is:

    <ins class="adsbygoogle" ...

    Instad of this i put

    <ins class="adsbygoogle ads-text-post-2" ...

    Where ads-text-post-2 is a uniq class for the ad block. So for this class I have this shot css inline:

    <style>
    .ads-text-post-2 { width: 336px; height: 280px; }
    @media(min-width: 320px) { .ads-text-post-2 { width: 320px; height: 100px; } }
    @media(min-width: 480px) { .ads-text-post-2 { width: 320px; height: 100px; } }
    @media(min-width: 768px) { .ads-text-post-2 { width: 300px; height: 250px; } }
    @media(min-width: 986px) { .ads-text-post-2 { width: 336px; height: 280px; } }
    </style>
    <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
    <ins class="adsbygoogle ads-text-post-2" ...

    My problem is: If I use the adsense code without inline css code, the plugin record my ad code when I save the setting, but if I insert also inline css code with the adsense ad code, the plugin dont save the setting. Practicaly the field where I insert the code remain empty!

    What to do? Thx!

    https://www.ads-software.com/plugins/quick-adsense-reloaded/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Restriction to ad code format?’ is closed to new replies.