Find successful operations after an ApiException

30 views
Skip to first unread message

Andy

unread,
Jan 20, 2016, 9:05:22 AM1/20/16
to AdWords API Forum
Hi,

I am trying to add AdGroupCriterionOperation using

AdGroupCriterionReturnValue mutate(AdGroupCriterionOperation[] var1) throws RemoteException, ApiException;

In a batch, some of the operations are failing due to which ApiException is thrown and nothing is returned from the mutate call. But I need to find the operations which were successful. How can I find them.

Thanks.

Yin Niu

unread,
Jan 20, 2016, 11:13:57 AM1/20/16
to AdWords API Forum
Hello, 

Please take a look at the MutateJobService reference page. You can call get to check a job's status. Once the job is done, you can retrieve job results by calling getResult. 

Thanks,
Yin, AdWords API Team. 

Andy

unread,
Jan 21, 2016, 11:27:57 PM1/21/16
to AdWords API Forum
Hi Yin,

Isnt AdGroupCriterionServiceInterface different from MutateJobService? I find only get, mutate, mutateLabel, query in AdGroupCriterionServiceInterface. How to find the result of AdGroupCriterionServiceInterface.mutate operation after an ApiException?

Yin Niu

unread,
Jan 22, 2016, 9:23:38 AM1/22/16
to AdWords API Forum
Hi Andy, 

Are you talking about batch jobs or the regular API request? If it's a regular API request and you received remote exception, then the request has failed. If it's batch job, you can check the result after the job has been processed. 
Message has been deleted

Andy

unread,
Jan 22, 2016, 9:34:53 AM1/22/16
to AdWords API Forum

Hi Yin,

I am running a batch job consisting of AdGroupCriterionOperations using AdGroupCriterionService.mutate call. I do not find getResult function for this Interface. How to find the result in case of API exception.

Regards,
Andy

Yin Niu

unread,
Jan 22, 2016, 11:48:24 AM1/22/16
to AdWords API Forum
Hi Andy, 

Please check out the guide for handling partial failure
Reply all
Reply to author
Forward
0 new messages