Google Ads Api / Iterate on ServerStream do not bring any response

52 views
Skip to first unread message

Rafael Stojan

unread,
Jul 8, 2020, 9:44:00 AM7/8/20
to AdWords API and Google Ads API Forum
I tried to run an example of this page:

It just stands on that line and never returns:
for (SearchGoogleAdsStreamResponse response: stream) {
There is no exception.

To run this example I used UserCredentials to authenticate instead of "GoogleAdsClient.newBuilder (). FromPropertiesFile (). Build ()".
It looked like this:

      Credentials credentials = UserCredentials.newBuilder()
      .setClientId("475893...")
      .setClientSecret("jz...")
      .setRefreshToken("1//06t...")
      .build();
      
      GoogleAdsClient googleAdsClient = GoogleAdsClient.newBuilder()
      .setDeveloperToken("ACL...")
      .setCredentials(credentials)
      .setLoginCustomerId(params.customerId)
      .build();

Google Ads API Forum Advisor Prod

unread,
Jul 8, 2020, 3:00:01 PM7/8/20
to rafael...@reamp.com.br, adwor...@googlegroups.com
Hi Rafael,

Thank you for reaching out. Can you please share your client customer ID via Reply privately to author so I can further investigate the issue?

Regards,
Mitchell
Google Ads API Team

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