Re: BadAuthentication v200909 Sandbox
Hi, i treid to run php client library for sandbox like aw_api_php_lib_2.2.0_src.tar and i am setting the accounts in auth.ini file like email = x...@gmail.com password = xyz userAgent = xx applicationToken = ignored developerToken = x...@gmail.com++usd ; Uncomment to make requests against a client account. clientId = client_1+...@gmail.com client_1%2b...@gmail.com and settings.ini file like DEFAULT_SERVER = https://adwords-sandbox.google.com; and after this i tried to run the aw_api_php\examples\v200909\GetAllCampaigns.php at command prompt i got the error like AuthTokenException Object ( [error:AuthTokenException:private] = BadAuthentication [url:AuthTokenException:private] = [captchaToken:AuthTokenException:private] = [captchaUrl:AuthTokenException:private] = [message:protected] = Failed to get authToken. Reason: BadAuthentication [string:Exception:private] = [code:protected] = 0 [file:protected] = D:\xampp\htdocs\aw_api_php\src\Google\Api\Ads\Common\Util\AuthToken.php [line:protected] = 88 [trace:Exception:private] = Array ( [0] = Array ( [file] = D:\xampp\htdocs\aw_api_php\src\Google\Api\Ads\AdWords\Lib\AdWordsUser.php [line] = 503 [function] = GetAuthToken [class] = AuthToken [type] = - [args] = Array ( ) ) [1] = Array ( [file] = D:\xampp\htdocs\aw_api_php\src\Google\Api\Ads\AdWords\Lib\AdWordsUser.php [line] = 141 [function] = RegenerateAuthToken [class] = AdWordsUser [type] = - [args] = Array ( ) ) [2] = Array ( [file] = D:\xampp\htdocs\aw_api_php\examples\v200909\GetAllCampaigns.php [line] = 46 [function] = __construct [class] = AdWordsUser [type] = - [args] = Array ( ) ) ) [previous:Exception:private] = ) I am using xampp 1.7.2 for php,apache,windows. please provide help,i wasted so many days to resolve this type of error. Thanks and Regards, Y.Kondalarao. On Thu, Jun 10, 2010 at 3:53 PM, ramonpoli ramon.polid...@googlemail.comwrote: It doesn't change nothing in my proyect On Jun 10, 4:25 am, Malks malko...@gmail.com wrote: I put the ini_set just after the require_once in the examples. I don't need the ini_set if I am running the examples from the command line but do if I'm running the examples from a web page under Apache/ Drupal. A bit more investigation found a ini_set('arg_separator.output', 'amp;'); in my Drupal settings file. HTH, Anthony. On Jun 10, 3:02 am, ramonpoli ramon.polid...@googlemail.com wrote: the only thing that my program changes is ini_set('default_socket_timeout', 480); so, I don't think that's the problem On Jun 9, 5:40 pm, ramonpoli ramon.polid...@googlemail.com wrote: where do yo have that ini_set Anthony? On Jun 9, 1:35 pm, Anthony M malko...@gmail.com wrote: Hi, I was getting a similar error and discovered that I needed to do the ini_set below (it was putting encoded amp; instead of a simple ) even though my phpinfo() is saying that my separator is the simple . ini_set('arg_separator.output', ''); Anthony. On Wed, Jun 9, 2010 at 6:16 PM, domJ dominic.th...@ebuero.ag wrote: Hi, first I thought the problem is WINDOWS but now I think there is something wrong with XAMPP. I tried WAMPSERVER and now everything runs correctly. On 8 Jun., 22:45, ramonpoli ramon.polid...@googlemail.com wrote: I have a similar error and nobody replied to me in my other post, I do everything as is said in the readme file but I can't make it work! On Jun 8, 8:49 pm, domJ dominic.th...@ebuero.ag wrote: Ok. Now I found out that the problem occur only on localhost with Xampp. On my debian-server everything is fine. But I dont know why... On 8 Jun., 21:23, domJ dominic.th...@ebuero.ag wrote: ok. I ran it. Here the response: Fatal error: Uncaught exception 'AuthTokenException' with message 'Failed to get authToken. Reason: BadAuthentication' in D:\xampp\htdocs \testprojects\adwords\AdWords\src\Google\Api\Ads\Common\Util \AuthToken.php:88 Stack trace: #0 D:\xampp\htdocs\testprojects\adwords \AdWords\src\Google\Api\Ads\AdWords\Lib\AdWordsUser.php(503): AuthToken-GetAuthToken() #1 D:\xampp\htdocs\testprojects\adwords \AdWords\src\Google\Api\Ads\AdWords\Lib\AdWordsUser.php(141): AdWordsUser-RegenerateAuthToken() #2 D:\xampp\htdocs\testprojects \adwords\index.php(5): AdWordsUser-__construct() #3 {main} thrown in D:\xampp\htdocs\testprojects\adwords\AdWords\src\Google\Api\Ads\Common \Util\AuthToken.php on line 88 Reason is again the BadAuthentication. On 8 Jun., 20:43, ramonpoli ramon.polid...@googlemail.com wrote: yes but apparently before run that example you have to use this initialization: $path = dirname(__FILE__) . '/AdWords/src';
Re: BadAuthentication v200909 Sandbox
It doesn't change nothing in my proyect On Jun 10, 4:25 am, Malks malko...@gmail.com wrote: I put the ini_set just after the require_once in the examples. I don't need the ini_set if I am running the examples from the command line but do if I'm running the examples from a web page under Apache/ Drupal. A bit more investigation found a ini_set('arg_separator.output', 'amp;'); in my Drupal settings file. HTH, Anthony. On Jun 10, 3:02 am, ramonpoli ramon.polid...@googlemail.com wrote: the only thing that my program changes is ini_set('default_socket_timeout', 480); so, I don't think that's the problem On Jun 9, 5:40 pm, ramonpoli ramon.polid...@googlemail.com wrote: where do yo have that ini_set Anthony? On Jun 9, 1:35 pm, Anthony M malko...@gmail.com wrote: Hi, I was getting a similar error and discovered that I needed to do the ini_set below (it was putting encoded amp; instead of a simple ) even though my phpinfo() is saying that my separator is the simple . ini_set('arg_separator.output', ''); Anthony. On Wed, Jun 9, 2010 at 6:16 PM, domJ dominic.th...@ebuero.ag wrote: Hi, first I thought the problem is WINDOWS but now I think there is something wrong with XAMPP. I tried WAMPSERVER and now everything runs correctly. On 8 Jun., 22:45, ramonpoli ramon.polid...@googlemail.com wrote: I have a similar error and nobody replied to me in my other post, I do everything as is said in the readme file but I can't make it work! On Jun 8, 8:49 pm, domJ dominic.th...@ebuero.ag wrote: Ok. Now I found out that the problem occur only on localhost with Xampp. On my debian-server everything is fine. But I dont know why... On 8 Jun., 21:23, domJ dominic.th...@ebuero.ag wrote: ok. I ran it. Here the response: Fatal error: Uncaught exception 'AuthTokenException' with message 'Failed to get authToken. Reason: BadAuthentication' in D:\xampp\htdocs \testprojects\adwords\AdWords\src\Google\Api\Ads\Common\Util \AuthToken.php:88 Stack trace: #0 D:\xampp\htdocs\testprojects\adwords \AdWords\src\Google\Api\Ads\AdWords\Lib\AdWordsUser.php(503): AuthToken-GetAuthToken() #1 D:\xampp\htdocs\testprojects\adwords \AdWords\src\Google\Api\Ads\AdWords\Lib\AdWordsUser.php(141): AdWordsUser-RegenerateAuthToken() #2 D:\xampp\htdocs\testprojects \adwords\index.php(5): AdWordsUser-__construct() #3 {main} thrown in D:\xampp\htdocs\testprojects\adwords\AdWords\src\Google\Api\Ads\Common \Util\AuthToken.php on line 88 Reason is again the BadAuthentication. On 8 Jun., 20:43, ramonpoli ramon.polid...@googlemail.com wrote: yes but apparently before run that example you have to use this initialization: $path = dirname(__FILE__) . '/AdWords/src'; set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/AdWords/Lib/AdWordsUser.php'; $user = new AdWordsUser(); // Log SOAP XML request and response. $user-LogDefaults(); // Get the CampaignService. $campaignService = $user-GetCampaignService('v200909','https:// adwords-sandbox.google.com'); are you actually doing it before calling the getAllCAmpaigns example? On Jun 8, 1:14 pm, kondalarao yarragunta kondalar...@gmail.com wrote: HI, I tried to run the PHP ClientLibrary(aw_api_php_lib_2.2.0) on my localhost. I changed the auth.ini like that: email = myacco...@google.com password = mypassword userAgent = My Sandbox API Tool applicationToken = ignored developerToken = myacco...@google.com++usd ; Uncomment to make requests against a client account. clientId = client_1++myacco...@google.comclient_1%2b%2bmyacco...@google.com client_1%2b%2bmyacco...@google.comclient_1%252b%252bmyacco...@google.com I set the DEFAULT_SERVER = https://adwords-sandbox.google.com; in the file settings.ini Now when I try to run aw_api_php_lib_2.2.0/examples/v200909/GetAllCampaigns.php i got the following error: AuthTokenException Object ( [error:AuthTokenException:private] = BadAuthentication [url:AuthTokenException:private] = [captchaToken:AuthTokenException:private] = [captchaUrl:AuthTokenException:private] = [message:protected] = Failed to get authToken. Reason: BadAuthentication [string:Exception:private] = [code:protected] = 0 [file:protected] =
Re: BadAuthentication v200909 Sandbox
Hi, first I thought the problem is WINDOWS but now I think there is something wrong with XAMPP. I tried WAMPSERVER and now everything runs correctly. On 8 Jun., 22:45, ramonpoli ramon.polid...@googlemail.com wrote: I have a similar error and nobody replied to me in my other post, I do everything as is said in the readme file but I can't make it work! On Jun 8, 8:49 pm, domJ dominic.th...@ebuero.ag wrote: Ok. Now I found out that the problem occur only on localhost with Xampp. On my debian-server everything is fine. But I dont know why... On 8 Jun., 21:23, domJ dominic.th...@ebuero.ag wrote: ok. I ran it. Here the response: Fatal error: Uncaught exception 'AuthTokenException' with message 'Failed to get authToken. Reason: BadAuthentication' in D:\xampp\htdocs \testprojects\adwords\AdWords\src\Google\Api\Ads\Common\Util \AuthToken.php:88 Stack trace: #0 D:\xampp\htdocs\testprojects\adwords \AdWords\src\Google\Api\Ads\AdWords\Lib\AdWordsUser.php(503): AuthToken-GetAuthToken() #1 D:\xampp\htdocs\testprojects\adwords \AdWords\src\Google\Api\Ads\AdWords\Lib\AdWordsUser.php(141): AdWordsUser-RegenerateAuthToken() #2 D:\xampp\htdocs\testprojects \adwords\index.php(5): AdWordsUser-__construct() #3 {main} thrown in D:\xampp\htdocs\testprojects\adwords\AdWords\src\Google\Api\Ads\Common \Util\AuthToken.php on line 88 Reason is again the BadAuthentication. On 8 Jun., 20:43, ramonpoli ramon.polid...@googlemail.com wrote: yes but apparently before run that example you have to use this initialization: $path = dirname(__FILE__) . '/AdWords/src'; set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/AdWords/Lib/AdWordsUser.php'; $user = new AdWordsUser(); // Log SOAP XML request and response. $user-LogDefaults(); // Get the CampaignService. $campaignService = $user-GetCampaignService('v200909','https:// adwords-sandbox.google.com'); are you actually doing it before calling the getAllCAmpaigns example? On Jun 8, 1:14 pm, kondalarao yarragunta kondalar...@gmail.com wrote: HI, I tried to run the PHP ClientLibrary(aw_api_php_lib_2.2.0) on my localhost. I changed the auth.ini like that: email = myacco...@google.com password = mypassword userAgent = My Sandbox API Tool applicationToken = ignored developerToken = myacco...@google.com++usd ; Uncomment to make requests against a client account. clientId = client_1++myacco...@google.comclient_1%2b%2bmyacco...@google.com I set the DEFAULT_SERVER = https://adwords-sandbox.google.com; in the file settings.ini Now when I try to run aw_api_php_lib_2.2.0/examples/v200909/GetAllCampaigns.php i got the following error: AuthTokenException Object ( [error:AuthTokenException:private] = BadAuthentication [url:AuthTokenException:private] = [captchaToken:AuthTokenException:private] = [captchaUrl:AuthTokenException:private] = [message:protected] = Failed to get authToken. Reason: BadAuthentication [string:Exception:private] = [code:protected] = 0 [file:protected] = C:\xampp\htdocs\aw_api_php_lib_2.2.0\src\Google\Api\Ads\Common\Util\AuthTok en.php [line:protected] = 88 [trace:Exception:private] = Array ( [0] = Array ( [file] = C:\xampp\htdocs\aw_api_php_lib_2.2.0\src\Google\Api\Ads\AdWords\Lib\AdWords User.php [line] = 503 [function] = GetAuthToken [class] = AuthToken [type] = - [args] = Array ( ) ) [1] = Array ( [file] = C:\xampp\htdocs\aw_api_php_lib_2.2.0\src\Google\Api\Ads\AdWords\Lib\AdWords User.php [line] = 141 [function] = RegenerateAuthToken [class] = AdWordsUser [type] = - [args] = Array ( ) ) [2] = Array ( [file] = C:\xampp\htdocs\aw_api_php_lib_2.2.0\examples\v200909\GetAllCampaigns.php [line] = 46 [function] = __construct [class] = AdWordsUser [type] = - [args] = Array ( ) ) ) [previous:Exception:private] = ) The account-information are correct. I tried it many times. And I can use the Sandbox Account View without any auth-error. Thank you for any help please, Thanks and Regards, Y.Kondalarao. -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en
Re: BadAuthentication v200909 Sandbox
al right so, do you think if I install WampServer as well iis gonna work? On Jun 9, 9:16 am, domJ dominic.th...@ebuero.ag wrote: Hi, first I thought the problem is WINDOWS but now I think there is something wrong with XAMPP. I tried WAMPSERVER and now everything runs correctly. On 8 Jun., 22:45, ramonpoli ramon.polid...@googlemail.com wrote: I have a similar error and nobody replied to me in my other post, I do everything as is said in the readme file but I can't make it work! On Jun 8, 8:49 pm, domJ dominic.th...@ebuero.ag wrote: Ok. Now I found out that the problem occur only on localhost with Xampp. On my debian-server everything is fine. But I dont know why... On 8 Jun., 21:23, domJ dominic.th...@ebuero.ag wrote: ok. I ran it. Here the response: Fatal error: Uncaught exception 'AuthTokenException' with message 'Failed to get authToken. Reason: BadAuthentication' in D:\xampp\htdocs \testprojects\adwords\AdWords\src\Google\Api\Ads\Common\Util \AuthToken.php:88 Stack trace: #0 D:\xampp\htdocs\testprojects\adwords \AdWords\src\Google\Api\Ads\AdWords\Lib\AdWordsUser.php(503): AuthToken-GetAuthToken() #1 D:\xampp\htdocs\testprojects\adwords \AdWords\src\Google\Api\Ads\AdWords\Lib\AdWordsUser.php(141): AdWordsUser-RegenerateAuthToken() #2 D:\xampp\htdocs\testprojects \adwords\index.php(5): AdWordsUser-__construct() #3 {main} thrown in D:\xampp\htdocs\testprojects\adwords\AdWords\src\Google\Api\Ads\Common \Util\AuthToken.php on line 88 Reason is again the BadAuthentication. On 8 Jun., 20:43, ramonpoli ramon.polid...@googlemail.com wrote: yes but apparently before run that example you have to use this initialization: $path = dirname(__FILE__) . '/AdWords/src'; set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/AdWords/Lib/AdWordsUser.php'; $user = new AdWordsUser(); // Log SOAP XML request and response. $user-LogDefaults(); // Get the CampaignService. $campaignService = $user-GetCampaignService('v200909','https:// adwords-sandbox.google.com'); are you actually doing it before calling the getAllCAmpaigns example? On Jun 8, 1:14 pm, kondalarao yarragunta kondalar...@gmail.com wrote: HI, I tried to run the PHP ClientLibrary(aw_api_php_lib_2.2.0) on my localhost. I changed the auth.ini like that: email = myacco...@google.com password = mypassword userAgent = My Sandbox API Tool applicationToken = ignored developerToken = myacco...@google.com++usd ; Uncomment to make requests against a client account. clientId = client_1++myacco...@google.comclient_1%2b%2bmyacco...@google.com I set the DEFAULT_SERVER = https://adwords-sandbox.google.com; in the file settings.ini Now when I try to run aw_api_php_lib_2.2.0/examples/v200909/GetAllCampaigns.php i got the following error: AuthTokenException Object ( [error:AuthTokenException:private] = BadAuthentication [url:AuthTokenException:private] = [captchaToken:AuthTokenException:private] = [captchaUrl:AuthTokenException:private] = [message:protected] = Failed to get authToken. Reason: BadAuthentication [string:Exception:private] = [code:protected] = 0 [file:protected] = C:\xampp\htdocs\aw_api_php_lib_2.2.0\src\Google\Api\Ads\Common\Util\AuthTok en.php [line:protected] = 88 [trace:Exception:private] = Array ( [0] = Array ( [file] = C:\xampp\htdocs\aw_api_php_lib_2.2.0\src\Google\Api\Ads\AdWords\Lib\AdWords User.php [line] = 503 [function] = GetAuthToken [class] = AuthToken [type] = - [args] = Array ( ) ) [1] = Array ( [file] = C:\xampp\htdocs\aw_api_php_lib_2.2.0\src\Google\Api\Ads\AdWords\Lib\AdWords User.php [line] = 141 [function] = RegenerateAuthToken [class] = AdWordsUser [type] = - [args] = Array ( ) ) [2] = Array ( [file] = C:\xampp\htdocs\aw_api_php_lib_2.2.0\examples\v200909\GetAllCampaigns.php [line] = 46 [function] = __construct [class] = AdWordsUser [type] = - [args] = Array ( ) ) ) [previous:Exception:private] = ) The account-information are correct. I tried it many times. And I can use the Sandbox Account View without any auth-error. Thank you for any help please, Thanks and Regards, Y.Kondalarao. -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 adwords-api@googlegroups.com To unsubscribe from this group,
Re: BadAuthentication v200909 Sandbox
I think so. If you activate the soap, curl and openssl extension it should work. WampServer is very small and I think the problem is that Xampp has an extension (or something like) which doesnt agree with the AdwordsPHPClientLibrary On 9 Jun., 12:10, ramonpoli ramon.polid...@googlemail.com wrote: al right so, do you think if I install WampServer as well iis gonna work? On Jun 9, 9:16 am, domJ dominic.th...@ebuero.ag wrote: Hi, first I thought the problem is WINDOWS but now I think there is something wrong with XAMPP. I tried WAMPSERVER and now everything runs correctly. On 8 Jun., 22:45, ramonpoli ramon.polid...@googlemail.com wrote: I have a similar error and nobody replied to me in my other post, I do everything as is said in the readme file but I can't make it work! On Jun 8, 8:49 pm, domJ dominic.th...@ebuero.ag wrote: Ok. Now I found out that the problem occur only on localhost with Xampp. On my debian-server everything is fine. But I dont know why... On 8 Jun., 21:23, domJ dominic.th...@ebuero.ag wrote: ok. I ran it. Here the response: Fatal error: Uncaught exception 'AuthTokenException' with message 'Failed to get authToken. Reason: BadAuthentication' in D:\xampp\htdocs \testprojects\adwords\AdWords\src\Google\Api\Ads\Common\Util \AuthToken.php:88 Stack trace: #0 D:\xampp\htdocs\testprojects\adwords \AdWords\src\Google\Api\Ads\AdWords\Lib\AdWordsUser.php(503): AuthToken-GetAuthToken() #1 D:\xampp\htdocs\testprojects\adwords \AdWords\src\Google\Api\Ads\AdWords\Lib\AdWordsUser.php(141): AdWordsUser-RegenerateAuthToken() #2 D:\xampp\htdocs\testprojects \adwords\index.php(5): AdWordsUser-__construct() #3 {main} thrown in D:\xampp\htdocs\testprojects\adwords\AdWords\src\Google\Api\Ads\Common \Util\AuthToken.php on line 88 Reason is again the BadAuthentication. On 8 Jun., 20:43, ramonpoli ramon.polid...@googlemail.com wrote: yes but apparently before run that example you have to use this initialization: $path = dirname(__FILE__) . '/AdWords/src'; set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/AdWords/Lib/AdWordsUser.php'; $user = new AdWordsUser(); // Log SOAP XML request and response. $user-LogDefaults(); // Get the CampaignService. $campaignService = $user-GetCampaignService('v200909','https:// adwords-sandbox.google.com'); are you actually doing it before calling the getAllCAmpaigns example? On Jun 8, 1:14 pm, kondalarao yarragunta kondalar...@gmail.com wrote: HI, I tried to run the PHP ClientLibrary(aw_api_php_lib_2.2.0) on my localhost. I changed the auth.ini like that: email = myacco...@google.com password = mypassword userAgent = My Sandbox API Tool applicationToken = ignored developerToken = myacco...@google.com++usd ; Uncomment to make requests against a client account. clientId = client_1++myacco...@google.comclient_1%2b%2bmyacco...@google.com I set the DEFAULT_SERVER = https://adwords-sandbox.google.com; in the file settings.ini Now when I try to run aw_api_php_lib_2.2.0/examples/v200909/GetAllCampaigns.php i got the following error: AuthTokenException Object ( [error:AuthTokenException:private] = BadAuthentication [url:AuthTokenException:private] = [captchaToken:AuthTokenException:private] = [captchaUrl:AuthTokenException:private] = [message:protected] = Failed to get authToken. Reason: BadAuthentication [string:Exception:private] = [code:protected] = 0 [file:protected] = C:\xampp\htdocs\aw_api_php_lib_2.2.0\src\Google\Api\Ads\Common\Util\AuthTok en.php [line:protected] = 88 [trace:Exception:private] = Array ( [0] = Array ( [file] = C:\xampp\htdocs\aw_api_php_lib_2.2.0\src\Google\Api\Ads\AdWords\Lib\AdWords User.php [line] = 503 [function] = GetAuthToken [class] = AuthToken [type] = - [args] = Array ( ) ) [1] = Array ( [file] = C:\xampp\htdocs\aw_api_php_lib_2.2.0\src\Google\Api\Ads\AdWords\Lib\AdWords User.php [line] = 141 [function] = RegenerateAuthToken [class] = AdWordsUser [type] = - [args] = Array ( ) ) [2] = Array ( [file] = C:\xampp\htdocs\aw_api_php_lib_2.2.0\examples\v200909\GetAllCampaigns.php [line] = 46 [function] = __construct [class] = AdWordsUser [type] = - [args] = Array ( ) ) ) [previous:Exception:private] = ) The account-information are correct. I tried it many times. And I can use the Sandbox Account View without any auth-error. Thank you for any help please, Thanks and Regards, Y.Kondalarao. --
Re: BadAuthentication v200909 Sandbox
Hi, I was getting a similar error and discovered that I needed to do the ini_set below (it was putting encoded amp; instead of a simple ) even though my phpinfo() is saying that my separator is the simple . ini_set('arg_separator.output', ''); Anthony. On Wed, Jun 9, 2010 at 6:16 PM, domJ dominic.th...@ebuero.ag wrote: Hi, first I thought the problem is WINDOWS but now I think there is something wrong with XAMPP. I tried WAMPSERVER and now everything runs correctly. On 8 Jun., 22:45, ramonpoli ramon.polid...@googlemail.com wrote: I have a similar error and nobody replied to me in my other post, I do everything as is said in the readme file but I can't make it work! On Jun 8, 8:49 pm, domJ dominic.th...@ebuero.ag wrote: Ok. Now I found out that the problem occur only on localhost with Xampp. On my debian-server everything is fine. But I dont know why... On 8 Jun., 21:23, domJ dominic.th...@ebuero.ag wrote: ok. I ran it. Here the response: Fatal error: Uncaught exception 'AuthTokenException' with message 'Failed to get authToken. Reason: BadAuthentication' in D:\xampp\htdocs \testprojects\adwords\AdWords\src\Google\Api\Ads\Common\Util \AuthToken.php:88 Stack trace: #0 D:\xampp\htdocs\testprojects\adwords \AdWords\src\Google\Api\Ads\AdWords\Lib\AdWordsUser.php(503): AuthToken-GetAuthToken() #1 D:\xampp\htdocs\testprojects\adwords \AdWords\src\Google\Api\Ads\AdWords\Lib\AdWordsUser.php(141): AdWordsUser-RegenerateAuthToken() #2 D:\xampp\htdocs\testprojects \adwords\index.php(5): AdWordsUser-__construct() #3 {main} thrown in D:\xampp\htdocs\testprojects\adwords\AdWords\src\Google\Api\Ads\Common \Util\AuthToken.php on line 88 Reason is again the BadAuthentication. On 8 Jun., 20:43, ramonpoli ramon.polid...@googlemail.com wrote: yes but apparently before run that example you have to use this initialization: $path = dirname(__FILE__) . '/AdWords/src'; set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/AdWords/Lib/AdWordsUser.php'; $user = new AdWordsUser(); // Log SOAP XML request and response. $user-LogDefaults(); // Get the CampaignService. $campaignService = $user-GetCampaignService('v200909','https:// adwords-sandbox.google.com'); are you actually doing it before calling the getAllCAmpaigns example? On Jun 8, 1:14 pm, kondalarao yarragunta kondalar...@gmail.com wrote: HI, I tried to run the PHP ClientLibrary(aw_api_php_lib_2.2.0) on my localhost. I changed the auth.ini like that: email = myacco...@google.com password = mypassword userAgent = My Sandbox API Tool applicationToken = ignored developerToken = myacco...@google.com++usd ; Uncomment to make requests against a client account. clientId = client_1++myacco...@google.comclient_1%2b%2bmyacco...@google.com client_1%2b%2bmyacco...@google.comclient_1%252b%252bmyacco...@google.com I set the DEFAULT_SERVER = https://adwords-sandbox.google.com; in the file settings.ini Now when I try to run aw_api_php_lib_2.2.0/examples/v200909/GetAllCampaigns.php i got the following error: AuthTokenException Object ( [error:AuthTokenException:private] = BadAuthentication [url:AuthTokenException:private] = [captchaToken:AuthTokenException:private] = [captchaUrl:AuthTokenException:private] = [message:protected] = Failed to get authToken. Reason: BadAuthentication [string:Exception:private] = [code:protected] = 0 [file:protected] = C:\xampp\htdocs\aw_api_php_lib_2.2.0\src\Google\Api\Ads\Common\Util\AuthTok en.php [line:protected] = 88 [trace:Exception:private] = Array ( [0] = Array ( [file] = C:\xampp\htdocs\aw_api_php_lib_2.2.0\src\Google\Api\Ads\AdWords\Lib\AdWords User.php [line] = 503 [function] = GetAuthToken [class] = AuthToken [type] = - [args] = Array ( ) ) [1] = Array ( [file] = C:\xampp\htdocs\aw_api_php_lib_2.2.0\src\Google\Api\Ads\AdWords\Lib\AdWords User.php [line] = 141 [function] = RegenerateAuthToken [class] = AdWordsUser [type] = - [args] = Array ( ) ) [2] = Array ( [file] = C:\xampp\htdocs\aw_api_php_lib_2.2.0\examples\v200909\GetAllCampaigns.php [line] = 46 [function] = __construct [class] = AdWordsUser [type] = - [args] = Array ( ) ) ) [previous:Exception:private] = ) The account-information are correct. I tried it many times. And I can use the Sandbox Account View without any auth-error. Thank you for any help please, Thanks and Regards, Y.Kondalarao. -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api
Re: BadAuthentication v200909 Sandbox
where do yo have that ini_set Anthony? On Jun 9, 1:35 pm, Anthony M malko...@gmail.com wrote: Hi, I was getting a similar error and discovered that I needed to do the ini_set below (it was putting encoded amp; instead of a simple ) even though my phpinfo() is saying that my separator is the simple . ini_set('arg_separator.output', ''); Anthony. On Wed, Jun 9, 2010 at 6:16 PM, domJ dominic.th...@ebuero.ag wrote: Hi, first I thought the problem is WINDOWS but now I think there is something wrong with XAMPP. I tried WAMPSERVER and now everything runs correctly. On 8 Jun., 22:45, ramonpoli ramon.polid...@googlemail.com wrote: I have a similar error and nobody replied to me in my other post, I do everything as is said in the readme file but I can't make it work! On Jun 8, 8:49 pm, domJ dominic.th...@ebuero.ag wrote: Ok. Now I found out that the problem occur only on localhost with Xampp. On my debian-server everything is fine. But I dont know why... On 8 Jun., 21:23, domJ dominic.th...@ebuero.ag wrote: ok. I ran it. Here the response: Fatal error: Uncaught exception 'AuthTokenException' with message 'Failed to get authToken. Reason: BadAuthentication' in D:\xampp\htdocs \testprojects\adwords\AdWords\src\Google\Api\Ads\Common\Util \AuthToken.php:88 Stack trace: #0 D:\xampp\htdocs\testprojects\adwords \AdWords\src\Google\Api\Ads\AdWords\Lib\AdWordsUser.php(503): AuthToken-GetAuthToken() #1 D:\xampp\htdocs\testprojects\adwords \AdWords\src\Google\Api\Ads\AdWords\Lib\AdWordsUser.php(141): AdWordsUser-RegenerateAuthToken() #2 D:\xampp\htdocs\testprojects \adwords\index.php(5): AdWordsUser-__construct() #3 {main} thrown in D:\xampp\htdocs\testprojects\adwords\AdWords\src\Google\Api\Ads\Common \Util\AuthToken.php on line 88 Reason is again the BadAuthentication. On 8 Jun., 20:43, ramonpoli ramon.polid...@googlemail.com wrote: yes but apparently before run that example you have to use this initialization: $path = dirname(__FILE__) . '/AdWords/src'; set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/AdWords/Lib/AdWordsUser.php'; $user = new AdWordsUser(); // Log SOAP XML request and response. $user-LogDefaults(); // Get the CampaignService. $campaignService = $user-GetCampaignService('v200909','https:// adwords-sandbox.google.com'); are you actually doing it before calling the getAllCAmpaigns example? On Jun 8, 1:14 pm, kondalarao yarragunta kondalar...@gmail.com wrote: HI, I tried to run the PHP ClientLibrary(aw_api_php_lib_2.2.0) on my localhost. I changed the auth.ini like that: email = myacco...@google.com password = mypassword userAgent = My Sandbox API Tool applicationToken = ignored developerToken = myacco...@google.com++usd ; Uncomment to make requests against a client account. clientId = client_1++myacco...@google.comclient_1%2b%2bmyacco...@google.com client_1%2b%2bmyacco...@google.comclient_1%252b%252bmyacco...@google.com I set the DEFAULT_SERVER = https://adwords-sandbox.google.com; in the file settings.ini Now when I try to run aw_api_php_lib_2.2.0/examples/v200909/GetAllCampaigns.php i got the following error: AuthTokenException Object ( [error:AuthTokenException:private] = BadAuthentication [url:AuthTokenException:private] = [captchaToken:AuthTokenException:private] = [captchaUrl:AuthTokenException:private] = [message:protected] = Failed to get authToken. Reason: BadAuthentication [string:Exception:private] = [code:protected] = 0 [file:protected] = C:\xampp\htdocs\aw_api_php_lib_2.2.0\src\Google\Api\Ads\Common\Util\AuthTok en.php [line:protected] = 88 [trace:Exception:private] = Array ( [0] = Array ( [file] = C:\xampp\htdocs\aw_api_php_lib_2.2.0\src\Google\Api\Ads\AdWords\Lib\AdWords User.php [line] = 503 [function] = GetAuthToken [class] = AuthToken [type] = - [args] = Array ( ) ) [1] = Array ( [file] = C:\xampp\htdocs\aw_api_php_lib_2.2.0\src\Google\Api\Ads\AdWords\Lib\AdWords User.php [line] = 141 [function] = RegenerateAuthToken [class] = AdWordsUser [type] = - [args] = Array ( ) ) [2] = Array ( [file] = C:\xampp\htdocs\aw_api_php_lib_2.2.0\examples\v200909\GetAllCampaigns.php [line] = 46 [function] = __construct [class] = AdWordsUser [type] = - [args] = Array ( ) ) ) [previous:Exception:private] = ) The account-information are correct. I tried it many times. And I can use the Sandbox Account View without any auth-error. Thank you for any help please, Thanks and Regards, Y.Kondalarao. --
Re: BadAuthentication v200909 Sandbox
the only thing that my program changes is ini_set('default_socket_timeout', 480); so, I don't think that's the problem On Jun 9, 5:40 pm, ramonpoli ramon.polid...@googlemail.com wrote: where do yo have that ini_set Anthony? On Jun 9, 1:35 pm, Anthony M malko...@gmail.com wrote: Hi, I was getting a similar error and discovered that I needed to do the ini_set below (it was putting encoded amp; instead of a simple ) even though my phpinfo() is saying that my separator is the simple . ini_set('arg_separator.output', ''); Anthony. On Wed, Jun 9, 2010 at 6:16 PM, domJ dominic.th...@ebuero.ag wrote: Hi, first I thought the problem is WINDOWS but now I think there is something wrong with XAMPP. I tried WAMPSERVER and now everything runs correctly. On 8 Jun., 22:45, ramonpoli ramon.polid...@googlemail.com wrote: I have a similar error and nobody replied to me in my other post, I do everything as is said in the readme file but I can't make it work! On Jun 8, 8:49 pm, domJ dominic.th...@ebuero.ag wrote: Ok. Now I found out that the problem occur only on localhost with Xampp. On my debian-server everything is fine. But I dont know why... On 8 Jun., 21:23, domJ dominic.th...@ebuero.ag wrote: ok. I ran it. Here the response: Fatal error: Uncaught exception 'AuthTokenException' with message 'Failed to get authToken. Reason: BadAuthentication' in D:\xampp\htdocs \testprojects\adwords\AdWords\src\Google\Api\Ads\Common\Util \AuthToken.php:88 Stack trace: #0 D:\xampp\htdocs\testprojects\adwords \AdWords\src\Google\Api\Ads\AdWords\Lib\AdWordsUser.php(503): AuthToken-GetAuthToken() #1 D:\xampp\htdocs\testprojects\adwords \AdWords\src\Google\Api\Ads\AdWords\Lib\AdWordsUser.php(141): AdWordsUser-RegenerateAuthToken() #2 D:\xampp\htdocs\testprojects \adwords\index.php(5): AdWordsUser-__construct() #3 {main} thrown in D:\xampp\htdocs\testprojects\adwords\AdWords\src\Google\Api\Ads\Common \Util\AuthToken.php on line 88 Reason is again the BadAuthentication. On 8 Jun., 20:43, ramonpoli ramon.polid...@googlemail.com wrote: yes but apparently before run that example you have to use this initialization: $path = dirname(__FILE__) . '/AdWords/src'; set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/AdWords/Lib/AdWordsUser.php'; $user = new AdWordsUser(); // Log SOAP XML request and response. $user-LogDefaults(); // Get the CampaignService. $campaignService = $user-GetCampaignService('v200909','https:// adwords-sandbox.google.com'); are you actually doing it before calling the getAllCAmpaigns example? On Jun 8, 1:14 pm, kondalarao yarragunta kondalar...@gmail.com wrote: HI, I tried to run the PHP ClientLibrary(aw_api_php_lib_2.2.0) on my localhost. I changed the auth.ini like that: email = myacco...@google.com password = mypassword userAgent = My Sandbox API Tool applicationToken = ignored developerToken = myacco...@google.com++usd ; Uncomment to make requests against a client account. clientId = client_1++myacco...@google.comclient_1%2b%2bmyacco...@google.com client_1%2b%2bmyacco...@google.comclient_1%252b%252bmyacco...@google.com I set the DEFAULT_SERVER = https://adwords-sandbox.google.com; in the file settings.ini Now when I try to run aw_api_php_lib_2.2.0/examples/v200909/GetAllCampaigns.php i got the following error: AuthTokenException Object ( [error:AuthTokenException:private] = BadAuthentication [url:AuthTokenException:private] = [captchaToken:AuthTokenException:private] = [captchaUrl:AuthTokenException:private] = [message:protected] = Failed to get authToken. Reason: BadAuthentication [string:Exception:private] = [code:protected] = 0 [file:protected] = C:\xampp\htdocs\aw_api_php_lib_2.2.0\src\Google\Api\Ads\Common\Util\AuthTok en.php [line:protected] = 88 [trace:Exception:private] = Array ( [0] = Array ( [file] = C:\xampp\htdocs\aw_api_php_lib_2.2.0\src\Google\Api\Ads\AdWords\Lib\AdWords User.php [line] = 503 [function] = GetAuthToken [class] = AuthToken [type] = - [args] = Array ( ) ) [1] = Array ( [file] = C:\xampp\htdocs\aw_api_php_lib_2.2.0\src\Google\Api\Ads\AdWords\Lib\AdWords User.php [line] = 141 [function] = RegenerateAuthToken [class] = AdWordsUser [type] = - [args] = Array ( ) ) [2] = Array ( [file] = C:\xampp\htdocs\aw_api_php_lib_2.2.0\examples\v200909\GetAllCampaigns.php [line] = 46 [function] = __construct [class] = AdWordsUser [type] = -
Re: BadAuthentication v200909 Sandbox
I put the ini_set just after the require_once in the examples. I don't need the ini_set if I am running the examples from the command line but do if I'm running the examples from a web page under Apache/ Drupal. A bit more investigation found a ini_set('arg_separator.output', 'amp;'); in my Drupal settings file. HTH, Anthony. On Jun 10, 3:02 am, ramonpoli ramon.polid...@googlemail.com wrote: the only thing that my program changes is ini_set('default_socket_timeout', 480); so, I don't think that's the problem On Jun 9, 5:40 pm, ramonpoli ramon.polid...@googlemail.com wrote: where do yo have that ini_set Anthony? On Jun 9, 1:35 pm, Anthony M malko...@gmail.com wrote: Hi, I was getting a similar error and discovered that I needed to do the ini_set below (it was putting encoded amp; instead of a simple ) even though my phpinfo() is saying that my separator is the simple . ini_set('arg_separator.output', ''); Anthony. On Wed, Jun 9, 2010 at 6:16 PM, domJ dominic.th...@ebuero.ag wrote: Hi, first I thought the problem is WINDOWS but now I think there is something wrong with XAMPP. I tried WAMPSERVER and now everything runs correctly. On 8 Jun., 22:45, ramonpoli ramon.polid...@googlemail.com wrote: I have a similar error and nobody replied to me in my other post, I do everything as is said in the readme file but I can't make it work! On Jun 8, 8:49 pm, domJ dominic.th...@ebuero.ag wrote: Ok. Now I found out that the problem occur only on localhost with Xampp. On my debian-server everything is fine. But I dont know why... On 8 Jun., 21:23, domJ dominic.th...@ebuero.ag wrote: ok. I ran it. Here the response: Fatal error: Uncaught exception 'AuthTokenException' with message 'Failed to get authToken. Reason: BadAuthentication' in D:\xampp\htdocs \testprojects\adwords\AdWords\src\Google\Api\Ads\Common\Util \AuthToken.php:88 Stack trace: #0 D:\xampp\htdocs\testprojects\adwords \AdWords\src\Google\Api\Ads\AdWords\Lib\AdWordsUser.php(503): AuthToken-GetAuthToken() #1 D:\xampp\htdocs\testprojects\adwords \AdWords\src\Google\Api\Ads\AdWords\Lib\AdWordsUser.php(141): AdWordsUser-RegenerateAuthToken() #2 D:\xampp\htdocs\testprojects \adwords\index.php(5): AdWordsUser-__construct() #3 {main} thrown in D:\xampp\htdocs\testprojects\adwords\AdWords\src\Google\Api\Ads\Common \Util\AuthToken.php on line 88 Reason is again the BadAuthentication. On 8 Jun., 20:43, ramonpoli ramon.polid...@googlemail.com wrote: yes but apparently before run that example you have to use this initialization: $path = dirname(__FILE__) . '/AdWords/src'; set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/AdWords/Lib/AdWordsUser.php'; $user = new AdWordsUser(); // Log SOAP XML request and response. $user-LogDefaults(); // Get the CampaignService. $campaignService = $user-GetCampaignService('v200909','https:// adwords-sandbox.google.com'); are you actually doing it before calling the getAllCAmpaigns example? On Jun 8, 1:14 pm, kondalarao yarragunta kondalar...@gmail.com wrote: HI, I tried to run the PHP ClientLibrary(aw_api_php_lib_2.2.0) on my localhost. I changed the auth.ini like that: email = myacco...@google.com password = mypassword userAgent = My Sandbox API Tool applicationToken = ignored developerToken = myacco...@google.com++usd ; Uncomment to make requests against a client account. clientId = client_1++myacco...@google.comclient_1%2b%2bmyacco...@google.com client_1%2b%2bmyacco...@google.comclient_1%252b%252bmyacco...@google.com I set the DEFAULT_SERVER = https://adwords-sandbox.google.com; in the file settings.ini Now when I try to run aw_api_php_lib_2.2.0/examples/v200909/GetAllCampaigns.php i got the following error: AuthTokenException Object ( [error:AuthTokenException:private] = BadAuthentication [url:AuthTokenException:private] = [captchaToken:AuthTokenException:private] = [captchaUrl:AuthTokenException:private] = [message:protected] = Failed to get authToken. Reason: BadAuthentication [string:Exception:private] = [code:protected] = 0 [file:protected] = C:\xampp\htdocs\aw_api_php_lib_2.2.0\src\Google\Api\Ads\Common\Util\AuthTok en.php [line:protected] = 88 [trace:Exception:private] = Array ( [0] = Array ( [file] = C:\xampp\htdocs\aw_api_php_lib_2.2.0\src\Google\Api\Ads\AdWords\Lib\AdWords
Re: BadAuthentication v200909 Sandbox
yeah, the same happens to me, I initialize everything like domJ except the clientId: I only put one + symbol instead of two: client_1+myacco...@google.com I do not get the error on the AdWordsUser call but I get it when trying to add a campaign. can somebody help us please On Jun 8, 9:36 am, domJ dominic.th...@ebuero.ag wrote: Hi, I tried to run the PHP ClientLibrary on my localhost. I changed the auth.ini like that: email = myacco...@google.com password = mypassword userAgent = My Sandbox API Tool applicationToken = ignored developerToken = myacco...@google.com++eur ; Uncomment to make requests against a client account. clientId = client_1++myacco...@google.com I set the DEFAULT_SERVER = https://adwords-sandbox.google.com; in the file settings.ini Now when I try to create an instance of AdWordsUser() I get the following: uthTokenException Object ( [error:AuthTokenException:private] = BadAuthentication [url:AuthTokenException:private] = [captchaToken:AuthTokenException:private] = [captchaUrl:AuthTokenException:private] = [message:protected] = Failed to get authToken. Reason: BadAuthentication [string:Exception:private] = [code:protected] = 0 The account-information are correct. I tried it many times. And I can use the Sandbox Account View without any auth-error. Thank you for any help and sorry for my english. DomJ -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en
Re: BadAuthentication v200909 Sandbox
Yes, I think one plus is correct.I tried both for clientId, one and two plus. The result is BadAuthentication anymore. On 8 Jun., 16:09, ramonpoli ramon.polid...@googlemail.com wrote: yeah, the same happens to me, I initialize everything like domJ except the clientId: I only put one + symbol instead of two: client_1+myacco...@google.com I do not get the error on the AdWordsUser call but I get it when trying to add a campaign. can somebody help us please On Jun 8, 9:36 am, domJ dominic.th...@ebuero.ag wrote: Hi, I tried to run the PHP ClientLibrary on my localhost. I changed the auth.ini like that: email = myacco...@google.com password = mypassword userAgent = My Sandbox API Tool applicationToken = ignored developerToken = myacco...@google.com++eur ; Uncomment to make requests against a client account. clientId = client_1++myacco...@google.com I set the DEFAULT_SERVER = https://adwords-sandbox.google.com; in the file settings.ini Now when I try to create an instance of AdWordsUser() I get the following: uthTokenException Object ( [error:AuthTokenException:private] = BadAuthentication [url:AuthTokenException:private] = [captchaToken:AuthTokenException:private] = [captchaUrl:AuthTokenException:private] = [message:protected] = Failed to get authToken. Reason: BadAuthentication [string:Exception:private] = [code:protected] = 0 The account-information are correct. I tried it many times. And I can use the Sandbox Account View without any auth-error. Thank you for any help and sorry for my english. DomJ -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en
Re: BadAuthentication v200909 Sandbox
yeah, have u tried with the correct initialization?: $path = dirname(__FILE__) . '/AdWords/src'; set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/AdWords/Lib/AdWordsUser.php'; $user = new AdWordsUser(); // Log SOAP XML request and response. $user-LogDefaults(); // Get the CampaignService. $campaignService = $user-GetCampaignService('v200909','https:// adwords-sandbox.google.com'); On Jun 8, 3:33 pm, domJ dominic.th...@ebuero.ag wrote: Yes, I think one plus is correct.I tried both for clientId, one and two plus. The result is BadAuthentication anymore. On 8 Jun., 16:09, ramonpoli ramon.polid...@googlemail.com wrote: yeah, the same happens to me, I initialize everything like domJ except the clientId: I only put one + symbol instead of two: client_1+myacco...@google.com I do not get the error on the AdWordsUser call but I get it when trying to add a campaign. can somebody help us please On Jun 8, 9:36 am, domJ dominic.th...@ebuero.ag wrote: Hi, I tried to run the PHP ClientLibrary on my localhost. I changed the auth.ini like that: email = myacco...@google.com password = mypassword userAgent = My Sandbox API Tool applicationToken = ignored developerToken = myacco...@google.com++eur ; Uncomment to make requests against a client account. clientId = client_1++myacco...@google.com I set the DEFAULT_SERVER = https://adwords-sandbox.google.com; in the file settings.ini Now when I try to create an instance of AdWordsUser() I get the following: uthTokenException Object ( [error:AuthTokenException:private] = BadAuthentication [url:AuthTokenException:private] = [captchaToken:AuthTokenException:private] = [captchaUrl:AuthTokenException:private] = [message:protected] = Failed to get authToken. Reason: BadAuthentication [string:Exception:private] = [code:protected] = 0 The account-information are correct. I tried it many times. And I can use the Sandbox Account View without any auth-error. Thank you for any help and sorry for my english. DomJ -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en
Re: BadAuthentication v200909 Sandbox
I use the GetAllCampaigns and AddCampaign example to test it. On 8 Jun., 17:11, ramonpoli ramon.polid...@googlemail.com wrote: yeah, have u tried with the correct initialization?: $path = dirname(__FILE__) . '/AdWords/src'; set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/AdWords/Lib/AdWordsUser.php'; $user = new AdWordsUser(); // Log SOAP XML request and response. $user-LogDefaults(); // Get the CampaignService. $campaignService = $user-GetCampaignService('v200909','https:// adwords-sandbox.google.com'); On Jun 8, 3:33 pm, domJ dominic.th...@ebuero.ag wrote: Yes, I think one plus is correct.I tried both for clientId, one and two plus. The result is BadAuthentication anymore. On 8 Jun., 16:09, ramonpoli ramon.polid...@googlemail.com wrote: yeah, the same happens to me, I initialize everything like domJ except the clientId: I only put one + symbol instead of two: client_1+myacco...@google.com I do not get the error on the AdWordsUser call but I get it when trying to add a campaign. can somebody help us please On Jun 8, 9:36 am, domJ dominic.th...@ebuero.ag wrote: Hi, I tried to run the PHP ClientLibrary on my localhost. I changed the auth.ini like that: email = myacco...@google.com password = mypassword userAgent = My Sandbox API Tool applicationToken = ignored developerToken = myacco...@google.com++eur ; Uncomment to make requests against a client account. clientId = client_1++myacco...@google.com I set the DEFAULT_SERVER = https://adwords-sandbox.google.com; in the file settings.ini Now when I try to create an instance of AdWordsUser() I get the following: uthTokenException Object ( [error:AuthTokenException:private] = BadAuthentication [url:AuthTokenException:private] = [captchaToken:AuthTokenException:private] = [captchaUrl:AuthTokenException:private] = [message:protected] = Failed to get authToken. Reason: BadAuthentication [string:Exception:private] = [code:protected] = 0 The account-information are correct. I tried it many times. And I can use the Sandbox Account View without any auth-error. Thank you for any help and sorry for my english. DomJ -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en
Re: BadAuthentication v200909 Sandbox
and do they work? do you get to add the campaigns and receive them? On Jun 8, 4:24 pm, domJ dominic.th...@ebuero.ag wrote: I use the GetAllCampaigns and AddCampaign example to test it. On 8 Jun., 17:11, ramonpoli ramon.polid...@googlemail.com wrote: yeah, have u tried with the correct initialization?: $path = dirname(__FILE__) . '/AdWords/src'; set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/AdWords/Lib/AdWordsUser.php'; $user = new AdWordsUser(); // Log SOAP XML request and response. $user-LogDefaults(); // Get the CampaignService. $campaignService = $user-GetCampaignService('v200909','https:// adwords-sandbox.google.com'); On Jun 8, 3:33 pm, domJ dominic.th...@ebuero.ag wrote: Yes, I think one plus is correct.I tried both for clientId, one and two plus. The result is BadAuthentication anymore. On 8 Jun., 16:09, ramonpoli ramon.polid...@googlemail.com wrote: yeah, the same happens to me, I initialize everything like domJ except the clientId: I only put one + symbol instead of two: client_1+myacco...@google.com I do not get the error on the AdWordsUser call but I get it when trying to add a campaign. can somebody help us please On Jun 8, 9:36 am, domJ dominic.th...@ebuero.ag wrote: Hi, I tried to run the PHP ClientLibrary on my localhost. I changed the auth.ini like that: email = myacco...@google.com password = mypassword userAgent = My Sandbox API Tool applicationToken = ignored developerToken = myacco...@google.com++eur ; Uncomment to make requests against a client account. clientId = client_1++myacco...@google.com I set the DEFAULT_SERVER = https://adwords-sandbox.google.com; in the file settings.ini Now when I try to create an instance of AdWordsUser() I get the following: uthTokenException Object ( [error:AuthTokenException:private] = BadAuthentication [url:AuthTokenException:private] = [captchaToken:AuthTokenException:private] = [captchaUrl:AuthTokenException:private] = [message:protected] = Failed to get authToken. Reason: BadAuthentication [string:Exception:private] = [code:protected] = 0 The account-information are correct. I tried it many times. And I can use the Sandbox Account View without any auth-error. Thank you for any help and sorry for my english. DomJ -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en
Re: BadAuthentication v200909 Sandbox
No, that's the Problem. I always get BadAuthentication. But the account-information are definitively correct. On 8 Jun., 17:37, ramonpoli ramon.polid...@googlemail.com wrote: and do they work? do you get to add the campaigns and receive them? On Jun 8, 4:24 pm, domJ dominic.th...@ebuero.ag wrote: I use the GetAllCampaigns and AddCampaign example to test it. On 8 Jun., 17:11, ramonpoli ramon.polid...@googlemail.com wrote: yeah, have u tried with the correct initialization?: $path = dirname(__FILE__) . '/AdWords/src'; set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/AdWords/Lib/AdWordsUser.php'; $user = new AdWordsUser(); // Log SOAP XML request and response. $user-LogDefaults(); // Get the CampaignService. $campaignService = $user-GetCampaignService('v200909','https:// adwords-sandbox.google.com'); On Jun 8, 3:33 pm, domJ dominic.th...@ebuero.ag wrote: Yes, I think one plus is correct.I tried both for clientId, one and two plus. The result is BadAuthentication anymore. On 8 Jun., 16:09, ramonpoli ramon.polid...@googlemail.com wrote: yeah, the same happens to me, I initialize everything like domJ except the clientId: I only put one + symbol instead of two: client_1+myacco...@google.com I do not get the error on the AdWordsUser call but I get it when trying to add a campaign. can somebody help us please On Jun 8, 9:36 am, domJ dominic.th...@ebuero.ag wrote: Hi, I tried to run the PHP ClientLibrary on my localhost. I changed the auth.ini like that: email = myacco...@google.com password = mypassword userAgent = My Sandbox API Tool applicationToken = ignored developerToken = myacco...@google.com++eur ; Uncomment to make requests against a client account. clientId = client_1++myacco...@google.com I set the DEFAULT_SERVER = https://adwords-sandbox.google.com; in the file settings.ini Now when I try to create an instance of AdWordsUser() I get the following: uthTokenException Object ( [error:AuthTokenException:private] = BadAuthentication [url:AuthTokenException:private] = [captchaToken:AuthTokenException:private] = [captchaUrl:AuthTokenException:private] = [message:protected] = Failed to get authToken. Reason: BadAuthentication [string:Exception:private] = [code:protected] = 0 The account-information are correct. I tried it many times. And I can use the Sandbox Account View without any auth-error. Thank you for any help and sorry for my english. DomJ -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en
Re: BadAuthentication v200909 Sandbox
did u follow the correct steps of the initialization? On Jun 8, 4:39 pm, domJ dominic.th...@ebuero.ag wrote: No, that's the Problem. I always get BadAuthentication. But the account-information are definitively correct. On 8 Jun., 17:37, ramonpoli ramon.polid...@googlemail.com wrote: and do they work? do you get to add the campaigns and receive them? On Jun 8, 4:24 pm, domJ dominic.th...@ebuero.ag wrote: I use the GetAllCampaigns and AddCampaign example to test it. On 8 Jun., 17:11, ramonpoli ramon.polid...@googlemail.com wrote: yeah, have u tried with the correct initialization?: $path = dirname(__FILE__) . '/AdWords/src'; set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/AdWords/Lib/AdWordsUser.php'; $user = new AdWordsUser(); // Log SOAP XML request and response. $user-LogDefaults(); // Get the CampaignService. $campaignService = $user-GetCampaignService('v200909','https:// adwords-sandbox.google.com'); On Jun 8, 3:33 pm, domJ dominic.th...@ebuero.ag wrote: Yes, I think one plus is correct.I tried both for clientId, one and two plus. The result is BadAuthentication anymore. On 8 Jun., 16:09, ramonpoli ramon.polid...@googlemail.com wrote: yeah, the same happens to me, I initialize everything like domJ except the clientId: I only put one + symbol instead of two: client_1+myacco...@google.com I do not get the error on the AdWordsUser call but I get it when trying to add a campaign. can somebody help us please On Jun 8, 9:36 am, domJ dominic.th...@ebuero.ag wrote: Hi, I tried to run the PHP ClientLibrary on my localhost. I changed the auth.ini like that: email = myacco...@google.com password = mypassword userAgent = My Sandbox API Tool applicationToken = ignored developerToken = myacco...@google.com++eur ; Uncomment to make requests against a client account. clientId = client_1++myacco...@google.com I set the DEFAULT_SERVER = https://adwords-sandbox.google.com; in the file settings.ini Now when I try to create an instance of AdWordsUser() I get the following: uthTokenException Object ( [error:AuthTokenException:private] = BadAuthentication [url:AuthTokenException:private] = [captchaToken:AuthTokenException:private] = [captchaUrl:AuthTokenException:private] = [message:protected] = Failed to get authToken. Reason: BadAuthentication [string:Exception:private] = [code:protected] = 0 The account-information are correct. I tried it many times. And I can use the Sandbox Account View without any auth-error. Thank you for any help and sorry for my english. DomJ -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en
Re: BadAuthentication v200909 Sandbox
yes but apparently before run that example you have to use this initialization: $path = dirname(__FILE__) . '/AdWords/src'; set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/AdWords/Lib/AdWordsUser.php'; $user = new AdWordsUser(); // Log SOAP XML request and response. $user-LogDefaults(); // Get the CampaignService. $campaignService = $user-GetCampaignService('v200909','https:// adwords-sandbox.google.com'); are you actually doing it before calling the getAllCAmpaigns example? On Jun 8, 1:14 pm, kondalarao yarragunta kondalar...@gmail.com wrote: HI, I tried to run the PHP ClientLibrary(aw_api_php_lib_2.2.0) on my localhost. I changed the auth.ini like that: email = myacco...@google.com password = mypassword userAgent = My Sandbox API Tool applicationToken = ignored developerToken = myacco...@google.com++usd ; Uncomment to make requests against a client account. clientId = client_1++myacco...@google.comclient_1%2b%2bmyacco...@google.com I set the DEFAULT_SERVER = https://adwords-sandbox.google.com; in the file settings.ini Now when I try to run aw_api_php_lib_2.2.0/examples/v200909/GetAllCampaigns.php i got the following error: AuthTokenException Object ( [error:AuthTokenException:private] = BadAuthentication [url:AuthTokenException:private] = [captchaToken:AuthTokenException:private] = [captchaUrl:AuthTokenException:private] = [message:protected] = Failed to get authToken. Reason: BadAuthentication [string:Exception:private] = [code:protected] = 0 [file:protected] = C:\xampp\htdocs\aw_api_php_lib_2.2.0\src\Google\Api\Ads\Common\Util\AuthTok en.php [line:protected] = 88 [trace:Exception:private] = Array ( [0] = Array ( [file] = C:\xampp\htdocs\aw_api_php_lib_2.2.0\src\Google\Api\Ads\AdWords\Lib\AdWords User.php [line] = 503 [function] = GetAuthToken [class] = AuthToken [type] = - [args] = Array ( ) ) [1] = Array ( [file] = C:\xampp\htdocs\aw_api_php_lib_2.2.0\src\Google\Api\Ads\AdWords\Lib\AdWords User.php [line] = 141 [function] = RegenerateAuthToken [class] = AdWordsUser [type] = - [args] = Array ( ) ) [2] = Array ( [file] = C:\xampp\htdocs\aw_api_php_lib_2.2.0\examples\v200909\GetAllCampaigns.php [line] = 46 [function] = __construct [class] = AdWordsUser [type] = - [args] = Array ( ) ) ) [previous:Exception:private] = ) The account-information are correct. I tried it many times. And I can use the Sandbox Account View without any auth-error. Thank you for any help please, Thanks and Regards, Y.Kondalarao. -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en
Re: BadAuthentication v200909 Sandbox
ok. I ran it. Here the response: Fatal error: Uncaught exception 'AuthTokenException' with message 'Failed to get authToken. Reason: BadAuthentication' in D:\xampp\htdocs \testprojects\adwords\AdWords\src\Google\Api\Ads\Common\Util \AuthToken.php:88 Stack trace: #0 D:\xampp\htdocs\testprojects\adwords \AdWords\src\Google\Api\Ads\AdWords\Lib\AdWordsUser.php(503): AuthToken-GetAuthToken() #1 D:\xampp\htdocs\testprojects\adwords \AdWords\src\Google\Api\Ads\AdWords\Lib\AdWordsUser.php(141): AdWordsUser-RegenerateAuthToken() #2 D:\xampp\htdocs\testprojects \adwords\index.php(5): AdWordsUser-__construct() #3 {main} thrown in D:\xampp\htdocs\testprojects\adwords\AdWords\src\Google\Api\Ads\Common \Util\AuthToken.php on line 88 Reason is again the BadAuthentication. On 8 Jun., 20:43, ramonpoli ramon.polid...@googlemail.com wrote: yes but apparently before run that example you have to use this initialization: $path = dirname(__FILE__) . '/AdWords/src'; set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/AdWords/Lib/AdWordsUser.php'; $user = new AdWordsUser(); // Log SOAP XML request and response. $user-LogDefaults(); // Get the CampaignService. $campaignService = $user-GetCampaignService('v200909','https:// adwords-sandbox.google.com'); are you actually doing it before calling the getAllCAmpaigns example? On Jun 8, 1:14 pm, kondalarao yarragunta kondalar...@gmail.com wrote: HI, I tried to run the PHP ClientLibrary(aw_api_php_lib_2.2.0) on my localhost. I changed the auth.ini like that: email = myacco...@google.com password = mypassword userAgent = My Sandbox API Tool applicationToken = ignored developerToken = myacco...@google.com++usd ; Uncomment to make requests against a client account. clientId = client_1++myacco...@google.comclient_1%2b%2bmyacco...@google.com I set the DEFAULT_SERVER = https://adwords-sandbox.google.com; in the file settings.ini Now when I try to run aw_api_php_lib_2.2.0/examples/v200909/GetAllCampaigns.php i got the following error: AuthTokenException Object ( [error:AuthTokenException:private] = BadAuthentication [url:AuthTokenException:private] = [captchaToken:AuthTokenException:private] = [captchaUrl:AuthTokenException:private] = [message:protected] = Failed to get authToken. Reason: BadAuthentication [string:Exception:private] = [code:protected] = 0 [file:protected] = C:\xampp\htdocs\aw_api_php_lib_2.2.0\src\Google\Api\Ads\Common\Util\AuthTok en.php [line:protected] = 88 [trace:Exception:private] = Array ( [0] = Array ( [file] = C:\xampp\htdocs\aw_api_php_lib_2.2.0\src\Google\Api\Ads\AdWords\Lib\AdWords User.php [line] = 503 [function] = GetAuthToken [class] = AuthToken [type] = - [args] = Array ( ) ) [1] = Array ( [file] = C:\xampp\htdocs\aw_api_php_lib_2.2.0\src\Google\Api\Ads\AdWords\Lib\AdWords User.php [line] = 141 [function] = RegenerateAuthToken [class] = AdWordsUser [type] = - [args] = Array ( ) ) [2] = Array ( [file] = C:\xampp\htdocs\aw_api_php_lib_2.2.0\examples\v200909\GetAllCampaigns.php [line] = 46 [function] = __construct [class] = AdWordsUser [type] = - [args] = Array ( ) ) ) [previous:Exception:private] = ) The account-information are correct. I tried it many times. And I can use the Sandbox Account View without any auth-error. Thank you for any help please, Thanks and Regards, Y.Kondalarao. -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en
Re: BadAuthentication v200909 Sandbox
Ok. Now I found out that the problem occur only on localhost with Xampp. On my debian-server everything is fine. But I dont know why... On 8 Jun., 21:23, domJ dominic.th...@ebuero.ag wrote: ok. I ran it. Here the response: Fatal error: Uncaught exception 'AuthTokenException' with message 'Failed to get authToken. Reason: BadAuthentication' in D:\xampp\htdocs \testprojects\adwords\AdWords\src\Google\Api\Ads\Common\Util \AuthToken.php:88 Stack trace: #0 D:\xampp\htdocs\testprojects\adwords \AdWords\src\Google\Api\Ads\AdWords\Lib\AdWordsUser.php(503): AuthToken-GetAuthToken() #1 D:\xampp\htdocs\testprojects\adwords \AdWords\src\Google\Api\Ads\AdWords\Lib\AdWordsUser.php(141): AdWordsUser-RegenerateAuthToken() #2 D:\xampp\htdocs\testprojects \adwords\index.php(5): AdWordsUser-__construct() #3 {main} thrown in D:\xampp\htdocs\testprojects\adwords\AdWords\src\Google\Api\Ads\Common \Util\AuthToken.php on line 88 Reason is again the BadAuthentication. On 8 Jun., 20:43, ramonpoli ramon.polid...@googlemail.com wrote: yes but apparently before run that example you have to use this initialization: $path = dirname(__FILE__) . '/AdWords/src'; set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/AdWords/Lib/AdWordsUser.php'; $user = new AdWordsUser(); // Log SOAP XML request and response. $user-LogDefaults(); // Get the CampaignService. $campaignService = $user-GetCampaignService('v200909','https:// adwords-sandbox.google.com'); are you actually doing it before calling the getAllCAmpaigns example? On Jun 8, 1:14 pm, kondalarao yarragunta kondalar...@gmail.com wrote: HI, I tried to run the PHP ClientLibrary(aw_api_php_lib_2.2.0) on my localhost. I changed the auth.ini like that: email = myacco...@google.com password = mypassword userAgent = My Sandbox API Tool applicationToken = ignored developerToken = myacco...@google.com++usd ; Uncomment to make requests against a client account. clientId = client_1++myacco...@google.comclient_1%2b%2bmyacco...@google.com I set the DEFAULT_SERVER = https://adwords-sandbox.google.com; in the file settings.ini Now when I try to run aw_api_php_lib_2.2.0/examples/v200909/GetAllCampaigns.php i got the following error: AuthTokenException Object ( [error:AuthTokenException:private] = BadAuthentication [url:AuthTokenException:private] = [captchaToken:AuthTokenException:private] = [captchaUrl:AuthTokenException:private] = [message:protected] = Failed to get authToken. Reason: BadAuthentication [string:Exception:private] = [code:protected] = 0 [file:protected] = C:\xampp\htdocs\aw_api_php_lib_2.2.0\src\Google\Api\Ads\Common\Util\AuthTok en.php [line:protected] = 88 [trace:Exception:private] = Array ( [0] = Array ( [file] = C:\xampp\htdocs\aw_api_php_lib_2.2.0\src\Google\Api\Ads\AdWords\Lib\AdWords User.php [line] = 503 [function] = GetAuthToken [class] = AuthToken [type] = - [args] = Array ( ) ) [1] = Array ( [file] = C:\xampp\htdocs\aw_api_php_lib_2.2.0\src\Google\Api\Ads\AdWords\Lib\AdWords User.php [line] = 141 [function] = RegenerateAuthToken [class] = AdWordsUser [type] = - [args] = Array ( ) ) [2] = Array ( [file] = C:\xampp\htdocs\aw_api_php_lib_2.2.0\examples\v200909\GetAllCampaigns.php [line] = 46 [function] = __construct [class] = AdWordsUser [type] = - [args] = Array ( ) ) ) [previous:Exception:private] = ) The account-information are correct. I tried it many times. And I can use the Sandbox Account View without any auth-error. Thank you for any help please, Thanks and Regards, Y.Kondalarao. -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en
Re: BadAuthentication v200909 Sandbox
I have a similar error and nobody replied to me in my other post, I do everything as is said in the readme file but I can't make it work! On Jun 8, 8:49 pm, domJ dominic.th...@ebuero.ag wrote: Ok. Now I found out that the problem occur only on localhost with Xampp. On my debian-server everything is fine. But I dont know why... On 8 Jun., 21:23, domJ dominic.th...@ebuero.ag wrote: ok. I ran it. Here the response: Fatal error: Uncaught exception 'AuthTokenException' with message 'Failed to get authToken. Reason: BadAuthentication' in D:\xampp\htdocs \testprojects\adwords\AdWords\src\Google\Api\Ads\Common\Util \AuthToken.php:88 Stack trace: #0 D:\xampp\htdocs\testprojects\adwords \AdWords\src\Google\Api\Ads\AdWords\Lib\AdWordsUser.php(503): AuthToken-GetAuthToken() #1 D:\xampp\htdocs\testprojects\adwords \AdWords\src\Google\Api\Ads\AdWords\Lib\AdWordsUser.php(141): AdWordsUser-RegenerateAuthToken() #2 D:\xampp\htdocs\testprojects \adwords\index.php(5): AdWordsUser-__construct() #3 {main} thrown in D:\xampp\htdocs\testprojects\adwords\AdWords\src\Google\Api\Ads\Common \Util\AuthToken.php on line 88 Reason is again the BadAuthentication. On 8 Jun., 20:43, ramonpoli ramon.polid...@googlemail.com wrote: yes but apparently before run that example you have to use this initialization: $path = dirname(__FILE__) . '/AdWords/src'; set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/AdWords/Lib/AdWordsUser.php'; $user = new AdWordsUser(); // Log SOAP XML request and response. $user-LogDefaults(); // Get the CampaignService. $campaignService = $user-GetCampaignService('v200909','https:// adwords-sandbox.google.com'); are you actually doing it before calling the getAllCAmpaigns example? On Jun 8, 1:14 pm, kondalarao yarragunta kondalar...@gmail.com wrote: HI, I tried to run the PHP ClientLibrary(aw_api_php_lib_2.2.0) on my localhost. I changed the auth.ini like that: email = myacco...@google.com password = mypassword userAgent = My Sandbox API Tool applicationToken = ignored developerToken = myacco...@google.com++usd ; Uncomment to make requests against a client account. clientId = client_1++myacco...@google.comclient_1%2b%2bmyacco...@google.com I set the DEFAULT_SERVER = https://adwords-sandbox.google.com; in the file settings.ini Now when I try to run aw_api_php_lib_2.2.0/examples/v200909/GetAllCampaigns.php i got the following error: AuthTokenException Object ( [error:AuthTokenException:private] = BadAuthentication [url:AuthTokenException:private] = [captchaToken:AuthTokenException:private] = [captchaUrl:AuthTokenException:private] = [message:protected] = Failed to get authToken. Reason: BadAuthentication [string:Exception:private] = [code:protected] = 0 [file:protected] = C:\xampp\htdocs\aw_api_php_lib_2.2.0\src\Google\Api\Ads\Common\Util\AuthTok en.php [line:protected] = 88 [trace:Exception:private] = Array ( [0] = Array ( [file] = C:\xampp\htdocs\aw_api_php_lib_2.2.0\src\Google\Api\Ads\AdWords\Lib\AdWords User.php [line] = 503 [function] = GetAuthToken [class] = AuthToken [type] = - [args] = Array ( ) ) [1] = Array ( [file] = C:\xampp\htdocs\aw_api_php_lib_2.2.0\src\Google\Api\Ads\AdWords\Lib\AdWords User.php [line] = 141 [function] = RegenerateAuthToken [class] = AdWordsUser [type] = - [args] = Array ( ) ) [2] = Array ( [file] = C:\xampp\htdocs\aw_api_php_lib_2.2.0\examples\v200909\GetAllCampaigns.php [line] = 46 [function] = __construct [class] = AdWordsUser [type] = - [args] = Array ( ) ) ) [previous:Exception:private] = ) The account-information are correct. I tried it many times. And I can use the Sandbox Account View without any auth-error. Thank you for any help please, Thanks and Regards, Y.Kondalarao. -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en