Google custom search on Android failed with error 403 - android

Google Custom Search is returning this 403 error from my app. This is the response when run from my phone:
{
"error": {
"errors": [
{
"domain": "usageLimits",
"reason": "accessNotConfigured",
"message": "Access Not Configured. Please use Google Developers Console to activate the API for your project."
}
],
"code": 403,
"message": "Access Not Configured. Please use Google Developers Console to activate the API for your project."
}
}
The solution for the iOS version is given here:
Google Custom Search: 403 error in iOS
Thanks for any thoughts on what's wrong!

Related

How to fix the Invalid OAuth 2.0 Access Token AccountKit error?

My android app was removed, the error was Invalid OAuth 2.0 Access Token using AccountKit.
Google gave me this message:
picture of the error
Then, they give me this message:
{
"error": {
"message": "Invalid OAuth 2.0 Access Token",
"type": "EMApiException",
"code": 190,
"error_data": [
],
"fbtrace_id": "A-1MTjuDl-NerwvCnecjtZJ"
}
}
I dont know what to do, please help!

Google calendar API not working in signed apk

I integrate Google Calendar api properly and also works fine in unsigned apk.
But while i signed my app and try to access google calendar at that time api return below error.
Error com.google.api.client.googleapis.json.GoogleJsonResponseException: 403 Forbidden
{
"code" : 403,
"errors" : [ {
"domain" : "usageLimits",
"message" : "Access Not Configured. The API (Calendar API) is not enabled for your project. Please use the Google Developers Console to update your configuration.",
"reason" : "accessNotConfigured",
"extendedHelp" : "https://console.developers.google.com"
} ],
"message" : "Access Not Configured. The API (Calendar API) is not enabled for your project. Please use the Google Developers Console to update your configuration."
}
I also enabled Google Calendar api, CalDAV api.
So, I face this only in signed apk. unsigned is work perfect.
So, any one have idea that how i can resolve this issue?

Google Calendar API v3: Access Not Configured. The API (Calendar API) is not enabled for your project

I download the calendar-android-sample under https://github.com/google/google-api-java-client-samples, and make no change of the source code,and follow the develop console help to create the client ID for android,But when i run the calendar-android-sample application, i got error:
W/System.err(32741):
com.google.api.client.googleapis.json.GoogleJsonResponseException: 403
Forbidden
W/System.err(32741): "code": 403,
W/System.err(32741): "errors": [
W/System.err(32741): {
W/System.err(32741): "domain": "usageLimits",
W/System.err(32741): "message": "Access Not Configured. The API
(Calendar API) is not enabled for your project. Please use the Google
Developers Console to update your configuration.",
W/System.err(32741): "reason": "accessNotConfigured",
W/System.err(32741): "extendedHelp":
"https://console.developers.google.com"
W/System.err(32741): }
W/System.err(32741): ],
W/System.err(32741): "message": "Access Not Configured. The API
(Calendar API) is not enabled for your project. Please use the Google
Developers Console to update your configuration."
W/System.err(32741): }
I already enabled the Calendar API but still get this error,anyone know what's wrong?
As I read the documentation for google calender api through the below url.
https://developers.google.com/google-apps/calendar/quickstart/android
But as I find the problem with the documentation that they have not added two user permission to fetch data from the calender api.
<uses-permission android:name="android.permission.READ_CALENDAR" />
<uses-permission android:name="android.permission.WRITE_CALENDAR" />
I have add these above permission in my case then its work fine. Hopefully its work for you as well.
Check the following link for step-by-step instructions for using Google Calendar API for Android:
https://developers.google.com/google-apps/calendar/quickstart/android

Google Calendar API: Calendar usage limit message occur and accessNotConfigured

403 Forbidden
{
"code": 403,
"errors": [
{
"domain": "usageLimits",
"message": "Access Not Configured. Please use Google Developers Console to activate the API for your project.",
"reason": "accessNotConfigured"
}
],
"message": "Access Not Configured. Please use Google Developers Console to activate the API for your project."
I have already activated the api for google calendar. What can I do with that? I have also set the key but I am still getting error.
If you are using eclipse to build the application directly, you need to use debug key SHA1 for credential. You can find that in preferences > android > build.

youTube Api key throwing error on execution

Hi dears i am working on youtube api/v3. I created an Api key(not browser key). I am enabling all necessary API's on my account.But i am experiencing this error i am posting here.
"error": {
"errors": [
{
"domain": "usageLimits",
"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.",
"extendedHelp": "https://console.developers.google.com"
}
],
"code": 403,
"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."
}
this is my query URL url
any help regarding my question will be much appreciated.Thanks in advance
In the Google Developers Console > API Manager > Credentials. Check the section Accept requests from these HTTP referrers (web sites).

Categories

Resources