Deadlock when merely adding ads-lib to pom.xml?

21 views
Skip to first unread message

Gregory Golberg

unread,
Jan 23, 2021, 4:09:58 AM1/23/21
to AdWords API and Google Ads API Forum

Hello

I have a program that uses google-ads with the below dependency in pom.xml:

    <dependency>
            <groupId>com.google.api-ads</groupId>
            <artifactId>google-ads</artifactId>
            <version>10.1.0</version>
        </dependency>

This authenticates and just calls listAccessibleCustomers of CustomerServiceClient. So far so good.

But once I merely add the following to pom.xml:

<dependency>
            <groupId>com.google.api-ads</groupId>
            <artifactId>ads-lib</artifactId>
            <version>4.9.1</version>
        </dependency>

It appears to get deadlocked somewhere, never returning from the listAccessibleCustomers() call. Running Charles, I can see that the network call returns with the customer list, but somewhere there is a deadlock.

Any clues?

Thanks.

Gregory Golberg

unread,
Jan 23, 2021, 4:33:59 AM1/23/21
to AdWords API and Google Ads API Forum
A bit more detail... Order matters.

This deadlocks:

        <dependency>
            <groupId>com.google.api-ads</groupId>
            <artifactId>ads-lib</artifactId>
            <version>4.9.1</version>
        </dependency>
        <dependency>
            <groupId>com.google.api-ads</groupId>
            <artifactId>google-ads</artifactId>
            <version>10.1.0</version>
        </dependency>

This doesn't:

   <dependency>
      <groupId>com.google.api-ads</groupId>
      <artifactId>google-ads</artifactId>
      <version>10.1.0</version>
    </dependency>
        <dependency>
            <groupId>com.google.api-ads</groupId>
            <artifactId>ads-lib</artifactId>
            <version>4.9.1</version>
        </dependency>

Google Ads API Forum Advisor Prod

unread,
Jan 25, 2021, 9:22:27 PM1/25/21
to deb...@gmail.com, adwor...@googlegroups.com
Hi Gregory,

Thank you for reaching out to our API support team.

As this appears to be more of a client library concern, could you confirm if you are using the Java client library? If yes, you can reach out to their client library owners instead, via this link, as they should be the more appropriate team to provide guidance.

If you are using or configuring a different client library, let me know which so I can provide their support link.

Best regards,

Google Logo
Peter Laurence Napa Oliquino
Google Ads API Team
 


ref:_00D1U1174p._5004Q2B2mzt:ref

Gregory Golberg

unread,
Jan 25, 2021, 9:54:48 PM1/25/21
to Google Ads API Forum Advisor Prod, adwor...@googlegroups.com
Correct, this is a Java library issue; but the problem here is I'm unsure which one of the libraries is the culprit here. If you notice, merely the rearranging of orders of import changes things. I will submit an issue, of course.

Gregory Golberg

unread,
Jan 31, 2021, 2:48:08 PM1/31/21
to Google Ads API Forum Advisor Prod, adwor...@googlegroups.com

On Mon, Jan 25, 2021 at 6:22 PM Google Ads API Forum Advisor Prod <adsapifor...@gmail.com> wrote:
Reply all
Reply to author
Forward
0 new messages