Search

Monday 28 September 2015

Why Custom Search Engine not showing search result?

Custom search result suddenly stopped showing search result. what is the reason behind? BloggingFunda has diagnosed and implemented the solution to his own blog and it is successful.

Do you have your blog monetize for google adsense?

If yes,

but suddenly ads stopped showing in the search result page on your blog.

Then, why google custom search engine not showing search results?

Do you know what is the reason behind or what to do to rectify the issue?

As per Google - Reason for Ads not Showing

"If AdSense ads aren't appearing on results pages for your Custom Search Engine, possible explanations include:
  • The search query did not trigger ads. 

  • If you have just applied for an AdSense account, you will not see any ads until your account gets approved (usually in a few days). 
  • If you have indicated that your Custom Search Engine is for a qualifying non-profit organization, your search engine results will never have ads."

There could be several factors responsible for this issue and you must check all one by one. 

I am dividing this issue in two parts and so the reasons and solutions are also of two types.

  1. Basic Reason

    1. Disables Javascript
    2. Ads Inside the Nested Frames
    3. Outdated browser
    4. Ads blocking script
  2. Advance Reason

    1. Added CSS coding in the template
    2. Added third party Javascript in template

If you are not sure what to do then start with the basic level and you could easily get help about basic reason.

But here I will write only advance reason because most of the time this causes trouble and your adsense ads stop showing in search result.

Did you  enter any CSS coding inside your blog template?

This is also a minor level diagnose but can be the reason. If you added any CSS coding then try to remove and then check.

If your custom search result starts showing result then it is alright.

But still it is not showing then go to step two.

Again check if you have added any third party script in your blog's template, if so then remove that and check again.

Most vulnerable script

As per my observation and experience, this could be due to adding a script in the head section of your blog.

The script is to stop country specific URL redirection. Which is frequently getting in use by most of the bloggers now a days.

You can check the related post below:-

Solution of not showing Search Result

I have tested with my own blogs where I faced the problem of not showing search result with custom search engine.

You have to follow some steps to rectify the problem.

Step1:- Login into www.blogger.com account
Step2:- Click Template Step3:- Edit HTML Step4:- Press Ctrl+F and search below script


<!--Stop country specific URL Redirection script starts here-->
<script type="text/javascript">
      var blog = document.location.hostname;
      var dtype = document.location.pathname;
      var dtld = blog.substr(blog.lastIndexOf("."));
      if (dtld != ".com") {
        var ncr = "http://" + blog.substr(0, blog.indexOf("."));
        ncr += ".blogspot.com/ncr" + dtype;
        window.location.replace(ncr);
      }
</script>
<!--Stop country specific URL Redirection script ends here-->

Step5:- Now remove this script
Step6:- Save Template and you are done.
99 percent reason occurs due to adding this or any similar javascript in your blog's template. 

Now check your custom search result, it will surely work and you will able to view the search result.

If you are facing this issue after adding this script, then you must remove your script.

But if you still want to use this script to stop country specific URL redirection, then this could be done and for this you have to follow some instruction.

If you want to know about those instructions, then feel free to comment on this blog and subscribe to this blog for further updates and solutions.

Thanks for reading this blog till end.

No comments:

Post a Comment