Cannot generate refresh token for test account

51 views
Skip to first unread message

Rikard Karlander

unread,
Jul 26, 2016, 12:30:53 PM7/26/16
to AdWords API Forum
Hi,

I have been going through the set up tutorial for the API to use a test account. I can't figure out how to generate a refresh token. I know this might sound stupid but it is very frustrating and the documentation really does not help me. 

This is the step I am stuck on https://github.com/googleads/googleads-python-lib/wiki/API-access-using-own-credentials-(installed-application-flow). When I installed googleads through pip there was no examples folder included that I could find so there is no script to run from there. I tried downloading generate_refresh_token.py separately but it only generates errors when I run it.

I would be very happy for any kind of input to get started testing the API :)

Best,
Rikard

Shwetha Vastrad (AdWords API Team)

unread,
Jul 26, 2016, 4:12:09 PM7/26/16
to AdWords API Forum
Hi Rikard,

The code examples for AdWords are available on the releases page or in the example directory of the Python Client library repository. You can either clone the repository or download the examples tarball. Once you have downloaded the examples, you can generate a refresh token by following the steps provided here.

Regards,
Shwetha, AdWords API Team.

Rikard Karlander

unread,
Jul 27, 2016, 11:01:51 AM7/27/16
to AdWords API Forum
Hi Shwetha,

Thanks, downloading the scripts from the repository made it. Had to mod them a little, since I am using Python 3 they did not work right away. But it was mostly parentheses around print statements. Now I am up and running!

/Rikard
Reply all
Reply to author
Forward
0 new messages