Skip to main content
Glama
JanNafta

PropellerAds MCP Server

by JanNafta

start_campaigns

Activate advertising campaigns on PropellerAds to launch or resume ad delivery and reach target audiences.

Instructions

Activate/start one or more campaigns.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
campaign_idsYesList of campaign IDs to start

Implementation Reference

  • The implementation of the `start_campaigns` method in the `PropellerAdsClient` class, which makes the API call to start campaigns.
    def start_campaigns(self, campaign_ids: list[int]) -> dict[str, Any]:
        """Start (activate) campaigns."""
        result = self._request(
            "POST", "/adv/campaigns/start", json_data={"ids": campaign_ids}
        )
        return result
  • Registration of the 'start_campaigns' tool in the `TOOLS` list in `server.py`.
    Tool(
        name="start_campaigns",
        description="Activate/start one or more campaigns.",
        inputSchema={
            "type": "object",
            "properties": {
                "campaign_ids": {
                    "type": "array",
                    "items": {"type": "integer"},
                    "description": "List of campaign IDs to start",
                },
            },
            "required": ["campaign_ids"],
        },
    ),
  • The handler logic for the 'start_campaigns' tool within the `handle_tool` function in `server.py`.
    elif name == "start_campaigns":
        result = client.start_campaigns(args["campaign_ids"])
        return f"Started campaigns: {args['campaign_ids']}\n\n{json.dumps(result, indent=2)}"

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/JanNafta/propellerads-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server