Google Ads Write
🚨 **IF THIS TOOL RETURNS A QUOTA ERROR:** - The error message will include a clickable upgrade link - Show the FULL error message to the user (it contains the upgrade link) - DO NOT attempt to work ar
POST https://api.adspirer.ai/api/v1/tools/create_app_campaign/execute
Authorization: Bearer sk_live_... — your Adspirer API key (required)Content-Type: application/json (required)Idempotency-Key: <uuid> — recommended for write operations to make retries safeAll tool arguments are wrapped in an arguments object.
| Field | Type | Description |
|---|---|---|
campaign_name | string required | Campaign name (e.g. 'Sahaayak Installs — US'). |
budget_daily | number required | Daily budget in the account's native currency. Do NOT convert currencies — pass as-is. |
app_id | string required | The app's store id: the Play package name (e.g. com.company.app) for GOOGLE_APP_STORE, or the numeric App Store id (e.g. 1234567890) for APPLE_APP_STORE. Must be a real, published listing in that store. |
app_store | string required | GOOGLE_APP_STORE or APPLE_APP_STORE (which store app_id lives in). |
app_campaign_type | string optional | install (default) | engagement (re-engagement; needs a deep-link + audience) | pre_registration (Google Play only). default: "install" |
bidding_goal_type | string optional | AppCampaignBiddingStrategyGoalType override. Defaults per type (install→OPTIMIZE_INSTALLS_WITHOUT_TARGET_INSTALL_COST, pre_reg→OPTIMIZE_PRE_REGISTRATION_CONVERSION_VOLUME). Advanced; leave unset normally. |
bidding_strategy | string optional | TARGET_CPA | MAXIMIZE_CONVERSIONS | TARGET_ROAS. Leave unset to let the server pick the strategy that pairs with the goal (Google rejects incompatible combos). |
target_cpa_micros | integer optional | Target CPA in micros — used with TARGET_CPA / MAXIMIZE_CONVERSIONS. |
target_roas | number optional | Target ROAS (e.g. 4.0). REQUIRED if bidding_strategy=TARGET_ROAS. |
start_date | string optional | Campaign start date YYYYMMDD. |
end_date | string optional | Campaign end date YYYYMMDD. |
ad | any optional | The app ad's creative assets (headlines/descriptions/image_assets/video_assets). Google auto-generates the rest from your store listing. |
customer_id | string optional | Google Ads customer ID (10 digits, no dashes). REQUIRED whenever the user has more than one Google Ads account connected — this creates a REAL campaign that spends REAL money, so it must land in the account the user actually meant. Do NOT omit it and do NOT guess: carry over the customer_id already in use in this conversation, or call list_connected_accounts / get_connections_status and ask the user which account. If a call fails asking you to disambiguate, RETRY with this parameter — that error does NOT mean the account is disconnected. |
{
"arguments": {
"campaign_name": "string",
"budget_daily": 1.0,
"app_id": "string",
"app_store": "string",
"app_campaign_type": "install",
"bidding_goal_type": "string",
"bidding_strategy": "string",
"target_cpa_micros": 1,
"target_roas": 1.0,
"start_date": "string"
}
}
{
"success": true,
"data": {
"text": "(tool-specific textual output for create_app_campaign)",
"quota": {
"used": 42,
"limit": 150,
"tier": "plus",
"period_end": "2026-05-01"
}
},
"tool": "create_app_campaign"
}
{
"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": "create_app_campaign"
}
{
"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": "create_app_campaign",
"quota": {
"used": 150,
"limit": 150,
"tier": "plus",
"period_end": "2026-05-01",
"upgrade_url": "https://adspirer.ai"
}
}
Interactive: Swagger UI
Machine-readable: OpenAPI 3.1 spec · llms-full.txt
More tools: Google Ads · All tools
Adspirer REST API — get an API key at adspirer.ai/keys · adspirer.ai