How can I get accessToken

183 views
Skip to first unread message

胡然后

unread,
Nov 17, 2020, 7:28:27 AM11/17/20
to AdMob API Developer Forum
I want to get daily advertising revenue data through the interface       

But I need accessToken to request in my server
I can't find the way in the docment.
How can I get accessToken in my server?

AdMob API Forum Advisor

unread,
Nov 18, 2020, 1:07:58 AM11/18/20
to a7279...@gmail.com, google-admob-api...@googlegroups.com
Hello there,

I am happy to help your team get started with the AdMob API. The AdMob API is the recommended solution for retrieving AdMob data programmatically. For more information on how to migrate from the AdSense API, take a look at our migration guide. For AdSense API questions, please see the AdSense API developer documentation.

Follow the AdMob API Getting Started page to retrieve your access token. The steps include:
  1. Enabling the AdMob API

  2. Generating credentials

  3. Making your first request

Please let me know if you have additional questions and I will be happy to help.

All the Best,

Google Logo
Amira Badreldin
AdMob API Team
 


ref:_00D1U1174p._5004Q27uS7s:ref

haoran hu

unread,
Nov 25, 2020, 3:26:42 AM11/25/20
to AdMob API Developer Forum
I want to use adsense/v1.4/reports to get my advert data. But I get a error "User does not have an AdSense account". 
Through searching, I learned that "Service Account" is not supported.
If I want to get "Service Account" advert data from my server, I must to use oauth2? Why I can't use account service to get my advert data?
Message has been deleted

AdMob API Forum Advisor

unread,
Nov 26, 2020, 1:44:36 AM11/26/20
to a7279...@gmail.com, google-admob-api...@googlegroups.com

Hello there,

To receive support on the AdSense API, please reach out on the AdSense support page , however, the new AdMob API will replace the need for you to use the AdSense API, while providing enhanced capabilities, to query AdMob reporting data. Follow the steps on our Getting Started page to start using the AdMob API.

Please note that the AdMob API does not support service accounts, however, we will take your request into our prioritization planning.

All the Best,

Reply all
Reply to author
Forward
0 new messages