Install & Compatibility
Where this runs
tested against v0.18.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 3.892s · 416.1MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 15.9s · import 3.650s · 384MB
407MB installed
● package 407MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
advertools
✓ import advertools as adv
✗ from advertools import *
Using wildcard imports is discouraged; use 'import advertools as adv' for clarity.
advertools.ad_create
✓ from advertools import ad_create
✗ import advertools.ad_create
ad_create is a function, not a submodule; wrong import leads to ModuleNotFoundError.
Generates keyword permutations for Google Ads using seed words.
import advertools as adv
# Generate keywords from a seed list
seed_words = ['shoes', 'boots']
keywords = adv.generate_google_keywords(seed_words)
print(keywords.head())
advertools --version
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'advertools.ad_create'
Incorrect import style: 'import advertools.ad_create' instead of 'from advertools import ad_create'.
fixUse 'from advertools import ad_create'.
ValueError: The truth value of a DataFrame is ambiguous
Passing a pandas DataFrame directly to a function that expects a boolean or scalar.
fixExtract scalar values or use .any()/.all() methods.
requests.exceptions.HTTPError: 429 Client Error: Too Many Requests
Rate limiting by Google when using spider or search functions.
fixIncrease delays or reduce request frequency. Use 'adv.spider' with 'max_requests_per_second' parameter.
Upgrade
Version history
0.18.0latest on PyPI · released Jun 17, 2026
Audit
Dependencies
pandasrequiredData manipulation and analysis
requestsrequiredHTTP requests
lxmlrequiredXML/HTML parsing
beautifulsoup4requiredWeb scraping
scikit-learnoptionalMachine learning support