Hi, I've found that the SOAP module is more stable in newer versions of PHP, but I'm not able to replicate this issue with my local version of PHP 5.2.6. There are some known issues with the Suhosin path, but I haven't seen this error before.
Do you get the same error when you run the PerformBulkMutateJob.php example? When you run other examples? Best, - Eric On Jun 16, 12:42 am, Hudar <[email protected]> wrote: > Hi, > > This is the php version running on Debian lenny server : > > xxxxx...@prod:~$ php -v > PHP 5.2.6-1+lenny8 with Suhosin-Patch 0.9.6.2 (cli) (built: Mar 14 > 2010 08:14:04) > Copyright (c) 1997-2008 The PHP Group > > On my local, I am using mac snow leopard, with php v 5.3.1. Does > adword v2009 require php 5.3? > > I worry if I can't provide the soap request, it wasn't logged. Below > are the source code where the error happened: > > function __CreateAndBeginJob($bulkMutateJobService,$scopingEntityId, > $operationsByPart) { > > try{ > // Initialize the bulk mutate job id. > $jobId = NULL; > > for ($partCounter = 0; $partCounter < > sizeof($operationsByPart); > $partCounter++) { > // Create operation stream. > $opStream = new OperationStream(); > $opStream->scopingEntityId = $scopingEntityId; > $opStream->operations = $operationsByPart[$partCounter]; > > // Create bulk mutate request part. > $part = new BulkMutateRequest(); > $part->partIndex = $partCounter; > $part->operationStreams = array($opStream); > > // Create bulk mutate job. > $job = new BulkMutateJob(); > $job->id = $jobId; > $job->numRequestParts = sizeof($operationsByPart); > $job->request = $part; > > // Create operation. > $operation = new JobOperation(); > $operation->operand = $job; > > // If this is our first part, then the job must be added, > not > set. > if ($partCounter == 0) { > $operation->operator = 'ADD'; > } else { > $operation->operator = 'SET'; > } > > // Add/set the job. The job will not start until all > parts are > added. > $job = $bulkMutateJobService->mutate($operation); > ==== truncated====== > > It seems to return an error after execute $bulkMutateJobService- > > >mutate($operation); > > On Jun 16, 2:08 am, AdWords API Advisor <[email protected]> > wrote: > > > > > Hi, > > > What version of PHP is running on that machine? Were there other > > errors or warnings? Was there any SOAP XML logged? > > > Best, > > - Eric Koleda, AdWords API Team > > > On Jun 15, 2:32 am, Hudar <[email protected]> wrote: > > > > Hi, > > > > Wondering if anyone had any experience like this before or have any > > > idea what were wrong. I try to submit a keyword and textad after > > > creating a campaign and adgroup. For this, I use bulk service, use the > > > same code as in adword 2009 example. > > > But then got this error in function CreateAndBeginJob from the sample > > > code. > > > The error is "Unmarshalling Error: input is empty" > > > > The strange things is, I did test the code in my local machine, and it > > > works, successfully submitting keyword and textad. But after upload it > > > to server, got that error. I believe that the parameter should be > > > correct, since it works on my local. > > > > The soap error message is like this : > > > SoapFault Object > > > ( > > > [message:protected] => Unmarshalling Error: input is empty > > > [string:private] => > > > [code:protected] => 0 > > > [file:protected] => /home/public_html/xxxxxxxxx.com/vendors/ > > > aw_api_php_lib_2.0.0/src/Google/Api/Ads/Common/Lib/AdsSoapClient.php > > > [line:protected] => 177 > > > [trace:private] => Array > > > ( > > > [0] => Array > > > ( > > > [file] => /home/public_html/xxxxxxxxxxx.com/ > > > vendors/aw_api_php_lib_2.0.0/src/Google/Api/Ads/Common/Lib/ > > > AdsSoapClient.php > > > [line] => 177 > > > [function] => __soapCall > > > [class] => SoapClient > > > [type] => -> > > > [args] => Array > > > ( > > > [0] => mutate > > > [1] => Array > > > ( > > > [0] => BulkMutateJobServiceMutate > > > Object > > > ( > > > [operation] => > > > JobOperation Object > > > ( > > > [operand] => > > > BulkMutateJob Object > > > ( > > > [id] => > > > [policy] > > > => > > > [request] > > > => BulkMutateRequest Object > > > ( > > > > [partIndex] => 0 > > > > [operationStreams] => Array > > > > ( > > > > [0] => OperationStream Object > > > > ( > > > > [scopingEntityId] => EntityId Object > > > > ( > > > > [type] => CAMPAIGN_ID > > > > [value] => 53793940 > > > > > > ) > > > > [operations] => Array > > > > ( > > > > [0] => AdGroupAdOperation Object > > > > ( > > > > [operand] => AdGroupAd Object > > > > ( > > > > [adGroupId] => 1733399380 > > > =================== truncated > > > ================================== > > > > Hope anybody could give a light on this. Thanks -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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
