"The webpage cannot be found" in my google adsense blocks? It's for a site I bought. All I did was replace the pub and channel id. It needs time to show? or what? It's going on around 4 hours and the site is listed in google.
page.php (page template) <?php get_header(); ?> <?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <h1 class="pagetitle"><?php the_title(); ?></h1> <script type="text/javascript"><!-- google_ad_client = "pub-##########"; /* 468x60, created 12/25/09 */ google_ad_slot = "7281583840"; google_ad_width = 468; google_ad_height = 60; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> <div class="entry page clear"> <?php the_content(); ?> <?php edit_post_link(__('Edit This','<p>','</p>', 'vigilance')); ?> <?php wp_link_pages(); ?> </div><!--end entry--> <?php endwhile; /* rewind or continue if all posts have been fetched */ ?> <?php else : ?> <?php endif; ?> </div><!--end content--> <?php get_sidebar(); ?> <?php get_footer(); ?> Code (markup): second ad.. sidebar (sidebar.php) <?php global $vigilance; ?> <div id="sidebar"> <?php if ($vigilance->sideimgState() == 'hide') : else : ?> <?php if (is_file(STYLESHEETPATH . '/sidebar-imagebox.php')) include(STYLESHEETPATH . '/sidebar-imagebox.php'); else include(TEMPLATEPATH . '/sidebar-imagebox.php'); ?> <?php endif; ?> <?php if ($vigilance->feedState() == 'disabled') : else : ?> <?php if (is_file(STYLESHEETPATH . '/sidebar-feedbox.php')) include(STYLESHEETPATH . '/sidebar-feedbox.php'); else include(TEMPLATEPATH . '/sidebar-feedbox.php'); ?> <?php endif; ?> <ul> <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('wide_sidebar') ) : ?> <li class="widget widget_recent_entries"> <script type="text/javascript"><!-- google_ad_client = "pub-#########"; /* 160x600, created 12/25/09 */ google_ad_slot = "7281583840"; google_ad_width = 160; google_ad_height = 600; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> </li> <?php endif; ?> </ul> <?php if (is_active_sidebar('left_sidebar')) echo '<ul class="thin-sidebar spad">';?> <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('left_sidebar') ) : endif; ?> <?php if (is_active_sidebar('left_sidebar')) echo '</ul>'; ?> <?php if (is_active_sidebar('right_sidebar')) echo '<ul class="thin-sidebar">'; ?> <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('right_sidebar') ) : endif; ?> <?php if (is_active_sidebar('right_sidebar')) echo '</ul>' ;?> </div><!--end sidebar--> Code (markup): Hope this helps. I just hope that the only issue is time thanks
You can't use " in your script. Open notepad, paste your ad script, go to the replace function and change " to '.
the google_ad_slot = "7281583840"; is created by u or old owner ? u can't simply replace the pub-id if the adslot is created by old owner. create your own adslot or use classic adsense code which is better way
Thats it. It takes some time for Google to load the new code and show the ads on your site. Anywhere from 1 hour to 1 day.
I agree with this, you should create your own ad and channel, base on my experience it takes 10 minute to load the new code.