Hi Anash, Thanks for the info on API pricing.But we still want to track the per call API units for our own info.So is there a way we can get the responseHeader data (units/operations) for each service request.
-Alok On Tuesday, February 12, 2013 10:46:38 AM UTC+5:30, Anash P. Oommen (AdWords API Team) wrote: > > Hi Alok, > > AdWords API is becoming free for all. See > http://googleadsdeveloper.blogspot.tw/2013/01/new-simplified-adwords-api-pricing.htmlfor > details. This would mean that you wouldn't need to worry about per-call > API units like the way it was earlier, but you need to decide whether you > need standard access and apply for it if applicable. > > Cheers, > Anash P. Oommen, > AdWords API Advisor. > > On Monday, February 11, 2013 3:57:08 PM UTC+5:30, alok wrote: >> >> Hi API Team, >> >> I facing an issue where i am not able to get the response headers units >> for any service request I use.All i want is to get the units/operations >> value from header Response for each service request to track the >> cost/operations associated with that service in v201209. >> >> I am creating an instance of AdWordsServices and calling get method as >> below: >> >> AdWordsServices adWordsServices = new AdWordsServices(); >> returnService = (T) adWordsServices.get(adWordsSession, >> AdGroupServiceInterface.class); >> >> Previously (v201206) we used to fetch the responseHeaders using below: >> >> if ((returnService != null) && (*returnService instanceof Stub*)) { >> ret = ((Stub)returnService ).getResponseHeaders(); >> >> } >> >> This used to work fine as in v201206,the services were called using >> AdWordsUser getService() method,which internally used to call >> AdWordsServiceFactory *public static Stub >> generateServiceStub*(AdWordsService >> service, AdWordsUser user, String endpointServer, boolean validateOnly) >> >> and* it used to retrun a service which is instanceof Stub >> >> But* in current v201209,the returned service is not instanceof Stub so I >> am not able to get the responseHeaders values (units/operations) >> >> Please let me know,What needs to be done to fetch the header values. >> >> Thanks, >> Alok* * >> >> -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 --- 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.