“User does not have an AdSense account.” 403 code when using a service account to fetch information from google adsense api

“User does not have an AdSense account.” 403 code when using a service account to fetch information from google adsense api



I'm using direct PHP calls to the google api, and a service account, and I get a response "User does not have an AdSense account." When trying to fetch data from the adsense/admob api. The same URL works fine when trying it in the



https://developers.google.com/oauthplayground/



Is it possible to get access to the admob/adsense reports through the service account?




0



Thanks for contributing an answer to Stack Overflow!



But avoid



To learn more, see our tips on writing great answers.



Required, but never shown



Required, but never shown




By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.