question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Google auto ads won't load on article post

See original GitHub issue

Make sure you go through the Hexo docs, Icarus user manual, and GitHub issues to see if the bug you are reporting has been already addressed by others.

Describe the bug A clear and concise description of what the bug is.

When use old Icarus (ejs version) Google auto ads is work normally on post article but when using jsx version (inferno) Google auto ads won’t load on post article. this issue only happent on post article for the rest is work normally

System and Environment The version and configuration of Hexo and Icarus.

Icarus version that I use when open this issue is master and here is Hexo version

hexo: 5.4.0
hexo-cli: 4.2.0
os: Linux 5.4.101 linux amd64
node: 14.16.0
v8: 8.4.371.19-node.18
uv: 1.40.0
zlib: 1.2.11
brotli: 1.0.9
ares: 1.16.1
modules: 83
nghttp2: 1.41.0
napi: 7
llhttp: 2.1.3
openssl: 1.1.1j
cldr: 37.0
icu: 67.1
tz: 2020a
unicode: 13.0
  • Hexo, OS, and node version (use hexo version command to view these information)
  • Site configuration file _config.yml
  • Theme configuration file _config.icarus.yml or themes/icarus/_config.yml
  • Any additional theme configuration files (post front-matter, _config.post.yml, or _config.page.yml)
  • Browser and version (e.g., Firefox 70.0, Chrome Android 80.0)

To Reproduce Steps to reproduce the behavior, such as:

  1. Go to ‘…’
  2. Click on ‘…’
  3. Scroll down to ‘…’
  4. ‘…’ error appears

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Additional context Add any other context about the problem here.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ppofficecommented, Mar 9, 2021

Sorry I can’t give you any other advice without seeing your exact Google Adsense configuration or error information. However, you may add that line of script to layout/common/head.jsx and see if it works.

0reactions
nxkuncommented, Mar 9, 2021

What I did at point 1 already on Icarus

https://github.com/ppoffice/hexo-theme-icarus/blob/master/layout/common/head.jsx#L163-#L164

Oke thanks a lot for your time. I think this issue also on a React too.

Oke close this issue. Thanks a lot

Read more comments on GitHub >

github_iconTop Results From Across the Web

AdSense Ads Not Showing: Common Reasons Why & What to ...
AdSense ads not showing up? Learn the four most common reasons for missing ads on websites and the steps for troubleshooting.
Read more >
Auto ads between content had disappeared in articles (except ...
The first time it happened, I managed to fix it, by disabling / enabling auto ads. The second time I did a lot...
Read more >
Google AdSense Auto ads not showing up | Advanced Ads
Are Google AdSense Auto ads not showing up? Please follow the steps listed in this manual to check for the most common problems...
Read more >
How to fix the problem of Google AdSense ads not showing in ...
Go to your Google Adsense dashboard and check if there's any violation notifications that you haven't fixed. · Remove all the ads on...
Read more >
Google AdSense Auto Ads not showing? This might be why.
In your AdSense account go to Account > Policy center. Check if there are any issues or violations listed here. In the Sites...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found