I tried to run an example of this page:
https://developers.google.com/google-ads/api/docs/reporting/example

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();

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/b8a01e1f-7eae-4cc8-a453-ef9a96963cc9n%40googlegroups.com.

Reply via email to