Unfortunately, it is extremely difficult to figure out what exactly is going on 
without a few more details about how you're using and calling the API. That 
said, you have provided enough information for me to guess that you're using 
the Translate API v1. In general, with v1, the error that you're seeing 
generally comes when you've sent too many requests and triggered the throttling 
mechanisms. I believe, however, that it may also appear if you do not include 
the HTTP_REFERER header from a non-browser client. You will definitely want to 
check that out.

That said, if the issue is one of too many requests, you can mitigate the 
situation to an extent by including the key, as you have proposed. In that 
case, where you put the API key depends on how you're utilizing the API. If 
you're using it via the Javascript API, you include the key as a parameter of 
the jsapi loader, as below:

<script type="text/javascript" 
src="http://www.google.com/jsapi?key=<YOUR_KEY_HERE>"></script>

If, however, you're using the API RESTful endpoints (i.e., from anything other 
than the Javascript API), you need to include it as a parameter in the url of 
any request you send to the endpoint, as below:

url = 
"http://ajax.googleapis.com/ajax/services/language/translate?v=1.0&key=<YOUR_KEY_HERE>&q=hello,
 world..."

As I said, if none of the above solves the problem, then please don't hesitate 
to post back. Just remember that we'll need more details. I would suggest one 
of two things. If you're using the Javascript API, post a link to your page, 
regardless of whether it's working or not. That way we can see what's going on 
in context. If you're not using the Javascript API or posting a link is 
absolutely impossible, then copy the relevant code to a pasting service and 
post the link to that.

Jeremy R. Geerdes
Generally Cool Guy
Des Moines, IA

For more information or a project quote:
jrgeer...@gmail.com

If you're in the Des Moines, IA, area, check out Debra Heights Wesleyan Church!

On May 12, 2011, at 6:47 AM, Sameer wrote:

> I have a document which is in some other language other than English.
> 
> This is the document:
> 
> Mit einem Male fühlte er, wie ein heftiges Beben durch Elisens Körper
> ging. Ihre beiden Hände griffen nach seinem Nacken, ihre Finger
> schienen sich in seine Haut einbohren zu wollen, dann
> 
> 
> Following is the error it gave me after executing the tranny
> command...
> 
> error Suspected Terms of Service Abuse. Please see 
> http://code.google.com/apis/errors
> error Suspected Terms of Service Abuse. Please see 
> http://code.google.com/apis/errors
> 
> 
> I have the API key with me but not sure where in tranny should i
> insert the key??
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Google AJAX APIs" group.
> To post to this group, send email to google-ajax-search-api@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-ajax-search-api+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/google-ajax-search-api?hl=en.
> 

-- 
You received this message because you are subscribed to the Google Groups 
"Google AJAX APIs" group.
To post to this group, send email to google-ajax-search-api@googlegroups.com.
To unsubscribe from this group, send email to 
google-ajax-search-api+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-ajax-search-api?hl=en.

Reply via email to