We've moved.
Visit our new home for news and updates from AdSense
Inside AdSense
Google's official blog for news, tips and information on AdSense.
Troubleshooting tips part I: Implementing your ad code
Thursday, January 28, 2010
Today, we're beginning a troubleshooting series to help you diagnose and solve common issues with your ads, search boxes, and account functionality. We're kicking things off with a look at how to correctly implement your ad code and an explanation of why ads may not appear on your pages at times.
First, the best way to ensure ads are served correctly is to copy and paste the code exactly as it's provided in your account. Changing the code and manipulating ad behavior aren't permitted by our program policies, and in most cases will prevent your ad from appearing at all.
If you've noticed that your ad units aren't showing ads, here are a few things to check for:
Did you just add the code to that page?
Relevant ads should appear on your pages shortly after you add the code, but sometimes it can take up to 48 hours for ads to show. This is because our crawler has to visit your page and determine its content so we can serve targeted ads.
Does the code on your page match the code in your account?
Make sure to copy the code exactly as it appears in your account, and paste it within the body tags of your HTML code. Be sure not to make any changes to the linebreaks of the code (e.g. pasting the code all in one line) as this will break the code and prevent ads from showing entirely.
Are you using an HTML editor?
Publishers often use a design-enhanced HTML editor like Macromedia Dreamweaver or Microsoft FrontPage (aka WYSIWIG, "what you see is what you get" software). If you use such an editor, you may see errors if you paste your ad code into a WYSIWYG view such as the "Design" or "Layout" view. For the ads to function properly, you'll have to copy and paste the ad code into the HTML source code of your webpage using the editor's HTML view or HTML insert function. Check for any additional tags inserted by the system or changes in the linebreaks.
Are you using a content management system (CMS)?
If you have trouble implementing AdSense with a specific content management system, we recommend searching for the name of the CMS (eg. Drupal, WordPress) and 'AdSense implementation'. You can also ask in the forum if other publishers have mastered similar problems, or contact your program provider directly.
Are the ads inside nested frames?
While you can choose where to position your ads on your pages, be sure to avoid embedding the ad code in excessive div tags or nested frames. Depending on your browser settings, implementing your ad code in this way might prevent ads from appearing correctly.
Is JavaScript enabled in your browser?
Ensure that you have JavaScript enabled in your browser, as this is necessary to view ads! If you're having trouble seeing the ads, please also check for any conflicting JavaScript on your site that might prevent ads from showing.
Is your page dynamically generated?
If you'd like to implement AdSense ads on a dynamically generated site -- for example, a site with session IDs or pages behind a login -- you should take a look at this
Help Center entry
for more information on how to receive targeted ads.
In the next part of this series, we'll provide tips to help you troubleshoot ad relevancy and targeting issues.
Posted by Ulrike Jung -
Inside AdSense
Team
Labels
#GlobalSpotlight
2
#SuccessStack
9
Active View
9
Ad formats
22
Ad layout
6
Ad Placement
2
AdSense
5
AdSense Anniversary
15
AdSense features
231
adsense guide
14
AdSense In Your City
22
AdSense Interface
61
AdSense Team
31
AdSense101
13
AMP
3
AskAdSense
4
Audience Engagement
4
Beginner's
1
Best Practice
22
Beta
1
Case studies
99
Certified Partners
4
Content strategy
23
DoubleClick
17
download
3
Earnings/Reports
70
eBook
3
Education
4
engagement
1
Facts and Fiction
11
FAQs
1
Feedback
10
Google Analytics
7
Google's Certified Publishing Partner
3
googlenew
13
Guest Blogger
4
Help
2
How to avoid policy violations
1
India
1
infographic
3
International
118
Learn with Google for Publishers
17
Matched content
6
micro-moments
5
Mobile
67
Mobile optimization
3
Multi-Screen
32
Native
1
native ads
4
Newbie
32
Optimal ad placement
1
Optimization
165
Other
245
Other Google products
106
Page-Level
1
PageSpeed
10
Pakistan
1
Passion into profit
8
Payments
62
Policy
2
Pop-Unders
1
Pop-Ups
1
Product update
11
Program Policies
79
Programmatic
1
Social
19
Support
10
Tips
37
Urdu
1
User Generated Content
1
Video
41
Viewability
13
Webinars
15
YouTube
3
Archive
2019
Oct
Sep
Aug
Jul
May
Feb
Jan
2018
Dec
Nov
Oct
Aug
Jun
May
Apr
Mar
Feb
Jan
2017
Dec
Nov
Oct
Sep
Aug
Jul
Jun
May
Apr
Mar
Feb
Jan
2016
Dec
Nov
Oct
Sep
Aug
Jul
Jun
May
Apr
Mar
Feb
Jan
2015
Dec
Nov
Oct
Sep
Aug
Jul
Jun
May
Apr
Mar
Feb
Jan
2014
Dec
Nov
Oct
Sep
Aug
Jul
Jun
May
Apr
Mar
Feb
Jan
2013
Dec
Nov
Oct
Sep
Aug
Jul
Jun
May
Apr
Mar
Feb
Jan
2012
Dec
Nov
Oct
Sep
Aug
Jul
Jun
May
Apr
Mar
Feb
Jan
2011
Dec
Nov
Oct
Sep
Aug
Jul
Jun
May
Apr
Mar
Feb
Jan
2010
Dec
Nov
Oct
Sep
Aug
Jul
Jun
May
Apr
Mar
Feb
Jan
2009
Dec
Nov
Oct
Sep
Aug
Jul
Jun
May
Apr
Mar
Feb
Jan
2008
Dec
Nov
Oct
Sep
Aug
Jul
Jun
May
Apr
Mar
Feb
Jan
2007
Dec
Nov
Oct
Sep
Aug
Jul
Jun
May
Apr
Mar
Feb
Jan
2006
Dec
Nov
Oct
Sep
Aug
Jul
Jun
May
Apr
Mar
Feb
Jan
2005
Dec
Nov
Oct
Sep
Aug
Feed
Subscribe to receive posts via email:
Visit this group
Follow @adsense
Useful links
Get started with AdSense
Sign in to your account
AdSense Help Center
AdSense Help Forum
Related Google products
AdMob: Monetize your app
DoubleClick for Publishers Small Business
Google AdWords
Google Analytics
Give us feedback in our
Product Forums
.