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.