Hi Derek,
Thanks for reaching out to the Google Ads API Forum.
For you to migrate, you may refer to this guide for how to migrate from building user lists with AdwordsUserListService in the AdWords API to using UserDataService in the Google Ads API in order to sync Customer Match data. For more information on the migrating AdWords API Services to Google Ads API Services, you may refer to this page.
Also, for you to get user_list.id, you may use this code example for reporting by issuing the following query with GoogleAdsService.searchStream:
SELECT
user_list.resource_name, user_list.type
FROM user_list
With this, you may consider updating your GAQL in the above provided example. In addition, to create a user list (a.k.a. audience) and uploads members to populate the list, you may refer to this code example in the Java client library.
Let us know if you have any followup questions.
Regards,
|
||||||
Hi Derek,
Thanks for getting back to us.
I can see that you getting error with following:
"] Uncaught exception in the SynchronizationContext. Panic!
java.lang.IllegalStateException: Could not find policy 'pick_first'. Make sure its implementation is either registered to LoadBalancerRegistry or included in META-INF/services/io.grpc.LoadBalancerProvider from your jar files."
Also, as per your research, you already found the same issue filed on the GitHub issue tracker here, then it is more related to the client library concern. However, if you already have created a new issue with Issue tracker and didn’t get any response yet, then I would recommend you to wait for their reply so they provide further assistance in your concern.
In the meantime, you may also use the Google Ads API REST API calls to get the user_list.id. For the REST, you may use the GoogleAdsService's search / searchStream method as an example provided here. You may also refer to our Query Cookbook guide which contains many reporting samples that correspond to some of the default Google Ads screens. Following are the two endpoints to fetch the objects from Google Ads:
|
POST /v12/customers/{customerId}/googleAds:search Returns all rows that match the search query. |
|
|
POST /v12/customers/{customerId}/googleAds:searchStream Returns all rows that match the search stream query. |
|
||||||