Select the best advertisers based on website demographics.
Matches advertisers to website content based on classification demographics.
Provide either a URL (classification will be fetched) or demographics directly.
Rate limited to 1 request per minute per domain when using URL.
Scoring weights:
- Category match: +10 points
- Age match: +5 points
- Gender match: +3 points
- Sentiment match: +2 points
- Higher CPM bid as tiebreaker
Args:
url: URL to match advertisers for (fetches classification from cache).
category: Target category (e.g., "Sports", "Automotive").
subcategory: Target subcategory.
age: Target age group (e.g., "18-24", "25-34", "31-51").
gender: Target gender ("male", "female", or "all").
sentiment: Content sentiment ("Good", "Neutral", or "Bad").
limit: Number of advertisers to return (1-10, default 3).
min_cpm: Minimum CPM cost filter (e.g., 5.0 for $5+ CPM).
max_cpm: Maximum CPM cost filter (e.g., 10.0 for $10 or less CPM).
Returns:
Dictionary with:
- matches: List of matched advertisers with scores
- match_count: Number of matches found
- classification: URL classification (if URL provided)
- demographics: Provided demographics (if no URL)