Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dmitry-ai/google-ads-negative-keywords-pipeline
OpenAI-powered tool for bulk processing of Google Ads search queries to identify and filter irrelevant keywords
https://github.com/dmitry-ai/google-ads-negative-keywords-pipeline
chatgpt chatgpt-api llm mage2pro mage2pro-ai mage2pro-module mage2pro-module-ready mage2pro-module-reusable openai openai-api openai-o1 python
Last synced: 1 day ago
JSON representation
OpenAI-powered tool for bulk processing of Google Ads search queries to identify and filter irrelevant keywords
- Host: GitHub
- URL: https://github.com/dmitry-ai/google-ads-negative-keywords-pipeline
- Owner: dmitry-ai
- Created: 2025-01-29T13:17:37.000Z (15 days ago)
- Default Branch: main
- Last Pushed: 2025-02-05T14:33:56.000Z (8 days ago)
- Last Synced: 2025-02-05T15:32:28.926Z (8 days ago)
- Topics: chatgpt, chatgpt-api, llm, mage2pro, mage2pro-ai, mage2pro-module, mage2pro-module-ready, mage2pro-module-reusable, openai, openai-api, openai-o1, python
- Language: Python
- Homepage: https://upwork.com/fl/mage2pro
- Size: 41 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Google Ads Negative Keywords Pipeline
## 1. General description
- This tool helps Google Ads advertisers automatically process large volumes of search query reports to identify and filter out irrelevant traffic.
- The pipeline utilizes OpenAI API to analyze search terms and generate comprehensive lists of negative keywords based on specific exclusion criteria.
- The solution addresses a common challenge where advertisers need to process millions of search queries monthly but cannot effectively do this through ChatGPT interface due to input limitations.
- The system works by breaking down large search query lists into manageable batches, processing them through OpenAI API with carefully crafted prompts, and combining the results into a clean list of negative keywords.
- Each search query is evaluated against multiple criteria including geographical relevance, service type match, DIY intentions, competitor brand mentions, and budget-related indicators.
- The negative keywords generated by this pipeline can be directly imported into Google Ads campaigns, saving hours of manual review work.## 2. How to use
### 2.1.
An example of launching the program:
```bash
python main.py > output/negative-keywords.txt
```### 2.2.
The program uses the OpenAI API, model [`o3-mini`](https://platform.openai.com/docs/models#o3-mini).### 2.2.
In order for the program to work, an API key is required.
It must be placed in the file `config/private.env` in the format:
```
OPENAI_API_KEY =
```### 2.3.
The file with search queries: [`queries.txt`](https://github.com/dmitry-ai/google-ads-negative-keywords-pipeline/blob/main/queries.txt)### 2.4.
The file with public parameters: [`config/public.env`](https://github.com/dmitry-ai/google-ads-negative-keywords-pipeline/blob/main/config/public.env)
The program has 2 public parameters: `dfBatchSize` and `dfMaxBatches`.#### `dfBatchSize`
This is the number of search queries for simultaneous processing.
The higher the value, the fewer resources OpenAI will devote to each query, and this will reduce the quality of the OpenAI response.#### `dfMaxBatches`
This is the number of batches (each of size `dfBatchSize`) that the program will process.
Limiting this value saves money and time when testing the program.