get_available_countries
Retrieve the list of countries available for ad targeting to ensure campaigns reach the correct geographic audiences.
Instructions
Get list of available countries for targeting.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/propellerads_mcp/client.py:316-319 (handler)The underlying client method that performs the API request to fetch countries.
def get_countries(self) -> list[dict[str, Any]]: """Get available countries for targeting.""" result = self._request("GET", "/adv/countries") return result.get("data", result) if isinstance(result, dict) else result - src/propellerads_mcp/server.py:883-885 (handler)The handler in the server logic that executes the tool and formats the output.
elif name == "get_available_countries": countries = client.get_countries() return f"# Available Countries\n\n```json\n{json.dumps(countries, indent=2)}\n```" - src/propellerads_mcp/server.py:450-453 (registration)Registration of the get_available_countries tool in the server.
name="get_available_countries", description="Get list of available countries for targeting.", inputSchema={"type": "object", "properties": {}}, ),