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