Can somebody on the Adwords team please comment on my problem? Our team's project is being delayed by this problem. We really appreciate any help at all.
On Oct 12, 11:46 am, Aaron <aaron.t.che...@gmail.com> wrote: > Apologies for the double post! I'm still searching for an answer to > this problem. Any thoughts would be greatly appreciated. > > I have verified that the keyword dict cannot use the SOAPpy Type > variable without conflicting with the client library. could there be > a bug in the python api library? > > On Oct 11, 8:26 pm, Aaron <aaron.t.che...@gmail.com> wrote: > > > > > Hi, > > > I'm attempting to retrieve CPC estimates for a list of keywords using > > v13 TraficcEstimatorService's EstimateKeywordList function. I believe > > I've followed the documentation closely, however I'm getting the > > following error: Error : Cannot serialize recursive object > > > I'd really appreciate it if somebody canpoint out where I"m going > > wrong with the below code. > > > def get_cpc(keyword): > > c = AdWordsClient(path='.', headers = { > > 'email': '<my email>', > > 'password': '<my password>', > > 'clientEmail': '<made up email>', > > 'clientCustomerId': '<made up id>', > > 'userAgent': 'AwApi-Python-12.1.0', > > 'developerToken': '<my token>', > > 'validateOnly': 'n' > > }) > > service = c.GetTrafficEstimatorService('https:// > > adwords.google.com', 'v13') > > keyword = { > > 'text': 'mars cruise', > > 'maxCpc':'1000000',#SOAPpy.Types.untypedType('1000000'), > > 'type':'Exact',#SOAPpy.Types.untypedType('Broad') > > } > > estimates = service.EstimateKeywordList([keyword]) > > return estimates > > > I've tried changing the maxCPC and type values of the keyword dict to > > the SOAPpy objects, but that results in the following error: > > adspygoogle.common.Errors.ValidationError: The > > '<SOAPpy.Types.untypedType at 158031340>' is of type <type > > 'instance'>, expecting one of (<type 'str'>, <type 'unicode'>). > > > Thanks in advanc! -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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