Sorry, I realized I didn't answer your question on *userAgent*. That's a user-defined value that you can set to a string that will help us identify your requests for support purposes. See the *Soap Headers* section in our SOAP Primer <https://developers.google.com/adwords/api/docs/guides/soap> for suggested values.
Cheers, Josh, AdWords API Team On Thursday, April 17, 2014 11:09:47 AM UTC-4, Josh Radcliff (AdWords API Team) wrote: > > Hi, > > The *invalid_client* > error<http://tools.ietf.org/html/rfc6749#section-5.2>suggests that your > AdWords configuration file does not have all of the > required OAuth values. It looks like you are using the Python library (if > not, please indicate which library you are using), in which case I > recommend verifying that your *adwords_api_auth.pkl* file contains valid > entries for *clientSecret, clientId, developerToken, *and *refreshToken*. > You can run > config.py<https://github.com/googleads/googleads-python-legacy-lib/blob/master/adspygoogle/scripts/adspygoogle/adwords/config.py> > to > update the pickle if needed. To obtain the OAuth values required for the > file, please see our Python OAuth 2 > page<https://github.com/googleads/googleads-python-legacy-lib/wiki/Using-OAuth-2.0> > on > github. > > Thanks, > Josh, AdWords API Team > > On Tuesday, April 15, 2014 8:55:46 PM UTC-4, [email protected] wrote: >> >> >> Hi - Previously i was using v201306 API (Now its expire) which was >> working fine, but after v201402 when i tried to fetch through >> ManagedCustomerService, I am getting Invalid_Client, Bad request error. Any >> guesses why? >> >> Please also confirm what is userAgent, and form where we can confirm its >> value. >> >> Below are the values i am passing in my code: >> >> *selector* >> >> {"serviceSelector":{"fields":["CanManageClients"],"predicates":null,"dateRange":{"min":"20140318","max":"20140410"},"ordering":null,"paging":null}} >> >> *ERROR* >> >> { >> "error" : "invalid_client", >> "error_description" : "Bad request." >> } >> >> -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and Google+: https://googleadsdeveloper.blogspot.com/ https://plus.google.com/+GoogleAdsDevelopers/posts =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API Forum" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en --- You received this message because you are subscribed to the Google Groups "AdWords API Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
