Thank you for reaching out on the forum. To make a request to the AdMob API from PostMan, first you will need get an authorization token.
When making a request, go to the Authorization tab.
Set the TYPE to OAuth 2.0
Set Add auth data to Request headers
Set the Callback URL to https://oauth.pstmn.io/v1/browser-callback
Set the Auth URL to https://accounts.google.com/o/oauth2/auth
The Client ID can be found from an OAuth credential from your project's Google Developer Console, see here for instructions on generating credentials. It should use the same localhost callback/redirect URI as above.
Set the Scope to https://www.googleapis.com/auth/admob.readonly.
Once you successfully receive the token, you should be able to make a request to the generateReport method. Please do not hesitate to reach out with any additional concerns.
All the best,
|
||||||