Somehow I managed to get AuthToken from Google in android but now I can’t find that how could I use this token to connect with the Adsense management Service to get my Adsense account information.???
Please provide some example. I searched everywhere but cant find any example related to this.
When you construct your AdsenseApiClient in java, it takes three arguments – a transport, a jsonFactory, and a transportInitializer.
The initializer has the magic you’re looking for; specifically, there’s a GoogleAccessProtectedResource which is a type of transport initializer that takes an accessToken as an argument.
My code, which is slightly more elaborate, looks like the following: