using Ads API and no response.

33 views
Skip to first unread message

Seungha Kim

unread,
Mar 10, 2020, 12:01:47 PM3/10/20
to AdWords API and Google Ads API Forum
Hello, Ads API Team.

using Ads api (v4.2.0) and no response.
After sending the request I didn't receive a response without any error.
When I checked it in the Google Developer Console, it showed that it responded normally.
I'm developing in a threaded environment and the API stays waiting without receiving a response.
Was there a similar case?


UserCredentials credentials = UserCredentials.newBuilder()
.setClientId(*******************)
.setClientSecret(*******************)
.setRefreshToken(*******************)
.build();

GoogleAdsClient googleAdsClient = GoogleAdsClient.newBuilder()
.setCredentials(credentials)
.setDeveloperToken(*******************)
.setLoginCustomerId(*******************
.build();
GoogleAdsServiceClient client = googleAdsClient.getLatestVersion().createGoogleAdsServiceClient();
SearchGoogleAdsRequest request = SearchGoogleAdsRequest.newBuilder()
.setCustomerId(************)
.setPageSize(PAGE_SIZE).setQuery("SELECT campaign.id FROM campaign")
.build();
// ISSUE line
SearchPagedResponse searchPagedResponse = client.search(request);

Google Ads API Forum Advisor Prod

unread,
Mar 10, 2020, 3:58:02 PM3/10/20
to shbaby...@gmail.com, adwor...@googlegroups.com
Hi Seungha,

Thank you for reaching out. My guess is that you are trying to make the call using a manager account which is why it returned as empty. Please make the call using a client account instead.

If this is not the issue, please share the client customer ID you are using.

Regards,
Mitchell
Google Ads API Team

ref:_00D1U1174p._5001UXUgk1:ref

Seungha Kim

unread,
Mar 10, 2020, 10:42:58 PM3/10/20
to AdWords API and Google Ads API Forum
Hi,

data exists in that account.

If the results are returned as 0 or n, it will be possible to handle. 
but the adsAPI will not operate in the code below, without any error.

SearchPagedResponse searchPagedResponse = client.search(request);


2020년 3월 11일 수요일 오전 4시 58분 2초 UTC+9, adsapiforumadvisor 님의 말:
Reply all
Reply to author
Forward
0 new messages