How to create adsense ad units with specific size remains responsive
![]() |
Tipswong - Media Inspiration |
All publishers are required to adhere to these policies, please read them carefully. If you fail to comply with these policies without permission from Google, Google reserves the right to disable ad serving to your site and / or disable your AdSense account at any time. If your account is disabled, you are not eligible for further participation in the AdSense program.
I hope you understand the rules set by Google.
To modify the ad code to a certain size and remain responsive and random size (depending placing ad code templates) are encouraged to use Responsive Template.
Example: you place the ad code that has been modified at the Sidebar, the size of your sidebar with a width of 300px, the possibility that the ad code has been modified to be aired 300x600, 160x600, 120x600, 300x250, 250x250 (Random)
For width of 400, If you put the article section with widths from 400/500/600/700/800/900/1000, the ads that have been modified to be aired with a 336x280, 300x250, 250x250 and Full Size.
For width of 500, almost the same as the width of 400, there may be additional ads that would appear with the size of 468x60.
For a width of 600, the same as the width of 400 and 500.
For a width of 700, the same as the width of 400, 500 and 600.
For width 800, almost the same as the width of 400, 500, 600 and 700, there may be additional ads that would appear with the size of 728x90.
For a width of 900, the same as the width of 400, 500, 600, 700 and 800.
For width 1000 / more, the same as the previous width of 400, 500, 600, 700, 800 and 900, there may be additional ads that would appear with 970x250 and 970x90.
Copy the code below and place your ad where you prefer, with the exception of floating ads.
<ins class="adsbygoogle"
style="display:block;"
data-ad-client="ca-pub-123456789"
data-ad-slot="1234567"
data-ad-format="rectangle", "vertical", "horizontal"></ins>
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<script>(adsbygoogle = window.adsbygoogle || []).push({});</script>
REMEMBER : Before you place your ad code, you have to choose the order of the data - ad- format : " rectangle", "vertical ", " horizontal " / "vertical ", " horizontal ", " rectangle" / " horizontal ", " rectangle", "vertical " / you just want to select one of the " rectangle" / "vertical " / " horizontal ".
The point, where the sequence of data-ad - first format , the size of the ads that appear frequently.
Example : " rectangle", "vertical ", " horizontal ", the ad will appear with the size of the " rectangle". to the size of the "vertical ", " horizontal " depending on the width of body articles / your sidebar.
Comments
Post a Comment