So I'm making a get request to the youtube api and this is the response:
{
"error": {
"code": 403,
"message": "The request cannot be completed because you have exceeded your quota.",
"errors": [
{
"message": "The request cannot be completed because you have exceeded your quota.",
"domain": "youtube.quota",
"reason": "quotaExceeded"
}
]
}
}
The problem is that I haven't used my quota at all for at least 2 months and as shown below there is indeed 0 usage. But I still get the above response when trying to access the api.
Can anyone help me?
Thanks in advance.
Based on your description of the issue and the screenshot shared, most probably your project has been disabled or restricted due to inactivity. Here you can find a document with the "Youtube API Services - Developer Policies" [1].
In section D clause 4 you can find the part related to inactivity and the restriction of quota:
"YouTube reserves the right to disable or curtail your access to, or use of, specific YouTube API Services if your API Project has been inactive for 90 consecutive days. For example, YouTube could revoke your API Credentials, or reduce (or eliminate) your API Project's quotas for specific YouTube API Services. If your API Client's quota is reduced or eliminated, you may reapply for quota or a quota extension, and YouTube will review that application based on YouTube’s determination of your expected use of the YouTube API Services."
[1] https://developers.google.com/youtube/terms/developer-policies#d.-accessing-youtube-api-services
Related
I recently started using the new Whatsapp Cloud API. Unfortunately already the sample request in the first steps guide gives an error message. The request to the messages endpoint gives the following response:
{
"error": {
"message": "An unknown error occurred",
"type": "OAuthException",
"code": 1,
"error_subcode": 2593006,
"is_transient": false,
"error_user_title": "Account Not Exist",
"error_user_msg": "Account does not exist in Facebook Hosted API, please use /register API to create an account first.",
"fbtrace_id": "AX1Thf9OPBhmj7NlDV6-5IA
"
}
}
I am still using the Test WhatsApp Business Account with a Test Number.
When calling the register endpoint I get You can’t complete the setup process because your business doesn’t meet WhatsApp’s policy requirements. If you think this is incorrect, reach out to Meta Business Suite support for help.
Does anyone have an idea, what the problem is?
Thank you in advance,
Sören
Whatapp Business Platform requires a verified FaceBook business account and also a working payment method. I recommend to verify your Facebook (Meta) Business Account.
i am using google cloud platform's vision API
to request the api i am using API key provided by them
authentication documentation in this link i a m authenticating using API key
when i POST URL along with the API Key the following response arrived.
{
"error": {
"code": 403,
"message": "This API method requires billing to be enabled. Please
enable billing on project santram-194814 by visiting
https://console.developers.google.com/billing/enable?
project=[my-project-name] then retry. If you enabled
billing for this project recently, wait a few minutes for
the action to propagate to our systems and retry.",
"status": "PERMISSION_DENIED",
"details": [
{
"#type": "type.googleapis.com/google.rpc.Help",
"links": [
{
"description": "Google developers console billing",
"url":
"https://console.developers.google.com/billing/enableproject=[my-project-name]"
}
]
}
]
}
}
i crossed checked my Console's Billing panel
it shows me
Your payment information could not be processed. Visit the payment overview page to make sure your payment information is up to date and to pay any outstanding charges.
i am using the same sample application in my home machine there works fine
but i got this error in setting up another machine
Have a look at the documentation 90-day, $300 Free Trial:
The 90-day, $300 Free Trial period starts automatically when you
complete your signup.
To complete your Free Trial signup, you must provide a credit card or
other payment method to set up a Cloud Billing account and verify your
identity.
Also, have a look at the error message:
Your payment information could not be processed. Visit the payment
overview page to make sure your payment information is up to date and
to pay any outstanding charges.
To solve you issue you should update your payment information, as it was suggested by #Shibboleet in the comment section.
Furthermore, 90-day, $300 Free Trial have some limitations that described in Program coverage.
I am trying to follow an example on Reach Estimate in facebook API documentation here. However I am getting an error:
{
"error": {
"message": "(#10) You do not have sufficient permissions to perform this action",
"type": "OAuthException",
"code": 10
}
}
My approach is to open https://developers.facebook.com/tools/explorer, generate a token giving all permissions including ads_management.
And perform call:
act_ID/reachestimate?currency=EUR&targeting_spec={'countries':['US']}
Where I obtain ad account ID by going to my ads manager and reading it off URL (or by visiting power editor).
It looks simple, but I have no idea at this point what I am missing, I am also getting the same error while using PHP API.
All ideas are much appreciated. Thank you.
If you are using your own app to generate the access token, you are likely on the Standard or Basic tier of the Marketing API. For these tiers, you need to specify each AdAccount you are going to use.
In the developer too, select your app and go to Apps > Settings > Advanced. Under "Advertising Accounts" click the "Ads API" button on the right hand side, and list all the accounts you want to use.
For more info, see:
https://developers.facebook.com/docs/marketing-api/access#standard_accounts
Following the Ads API docs for reachestimate (http://developers.facebook.com/docs/reference/ads-api/reachestimate/), I received a "false" response when calling
https://graph.facebook.com/act_0000000000000000/reachestimate?currency=EUR&targeting_spec={'countries':['US']}&access_token=___
(Note: act_0000000000000000 is my user Id and _ is my access token - these tokens work correctly for other Ads API calls).
Using the Graph API Explorer tool, I receive the following response on this API call
{
"error": {
"message": "(#10) Application does not have permission for this action",
"type": "OAuthException",
"code": 10
}
}
However, when I call
https://graph.facebook.com/1111111111111111/reachestimate?currency=EUR&targeting_spec={'countries':['US']}&access_token=___
where 1111111111111111 is an adgroup, I get a valid data structure.
Has anyone come across this elsewhere? Is there a "magic" setting somewhere that enables this capability on the user account (enabled for ads_management, offline_access)?
Any thoughts very welcome.
Thank you.
Thanks #Igy - just confirmed that my issue was indeed the misuse of my UserID in account field - have since migrated these queries to use the designated account ID and works as expected.
I am using graph API to get the feed post.
https://graph.facebook.com/128172073865656/feed?limit=200
but it is showing exception
{
"error": {
"type": "OAuthException",
"message": "An access token is required to request this resource."
}
}.
Could any one please help.
Quite simply, you need to obtain and supply an access token with your request.
In particular, the Graph API connections that you're trying to load have been changed recently, and now require an access_token, where they previously did not.
See the Facebook Developer Blog, posts on this:
https://developers.facebook.com/blog/post/509/ - Notification of change in requirements.
https://developers.facebook.com/blog/post/510/ - Confirmation that the changes are now live.