suggest_ad_content

Google Ads Read

๐Ÿšจ **IF THIS TOOL RETURNS A QUOTA ERROR:** - The error message will include a clickable upgrade link - Show the FULL error message to the user (it contains the upgrade link) - DO NOT attempt to work ar

Endpoint

POST https://api.adspirer.ai/api/v1/tools/suggest_ad_content/execute

Headers

Description

๐Ÿšจ **IF THIS TOOL RETURNS A QUOTA ERROR:** - The error message will include a clickable upgrade link - Show the FULL error message to the user (it contains the upgrade link) - DO NOT attempt to work around the error or use alternative data - DO NOT create campaigns or perform actions without valid tool data - STOP and direct the user to upgrade via the provided link Generate AI-suggested headlines and descriptions based on campaign keywords. Analyzes campaign keywords and generates optimized ad content following creative guidelines: - 15 headlines across 3 categories (What It Is, Benefits, Pain/Proof/CTA) - 4 descriptions with value props and CTAs - All validated for character limits **Parameters:** - campaign_id: The campaign to analyze (REQUIRED) - business_description: Optional context about the business - key_benefits: Optional list of benefits (e.g., ["fast setup", "no dashboard"]) - proof_points: Optional proof points (e.g., [{"number": "2000+", "metric": "campaigns"}]) - pain_points: Optional pain points (e.g., ["manual ads", "complex UI"]) - customer_id: Optional **Returns:** - suggested_headlines: 15 headlines ready to use - suggested_descriptions: 4 descriptions ready to use - headline_categories: Headlines organized by category - keyword_themes: Top themes from campaign keywords **Use this when:** - User wants fresh ad copy ideas - User asks "what should my headlines be?" - Starting a new A/B test - Refreshing stale ad content **Execution time:** 3-5 seconds **Example:** User: "Suggest some better headlines for my campaign" Agent: 1. Uses suggest_ad_content to generate ideas 2. Shows suggestions organized by category 3. User picks favorites 4. Uses update_ad_headlines to apply selected headlines

Request body

All tool arguments are wrapped in an arguments object.

FieldTypeDescription
campaign_idstring requiredThe campaign ID to analyze for keyword themes. Use list_campaigns first.
business_descriptionstring optionalOptional: Description of what the business does. Helps generate better suggestions.
key_benefitsarray optionalOptional: List of key benefits (e.g., ['30 second launch', 'no dashboard required']).
proof_pointsarray optionalOptional: Proof points. Each with 'number' and 'metric' (e.g., {'number': '2000+', 'metric': 'campaigns'}).
pain_pointsarray optionalOptional: Pain points customers face (e.g., ['manual ads', 'complex UI']).
customer_idstring optionalGoogle Ads customer ID. Required for multi-account users. Get from list_connected_accounts.

Example request

{
  "arguments": {
    "campaign_id": "<campaign_id>",
    "business_description": "string",
    "key_benefits": [
      "string"
    ],
    "proof_points": [
      "5-star rated on Trustpilot (4,200 reviews)",
      "Free shipping over $50"
    ],
    "pain_points": [
      "string"
    ],
    "customer_id": "string"
  }
}

Example responses

200 โ€” Success

{
  "success": true,
  "data": {
    "text": "(tool-specific textual output for suggest_ad_content)",
    "quota": {
      "used": 42,
      "limit": 150,
      "tier": "plus",
      "period_end": "2026-05-01"
    }
  },
  "tool": "suggest_ad_content"
}

400 โ€” Tool-level error (bad arguments / multi-account selection)

{
  "success": false,
  "error": "You have 25 meta_ads accounts connected. Please specify which account to use by passing the ad_account_id parameter:\n  - Acme Holdings (ad_account_id=\"act_123456789\")\n  - Acme EU (ad_account_id=\"act_987654321\")",
  "is_error": true,
  "tool": "suggest_ad_content"
}

402 โ€” Quota exhausted

{
  "success": false,
  "error": "\ud83d\udea8 Monthly limit reached (150/150 tool calls on Plus tier).\nUpgrade to Pro at https://adspirer.ai to keep building.",
  "is_error": true,
  "tool": "suggest_ad_content",
  "quota": {
    "used": 150,
    "limit": 150,
    "tier": "plus",
    "period_end": "2026-05-01",
    "upgrade_url": "https://adspirer.ai"
  }
}

Try it live


Adspirer REST API โ€” get an API key at adspirer.ai/keys ยท adspirer.ai