I developed an android app, which is in the play store for few weeks.
The app shortens a URL with the Google URL Shortener API.
After almost exactly 1 month after the generation of the API key , I get the following error
com.google.api.client.googleapis.json.GoogleJsonResponseException: 403 Forbidden
{403,[{"domain": "usageLimits",
"message": "Daily Limit for Unauthenticated Use Exceeded. Continued use requires signup.",
"reason": "dailyLimitExceededUnreg",
"extendedHelp": "https://code.google.com/apis/console"}],
"message": "Daily Limit for Unauthenticated Use Exceeded. Continued use requires signup."}
My app has only about 10 users. The limit is not reached.
The error occurs on this part of my code:
// build URL Shortener
Urlshortener.Builder builder = new Urlshortener
.Builder(AndroidHttp.newCompatibleTransport(),
AndroidJsonFactory.getDefaultInstance(), null)
.setApplicationName("URL Shortener");
Urlshortener urlshortener = builder.build();
Url url = new Url();
url.setLongUrl(urlToBeShortened);
url = urlshortener.url().insert(url).execute(); //<-- Error in this line
I am not using OAuth. I am using the public API Key. The manifest.xml is also set properly.
The app worked for a month without any problems.
Is there a 30day-trial version on the Shortener API, or is it not anymore free to use or was there an update on the API?
Or what's worng with the code? I haven't touched it for the last 2 weeks and at this time it worked fine.
I appreciate any help!
Greetings auderix
P.S.: English is not my native language. If there are any errors: Sorry