Friday, June 21, 2024

Digest for adsense-api@googlegroups.com - 4 updates in 2 topics

Unibots GA <somounibots@gmail.com>: Jun 19 02:33AM -0700

Hi,
 
I am getting an error while generating the access token which states:
 
"Access blocked: authorization error. You can't sign in to this app because
it doesn't comply with Google's OAuth 2.0 policy for keeping apps secure.
Error 400: invalid_request Request details:
redirect_uri=["http://localhost:3000"] flowName=GeneralOAuthFlow".
 
These accounts have all the permissions, but I am still getting the error.
I have attached a screenshot for reference.
 
Please help us resolve this on an urgent basis.
Regards,
Bhupender
Ad Sense API <adsenseapi@forumsupport.google>: Jun 20 09:12AM

Hi - thanks for your question.
 
I believe the problem is that the redirect URI needs to exactly match the location on your site that is capable of processing the authorization. My understanding is that localhost addresses are not considered valid, because of security concerns. I would recommend using an actual web address instead of localhost.
 
I hope this helps.
Regards,
Andrew (AdSense API team)
ref:!00D1U01174p.!5004Q02tJPOe:ref
Unibots GA <somounibots@gmail.com>: Jun 19 02:39AM -0700

Hi
 
I am getting an error while request for the data from ADSENSE MANAGEMENT
API:
 
" status: 429,
statusText: 'Too Many Requests',
request: {
responseURL: 'https://adsense.googleapis.com/v2/accounts/pub-........'
}
},
error: undefined,
status: 429,
code: 429,
errors: [
{
message: 'Report row quota exceeded.',
domain: 'global',
reason: 'rateLimitExceeded'
}
]".
 
I have requested small chunks of data, but I am still getting the same
error. Please help to resolve this on an urgent basis.
Ad Sense API <adsenseapi@forumsupport.google>: Jun 20 09:06AM

Hi - thanks for your message.
 
The errors you are receiving are because your user has exceeded the daily quota of reporting data that is retrievable via the API. There are some details of the limits at https://developers.google.com/adsense/management/appendix/limits#report. It might be that you have already made several large report requests during a 24 hour period, in which case even small requests will be rejected after that, until the quota gets reset at the the end of the 24 hour period.
 
I hope this helps.
Regards,
Andrew (AdSense API team)
ref:!00D1U01174p.!5004Q02tJPOi:ref
You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page.
To unsubscribe from this group and stop receiving emails from it send an email to adsense-api+unsubscribe@googlegroups.com.

Thursday, June 6, 2024

Digest for adsense-api@googlegroups.com - 2 updates in 1 topic

Scott Brown <scott@sidereel.com>: May 31 08:12AM -0700

Hi,
 
I have enabled Adsense Management API.
 
I have an OAuth 2.0 Client ID for Postman (I have a different one for
https://www.googleapis.com/auth/adwords that is working).
 
I can request new OAuth for scope "https://www.googleapis.com/auth/adsense"
and that works.
 
Yet when I try:
 
https://adsense.googleapis.com/v2/accounts/account_id/adclients/pub-#####/adunits
 
Grabbing pub-###### from our Adsense Account info as Publisher ID
 
 
I get
 
{
"error": {
"code": 403,
"message": "The caller does not have permission",
"status": "PERMISSION_DENIED"
}
}
 
Also seeing 100 errors on the API Services page for the Adsense Management
API.
 
Both my Adsense and Google Cloud /API accounts use the same email / login.
 
What do I need to do to enable permissions to use Adsense API?
 
Thanks,
 
Scott
Ad Sense API <adsenseapi@forumsupport.google>: Jun 05 04:40PM

Hi Scott,
 
Thanks for your message. I'd recommend using the API explorer at https://developers.google.com/adsense/management/reference/rest/v2/accounts/list (the "Try this method" box), to check your user has the appropriate access. There is also sample code for accessing the API, including getting the relevant credentials, at https://developers.google.com/adsense/management/libraries.
 
I hope this helps.
Regards,
Andrew (AdSense API team)
ref:!00D1U01174p.!5004Q02tJDw1:ref
You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page.
To unsubscribe from this group and stop receiving emails from it send an email to adsense-api+unsubscribe@googlegroups.com.