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
| Name | Required | Description | Default |
|---|---|---|---|
| campaign_ids | Yes | List of campaign IDs to start |
Implementation Reference
- src/propellerads_mcp/client.py:122-127 (handler)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 - src/propellerads_mcp/server.py:165-179 (registration)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"], }, ), - src/propellerads_mcp/server.py:533-535 (handler)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)}"