I have eventually tracked this down. There seems to be a length limit to email addresses used. Mine was too long, I changed it for a shorter one from a colleague and it's all going through fine. I am not sure what the limit is though I'm afraid.
Replied in case this is of use to anyone else with a stupidly long email address. kind regards, b. On Jun 7, 11:09 am, Ben Broadhurst <[email protected]> wrote: > Hi all, > I am trying to add a campaign to a sandbox account. I have followed > all docs, but I still must be missing something. Below is a dump of > the object I am sending, and the error I get back, as you can see I am > sending email, password, userAgern, clientEmail, developer token, > applicationToken, and authToken but I keep getting a > CLIENT_EMAIL_INVALID error even though it is in the format "client_n > +loginId". Sensitive info redacted: > > php /home/www/top.net/httpdocs/script/google-interface/ > campaigns.add.php > -----------<br />dump:<pre>iface Object > ( > [db] => db Object > ( > [db] => Resource id #18 > [sql] => SELECT > id, > title > FROM isub_category > WHERE isNew = 1 > AND type = "Magazines" > LIMIT 1; > ) > > [user] => AdWordsUser Object > ( > [email:private] => > [email protected] > [password:private] => [redacted] > [requestHeaderElements:private] => Array > ( > [userAgent] => PHP v5.2.10 - AdWords API PHP > Client Library - v1.2.2 - iSUBSCRiBE > [clientEmail] => > [email protected] > [developerToken] => > [email protected]++gbp > [applicationToken] => [redacted] > [authToken] => > DQAAAM4AAACqQICqKzuRg3jkWxuLozSUUgDdCWNz0tLEcFEx3EL3XgIpzXf8b4tKdsZMa_iYyFjnn3Mpwokkl8DokOBLvXXhMq4CDnuxdi37ClVCXuoQHbttUcbi8- > rp_MNe88ja4tVuAujpQoJbh6Ssad-70- > VH5ebl4gsYOGNuvXd3fKLe062FQ_Ln5bof_rL0yOsJtG_VoBY1vng4sWkodwLWCzQxexFiTMqdp9zK3ShYIfWVKcU27M5M1K1CKnuUidoFMX4Va8jizGqRbEdQ86B4fNq- > ) > > [defaultServer:private] =>https://adwords-sandbox.google.com > [defaultVersion:private] => v200909 > [logsDirectory:private] => /home/www/top.net/httpdocs/logs > ) > > ) > :</pre>----------- > Fatal error: Uncaught SoapFault exception: [soap:Server] > AuthenticationError.CLIENT_EMAIL_INVALID @ ; > trigger:'[email protected]' > Service[CampaignService.mutate] in /home/www/top.net/httpdocs/script/ > Google/Api/Ads/Common/Lib/AdsSoapClient.php:160 > Stack trace: > #0 /home/www/top.net/httpdocs/script/Google/Api/Ads/Common/Lib/ > AdsSoapClient.php(160): SoapClient->__soapCall('mutate', Array, NULL, > NULL, Array) > #1 /home/www/top.net/httpdocs/script/Google/Api/Ads/AdWords/v200909/cm/ > CampaignService.php(4327): AdsSoapClient->__soapCall('mutate', Array) > #2 /home/www/top.net/httpdocs/script/google-interface/ > campaigns.add.php(61): CampaignService->mutate(Array) > #3 /home/www/top.net/httpdocs/script/google-interface/ > campaigns.add.php(22): iface->addCampaign(Array) > #4 /home/www/top.net/httpdocs/script/google-interface/ > campaigns.add.php(12): iface->execute() > #5 /home/www/top.net/httpdocs/script/google-interface/ > campaigns.add.php(67): iface->__construct() > #6 {main} > thrown in /home/www/top.net/httpdocs/script/Google/Api/Ads/Common/ > Lib/AdsSoapClient.php on line 160 > > Any help would really be appreciated, > ben. -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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
