Is that the code that causes the error? Or is that code that you modified, to try to solve the problem?
What country are you in? It appears as though you are trying to access the US version of google, and that google wants you to use a version appropriate for your country.