hermosodocs

update_x_ads_line_item

Change an X line item (ad group) destructive

Area: X: managing what you built · Ad campaign management. Generated from the running MCP server, like the rest of the tool reference.

Description

Change an X line item — BID, bid strategy, SCHEDULE, goal or name. An X campaign's start and end times are deprecated, so the schedule genuinely lives HERE. Lowering `bidAmount` is also the fix when X refuses a campaign budget with “Bid is too close to Budget”. NOT changeable after creation: `objective` and `productType` — X answers 200 and silently keeps the old value (measured), so both are refused BY NAME here and a different objective means a NEW line item. Changing `goal` also requires `bidAmount` (X refuses the goal alone) and that is stated up front rather than relayed. A line-item dailyBudget/totalBudget is only legal when the parent campaign is NOT budget-optimised — that is the campaign's setting, so those two are forwarded and X's own refusal names the remedy rather than Hermoso blocking a legal edit. THE READ-BACK IS A DIFF against an independent re-read: a field X accepted but did not move is reported as REFUSED. Print the returned note verbatim.

Parameters

ParameterTypeDescription
adAccountIdstringX ad account id (list_x_ads_accounts); omit if only one is shared
accountIdstringolder name for adAccountId (MCP only)
lineItemIdrequiredstringfrom list_x_ads_line_items
namestringnew line item (ad group) name
bidAmountnumberin the ad account's currency
bidStrategy"AUTO" | "GUARANTEED" | "MAX" | "TARGET"AUTO, GUARANTEED, MAX or TARGET; MAX and TARGET need bidAmount
goal"APP_CLICKS" | "APP_INSTALLS" | "APP_PURCHASES" | "ENGAGEMENT" | "FOLLOWERS" | "LINK_CLICKS" | "MAX_REACH" | "PREROLL" | "PREROLL_STARTS" | "REACH_WITH_ENGAGEMENT" | "SITE_VISITS" | "SOCIAL_ENGAGEMENT" | "VIDEO_VIEW" | "VIEW_15S" | "VIEW_3S_100PCT" | "VIEW_6S" | "WEBSITE_CONVERSIONS" | "WEBSITE_CONVERSIONS_V2"requires bidAmount too
startTimestringISO 8601
endTimestringISO 8601 end time for this line item
dailyBudgetnumberonly if the campaign is not budget-optimised
totalBudgetnumberonly if the campaign is not budget-optimised
standardDeliverybooleanfalse = accelerated, only with line item budgets; X refuses it under a campaign budget

Example call

Every required parameter is shown, filled from the schema where it gives a value and otherwise with a placeholder naming the type. Replace the placeholders with real values. The same call works on the MCP server, the CLI and POST https://app.hermoso.ai/v1/tools/update_x_ads_line_item.

MCP (tools/call)

{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"update_x_ads_line_item","arguments":{"lineItemId":"<string>"}}}

CLI

hermoso call update_x_ads_line_item --json '{"lineItemId":"<string>"}'

Credits

Credits are spent only on two things: running an AI model (image, video, voice, text, planning, post-production) and Ad Spy research. See Credits & costs.

All 759 Ad campaign management tools · tools.json