Hello Martin, I think you're misunderstanding the purpose of the getUnitCountForMethod() call; please see the docs at
http://code.google.com/apis/adwords/docs/developer/InfoService.html#getUnitCountForMethod getUnitCountForMethod() will return the number of API units you've actually consumed making a specific API call over a period of time. It's not used as an estimate of how many units it would cost to make a hypothetical API call in the future. getAllCriteria() is priced at 1 API unit per criterion returned. You're obviously in a chicken-or-the-egg situation if you want to estimate how many units it would cost to call getAllCriteria(), as you'd either have to call getAllCriteria() or run a report to get that information... Cheers, -Jeff Posnick, AdWords API Team On Oct 22, 10:34 am, MartinHN <[EMAIL PROTECTED]> wrote: > Hi > > I want to get the price of CriterionService.getAllCriteria, to > determine if it is cheaper to schedule and download a report. > > If I call the InfoService.getUnitCountForMethod("CriterionService", > "getAllCriteria", dateFrom, dateTo) - I just get 0. I guess I have to > provide an AdGroup ID, or something - hwo can I do that? --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en -~----------~----~----~----~------~----~------~--~---