By Roman Petrochenkov · Website · LinkedIn · YouTube: Marketing Watch House
The code from my 2020–2021 "Google Ads Automation with Python" videos:
| # | Video |
|---|---|
| 1 | How to connect to the API |
| 2 | Running any script |
| 3 | How to build reports in the API and Python |
| 4 | Getting a report in pandas and Excel |
Written in 2020 for Google Ads API v5, which has since been sunset, so it needs more than a version bump to run today. For current setup and access steps, see the Google Ads API documentation.
creds_example/googleads.yaml— template. Copy it tocreds/googleads.yaml(that folder is gitignored) and fill in your own credentials there; never put real values increds_example/.config/config.json— put your own account ID in place ofINSERT_CUSTOMER_ID(don't commit that change).src/test_google_ads_access/download_keywords_from_account.py— the example from the videos.
Something unclear? Open an issue.