Google Adwords API - Sandbox Error
Got this error while testing code for the Adwords API using the Sandbox:
Message: The specified client email does not exist. Your client accounts may not exist because either this is your first time using the sandbox or the sandbox database has been cleaned. Please remove the clientEmail from the request header and call the getClientAccounts method from AccountService to ensure that your client accounts are created and do exist. Trigger: client_1+test@goinfosystems.com Code: 139 Fault Origin: /project-save.php:getNewKeywordListEstimate() SOAP Parameters:100000000 false web hosting Broad 100000000 false web page design Broad 100000000 false web server Broad
...
To get it working again, tried changing the email to client_2... then ran TestSuite_TrafficEstimate.php but got the same error, then I removed the client email from the authentication.ini file (commented out) then ran the TestSuite file again. This caused another error saying the email was required.
I then put the original test email back in and ran the file again... and it worked without the error.
I'm assuming what the error was referring to was
http://google-apility.sourceforge.net/reference.html#account-setLoginInfo%28%24newLoginEmail%2C+%24newPassword%29
The Google API Sandbox is buggy. But there isn't much else I can use for testing while I wait for my developer account to be approved... it's been two weeks now....
If you use the API with Sandbox, be sure to switch the request headers and location to the production environment when it's time to go live!
http://www.google.com/apis/adwords/developer/adwords_api_sandbox.html
-Jeffery
Message: The specified client email does not exist. Your client accounts may not exist because either this is your first time using the sandbox or the sandbox database has been cleaned. Please remove the clientEmail from the request header and call the getClientAccounts method from AccountService to ensure that your client accounts are created and do exist. Trigger: client_1+test@goinfosystems.com Code: 139 Fault Origin: /project-save.php:getNewKeywordListEstimate() SOAP Parameters:
...
To get it working again, tried changing the email to client_2... then ran TestSuite_TrafficEstimate.php but got the same error, then I removed the client email from the authentication.ini file (commented out) then ran the TestSuite file again. This caused another error saying the email was required.
I then put the original test email back in and ran the file again... and it worked without the error.
I'm assuming what the error was referring to was
http://google-apility.sourceforge.net/reference.html#account-setLoginInfo%28%24newLoginEmail%2C+%24newPassword%29
The Google API Sandbox is buggy. But there isn't much else I can use for testing while I wait for my developer account to be approved... it's been two weeks now....
If you use the API with Sandbox, be sure to switch the request headers and location to the production environment when it's time to go live!
http://www.google.com/apis/adwords/developer/adwords_api_sandbox.html
-Jeffery


1 Comments:
I was getting the same error..the following worked for me..as per the sandbox docs..
client_1+login_id
ex:
clientEmail: client_1+johndoe@example.com
where login_id is the same value used in the email header
Post a Comment
<< Home