AdWords API Sample Application

A demo application showing how to use AdWords API within Laravel

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.
Get all campaigns for the specified client customer ID
The client customer ID that will be used to get all campaigns, e.g., 1234567890 or 123-456-7890.
Fields to be retrieved:
Download a report for the specified client customer ID using AWQL
This is a client customer ID that will be used to download reports.
Some attribute fields specific to the specified report type will also be selected. For example, AdId and AdGroupId will be selected when AD_PERFORMANCE_REPORT is specified.
Metric fields to be retrieved: See all report types here.

Need help on AdWords API? Contact us here.