Hello,
This error means you have an incorrect client ID or it was not set. This is a configuration parameters for OAuth2 authentication, see also: https://code.google.com/p/google-api-adwords-php/wiki/OAuth2 -Danial, AdWords API Team. On Friday, July 12, 2013 6:58:51 PM UTC+4, [email protected] wrote: > > Hi there, > > i'm trying to set up a PHP application to Adwords API. > I always get a "invalid_client" > > Fatal error: Uncaught exception 'OAuth2Exception' with message '{ "error" > : "invalid_client" }' in > /var/www/adwordsapi/src/Google/Api/Ads/Common/Util/SimpleOAuth2Handler.php:115 > > Stack trace: #0 > /var/www/adwordsapi/src/Google/Api/Ads/Common/Util/SimpleOAuth2Handler.php(92): > > SimpleOAuth2Handler->MakeRequest('https://account...', Array) #1 > /var/www/adwordsapi/src/Google/Api/Ads/Common/Util/OAuth2Handler.php(112): > SimpleOAuth2Handler->RefreshAccessToken(Array) #2 > /var/www/adwordsapi/src/Google/Api/Ads/AdWords/Lib/AdWordsSoapClient.php(71): > OAuth2Handler->GetOrRefreshAccessToken(Array) #3 [internal function]: > AdWordsSoapClient->__doRequest('__soapCall('get', Array, NULL, Array, > Array) #5 > /var/www/adwordsapi/src/Google/Api/Ads/AdWords/v201209/TargetingIdeaService.php(8261): > > AdsSoapClient->__soapCall('get', Array) #6 > /var/www/adwordsapi/test.php(46): TargetingIdeaService->get(Object(Targ in > /var/www/adwordsapi/src/Google/Api/Ads/Common/Util/SimpleOAuth2Handler.php > on line 115 > > *I set up my account like this* > *adwords_username* : [email protected] <javascript:> > *developer_token* : xxxxxxxxxx-xxxx-xxxxxx (active dev token) > *ClientId* = xxx-xxx-xxxx > > Any idea why the connection could be refused? > > thank you in advance! > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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/groups/opt_out.
