Here is the debug print out I get when running the AddCampaign.php script: SoapFault Object ( [message:protected] => AuthenticationError.CLIENT_EMAIL_INVALID @ ; trigger:'client_1+jwri...@where2getit.com' Service[CampaignService.mutate] [string:private] => [code:protected] => 0 [file:protected] => /u/client/gads/src/Google/Api/Ads/Common/Lib/ AdsSoapClient.php [line:protected] => 179 [trace:private] => Array ( [0] => Array ( [file] => /u/client/gads/src/Google/Api/Ads/Common/ Lib/AdsSoapClient.php [line] => 179 [function] => __soapCall [class] => SoapClient [type] => -> [args] => Array ( [0] => mutate [1] => Array ( [0] => CampaignServiceMutate Object ( [operations] => Array ( [0] => CampaignOperation Object ( [biddingTransition] => [operand] => Campaign Object ( [id] => [name] => Interplanetary Cruise #1279985222 [status] => PAUSED [servingStatus] => [startDate] => [endDate] => [budget] => Budget Object ( [period] => DAILY [amount] => Money Object ( [microAmount] => 50000000 [ComparableValueType] => [_parameterMap:private] => Array ( [ComparableValue.Type] => ComparableValueType )
) [deliveryMethod] => STANDARD ) [biddingStrategy] => ManualCPC Object ( [positionPreference] => [BiddingStrategyType] => [_parameterMap:private] => Array ( [BiddingStrategy.Type] => BiddingStrategyType ) ) [autoKeywordMatchingStatus] => [campaignStats] => [adServingOptimizationStatus] => [frequencyCap] => ) [operator] => ADD [OperationType] => [_parameterMap:private] => Array ( [Operation.Type] => OperationType ) ) ) ) ) [2] => [3] => Array ( [0] => SoapHeader Object ( [namespace] => https://adwords.google.com/api/adwords/cm/v201003 [name] => RequestHeader [data] => SoapVar Object ( [enc_type] => 301 [enc_value] => SoapRequestHeader Object ( [authToken] => DQAAALAAAAA8XoAvR8XSMrTQQXo75AWE2HQDL3dF- wHCaDhA45tJuNvhzFRK4FXyrWQ3i58-2ELi2U8UBtqnxMZMxyXLhiBRdXGBRjk1ngvWr0qP6QfhR2750A5g3HG35GvmNc1wXPBthYcXeIvO0sUs1dHvRWNk2d377RshFjlANzF32f4gVNeD0RSj9OFUOLNS3PNkDe5BGZE5jSihRnP7V_tTJsiyB1F8BsKBJ0oIUjz0R7ziPA [clientCustomerId] => [clientEmail] => client_1+jx...@xxx.com [developerToken] => jx...@xxx.com++usd [userAgent] => AwApi-PHP-2.2.0-Where2GetIt [validateOnly] => ) [enc_stype] => RequestHeader [enc_ns] => https://adwords.google.com/api/adwords/cm/v201003 ) [mustUnderstand] => ) ) [4] => Array ( ) ) ) [1] => Array ( [file] => /u/client/gads/src/Google/Api/Ads/ AdWords/v201003/cm/CampaignService.php [line] => 4691 [function] => __soapCall [class] => AdsSoapClient [type] => -> [args] => Array ( [0] => mutate [1] => Array ( [0] => CampaignServiceMutate Object ( [operations] => Array ( [0] => CampaignOperation Object ( [biddingTransition] => [operand] => Campaign Object ( [id] => [name] => Interplanetary Cruise #1279985222 [status] => PAUSED [servingStatus] => [startDate] => [endDate] => [budget] => Budget Object ( [period] => DAILY [amount] => Money Object ( [microAmount] => 50000000 [ComparableValueType] => [_parameterMap:private] => Array ( [ComparableValue.Type] => ComparableValueType ) ) [deliveryMethod] => STANDARD ) [biddingStrategy] => ManualCPC Object ( [positionPreference] => [BiddingStrategyType] => [_parameterMap:private] => Array ( [BiddingStrategy.Type] => BiddingStrategyType ) ) [autoKeywordMatchingStatus] => [campaignStats] => [adServingOptimizationStatus] => [frequencyCap] => ) [operator] => ADD [OperationType] => [_parameterMap:private] => Array ( [Operation.Type] => OperationType ) ) ) ) ) ) ) [2] => Array ( [file] => /u/client/gads/examples/v201003/ AddCampaign.php [line] => 74 [function] => mutate [class] => CampaignService [type] => -> [args] => Array ( [0] => Array ( [0] => CampaignOperation Object ( [biddingTransition] => [operand] => Campaign Object ( [id] => [name] => Interplanetary Cruise #1279985222 [status] => PAUSED [servingStatus] => [startDate] => [endDate] => [budget] => Budget Object ( [period] => DAILY [amount] => Money Object ( [microAmount] => 50000000 [ComparableValueType] => [_parameterMap:private] => Array ( [ComparableValue.Type] => ComparableValueType ) ) [deliveryMethod] => STANDARD ) [biddingStrategy] => ManualCPC Object ( [positionPreference] => [BiddingStrategyType] => [_parameterMap:private] => Array ( [BiddingStrategy.Type] => BiddingStrategyType ) ) [autoKeywordMatchingStatus] => [campaignStats] => [adServingOptimizationStatus] => [frequencyCap] => ) [operator] => ADD [OperationType] => [_parameterMap:private] => Array ( [Operation.Type] => OperationType ) ) ) ) ) ) [faultstring] => AuthenticationError.CLIENT_EMAIL_INVALID @ ; trigger:'client_1+jx...@xxx.com' Service[CampaignService.mutate] [faultcode] => soap:Server [detail] => stdClass Object ( [ApiExceptionFault] => stdClass Object ( [message] => AuthenticationError.CLIENT_EMAIL_INVALID @ ; trigger:'client_1+jx...@xxx.com' Service[CampaignService.mutate] [ApplicationException.Type] => ApiException [errors] => SoapVar Object ( [enc_type] => 0 [enc_value] => AuthenticationError Object ( [reason] => CLIENT_EMAIL_INVALID [fieldPath] => [trigger] => client_1+jx...@xxx.com [errorString] => AuthenticationError.CLIENT_EMAIL_INVALID [ApiErrorType] => AuthenticationError [_parameterMap:private] => Array ( [ApiError.Type] => ApiErrorType ) ) [enc_stype] => AuthenticationError [enc_ns] => https://adwords.google.com/api/adwords/cm/v201003 ) ) ) ) On Jul 24, 10:24 am, JohnW2G <jwri...@where2getit.com> wrote: > Nope the setting in my auth.ini looks like: > clientId = "client_1+jwri...@where2getit.com" > > On Jul 23, 1:59 pm, AdWords API Advisor <adwordsapiadvi...@google.com> > wrote: > > > Hi John, > > > If you look in the trigger field of the error, you'll see that your > > clientEmail header contains some extra information: > > > <trigger>client_1+jwri...@where2getit.com<client_1%2bjwri...@where2getit.co > > m></trigger> > > > It looks like the email is being repeated in brackets. Does it look > > this way in the configuration file too? > > > Best, > > - Eric > > > On Jul 22, 10:56 am, John Wright <jwri...@where2getit.com> wrote: > > > > Here is the request_info.log information: > > > > [Jul 22 2010 09:50:09.000000 - INFO] > > > email=jwri...@where2getit.comeffectiveuser= > > > client_1+jwri...@where2getit.com > > > <client_1%2bjwri...@where2getit.com>service=CampaignService > > > method=mutate operators={ADD: 1} responseTime=311 > > > requestId=8515499a097f1b0bd8e8493b1e2d3a3e operations=0 units=0 server= > > > adwords-sandbox.google.com isFault=true > > > faultMessage=AuthenticationError.CLIENT_EMAIL_INVALID @ ; > > > trigger:'client_1+jwri...@where2getit.com<trigger%3a%27client_1%2bjwri...@w > > > here2getit.com>' > > > Service[CampaignService.mutate] > > > > Here is the soap_xml.log information: > > > > [Jul 22 2010 09:50:09.000000 - INFO] POST > > > /api/adwords/cm/v201003/CampaignService HTTP/1.1^M > > > Host: adwords-sandbox.google.com^M > > > Connection: Keep-Alive^M > > > User-Agent: PHP-SOAP/5.2.11, gzip^M > > > Accept-Encoding: gzip, deflate^M > > > Content-Encoding: gzip^M > > > Content-Type: text/xml; charset=utf-8^M > > > SOAPAction: ""^M > > > Content-Length: 772^M > > > ^M > > > <?xml version="1.0" encoding="UTF-8"?> > > > <SOAP-ENV:Envelope > > > xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" > > > xmlns:ns1="https://adwords.google.com/api/adwords/cm/v201003" > > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> > > > <SOAP-ENV:Header> > > > <ns1:RequestHeader xsi:type="ns1:RequestHeader"> > > > <ns1:authToken>*****</ns1:authToken> > > > > > > <ns1:clientEmail>client_1+jwri...@where2getit.com<client_1%2bjwri...@where2 > > > getit.com> > > > </ns1:clientEmail> > > > > > > <ns1:developerToken>jwri...@where2getit.com++usd</ns1:developerToken> > > > <ns1:userAgent>AwApi-PHP-2.2.0-Where2GetIt</ns1:userAgent> > > > </ns1:RequestHeader> > > > </SOAP-ENV:Header> > > > <SOAP-ENV:Body> > > > <ns1:mutate> > > > <ns1:operations> > > > <ns1:operator>ADD</ns1:operator> > > > <ns1:operand> > > > <ns1:name>Interplanetary Cruise #1279810209</ns1:name> > > > <ns1:status>PAUSED</ns1:status> > > > <ns1:budget> > > > <ns1:period>DAILY</ns1:period> > > > <ns1:amount> > > > <ns1:microAmount>50000000</ns1:microAmount> > > > </ns1:amount> > > > <ns1:deliveryMethod>STANDARD</ns1:deliveryMethod> > > > </ns1:budget> > > > <ns1:biddingStrategy > > > xmlns:ns1="https://adwords.google.com/api/adwords/cm/v201003" > > > xsi:type="ns1:ManualCPC"/> > > > </ns1:operand> > > > </ns1:operations> > > > </ns1:mutate> > > > </SOAP-ENV:Body> > > > </SOAP-ENV:Envelope> > > > > HTTP/1.1 500 Internal Server Error^M > > > Content-Type: text/xml; charset=UTF-8^M > > > Content-Encoding: gzip^M > > > Transfer-Encoding: chunked^M > > > Date: Thu, 22 Jul 2010 14:50:09 GMT^M > > > Expires: Thu, 22 Jul 2010 14:50:09 GMT^M > > > Cache-Control: private, max-age=0^M > > > X-Content-Type-Options: nosniff^M > > > X-Frame-Options: SAMEORIGIN^M > > > X-XSS-Protection: 1; mode=block^M > > > Server: GSE^M > > > > <?xml version="1.0"?> > > > <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> > > > <soap:Header> > > > <ResponseHeader > > > xmlns="https://adwords.google.com/api/adwords/cm/v201003 > > > "> > > > <requestId>8515499a097f1b0bd8e8493b1e2d3a3e</requestId> > > > <operations>0</operations> > > > <responseTime>311</responseTime> > > > <units>0</units> > > > </ResponseHeader> > > > </soap:Header> > > > <soap:Body> > > > <soap:Fault> > > > <faultcode>soap:Server</faultcode> > > > <faultstring>AuthenticationError.CLIENT_EMAIL_INVALID @ ; > > > trigger:'client_1+jwri...@where2getit.com<trigger%3a%27client_1%2bjwri...@w > > > here2getit.com>' > > > Service[CampaignService.mutate]</faultstring> > > > <detail> > > > <ApiExceptionFault > > > xmlns="https://adwords.google.com/api/adwords/cm/v201003"> > > > <message>AuthenticationError.CLIENT_EMAIL_INVALID @ ; > > > trigger:'client_1+jwri...@where2getit.com<trigger%3a%27client_1%2bjwri...@w > > > here2getit.com>' > > > Service[CampaignService.mutate]</message> > > > > <ApplicationException.Type>ApiException</ApplicationException.Type> > > > <errors xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > > > xsi:type="AuthenticationError"> > > > <fieldPath/> > > > > > > <trigger>client_1+jwri...@where2getit.com<client_1%2bjwri...@where2getit.co > > > m> > > > </trigger> > > > > <errorString>AuthenticationError.CLIENT_EMAIL_INVALID</errorString> > > > <ApiError.Type>AuthenticationError</ApiError.Type> > > > <reason>CLIENT_EMAIL_INVALID</reason> > > > </errors> > > > </ApiExceptionFault> > > > </detail> > > > </soap:Fault> > > > </soap:Body> > > > </soap:Envelope> > > > > Here is my auth.ini file configuration: > > > > email = "jwri...@where2getit.com" > > > password = "jwright6764" > > > userAgent = "Where2GetIt" > > > applicationToken = "" > > > ;developerToken = "mQCnQwKx0N62S_s2MTAdBA" > > > developerToken = "jwri...@where2getit.com++usd" > > > > ; Uncomment to make requests against a client account. > > > clientId = > > > "client_1+jwri...@where2getit.com<client_1%2bjwri...@where2getit.com> > > > " > > > > Thanks! > > > > On Wed, Jul 21, 2010 at 11:48 AM, AdWords API Advisor < > > > > adwordsapiadvi...@google.com> wrote: > > > > Hi, > > > > > Can you post the values of the requestId header for a request that > > > > illustrates this problem? > > > > > Best, > > > > - Eric > > > > > On Jul 20, 1:00 pm, JohnW2G <jwri...@where2getit.com> wrote: > > > > > I changed auth.ini, uncommenting out the clientID field as shown: > > > > > auth.ini > > > > > > email = "jx...@xxxx.com" > > > > > password = "XXXX" > > > > > userAgent = "Johns Test" > > > > > applicationToken = "" > > > > > developerToken = "jx...@xxxx.com++usd" > > > > > > ; Uncomment to make requests against a client account. > > > > > clientId = "client_1+jx...@xxxx.com" > > > > > > I then reran AddCampaign.php and got the following error: > > > > > > AuthenticationError.CLIENT_EMAIL_INVALID > > > > > > On Jul 16, 4:08 pm, AdWords API Advisor <adwordsapiadvi...@google.com> > > > > > wrote: > > > > > > > Hi, > > > > > > > That error is correct, as campaigns can only be added to client > > > > > > accounts. What error are you receiving when the clientId is not > > > > > > commented out? > > > > > > > Best, > > > > > > - Eric > > > > > > > On Jul 15, 3:52 pm, JohnW2G <jwri...@where2getit.com> wrote: > > > > > > > > Hey Eric, > > > > > > > > Thanks for the reply. > > > > > > > > I changed auth.ini, commenting out the clientID field as shown: > > > > > > > auth.ini > > > > > > > > email = "jx...@xxxx.com" > > > > > > > password = "XXXX" > > > > > > > userAgent = "Johns Test" > > > > > > > applicationToken = "" > > > > > > > developerToken = "jx...@xxxx.com++usd" > > > > > > > > ; Uncomment to make requests against a client account. > > > > > > > ;clientId = "client_1+jx...@xxxx.com" > > > > > > > > I then reran AddCampaign.php and got the following error: > > > > > > > > OperationAccessDenied.ADD_OPERATION_NOT_PERMITTED > > > > > > > > On Jul 15, 12:56 pm, AdWords API Advisor > > > > > > > > <adwordsapiadvi...@google.com> wrote: > > > > > > > > Hi, > > > > > > > > > Did you run AddCampaign without the clientEmail specified as > > > > > > > > well? > > > > > > > > Campaigns can only be added to a client account, as MCC accounts > > > > are > > > > > > > > not allowed to have campaigns of their own. > > > > > > > > > Best, > > > > > > > > - Eric Koleda, AdWords API Team > > > > > > > > > On Jul 14, 11:22 am, JohnW2G <jwri...@where2getit.com> wrote: > > > > > > > > > > I am trying to setup a sandbox using the v201003 PHP libraries > > > > and > > > > > > > > > sample code. > > > > > > > > > > No matter what I do I keep getting the CLIENT_EMAIL_INVALID > > > > error. > > > > > > > > > Here are my configurations: > > > > > > > > > > auth.ini > > > > > > > > > > email = "jx...@xxxx.com" > > > > > > > > > password = "XXXX" > > > > > > > > > userAgent = "Johns Test" > > > > > > > > > applicationToken = "" > > > > > > > > > developerToken = "jx...@xxxx.com++usd" > > > > > > > > > > ; Uncomment to make requests against a client account. > > > > > > > > > clientId = "client_1+jx...@xxxx.com" > > > > > --------------------------------------------------------------------------- > > > > > > > > > > settings.ini > > > > > > > > > > [SERVER] > > > > > > > > > ;DEFAULT_VERSION = "v200909" > > > > > > > > > DEFAULT_VERSION = "v201003" > > > > > > > > > > ; Change > > > > > > > > > tohttps://adwords-sandbox.google.comtoworkinthesandbox > > > > > > > > > ; environment. > > > > > > > > > ;DEFAULT_SERVER = "https://adwords.google.com" > > > > > > > > > DEFAULT_SERVER = "https://adwords-sandbox.google.com" > > > > > > > > > > I tried running GetAllCampaigns.php in the examples folder > > > > > > > > > with > > > > no > > > > > > > > > clientID specified in the auth.ini file to initialize the > > > > > > > > > account > > > > with > > > > > > > > > a get statement and did get the expected return back of "No > > > > campaigns > > > > > > > > > were found" but still got the error when trying to run > > > > AddCampaign.php > > > > -- > > > John Wright > > > Senior Lead Web Developerwww.where2getit.com > > > Phone: (949) > > ... > > read more » -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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