GetCustomers not working

6 views
Skip to first unread message

pankaj grover

unread,
Jan 2, 2019, 4:56:28 AM1/2/19
to adwor...@googlegroups.com
Hello team,
We are using google Ads api for offline conversation tracking. We are uploading conversations  into our clients AdWords accounts. Our customers wants to integrate their account with different customer id's in our application.

For this we are authorizing them more than once but we are getting refresh token once per user.

After  authorization we are fetching the customers under their account using getCustomers() method of customer service.
In first attempt to getCustomers() is working properly but when our clients authorize them second time we are getting the error "looks like your application is not properly configured with OAuth2 parameter refresh token is missing" 

In the getCustomers() request the access token is correct but we are not reciving the cust

Bharani Cherukuri (AdWords API Team)

unread,
Jan 2, 2019, 2:47:42 PM1/2/19
to AdWords API and Google Ads API Forum
Hello Pankaj, 

You only need to generate a refresh token once for each user whose credentials you want to use. When generating the refresh token, you should set the access_type to offline so that you can retrieve new access tokens without re-prompting the user. If you're generating a new refresh token every time, you are likely to run into the limit on the number of active refresh tokens. Please check this section of the OAuth guide for more information. 

Let me know if you have any further questions. 

Regards,
Bharani, AdWords API Team
Reply all
Reply to author
Forward
0 new messages