What's the difference between function "googleAdsClient.getVersion9()" and "googleAdsClient.getLatestVersion"

16 views
Skip to first unread message

tanph...@gmail.com

unread,
Nov 24, 2021, 1:48:59 AM11/24/21
to AdWords API and Google Ads API Forum
Dear Google ads API team,

My question is: What's the difference between function "googleAdsClient.getVersion9()" (Pattern 1 below) and "googleAdsClient.getLatestVersion" (Pattern 2 below)

* My code as below:
================
1) Pattern 1:
    protected CustomerServiceClient CustomerServiceInterface() throws WebServiceException {
        GoogleAdsClient googleAdsClient = ....;
        return googleAdsClient.getVersion9().createCustomerServiceClient();
    }

2) Pattern 2:
    protected CustomerServiceClient CustomerServiceInterface() throws WebServiceException {
        GoogleAdsClient googleAdsClient = initAPIService(true);
        return googleAdsClient.getLatestVersion().createCustomerServiceClient();
    }
================

Thank you so much 

Google Ads API Forum Advisor

unread,
Nov 24, 2021, 12:01:35 PM11/24/21
to tanph...@gmail.com, adwor...@googlegroups.com
Hello,

Thanks for reaching out. As this is a Java client library specific question, I recommend reaching out to the client library owners for more information on this. Please let us know if we can help with any general API inquiries.

Regards,
Matt
Google Ads API Team


Reminder: Share your feedback about the Google Ads (AdWords) API! Take the 2021 Google Ads API and AdWords API Annual Survey
 
Google Logo
Matt
Google Ads API Team
 


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