Hi Ivan, thank you for the fast response... I found that page before, but unfortunately the exception does not occur - the function stops after calling mutateLink() with an already managed customer id; try-catch fails and the SOAP warning shows up directly inside the console. So the function gets terminated without returning any value or being able to handle the exception.
[2017-04-20 10:37:48] AW_SOAP.WARNING: clientCustomerId=xxxxx operations=1 service=ManagedCustomerService method=mutateLink responseTime=346 requestId=00054d950e42c5210ac11e13d7077a46 server=adwords.google.com isFault=1 faultMessage=[ManagedCustomerServiceError.ALREADY_INVITED_BY_THIS_MANAGER @ operations[0]] Here I have my ManagedCustomerServiceError.ALREADY_INVITED_BY_THIS_MANAGER... but how can I access and handle it? This does not work: try { $result = $customerService->mutateLink($operations); $links = $result->getLinks() ; $link = $links[0]; $newStatus = $link->getLinkStatus() ; if (strpos($newStatus, 'PENDING') >= 0) return "OK"; else return "ERR: ".$newStatus ; } catch (Exception $e) { // return "you will never see this line, sorry..." ; } best regards, Markus Am Donnerstag, 20. April 2017 09:08:14 UTC+2 schrieb Ivan Bautista: > > Hi Markus, > > You may refer here > <https://developers.google.com/adwords/api/docs/reference/v201702/ManagedCustomerService.ManagedCustomerServiceError#reason> > for > possible errors that will be thrown for ManagedCustomerService. You may > build your exception handling logic based from the possible errors > specified and just add or define a default or generic exception/error > handling logic as a fallback. > > Regards, > Ivan > AdWords API Team > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and Google+: https://googleadsdeveloper.blogspot.com/ https://plus.google.com/+GoogleAdsDevelopers/posts =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 --- You received this message because you are subscribed to the Google Groups "AdWords API Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscr...@googlegroups.com. Visit this group at https://groups.google.com/group/adwords-api. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/1375dc25-c042-4119-a99d-faec187a9765%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.