Prepare a change to a campaign
prepare_campaign_changePrepare a change to an existing campaign as a proposal in the Loop inbox (needs a propose key): set a Google Ads search campaign's languages, replace a running search ad's wording and landing page, change a daily budget by more than the per-change limit (the daily cap still applies), give a campaign a total cap that Loop pauses it at, set a max CPC you choose (campaign or ad group; above the workspace max CPC only with overrideWorkspaceCap), move the same daily amount from one campaign to another (total unchanged; both or neither), add an ad group (keywords and one responsive search ad) to a running Google Ads search campaign within its current budget, move a Google Ads or Apple Ads campaign's end date (optionally raising the total cap Loop watches so it does not pause before the new end), keep only chosen keywords in an Apple Ads campaign and pause the rest, set the bid of one keyword in an Apple Ads campaign (daily budget unchanged), add keywords (exact match by default) at one bid to an Apple Ads ad group (daily budget unchanged), set the default bid of an Apple Ads ad group with max_cpc and adGroupName (what a Search Match ad group with no keywords bids), pause a running or scheduled campaign with pause_campaign (budget, end date and ads unchanged; needs only campaignId), set the youngest age a Meta campaign's ad sets or an Apple Ads campaign's ad groups are shown to with min_age and ageMin, optionally (Meta only) with ageMax for the oldest age (Advantage+ audience is turned off so the range is a hard limit; budget, placements and ads unchanged), narrow the Instagram placements of a Meta campaign whose ad sets run on Instagram only with placements and instagramPositions, e.g. ["stream", "reels"] to drop Stories (narrowing only; budget, ages and ads unchanged), change the pixel event a Meta website campaign's ad sets optimize for with optimization_event and event (pixel, budget, targeting and ads unchanged; Meta restarts learning, so a person always approves it), or move unspent total budget between two Meta campaigns that run on a total (lifetime) budget with total_transfer, fromCampaignId and amount (the two totals together and the end dates unchanged). Nothing is sent to the ad platform; a person approves it in Loop.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"kind": "<kind>",
"campaignId": "<campaignId>"
},
"name": "prepare_campaign_change"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bid | No | keyword_bid: the new max bid in the account's currency (major units, e.g. 376 for ¥376). add_keywords: the new keywords' max bid. | |
| cap | No | total_cap: the total in the campaign's currency. | |
| keep | No | keep_keywords: the keyword texts to keep enabled; the campaign's other enabled keywords are paused. | |
| kind | Yes | ||
| adRef | No | replace_search_ad: the ad to replace (customers/…/adGroupAds/…). | |
| event | No | optimization_event: Meta's custom_event_type to optimize for (CONTENT_VIEW = ViewContent, START_TRIAL = StartTrial, …). | |
| since | No | total_cap: YYYY-MM-DD to count spend from (default today). | |
| ageMax | No | min_age: optional oldest age (at least ageMin). Turns off Advantage+ audience so Meta keeps the range as a hard limit. | |
| ageMin | No | min_age: the youngest age the campaign's ad sets are shown to. | |
| amount | No | budget_transfer: the daily amount to move. total_transfer: the amount of total budget to move. | |
| family | No | replace_search_ad / add_ad_group: the workspace campaign family for utm_campaign. | |
| maxCpc | No | max_cpc: the new max CPC in the account's currency (Apple Ads: the ad group's default bid). add_ad_group: the new ad group's max CPC (manual CPC campaigns only). | |
| endDate | No | end_date: the new last day (YYYY-MM-DD) in the ad account's time zone. | |
| keyword | No | keyword_bid: the text of the enabled keyword whose bid changes. | |
| landing | No | replace_search_ad / add_ad_group: landing page without utm_*; UTM is added by Loop. | |
| fundedBy | No | budget_move: id of the campaign whose budget this uses (recorded only). | |
| keywords | No | add_ad_group: the new ad group's keywords. | |
| headlines | No | ||
| languages | No | languages: codes such as vi, ja; empty = all languages. | |
| matchType | No | keyword_bid: only needed when the same text is enabled with more than one match type. add_keywords: the match type (default EXACT). | |
| campaignId | Yes | The campaign id from list_campaigns (budget_transfer, total_transfer: the campaign that receives). | |
| adGroupName | No | max_cpc: an ad group of a manual CPC campaign (omit for the campaign max CPC); on Apple Ads the ad group whose default bid changes (may be omitted when the campaign has one ad group). add_ad_group: the new ad group's name. keyword_bid: only needed when the same keyword is enabled in more than one ad group. add_keywords: the ad group to add to (may be omitted when the campaign has one ad group). | |
| dailyBudget | No | budget_move: the new daily budget in the campaign's currency. | |
| newKeywords | No | add_keywords: the keyword texts to add (up to 20); each gets matchType (default EXACT) and bid. | |
| utmCampaign | No | replace_search_ad / add_ad_group: utm_campaign for this campaign ({adgroup} allowed). | |
| descriptions | No | ||
| raiseTotalCap | No | end_date: if Loop watches a total cap on this campaign, raise it by the added days × daily budget. | |
| fromCampaignId | No | budget_transfer, total_transfer: the campaign that gives the budget. | |
| instagramPositions | No | placements: the Instagram positions to keep (stream = Feed, story = Stories, reels, explore, …). Must be fewer than the ad sets use now. | |
| overrideWorkspaceCap | No | max_cpc / add_keywords: allow a bid above the workspace max CPC. |