Instruction to call Admob api from Postman

472 views
Skip to first unread message

Vannisa Sothea

unread,
Feb 17, 2021, 10:29:50 AM2/17/21
to AdMob API Developer Forum
Dear, I am new to this group. I am looking for help of how to call admob api to generate network report from postman.

I am still not know to call it using Oauth2.


Thank you.
Sothea.

AdMob API Forum Advisor

unread,
Feb 26, 2021, 2:10:50 AM2/26/21
to keol...@gmail.com, google-admob-api...@googlegroups.com
Hello Vannisa,

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.

  1. When making a request, go to the Authorization tab.

  2. Set the TYPE to OAuth 2.0

  3. Set Add auth data to Request headers

  4. Set the Callback URL to https://oauth.pstmn.io/v1/browser-callback

  5. Set the Auth URL to https://accounts.google.com/o/oauth2/auth

  6. 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.

  7. Set the Scope to https://www.googleapis.com/auth/admob.readonly.

  8. Once done, select the Get New Access Token button. For more details on the required fields, see this guide.

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,

Google Logo
Amira Badreldin
AdMob API Team

Help us improve the AdMob API,
please
share your feedback!
 


ref:_00D1U1174p._5004Q2CRzaX:ref
Reply all
Reply to author
Forward
0 new messages