Adknown / Python automation
Campaign decisions, ready to review.
At Adknown, I turned my campaign-management rules into two Python tools. A job that took me three hours became a ten-minute review and upload workflow.
My role Campaign-rule design, AI-assisted Python development, testing, and adoption by colleagues.
Try the exampleFROM MANUAL CHANGES TO REVIEW
- before, per run
- 3 hours
- after, per run
- 10 minutes
Retrieve data → apply rules → review reasons → import approved changes through Google Ads Editor.
Delivered Single-geo and multi-geo tools, change sheets, and action summaries.
Worked example
A run of the tool, start to finish.
It reads every campaign, gives each a verdict, and hands me a change sheet. Open a row to see the rule it applied and the exact change.
Search arbitrage means paying for ad clicks and earning more from those visitors than the clicks cost.
Fictional search-arbitrage examples of my approach, not the production rules.
- Data inSpend and revenue for every campaign over the review window.
- Rules sortEach campaign is tested against my rules and given a verdict.
- Sheet outThe changes are written to a sheet with a reason beside each.
- I reviewI read every reason and strike out anything I disagree with.
- UploadThe sheet goes into Google Ads Editor and the changes go live.
10 campaigns read7 changes proposed3 left alone
Example ASingle countryGrowBrought back 210 on 150 spent and is using its whole daily budget of 20.
The rule it applied
A campaign that earns back more than it spends, has enough history and is using all of its budget gets one small budget step up, never a big jump.
- Field
- Daily budget
- Before
- 20
- After
- 30
Example ESingle countryGrowBrought back 126 on 90 spent and is using its whole daily budget of 15.
The rule it applied
A campaign that earns back more than it spends, has enough history and is using all of its budget gets one small budget step up, never a big jump.
- Field
- Daily budget
- Before
- 15
- After
- 20
Example FSingle countryTrimBrought back only 84 on 120 spent.
The rule it applied
A campaign with enough history that keeps spending more than it earns back gets its budget cut a step, so it can recover without being stopped.
- Field
- Daily budget
- Before
- 25
- After
- 18
Example GSingle countryTrimBrought back 170 on 200 spent.
The rule it applied
A campaign with enough history that keeps spending more than it earns back gets its budget cut a step, so it can recover without being stopped.
- Field
- Daily budget
- Before
- 40
- After
- 30
Example HSingle countryPauseJust launched and already brought back only 12 on 45 spent.
The rule it applied
A new campaign that loses money this fast is paused before it costs more. A slow start is left alone; a fast loss is not.
- Field
- Status
- Before
- Enabled
- After
- Paused
Example BSeveral countriesDrop a countryEarns back more than it spends overall, but Market B brought back only 28 on 40 spent.
The rule it applied
When one country costs more than it earns while the others pay for themselves, remove that country first and leave the rest of the campaign alone.
- Field
- Location of Market B
- Before
- Included
- After
- Excluded
Country Spent Earned back Market A 60 96 Market B40 28 Market C 20 25 Example DSingle countryOptimizeJust short of paying for itself, so the bidding changes instead of the budget.
The rule it applied
A newer campaign that is just short of break-even is not cut. It switches to Target CPA bidding, set at what one conversion earns, so Google only buys conversions that pay for themselves.
Target CPA is a Google Ads setting for the most you want to pay, on average, for one conversion.
Revenue per conversion
Revenue per conversion is what one conversion earns on average.
94 earned back ÷ 40 conversions = 2.35 per conversion
- Field
- Bid strategy
- Before
- Maximize conversions
- After
- Target CPA 2.35
Example CSingle countryLeave aloneOnly just launched, with 3 spent and 1 earned back, so it is too early to call.
The rule it applied
A campaign without enough history is left alone. A few early clicks are noise, not a result.
No change proposed.
Example ISingle countryLeave aloneBrought back 82 on 80 spent, paying for itself by a small margin, nothing to fix.
The rule it applied
A campaign that pays for itself by a small margin, with no sign of trouble, is left alone until it moves clearly one way or the other.
No change proposed.
Example JSingle countryLeave aloneBrought back 33 on 30 spent, paying for itself by a small margin, nothing to fix.
The rule it applied
A campaign that pays for itself by a small margin, with no sign of trouble, is left alone until it moves clearly one way or the other.
No change proposed.
What the verdicts mean
- Grow
- Earning more than it spends, with enough history and its whole budget in use. The budget goes up a step.
- Trim
- Spending more than it earns back. The budget comes down a step rather than stopping outright.
- Pause
- New and losing money quickly. It stops before it costs more.
- Drop a country
- Runs in several countries and only one of them loses money. That country is removed and the rest keep going.
- Optimize
- Close to break-even, so the bidding changes instead of the budget: Google is told the most it may pay for one conversion.
- Leave alone
- Nothing to act on yet: too new to call, or paying for itself by a small margin.
- Spent
- Money spent on ads over the review window.
- Earned back
- Money that came back from the people who clicked, over the same window.
- Country
- A country the ads are shown in.
In my workflow, I review the proposed changes and then apply them through Google Ads Editor.
Search-arbitrage terms and calculations
Search arbitrage compares advertising cost with the revenue returned from acquired traffic. Revenue per click (RPC) is the revenue returned for each acquired click. The tools compare revenue with spend and calculate profit relative to spend as (revenue − spend) / spend. That is not standard ROAS.
Repeated account decisions took hours.
I moved between performance data and the Google Ads interface, making adjustments individually or assembling spreadsheets for Google Ads Editor. Each session took three hours, three times a week.
The tools retrieve campaign data, apply deterministic rules I designed with AI assistance, and produce a Google Ads Editor change sheet with reasons. One handles single-geo campaigns; the other checks countries within multi-geo campaigns.
Match the intervention to the campaign.
A single-geo campaign needs a decision about its budget, bidding, or status. A multi-geo campaign can need a more specific intervention: remove a weak country, then give the remaining campaign time to respond before changing everything at once. Severe losses require a separate intervention path.
Early reviews caught bugs and missing cases. As the tools matured, routine decisions needed less attention, leaving more room for unusual situations such as a sudden drop in revenue per click. I review the proposed changes before importing them.
3 hours to 10 minutes per run.
That is my own workflow, used across up to 200 of my campaigns. Other campaign managers adopted the tools too.
I demonstrated the workflow in a presentation on Claude Code. Colleagues adopted the tools, and others built their own.
Bigger systems, built with the development team.
These figures are separate from my own Python tools and from the per-run time estimate above. They come from AI systems that the development team built, with me as business owner and prompt designer.
- 9 to 12 hours of manual campaign work a week, roughly 500 hours a year removed by AI automation systems built with the development team, with me as business owner and prompt designer
- 100+ policy-checked campaigns from a keyword list in about five minutes using a multi-stage AI system the development team built, with me as business owner and prompt designer