Why Do I Have Code Where Google AdSense Ad Should Be?

3
9
154 followers

I just added Google AdSense to my website. At first it was putting the ads at the top of header and at the footer of my site. Now, there are no ads at the top header just a piece of code that I can't get rid of. Here is an image of the top header.

Has anyone come across this problem?

3
9

Join FREE & Launch Your Business!

Exclusive Bonus - Offer Ends at Midnight Today

00

Hours

:

00

Minutes

:

00

Seconds

2,000 AI Credits Worth $10 USD

Build a Logo + Website That Attracts Customers

400 Credits

Discover Hot Niches with AI Market Research

100 Credits

Create SEO Content That Ranks & Converts

800 Credits

Find Affiliate Offers Up to $500/Sale

10 Credits

Access a Community of 2.9M+ Members

By continuing, you agree to our Terms of Service and Privacy Policy
No credit card required

Recent Comments

9

Thanks everyone for responding, I got it fixed.

2

Had that problem yesterday and it was simply that I added the code in the visual tab instead of the text tab.
I put mine in a side widget.
After correcting it, it was blank for about an hour. Then the ad's started showing up.
Doug

1

Thanks for the tip

How did you add the verification code?

If you did it by editing your theme in Appearance > Editor, I'd delete it, as you'll have to redo it every time there's a theme update, as the code will get overwritten unless you have a child theme.

I recommend you install the Header & Footer plugin. https://wordpress.org/plugins/header-footer/ and then go to Settings > Header and Footer and insert it into the Head Section injection panel.

I'd also suggest using a plugin, either Ad Inserter https://wordpress.org/plugins/ad-inserter/ or WP Quads https://wordpress.org/plugins/quick-adsense-reloaded/ to manage your ads.

Nate has done some great training on Ad Inserter here: You might also want to consider Adsense Invalid Click Protector to stop click bombs. https://wordpress.org/plugins/ad-invalid-click-protector/

2

Thanks for sharing Rich, those are some awesome tips and good help. :))

I added it through the editor. Thanks Richard, I'll check out the links you sent me.

1

No probs. you're most welcome! :)

This normally happens if your code is not correct, somewhere you have not closed the code correctly. Did you do a copy paste of the code or type it in manually? Look it up, you might find the culprit. :))

1

I copied and pasted it, Thanks for responding

1

See more comments

Join FREE & Launch Your Business!

Exclusive Bonus - Offer Ends at Midnight Today

00

Hours

:

00

Minutes

:

00

Seconds

2,000 AI Credits Worth $10 USD

Build a Logo + Website That Attracts Customers

400 Credits

Discover Hot Niches with AI Market Research

100 Credits

Create SEO Content That Ranks & Converts

800 Credits

Find Affiliate Offers Up to $500/Sale

10 Credits

Access a Community of 2.9M+ Members

By continuing, you agree to our Terms of Service and Privacy Policy
No credit card required

2.9M+

Members

190+

Countries Served

20+

Years Online

50K+

Success Stories

The world's most successful affiliate marketing training platform. Join 2.9M+ entrepreneurs building their online business with expert training, tools, and support.

© 2005-2025 Wealthy Affiliate
All rights reserved worldwide.

🔒 Trusted by Millions Worldwide

Since 2005, Wealthy Affiliate has been the go-to platform for entrepreneurs looking to build successful online businesses. With industry-leading security, 99.9% uptime, and a proven track record of success, you're in safe hands.