OAuth2 to access my own adsense account?

71 views
Skip to first unread message

Jose Fonseca

unread,
Dec 26, 2013, 12:50:47 PM12/26/13
to adsen...@googlegroups.com
Hi, what is the exact flow I must use to access my own adsense account using my own credentials?
Once I use a code, it no longer works to get a new access_token...and I must authorize myself again..
Seems pretty silly to keep authorizing myself to enter it to get a new code, so I'm sure I'm doing something wrong.
I wish that a daemon or a standalone program can download adsese reports a few times a day.
Thanks in advance for your assistance.
Regards,
Jose Fonseca

Sérgio Gomes (AdSense API Team)

unread,
Jan 21, 2014, 8:20:38 AM1/21/14
to adsen...@googlegroups.com
Hi Jose,

It's easier to use a client library for this, which handles a lot of the OAuth 2.0 flow, as well as helps with storing refresh tokens and refreshing access tokens. What programming language are you using?

Cheers,
Sérgio

---
Sérgio Gomes
Developer Relations

Google UK Limited
Registered Office: Belgrave House, 76 Buckingham Palace Road, London SW1W 9TQ
Registered in England Number: 3977902
Reply all
Reply to author
Forward
0 new messages