Steps:

  1. Make sure you have an OAuth2 client ID and secret, a developer token, and a refresh token ready. If not, follow these instructions to get them.
  2. Copy your adsapi_php.ini, needed for the Google Ads API client library for PHP, to the root directory of this sample app.
  3. That's it! You can start using this sample app to either get all campaigns using CampaignService or download a report of your specified type.