exception handling in new PHP client lib / mutateLink()

2017-04-19 Thread Markus Baersch
Hi, switching from the old API version to v201702 I am currently struggling with the differences in exception handling. When I tried managedCustomerService->mutateLink with an already managed or invited cusomer id, the old version threw an exception and I could react to reasons like ALREADY_I

Re: exception handling in new PHP client lib / mutateLink()

2017-04-20 Thread Markus Baersch
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

Re: exception handling in new PHP client lib / mutateLink()

2017-04-20 Thread Markus Baersch
Hi Ivan, I tried that yesterday as well as I looked at the examples. But as I see now that attempt failed because I used Google\AdsApi\AdWords\v201702\cm\ManagedCustomerServiceError but forgot about Google\AdsApi\AdWords\v201702\cm\ApiException. Now I can finally access and handle the exceptio

Re: exception handling in new PHP client lib / mutateLink()

2017-04-20 Thread Markus Baersch
Hi Ivan, thanks again - I will try my luck there to get rid of the messages. best regards, Markus -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and Google+: https://googleadsdeveloper.blogspot.com/ https://plus.google.com/+GoogleAdsDevelopers/posts =~=~=~=~=