Pete Bowen's site

How to use the Google Ads API to do keyword research.

Published April 2021. Last updated July 2026.

The AdWords API offers two keyword research services:

  • The TargetingIdeaService finds new keyword ideas from a seed keyword, website or existing campaign, ad group etc. It's a bit like using the Keyword Planner in the web interface.

  • The TrafficEstimatorService lets you estimate performance changes for existing campaigns, ad groups, keywords etc.


I built a custom keyword research tool for my agency, MarketingMotor. It uses the TargetingIdeaService.

We feed the data from our keyword research tool straight into our campaign building tool. It lets us assemble AdWords campaigns in a fraction of the time it would take to do them in the web interface. Its even faster than a spreadsheet or AdWords editor, and, we make fewer mistakes.

I bumped into a couple of unexpected problems building our keyword research tool.

Rate limits.

Google restricts the frequency at which your keyword research tool can access the API. If you make too many requests in too short a time they fail.

The TargetingIdeaService seems to have the strictest rate limits. I say seems to because the actual rate limits are not documented, and they change depending on how busy the API is.

At times I've had to slow to less than one request per minute. At that rate the first version of my tool felt like the internet in 1996. I eventually redesigned the tool from the ground up so it was comfortable even with strict rate limits.

Drowning in data.

The API will dig out thousands of obscure long tail keywords if you let it. In theory long tail keywords are good. In practice, saying yes or no to a thousand possible keywords takes too long. Decision fatigue leads to mistakes.

Required minimum functionality.

If your keyword tool is open for the public or other agencies it'll have to comply with the minimum functionality requirements. At the time of writing keyword research tools also have to allow users to build and manage campaigns.

Internal-use-only tools don’t have these requirements.

Need help with the Google Ads API? Email me (me@pete-bowen.com) for a no-cost, no-obligation chat. I’m always happy to talk Google Ads and code.

Most Google Ads Problems Aren't Google Ads Problems
If my writing resonates with you, I'd like to give you a copy of my book, Profitable Google Ads. The book was written for business owners, but many PPC professionals have found it valuable too.
Before you download it, what describes you best?

Related articles

Why a Google Ads account audit isn't enough

Testing Google Ads for an RV Campground

Why negative keywords are becoming less effective in Google Ads

What’s the right bidding strategy for a brand new Google Ads account?

You can't run profitable Google Ads if your pipes are leaking

The campaign looks good but the ads aren't profitable

Topics you'll find on this site

Agency insights

Thoughts and lessons on client selection, burnout, pricing, and modernising legacy accounts, from someone who's run a Google Ads for years.

Conversion tracking

Understand what happens after someone clicks your advert. Subjects include offline conversions, CRM integration, attribution, auditability and marketing instrumentation.

Essays and thinking

Articles about marketing, engineering, AI and problem solving that don't fit neatly into the other topics. These are some of the ideas and experiences that have shaped how I think.

Google Ads for lead generation

Learn how to use Google Ads to generate profitable leads. Subjects include campaign strategy, bidding, targeting, optimisation and the challenges of running lead generation campaigns.

Landing pages

Things I've learned about high-converting landing pages. Subjects include copywriting, page structure, forms, trust, conversion rate optimisation and user experience.

Lead quality

Understand why some leads become customers while others don't. Subjects include diagnosing poor leads, qualification, filtering junk leads and improving the feedback you send to Google Ads.

Sales Process

What happens after a lead has been generated determines if Google Ads is profitable. Subjects include first contact, follow-up, quoting, lead nurturing and turning more enquiries into customers.