Help! I can not get any data from google ads-api

81 views
Skip to first unread message

Susie Song

unread,
Jan 14, 2021, 2:52:22 AM1/14/21
to AdWords API and Google Ads API Forum
Hello:
   we have a problem when we use the developer token, we can not get any data and exception by API,i can put the using method we applied below:

1. 我们通过下面的操作得到adwords.clientId和clientSecret

1. we get adwords.clientId and clientSecret by this way

 picqu1.jpg


2. 我们的clientCustomerId 来自于界面的显示

2. we get clientCustomerId by the website representing.

b0835b1e55b3e43fad1a8f80256ea93f.png

 

3. developerToken来自API center:

3.developerToken from API center

dffb720b560ba9827e97c6f18ccfbb49.jpg

 

4. refreshToken来自于运行程序得到的结果:

4.we get refresh Token by the result of java program in the github

path:https://github.com/googleads/googleads-java-lib/blob/master/examples/adwords_axis/src/main/java/adwords/axis/auth/GetRefreshToken.java

c32d6109c7d37bc4a1c9c706db684ce6.jpg 

 

 

5. 我们java程序集成的api版本为:

5. we use api in the version of this:

<dependency>

    <groupId>com.google.api-ads</groupId>

    <artifactId>ads-lib</artifactId>

    <version>4.12.0</version>

</dependency>

<dependency>

    <groupId>com.google.api-ads</groupId>

    <artifactId>adwords-axis</artifactId>

    <version>4.12.0</version>

</dependency>

 

6. JDK 1.8


7. 我们调用且不仅调用了

7.we have invoke the method such as:

https://github.com/googleads/googleads-java-lib/blob/master/examples/adwords_axis/src/main/java/adwords/axis/v201809/basicoperations/GetCampaigns.java

 

and

 

https://developers.google.com/adwords/api/docs/appendix/reports/campaign-performance-report#cost

3f3fd42759d25adecad03a4ee654903b.jpg

 

但是我们在获取任何接口都不返回任何数据,也没有权限错误。

 BUT,we can not get any data ,and there are not any exception,such as no auth etc.

 

 

 

但是实际上我们的账户是存在30天内的数据的:

In fact, there are many data in our account within 30 days

99445b8406af8aa1a14f48e1b2448d74.jpg

 

 Please help! thanks!

Google Ads API Forum Advisor Prod

unread,
Jan 14, 2021, 3:25:37 PM1/14/21
to susie...@gmail.com, adwor...@googlegroups.com

Hi Susie,

Thank you for reaching out. You were not getting results back as you were retrieving data directly from the manager account. Please select the specific client customer account under the manager account and make the request again.

Thanks and regards,
Xiaoming, Google Ads API Team

 

Google Logo
Xiaoming
Google Ads API Team
 


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