How to use Ads API Without Billing Account

117 views
Skip to first unread message

Amber Xie

unread,
Jun 17, 2020, 2:20:15 PM6/17/20
to AdWords API and Google Ads API Forum
Hi,

I'm working on working with the Ads API, but I don't want to have to set up a billing account. I've set up a testing manager account, and I can't figure out how to create a client under the testing manager account. However, because I am using the testing account, I cannot get a developer token. Do I need one if I'm just testing around? 

In addition, I'm following this tutorial and I can't get this to run properly in Google Cloud console (using the provided terminal command $ mvn exec:java -Dexec.mainClass="com.google.ads.googleads.examples.authentication.AuthenticateInWebApplication").

Any help with getting started with the API would be helpful. Thanks!

Google Ads API Forum Advisor Prod

unread,
Jun 17, 2020, 4:30:29 PM6/17/20
to adwor...@googlegroups.com

Hi Amber,

Thank you for reaching out. You still need to have a developer token even if you are only making calls to the test accounts. As for the other issue you had, could you please elaborate the issue and share the complete logs via Reply privately to author option for me to further investigate?

Thanks and regards,
Xiaoming, Google Ads API Team


 

ref:_00D1U1174p._5004Q217HF5:ref

Amber Xie

unread,
Jun 17, 2020, 4:42:37 PM6/17/20
to AdWords API and Google Ads API Forum
For some reason it does not let me click "Reply privately to author," but I'll post it here.

I cloned the entire repository here: https://github.com/googleads/google-ads-java
And then on Google Cloud Shell, I run mvn exec:java -Dexec.mainClass="com.google.ads.googleads.examples.authentication.AuthenticateInWebApplication"

This gives me a ClassNotFoundException for AuthenticateInWebApplication

Am I supposed to compile beforehand? I've tried that as well but I run out of heap memory

Google Ads API Forum Advisor Prod

unread,
Jun 18, 2020, 10:25:49 AM6/18/20
to adwor...@googlegroups.com

Hi Amber,

Thank you for reaching out. You are supposed to use IDE or the command line on your computer rather than the Google Cloud Shell to generate the OAuth2 credentials. You could follow the steps in this guide to obtain the credentials. Since you chose the Web Application type, an alternative way to generate the credentials is through the OAuth Playground.



Thanks and regards,
Xiaoming, Google Ads API Team


 

ref:_00D1U1174p._5004Q217HF5:ref

Amber Xie

unread,
Jun 18, 2020, 5:41:22 PM6/18/20
to AdWords API and Google Ads API Forum
Thanks,

Does Google Cloud Shell not work at all? I am on the next step, which requires using an IDE, but I'm not sure if I am able to access one. Is there a reason why Cloud Shell does not work with this?

Google Ads API Forum Advisor Prod

unread,
Jun 19, 2020, 10:29:19 AM6/19/20
to adwor...@googlegroups.com

Hi Amber,

Thank you for reaching out. The Google Cloud Shell wouldn’t work. It’s just a virtual environment command line tool. You would need to install the library on your local machine first and then either use the terminal on your machine or an IDE to make API calls.



Thanks and regards,
Xiaoming, Google Ads API Team


 

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