Advertisement

Google AdSense ads are not showing after page refresh

General questions relating to Joomla! 2.5. Note: All 1.6 and 1.7 releases have reached end of life and should be updated to 2.5. There are other boards for more specific help on Joomla! features and extensions.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting.
Forum Post Assistant - If you are serious about wanting help, you should use this tool to help you post.
Post Reply
checkinindza
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Wed Jul 24, 2024 11:15 am

Google AdSense ads are not showing after page refresh

Post by checkinindza » Wed Jul 24, 2024 11:21 am

Hi, first of all, this is not our site and I recently started working as a IT support, that's why I'm still figuring out a lot of things. So, sorry if I can't provide all the needed information.

A client of our firm has reached out to us to help with Google AdSense ads not showing up on his page. What we've noticed is that they do show up the first time you visit the site and consent to cookies. First refresh of the page and they disappear until you don't clear the browser's cache. I definitely know it's not an issue on my side, my colleagues have looked into it and they have the same issue.

Ads code are inserted into a module. Browser console, Joomla debug doesn't show any errors at all. So I'm at a loss here why it happens.

We don't have access to client's AdSense account, but if really needed, we might ask for it or at least look into it with him remotely.

Joomla version is 2.5.28

Site in question: de2.lt

Thank you in advance!

Advertisement
charlotte34
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Thu Jul 25, 2024 9:53 am

Re: Google AdSense ads are not showing after page refresh

Post by charlotte34 » Thu Jul 25, 2024 9:56 am

Ensure that the AdSense code is correctly placed within the Joomla module? Incorrect placement or modifications to the code might cause issues.

checkinindza
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Wed Jul 24, 2024 11:15 am

Re: Google AdSense ads are not showing after page refresh

Post by checkinindza » Fri Jul 26, 2024 5:52 am

charlotte34 wrote: Thu Jul 25, 2024 9:56 am Ensure that the AdSense code is correctly placed within the Joomla module? Incorrect placement or modifications to the code might cause issues.

Code: Select all

<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-3863486738647324" crossorigin="anonymous"></script>
<!-- Homepage Leaderboard -->
<ins class="adsbygoogle"
style="display:inline-block;width:728px;height:90px"
data-ad-client="ca-pub-3863486738647324"
data-ad-slot="9199027095"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
Seems like it's fine.

gws
Joomla! Champion
Joomla! Champion
Posts: 6335
Joined: Tue Aug 23, 2005 1:56 pm
Location: South coast, UK
Contact:

Re: Google AdSense ads are not showing after page refresh

Post by gws » Fri Jul 26, 2024 9:15 am

I had a situation similar to what you are describing, it turned out I had forgot to disable my add blocker in my browser?

charlotte34
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Thu Jul 25, 2024 9:53 am

Re: Google AdSense ads are not showing after page refresh

Post by charlotte34 » Mon Jul 29, 2024 9:08 am

checkinindza wrote: Fri Jul 26, 2024 5:52 am
charlotte34 wrote: Thu Jul 25, 2024 9:56 am Ensure that the AdSense code is correctly placed within the Joomla module? Incorrect placement or modifications to the code might cause issues.

Code: Select all

<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-3863486738647324" crossorigin="anonymous"></script>
<!-- Homepage Leaderboard -->
<ins class="adsbygoogle"
style="display:inline-block;width:728px;height:90px"
data-ad-client="ca-pub-3863486738647324"
data-ad-slot="9199027095"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
Seems like it's fine.
Is your site approved by Google AdSense? Another possible reason could be that the ads.txt file has not been uploaded. Additionally, try using a VPN to check if the ads are displaying.

checkinindza
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Wed Jul 24, 2024 11:15 am

Re: Google AdSense ads are not showing after page refresh

Post by checkinindza » Thu Aug 01, 2024 8:01 am

gws wrote: Fri Jul 26, 2024 9:15 am I had a situation similar to what you are describing, it turned out I had forgot to disable my add blocker in my browser?
Well, I do have uBlock Origin installed on my main browser (Edge). But to make sure it isn't affecting anything, I tried different, clean installed browsers (Firefox, Chrome) and result is the same.

checkinindza
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Wed Jul 24, 2024 11:15 am

Re: Google AdSense ads are not showing after page refresh

Post by checkinindza » Thu Aug 01, 2024 8:04 am

charlotte34 wrote: Mon Jul 29, 2024 9:08 am
checkinindza wrote: Fri Jul 26, 2024 5:52 am
charlotte34 wrote: Thu Jul 25, 2024 9:56 am Ensure that the AdSense code is correctly placed within the Joomla module? Incorrect placement or modifications to the code might cause issues.

Code: Select all

<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-3863486738647324" crossorigin="anonymous"></script>
<!-- Homepage Leaderboard -->
<ins class="adsbygoogle"
style="display:inline-block;width:728px;height:90px"
data-ad-client="ca-pub-3863486738647324"
data-ad-slot="9199027095"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
Seems like it's fine.
Is your site approved by Google AdSense? Another possible reason could be that the ads.txt file has not been uploaded. Additionally, try using a VPN to check if the ads are displaying.
Hmm, can't tell. Still waiting on clients response if it would be possible to check his AdSense account, but ads.txt file is definitely uploaded.

gkarras
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Sun Sep 01, 2024 3:34 pm

Re: Google AdSense ads are not showing after page refresh

Post by gkarras » Sun Sep 01, 2024 3:37 pm

I have the same problem, is there a solution?

Advertisement

Post Reply

Return to “General Questions/New to Joomla! 2.5”