infer_business_profile

Google Ads Write

Build the business profile by RESEARCHING THE CUSTOMER'S OWN WEBSITE

Endpoint

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

Headers

Description

Build the business profile by RESEARCHING THE CUSTOMER'S OWN WEBSITE. ⚠️ IMPORTANT: Grounds on the customer's website (not campaign guessing), and saves the profile by default. 🎯 **What This Tool Does:** - Researches the business's own website - Learns WHAT THEY SELL/SERVICE, the BRANDS THEY CARRY, their category and audience - Identifies OFF-LIMITS terms and ad-copy styles (e.g. SaaS copy for a trades business) - Saves the profile so future recommendations respect it **Why this matters (prevents real mistakes):** - A brand the business SELLS must NEVER be added as a negative keyword or treated as a competitor - Ad copy must match the business (no "Start Your Free Trial" for a plumbing/HVAC/trades business) **Parameters:** - **force_save**: Save the researched profile (default: true — a website-grounded profile is authoritative) - **customer_id**: Optional; not required (the profile is per-user, grounded on the business website) **Returns:** - Brands sold/serviced (never-negate), what they sell, category, audience - Off-limits terms and ad-copy styles - Whether the profile was saved **If no business website is on file:** returns a clear prompt asking the user to add it (or to state their brands/services) rather than guessing. **Use this tool when:** - User doesn't have a business profile set - Before proposing negative keywords or writing ad copy - User asks "what do you know about my business?" - You need business context but none exists - After user connects a new Google Ads account **Example Flow:** 1. Call `get_business_profile` - returns no profile 2. Call `infer_business_profile` - analyzes campaigns 3. If HIGH confidence: Profile saved automatically 4. If LOW confidence: Ask user to confirm with suggested prompt **Execution time:** 3-8 seconds (AI analysis + optional save)

Request body

All tool arguments are wrapped in an arguments object.

FieldTypeDescription
force_saveboolean optionalIf true, save the profile even if confidence is low. Default is false (requires user confirmation for low-confidence profiles). default: false
customer_idstring optionalGoogle Ads customer ID. Required for multi-account users. Get from get_connections_status.

Example request

{
  "arguments": {
    "force_save": false,
    "customer_id": "string"
  }
}

Example responses

200 — Success

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

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": "infer_business_profile"
}

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": "infer_business_profile",
  "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