http://stackoverflow.com/questions/1479776/too-many-values-to-unpack-exception/1479796#1479796
Pete On Jul 14, 10:34 am, Marcky <marco.march...@gmail.com> wrote: > Ok seems to be ok now, but there's another different problem. > In adspygoogle/common/AuthToken.py, line 101 generate a ValueError > exception "too many values to unpack" (already seen many times) > i use python 2.5 is it possible the cause? > > thanks Pete for your patience > :) > > On Jul 14, 4:15 pm, "Pete Lavetsky (AdWords API Guru)" > > > > > > > > <pete.lavet...@gmail.com> wrote: > > What you're specifying as your authToken in the header is actually > > your applicationToken > > > Set 'applicationToken' header with 'my_approved_auth_token' > > >http://adwordsapi.blogspot.com/2010/07/discover-v2009-working-with-au... > > > Pete > > > On Jul 14, 10:10 am, Marcky <marco.march...@gmail.com> wrote: > > > > Hi Pete, > > > thanks for your answer :-) > > > i've not understood what do you mean.. i know they're different, this > > > is my headers: > > > > headers={ > > > 'email': email, > > > 'password': password, > > > 'authToken': 'my_approved_auth_token', > > > 'clientEmail': 'client_1+%s' % email, > > > 'userAgent': 'GoogleTest', > > > 'developerToken': '%s++EUR' % email > > > > } > > > > where i provide both authToken and developerToken: first taken from my > > > account on mcc and the second made up by email and currency. > > > Is it correct? > > > > On Jul 14, 3:59 pm, "Pete Lavetsky (AdWords API Guru)" > > > > <pete.lavet...@gmail.com> wrote: > > > > Marcky, > > > > > The authToken isn't the same as your developer token / application > > > > token. > > > > >http://code.google.com/p/google-api-adwords-python-lib/wiki/Readme > > > > > Pete > > > > > On Jul 14, 2:54 am, Marcky <marco.march...@gmail.com> wrote: > > > > > > I use the latest API version v201101, initialize a client instance: > > > > > > client = AdWordsClient( > > > > > path=".", > > > > > headers={ > > > > > 'email': email, > > > > > 'password': password, > > > > > 'authToken': 'my_approved_auth_token', > > > > > 'clientEmail': 'client_1+%s' % email, > > > > > 'userAgent': 'GoogleTest', > > > > > 'developerToken': '%s++EUR' % email}, > > > > > # The app engine doesn't like when data is written to disc. > > > > > Thus, we need > > > > > # to explicitly turn off logging. Though, if debugging is > > > > > enabled, the > > > > > # data from STDOUT will be redirected to app engine's debugging > > > > > console. > > > > > config={ > > > > > 'debug': Utils.BoolTypeConvert(DEBUG), > > > > > 'xml_log': 'n', > > > > > 'request_log': 'n', > > > > > 'pretty_xml': 'y', > > > > > 'xml_parser': PYXML, > > > > > 'soap_lib': ZSI, > > > > > 'compress': 'n' > > > > > }) > > > > > client.use_mcc = True > > > > > > then i try to make a call using GetTrafficEstimatorService to the > > > > > sandbox: > > > > > > SERVER_V201101 = 'https://adwords-sandbox.google.com' > > > > > VERSION_V201101 = 'v201101' > > > > > > keywordEstimateRequests = [] > > > > > for k in keywords: > > > > > keywordEstimateRequests.append({ > > > > > 'keyword': { > > > > > 'xsi_type': 'Keyword', > > > > > 'matchType': 'PHRASE', > > > > > 'text': k['text'] > > > > > } > > > > > }) > > > > > > selector = { > > > > > 'campaignEstimateRequests': [{ > > > > > 'adGroupEstimateRequests': [{ > > > > > 'keywordEstimateRequests': > > > > > keywordEstimateRequests, > > > > > 'maxCpc': { > > > > > 'xsi_type': 'Money', > > > > > 'microAmount': maxCPC > > > > > } > > > > > }], > > > > > 'targets': [ > > > > > { > > > > > 'xsi_type': 'CountryTarget', > > > > > 'countryCode': 'IT' > > > > > }, > > > > > { > > > > > 'xsi_type': 'LanguageTarget', > > > > > 'languageCode': 'it' > > > > > } > > > > > ] > > > > > }] > > > > > } > > > > > > traffic_estimator_service = > > > > > client.GetTrafficEstimatorService(SERVER_V201101, VERSION_V201101) > > > > > estimates = traffic_estimator_service.Get(selector)[0] > > > > > > I always get AuthenticationError.GOOGLE_ACCOUNT_COOKIE_INVALID. Where > > > > > is the > > > > > issue? My auth token was approved, i need a new one? > > > > > > Thank you -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 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