Migrating from v9 problem - UserListServiceClient

31 views
Skip to first unread message

Martin Rojo

unread,
Dec 13, 2022, 8:29:01 AM12/13/22
to Google Ads API and AdWords API Forum
Hi guys, I have a productive java application that is failing because it's using version v9 of google-ads lib.

I'd like to migrate to v12 but I've read many articles about versions 10, 11 and 12 and I've found that in version 10 some "GETS" methods got deprecated.

For instance: UserListServiceClient doesn't have getUserList() method.

 I'd like to know if that method was moved to another class and if it doesn't exist anymore, how can I replicate its behavior?

Also, I found this article but the links inside are down: https://ads-developers.googleblog.com/2022/06/google-ads-api-v9-sunset-reminder.html

Thank you very much. 

Google Ads API Forum Advisor

unread,
Dec 13, 2022, 2:01:27 PM12/13/22
to adwor...@googlegroups.com
Hi Martin,

Thank you for raising this concern to the Google Ads API Forum.

As mentioned from the provided blog post "Google Ads API v9 will sunset in September, 2022. Please migrate to a newer version".

In the Google Ads API V10 version, GET methods have been removed from all services. Any service that exclusively had a get method has been removed as well. The primary way to retrieve objects continues to be using GoogleAdsService's search and searchStream methods. For a comprehensive overview of changes based from v11 to v12, you may refer to this page, and inspecting objects with get (Deprecated) is deprecated since the usage of "get" in this API was only intended for exploratory purposes and not actually retrieving data as mentioned here

You can specify which field should be fetched, and GAQL does not support (SELECT * ) syntax to get fields. To help you construct queries along with the where clause filter, you can use our Query builder and Query validator in the documentation.

Let me know if you have any further questions.

Best regards,
Google Logo
Jinky
Google Ads API Team
 


ref:_00D1U1174p._5004Q2h2SWE:ref
Reply all
Reply to author
Forward
0 new messages