Skip to main content
This tool retrieves READ-ONLY data. Safe to call multiple times. Returns location targeting details:
  • Targeted locations (cities, states, countries, metros the campaign targets)
  • Excluded locations (negative geo targets)
  • Bid modifiers per location (if set)
  • Location type (Country, State, City, Metro, etc.)
  • Summary counts (targeted, excluded, total)
Parameters:
  • campaign_id: The campaign ID (REQUIRED - get from list_campaigns)
  • customer_id: Optional (uses connected account if omitted)
Execution time: 1-3 seconds (single API query) Use this tool when:
  • User asks “where is this campaign targeting?” or “what locations?”
  • User wants to see geo targeting for a campaign
  • User asks “what countries/cities/states does my campaign target?”
  • Before recommending location targeting changes
  • To verify location setup after campaign creation
Returns for each location:
  • name: Short location name (e.g., “New York”)
  • canonical_name: Full hierarchical name (e.g., “New York,New York,United States”)
  • country_code: ISO country code (e.g., “US”)
  • target_type: Location type (Country, State, City, County, Metro, etc.)
  • is_negative: true if this location is EXCLUDED
  • bid_modifier: Bid adjustment for this location (null if no modifier)
Example flow:
  1. User: “What locations does my Diamond Ring campaign target?”
  2. Agent: Uses get_campaign_targeting with campaign_id
  3. Returns: Targeted: United States, New York, Los Angeles; Excluded: none

OpenAPI

/api-reference/openapi.json post /api/v1/tools/get_campaign_targeting/execute