1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Adsense unit problem in iPad

Discussion in 'Black Hat SEO' started by frankstan, Mar 5, 2014.

  1. frankstan

    frankstan Regular Member

    Joined:
    Jan 14, 2014
    Messages:
    350
    Likes Received:
    44
    Today, I changed my ad layouts, put three ads on the top, everything is good, but it doesn't perform well in iPad. The unit didn't fit iPad perfectly, here is my code, anyone can tell me how to write the correct code?
    "<style>
    .rectangle-1 { width: 300px; height: 250px; }
    @media(min-width: 768px) { .rectangle-1 { width: 125px; height: 125px; } }
    @media(min-width: 800px) { .rectangle-1 { width: 300px; height: 250px; } }
    </style>
    <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
    <!-- rectangle 1# -->
    <ins class="adsbygoogle rectangle-1"
    style="display:inline-block"
    data-ad-client="xxxxxx"
    data-ad-slot="xxxxxx"></ins>
    <script>
    (adsbygoogle = window.adsbygoogle || []).push({});
    </script>"
    So, where is the problem? Thanks for your help