Hi Marcin,

Your code appears to be correct, perhaps there is an issue with the
generated XML.  Do you have the SOAP XML logs from this type of
request?  I'm not sure if you've been using it already, but the PHP
library contains a test case for the BulkMutateJobService that you can
use as a reference (tests/Google/Api/Ads/AdWords/v200909/
BulkMutateJobServiceTest.php).

Best,
- Eric Koleda, AdWords API Team

On Nov 4, 11:42 am, marcinc <marcin.ca...@gmail.com> wrote:
> I am using v2009 of adwords API with PHP5. I would like to use
> BulkMutateJobService to package my operations into a single job.
> According to google docs to achieve that I need to follow the steps:
> 1. Construct the operations I want to perform (as the standard mutate
> operations).
>         $adgroupad1 = new AdGroupAd();
>         $adgroupad2 = new AdGroupAd();
> 2. Construct an OperationStream object and set its fields:
>         $operations = array(
>         new AdGroupAdOperation( $adgroupad1, NULL, 'ADD' ),
>         new AdGroupAdOperation( $adgroupad2, NULL, 'ADD' )
>         );
>         $scopingEntityId = new EntityId( 'ADGROUP_ID', 425513 );
>         $adStream = array (new OperationStream( $scopingEntityId,
> $operations ));
> 3. Construct a BulkMutateRequest object and set its fields:
>         $part1 = new BulkMutateRequest( 0, $adStream );
>         $job = new BulkMutateJob();
>         $job->numRequestParts = 1;
>         $job->request = $part1;
> 4. Finally, construct the BulkMutateJob object and set its fields:
>         $jobOperation = array ( new JobOperation( $job, 'ADD' ) );
>         $job = $bulkMutateJobService->mutate( $jobOperation );
>         ...
>
> When testing the script on sandbox I got this error message:
> SoapFault Object ( [message:protected] =&gt;
> [JobError.JOB_TYPE_NOT_SUPPORTED @ operation] ...
>
> Did I forget about anything? Is it the problem with JobOperation
> ( $job, 'ADD' ) object type or BulkMutateJob() is not being accepted
> by JobOperation() ?
>
> Many thanks, Marcin

--

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-...@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.


Reply via email to