Upgrade fron google ads API v8 to v10

190 views
Skip to first unread message

Naor

unread,
Mar 22, 2022, 1:24:17 PM3/22/22
to Google Ads API and AdWords API Forum
Hello,
We are upgrading ads-api version from v8 to v10, currently we are using the java client.
While updating the version, we have the following compilation errors.

1) GeoTargetConstantServiceClient.getGeoTargetConstant(<resourceName>)
the function getGeoTargetConstant does not exists anymore, so I can not retrieve the GeoTargetConstant as it was in the previous version (v8).

2) CustomerServiceClient.getCustomer(<resourceName>) where resourceName=customerId
the function getCustomer does not exists anymore, so I can not retrieve the Customer as it was in the previous version (v8).

Can you please help me with that? It there any reference for that functionality migration?
Thanks


Google Ads API Forum Advisor

unread,
Mar 23, 2022, 10:24:02 AM3/23/22
to naor...@kenshoo.com, adwor...@googlegroups.com
Hi Naor,

Thank you for raising this concern to Google Ads API support team.

With regard to your concern, I can see that the getCustomer and getGeoTargetConstant are deprecated in V10, that is why the error persists. With this, as discussed in Release notes, the get method and any services that exclusively had a get method have been removed. Retrieve objects with Search and SearchStream from GoogleAdsService. However, I suggest retrieving objects with Search and SearchStream from GoogleAdsService.

Best regards,
Google Logo
Jinky
Google Ads API Team
 


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