AdSense Horizontal Ad Code for Above the Fold Uses


When you publish your first blog or website, it is very important to place ads carefully. Because it can make or break user experience. BTW, I'm a big fan of UI/UX, so I try every possible ways to increase user experience without decreasing my ad revenue.
You may heard about placing ads above the fold of your website that is visible without scrolling. But, when you are working with AdSense, the default responsive ad may look very large (in above the fold) which also decrease the overall user experience. I got the solution for this…
Use Advanced Ad Code with predefined ad size. It is Horizontal Ad Code.
<ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-1234567890123456" data-ad-slot="123456789" data-ad-format="horizontal" data-full-width-responsive="false"> </ins>
You just need to replace data-ad-client and data-ad-slot with your actual AdSense ID's. That's it, this would work like a responsive horizontal ad for different types of screen sizes.
Ok, now there might be a question in your mind: Is this even allowed by AdSense to modify ad tags?
The answer is yes. The ad code I have given to you is completely follow the AdSense ad tag parameters guidelines. You can read the official docs here.
Do let me know if you have any questions. Until, Happy Blogging 😊
Subscribe to my newsletter
Read articles from Hirak directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by

Hirak
Hirak
I love building high-performance web apps that users love