Hi Alex, It seems that the problem here is that the nuSOAP library includes a class called SoapClientFactory, which is already defined in the AdWords API PHP client library. If you are using the APIlity library there will likely be other class name conflicts as well. The best solution is likely to use only library per script, and use separate scripts to interact with the v13 and v200909 version of the API.
Best, - Eric Koleda, AdWords API Team On Mar 23, 5:38 am, Alex <[email protected]> wrote: > Hi, > > I'm starting the process of migration from v13 to v2009. > As everybody knows, it is now necessary to use two services > simultaneously, yet not be ready missing services in v2009. > > I am calling a function in PHP. > > The issue I am having is that my script for v13 and v2009 is running > fine (separately) and not > returning any errors, but when I try to call v13 code (Report Service) > after v2009 code (Campaign Service - getting campaign ID ) I get the > following error: > > Fatal error: Cannot redeclare class SoapClientFactory in Z:\www\app > \libs\nusoap\soapclientfactory.php on line 30. > > FYI: > in both functions in the beginning I am calling: > > v2009: > require_once 'Google/Api/Ads/AdWords/Lib/AdWordsUser.php'; > > v13 > require_once '../libs/nusoap/soapclientfactory.php'; > > As I understand correctly this is the reason of the problem, therefore > the question is how can I redeclare class SoapClientFactory (I've > tried to use "unset class" before next calling - not successful) > > I would be very grateful if someone can help solve this problem. > > Best Regards, > Alex -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Have you migrated to v200909 yet? The v13 sunset is on April 22, 2010. 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 To unsubscribe from this group, send email to adwords-api+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.
