iOS Unable to use Books API on google - ios

I am scanning ISBN code and searching the book on the basis of that code on google in my iOS app. I created the app on google.I have keys for browser apps and I also created keys for iOS app.
Now here is the API I am using:-
https://www.googleapis.com/books/v1/volumes?q=isbn=9783161484100&key={API Key}
When I am passing browser app key its giving fine results in my iOS app also.
But when I am passing iOS API Key , then its giving response like this:-
{
"error": {
"errors": [
{
"domain": "usageLimits",
"reason": "accessNotConfigured",
"message": "Access Not Configured"
}
],
"code": 403,
"message": "Access Not Configured"
}
}
I knows that there are 1,000 request limit in a day. But I did only 18 request till now. Then why this response is coming from iOS API Key. Is there some other way to implement book search functionality in iOS.

Is your bundle identifier in google api console and bundle id in Xcode project are same?

There have been some issues w/ Google's API and Bundle IDs in their other apps.
As such - (in the Youtube API as well), Google suggested creating an API Key for "any app".
To do this -
In the Google Developer Console under your project's API & Auth:
Create New Key -> iOS Key, just click create with the bundle ID field left empty.

Related

livePermissionBlocked error from Youtube liveBroadcast/insert API

When attempting to call the liveBroadcasts/insert API I receive a livePermissionBlocked error. I have two google cloud projects, and both have been verified to be able to use auth/youtube scope. In one project with the same google user I can call that api without any issue. In the other project using the same user I receive livePermissionBlocked error. How can I investigate further why that API fails in one of the google cloud projects?
See below the full error response
{
"error": {
"code": 403,
"message": "The user is blocked from live streaming.",
"errors": [
{
"message": "The user is blocked from live streaming.",
"domain": "youtube.liveBroadcast",
"reason": "livePermissionBlocked",
"extendedHelp": "https://support.google.com/youtube/answer/2853834"
}
]
}
}
Also please note I have verified that the user I am testing with has Youtube streaming enabled. I am able to live stream on Youtube and also using one of my google cloud projects.

How to resolve Youtube Data API errors

Currently our Youtube data API v3 is enabled.
However, we found there was some error while we calling this API.
The screen shows as the following:
Google_Service_Exception : {
"error": {
"errors": [
{
"domain": "usageLimits",
"reason": "accessNotConfigured",
"message": "Access Not Configured. YouTube Data API has not been used in project 10xxxxxxxxx29 before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/youtube.googleapis.com/overview?project=10xxxxxxxxx29 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.",
"extendedHelp": "https://console.developers.google.com/apis/api/youtube.googleapis.com/overview?project=10xxxxxxxxx29"
}
],
"code": 403,
"message": "Access Not Configured. YouTube Data API has not been used in project 10xxxxxxxxx29 before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/youtube.googleapis.com/overview?project=10xxxxxxxxx29 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry."
}
}
We try to create a new O Auth 2.0 ID, but the issue was still got same error.
Is there any way to resolve this problem?
Thanks
Google allows for 50000 request per month/per user.So seem your website has high traffic.You can get another API key from your other gmail then put into API settings.Hope this help.

YouTube Data API V3 - Error Access Not Configured

I have a problem with the use of new YouTube Data API V3.
I'm still using version V2 but I plan to migrate my web application to the new version. After doing some tests with a call using the web browser type:
https://www.googleapis.com/youtube/v3/videos?id=TYkPtAmJn4E&key=*******************&part=snippet,contentDetails,statistics,status
I get the following error:
{
"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."
}
}
I state that the console should be configured correctly, as you can see from the attached images, since it works fine for more than a year with the V2 version of the API.
Can you help me solve this problem?
Thanks.!
You have to create a project, enable Data API v3 from console and use the credentials you create for that project.

Google Translate API integration in iOS app

I am trying to do a simple translation using Google Translate in my iOS app but as i call the url, i am getting the following error in responseā€¦
{
"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."
}
}
I couldn't find anything close to any solution of this issue.. Please can anyone help here. thanks in advanceā€¦
Well after some detailed searching and RnD, i found out that Google Translate API doesn't work with Bundle Identifier in iOS.. People have filed it as a bug on google forums.. So anyone trying hard to solve this can stop the efforts till it is solved..
You need to set ON for the Google Translate API.
Read 3rd step of setup of Getting Started link.
In the sidebar on the left, select APIs & auth. In the list of APIs, make sure the status is ON for the Google Translate API.
And make sure have to enable billing?
Important: Google Translate API v2 requires billing information for all accounts before you can start using the service.
And also have to set API key in proper way?
Since bundle id is optional for Key. So you can escape adding bundle id and enable the billing on. It will work. Try and let me know.
This error comes when you hadn't add the Credit card detail with your Google Cloud account, as rules has changed in which you need to add credit card details if you use Google translate api.

YouTube V3 Api not configured

Trying to access Youtube v3 api using the following link:
https://www.googleapis.com/youtube/v3/search?part=snippet&maxResults=5&q=funny& key=AIzaSyDFiabJG7l7aLfdvsLL1_DqKbZipKLvaI4
which returns
{
"error": {
"errors": [
{
"domain": "usageLimits",
"reason": "accessNotConfigured",
"message": "Access Not Configured"
}
],
"code": 403,
"message": "Access Not Configured"
}
}
The Google Cloud Console is billing enable account for the registered app with a Browser Key as follows;
Access data that comes from a browser, and that is not associated with an account
Api Key
AIzaSyDFiabJG7l7aLfdvsLL1_DqKbZipKLvaI4
Allowed referrers - Any referrer is allowed.
Activated on
Dec 3, 2013 11:11 PM
What are the factors which would cause this condition?
Any referer allowed
Please click Edit Allowed Refers and the removed the bundle id (com.something) and again click update .
And then use same api key hope it will work
I think you haven't enabled access for "YouTube Data API v3" on your project.
Following procedure may solve your issue:
Access to Google Cloud Console
Select your project which uses YouTube Data API v3
Navigate to "APIs & auth" > "APIs", and toggle the switch next to API name.
In some cases, even with the project properly configured it gives the same error. In this case you may need to try one of the following:
Regenerate the key
Edit the allowed referrers
Remove any referrers altogether (if it complies with your project requirements, of course)
Use a Server Key instead of a Browser Key
See this question for more information

Resources