Google Ads do not appear in Facebook built-in in-app browser on smartphones
-
I run Google ads on my ColorMag based site. These are running fine on both PC and smartphones:
PC view Smartphone view Site and plugins are updated. Zero issues with my AdSense account.
However, I have problem running ads on Facebook’s in-app browser, which is built in iPhones and Android phones. When you open links, posted on Facebook on a smartphone, ads simply do not show 90% of the time:
Ads not showing in Facebook built-in in-app browser on smartphones My site is https://www.techbulgaria.com
Here is the code for the the ads:
<!-- For PCs --> <div class="pc-ad"> <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-6568149107086945" crossorigin="anonymous"></script> <!-- Leaderboard 728x90 --> <ins class="adsbygoogle" style="display:inline-block;width:728px;height:90px" data-ad-client="ca-pub-6568149107086945" data-ad-slot="4661644598"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> </div> <!-- For Smartphones --> <div class="mobile-ad" style="margin-top: 20px;"> <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-6568149107086945" crossorigin="anonymous"></script> <!-- 320x50 --> <ins class="adsbygoogle" style="display:inline-block;width:320px;height:50px" data-ad-client="ca-pub-6568149107086945" data-ad-slot="9348549395"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> </div> <style> /* Hide mobile ad on PCs */ @media screen and (min-width: 768px) { .mobile-ad { display: none; } } /* Hide PC ad on smartphones */ @media screen and (max-width: 767px) { .pc-ad { display: none; } } </style>
And a custom CSS which makes the placeholders black instead of the original white:
/* Additional CSS to style ad placeholders */ .adsbygoogle { background-color: black !important; }
Would you address the issue and guess how to invoke showing the ads in the built-in in-app Facebook browser every time users open links from Facebook on their smartphones?
The page I need help with: [log in to see the link]
- The topic ‘Google Ads do not appear in Facebook built-in in-app browser on smartphones’ is closed to new replies.