Jimmy, The error doesn't sound like it's authentication related. Do you have logs turned on? Could I trouble you to use the "Reply to Author" function and send me a sanitized log file (full XML request/response without sensitive information).
Thanks, -- Ray Tsang (AdWords API Advisor) On Thursday, January 9, 2014 3:04:49 PM UTC-5, Jimmy Xie wrote: > > Hello, > > I have my everything set up as specified below. I confirmed that oauth2 is > working but I am getting an error when trying to access the > client.GetCampaignService() method. I get an xml error, mismatched tag: > line 7 column 2. I assume this is because it is outputting an error message > that is not in xml format. > > I created an MCC account to link to my production account. I set up > billing and and agreed to the API terms and conditions on the MCC account > screen. I then created a test account, created some dummy adwords account > inside the test account, and went to the api console to create the client > id and client secret. > > In my config.py script I use the following: > > Client ID: test account client ID > client secret: test account client secret > refresh token: test account refresh token associated with above (i did the > handshake with the test account when requesting access). > login client customer ID: test account adwords client ID (one of the ones > I created) > user agent: I just used my program name > developer token: production account developer token (which is pending) > > Is the error I get related to authorization? I've read a bunch of posts > now and I think I have my setup correct. Any help would be much > appreciated. Thanks! > > Here is the full error message: > > I ran the standard script in examples: > get_campaigns.py > > Traceback (most recent call last): > File "get_campaigns.py", line 85, in <module> > main(client) > File "get_campaigns.py", line 47, in main > campaign_service = client.GetCampaignService(version='v201309') > File > "/prod/user/sam/can/card/canada/pri/non_npi/iDIBS/PYTHON/python/lib/python2.5/site-packages/adspygoogle-1.1.6-py2.5.egg/adspygoogle/adwords/AdWordsClient.py", > > line 966, in GetCampaignService > self.__logger, 'CampaignService') > File > "/prod/user/sam/can/card/canada/pri/non_npi/iDIBS/PYTHON/python/lib/python2.5/site-packages/adspygoogle-1.1.6-py2.5.egg/adspygoogle/adwords/GenericAdWordsService.py", > > line 89, in __init__ > namespace, namespace_extractor) > File > "/prod/user/sam/can/card/canada/pri/non_npi/iDIBS/PYTHON/python/lib/python2.5/site-packages/adspygoogle-1.1.6-py2.5.egg/adspygoogle/common/GenericApiService.py", > > line 116, in __init__ > config=self._GetSoapConfig()) > File > "/prod/user/sam/can/card/canada/pri/non_npi/iDIBS/PYTHON/python/lib/python2.5/site-packages/adspygoogle-1.1.6-py2.5.egg/adspygoogle/SOAPpy/WSDL.py", > > line 62, in __init__ > self.wsdl = reader.loadFromStream(stream, wsdlsource) > File > "/prod/user/sam/can/card/canada/pri/non_npi/iDIBS/PYTHON/python/lib/python2.5/site-packages/adspygoogle-1.1.6-py2.5.egg/adspygoogle/SOAPpy/wstools/WSDLTools.py", > > line 28, in loadFromStream > document = DOM.loadDocument(stream) > File > "/prod/user/sam/can/card/canada/pri/non_npi/iDIBS/PYTHON/python/lib/python2.5/site-packages/adspygoogle-1.1.6-py2.5.egg/adspygoogle/SOAPpy/wstools/Utility.py", > > line 602, in loadDocument > return xml.dom.minidom.parse(data) > File > "/prod/user/sam/can/card/canada/pri/non_npi/iDIBS/PYTHON/python/lib/python2.5/site-packages/_xmlplus/dom/minidom.py", > > line 1915, in parse > return expatbuilder.parse(file) > File > "/prod/user/sam/can/card/canada/pri/non_npi/iDIBS/PYTHON/python/lib/python2.5/site-packages/_xmlplus/dom/expatbuilder.py", > > line 930, in parse > result = builder.parseFile(file) > File > "/prod/user/sam/can/card/canada/pri/non_npi/iDIBS/PYTHON/python/lib/python2.5/site-packages/_xmlplus/dom/expatbuilder.py", > > line 207, in parseFile > parser.Parse(buffer, 0) > xml.parsers.expat.ExpatError: mismatched tag: line 7, column 2 > > > > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and discussion group: http://googleadsdeveloper.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 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. For more options, visit https://groups.google.com/groups/opt_out.