How can I get a refresh token

496 views
Skip to first unread message

pkav...@jumpstartauto.com

unread,
Mar 7, 2018, 2:21:53 PM3/7/18
to Google's DoubleClick Campaign Manager API Forum
I have to change the account I am using to access DCM. The old one was working fine but this account has a higher API rate granted.

The app is written in Python.

I have the client ID and client secret. I don't have a refresh token. How can I generate one? 
In DFP, I have a utility program that does this. Is there something similar for DCM? 

I cannot find any useful documentation on this.

Thank you.

Lakshmi Prathipati (DCM API Team)

unread,
Mar 7, 2018, 4:56:35 PM3/7/18
to Google's DoubleClick Campaign Manager API Forum
Hi,

Please go through this guide for generating credentials with new account. If you are using Python GitHub samples, you need to delete the existing dat file. When you run the sample, it will launch a browser session. You need to authorize the application. Then a dat file is generated with a refresh access token pair. Please check this guide for more information on OAuth if you are not using GitHub samples. 

Thanks,
Lakshmi, DCM API Team

ravit

unread,
Mar 28, 2018, 11:44:47 AM3/28/18
to Google's DoubleClick Campaign Manager API Forum
Hi Lakshmi,
I am working working on setting up API access programmatically and as well as via an application which uses HTTP calls. From going through the documentation and as I am reading your comment, it looks like there is a manual step that needs to (must?)  happen -- is that correct?  
I was trying to see if there is anyway I can bypass this manual step, in other words obtaining the token for the initial API call with a combination of userid+password+client id + secret. If possible, I would like to see any example of how I should be passing my initial parameters, can you please help me with the format?  HTTP call format example is more preferable.
Thanks
Ravi

Lakshmi Prathipati (DCM API Team)

unread,
Mar 28, 2018, 3:26:44 PM3/28/18
to Google's DoubleClick Campaign Manager API Forum
Hi Ravi,

For installed application there is one time manual authorization step. If you want to avoid manual step authorization, you can use service account instead of installed application. Please go through this service accounts guide for more information.

Thanks,
Lakshmi, DCM API Team

Reply all
Reply to author
Forward
0 new messages