Hi there,
I'm trying to incorporate the Google Translate API into an Android app for release.
I have followed the guide
(https://cloud.google.com/translate/v2/using_rest#auth) to create an API key and an SHA1 fingerprint. In addition, I have created an OAuth 2.0 client ID for production and enabled billing. However, I keep getting the following error when I make a request:
Translate Exception: com.google.api.client.googleapis.json.GoogleJsonResponseException: 403 Forbidden
{
"code" : 403,
"errors" : [ {
"domain" : "usageLimits",
"message" : "There is a per-IP or per-Referer restriction configured on your API key and the request does not match these restrictions. Please use the Google Developers Console to update your API key configuration if request from this IP or referer should be allowed.",
"reason" : "ipRefererBlocked",
} ],
"message" : "There is a per-IP or per-Referer restriction configured on your API key and the request does not match these restrictions. Please use the Google Developers Console to update your API key configuration if request from this IP or referer should be allowed."
}
If I use a server API key for debugging, everything works great! But I can't release an android app with a server API key.
Any help would be amazing!