Now that your environment and config file are all set up, it's time to make your first API call:
Java
- In your IDE, open GetCampaigns.java and execute it.
- The console should print a listing of the campaigns in your account.
C#
- In your IDE, open GetCampaigns.cs and execute it.
- The console should print a listing of the campaigns in your account.
PHP
- Execute GetCampaigns.php.
- The console should print a listing of the campaigns in your account.
Python
- In your IDE, open get_campaigns.py and execute it.
- The console should print a listing of the campaigns in your account.
Ruby
- On the command line, execute get_campaigns.rb
by typing:
ruby get_campaigns.rb
- The console should print a listing of the campaigns in your account.
Perl
- Execute get_campaigns.pl.
- The console should print a listing of the campaigns in your account.
Congratulations! You've made your first Google Ads API call.
To learn more about the API, proceed to the following topics: