Hi Chris, 

The new Java library's serviceInterface is not a subclass of Stub. 
Does your registerResponseHandler extract the SOAP response header for 
tracking the API usage? 

Best,
- Takeshi, AdWords API Team

On Monday, November 11, 2013 9:50:20 PM UTC+9, cbmam...@gmail.com wrote:
>
> I replied to the email that was sent but it doesn't look like it made it 
> to the forum:
>
> Takeshi,
>
>       With the new library I am pretty much following what the examples 
> have:
>
>                 AdWordsSession session = getAdWordsSession(authProperties);
>
>                 AdWordsServices adWordsServices = new AdWordsServices();
>
>                 Object serviceInterfaceObj =
>
>                     adWordsServices.get(session, argService);
>
>                 LOG.debug("service interface obj " + 
> serviceInterfaceObj.getClass().getName());
>
>
> The object returned (serviceInterfaceObj) is a proxy object that can be 
> cast to Remote but it appears only Remote.  A ClassCastException is 
> generated if one attempts to cast this object to 
> org.apache.axis.client.Stub as our code had previously done.  The proxy 
> object does contain objects that can probably be used to accomplish what we 
> did with the old library but I am assuming these are not meant to be public.
>
>
> In the old library:
>
>
>                 AdWordsUser adWordsUser = new AdWordsUser(authProperties);
>
>                 serviceInterface = adWordsUser.getService(argService);
>
>                 
> registerResponseHandler((org.apache.axis.client.Stub)serviceInterface);
>
>
> The object returned (serviceInterface) can be cast to a Stub and the an 
> axis response handler can be registered.  The method 
> registerResponseHandler is mine and not part of the library.
>
>
> Thanks,
>
> Chris Marshall
>
> On Wednesday, November 6, 2013 10:30:03 PM UTC-5, Takeshi Hagikura 
> (AdWords API Team) wrote:
>>
>> Hi Chris, 
>>
>> To find if there is anything we can do, can you please let me know what 
>> class and method are you trying to do the same thing in the new Java 
>> library? 
>> Also please let me know more details what you did with the old Java 
>> library. 
>>
>> Best,
>> - Takeshi, AdWords API Team
>>
>> On Sunday, November 3, 2013 2:06:18 AM UTC+9, cbmam...@gmail.com wrote:
>>>
>>> We are in the middle of getting our code working with the new Java 
>>> client library and with the previous version we had registered an axis 
>>> response handler to retrieve the API usage statistics.  The new version of 
>>> the library (AdWordServices get) produces a proxy object that appears to 
>>> have the right contents to do this but the fact it is in a proxy object it 
>>> doesn't look like this is intended to be a public part of the library's 
>>> API.  What is the correct way of doing this?
>>>
>>> thanks,
>>> Chris Marshall
>>>
>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://googleadsdeveloper.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.

Reply via email to