Hi Ranjeet,

Please follow this guide 
<https://developers.google.com/adwords/api/docs/guides/migration/v201607> to 
migrate to the latest version v201607. Since you are on version v201601, I 
would recommend checking for breaking changes in v201603 
<https://developers.google.com/adwords/api/docs/guides/migration/v201603>
 and v201605 
<https://developers.google.com/adwords/api/docs/guides/migration/v201605> as 
well. Also, please note that these guides contain the list of changes in 
the SOAP API, irrespective of the client library (Java, Python etc). As an 
example, in v201607, get() method of CustomerService 
<https://developers.google.com/adwords/api/docs/reference/latest/CustomerService>
 was 
removed. That means, in your Java client library, if you try the following 
code, you would get a compile time error:
 
*CustomerServiceInterface customerService = adWordsServices.get(session, 
CustomerServiceInterface.class);*
*Customer customer = customerService.get()[0];*

The following piece of code is the correct way to fetch the customer:

*CustomerServiceInterface customerService = adWordsServices.get(session, 
CustomerServiceInterface.class);*
*Customer customer = customerService.getCustomers()[0];*
    
Hope this helps. Please feel free to revert in case you have more 
questions.  

Regards,
Vishal, AdWords API Team

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/605e0c6a-ff13-40e6-9734-d967bf88c65c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • getting error in... Ranjeet Kumar
    • Re: getting... 'Vishal Vinayak (Adwords API Team)' via AdWords API Forum

Reply via email to