Adspirer icon

Adspirer

Manage ad campaigns across Google, Meta, LinkedIn & TikTok Ads via the Adspirer REST API

Actions119

Analyze Search Terms

AI-generated

Summary

Analyze search terms data for Google Ads campaigns to identify opportunities, negatives, match types, or to retrieve raw reports, filtered by various parameters like campaign, date range, and metrics thresholds.

Inputs

  • platform (required) — Select the advertising platform to analyze; for this operation, Google Ads is supported.
  • analysis_type — Specify the type of analysis: 'opportunities', 'negatives', 'match_types', 'all', or 'raw_report'.
  • campaign_id — Optional campaign ID to filter search term analysis to a specific campaign.
  • customer_id — Google Ads customer ID to specify the account for analysis.
  • date_range — Preset date ranges such as 'last_7_days', 'last_14_days', etc., to limit data.
  • start_date — Start date for custom date range filter in YYYY-MM-DD format.
  • end_date — End date for custom date range filter in YYYY-MM-DD format.
  • lookback_days — Numeric number of days to analyze search term data (7, 30, 60, 90, or 120).
  • min_clicks — Minimum number of clicks filter applied when requesting raw reports.
  • page — Page number for raw report pagination (1-based).
  • page_size — Number of results per page for raw reports (1-100).
  • raw_data — If true, return ONLY raw metrics as a JSON code block (metrics like spend, clicks, impressions, conversions, CPA, CPC, CTR, CVR, ROAS).
  • sort_by — Field used to sort raw report results; options include 'cost' (default), 'clicks', 'impressions', and 'conversions'.
  • force_refresh — Boolean flag to trigger immediate API collection from Google Ads instead of cached data; currently not implemented.

Output shape

a JSON object containing analyzed search terms data, which varies by analysis_type: opportunities, negatives, match types, a full raw report with pagination and sorting, or raw metrics as a JSON code block.

Output depends on 'analysis_type' parameter. 'raw_report' supports paging and sorting; raw_data option returns only raw metrics. Other analysis types return structured summaries of opportunities or negatives. Force refresh flag is present but not yet functional; data is sourced from cached results.

Links

Discussion