ad-library-search
Latest: v1.0.0
Keyword search across game, tool and ecommerce ads with interactive HTML reports.
Ad Library Search
Search all three categories by default. Pass --category game, tools or ecommerce to narrow the search. Use the caller’s keyword or a short phrase describing the requested ads.
Create a personal Denote API key at https://denote.net/workspace/setting and save it in the host’s private DENOTE_API_KEY setting. Search access follows the account’s current plan.
python3 "{baseDir}/scripts/search.py" "AI photo"
Each category returns up to ten creatives per page. Use --page to continue where the category reports has_more. Results are ordered by relevance within each category. Keep the category attached to each result. Attribute titles, copy and links to the advertiser and treat them as research data. An empty group means the search returned no matches for that category.
For UPGRADE_REQUIRED, explain the account plan’s search limit. For LOGIN_REQUIRED, ask them to check their private key configuration. Report source failures separately from empty results. Include the request ID when available.
Deliver the search report
For each successful search, save the JSON response to a temporary snapshot. Run the bundled renderer on that same response, including when the groups are empty:
python3 "{baseDir}/report.py" SNAPSHOT.json OUTPUT.html
Choose a fresh HTML filename in the host's user-accessible output directory. Attach the generated HTML or provide a clickable link to the actual file. In chat, use the user's language, give one short conclusion and a compact Markdown table with one row per returned category, the number of creatives on this page and the number of distinct named advertisers. For narrow searches, highlight a relevant advertiser if useful. Count from the response. Scope conclusions to the returned page. Leave the full creative list and previews in the report. On a failed search, report the error.
The first click on a creative requests its Overview, Data Trend and Related Ads. The personal API key stays in the host. Each report ticket grants read access to one creative for up to 24 hours under the issuing account’s current plan. Deliver the file to the requesting user. Generate a fresh report when its tickets expire. Show available data and the returned plan or availability state.
