update_x_ads_line_item
Change an X line item (ad group) destructive
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
| Parameter | Type | Description |
|---|---|---|
adAccountId | string | X ad account id (list_x_ads_accounts); omit if only one is shared |
accountId | string | older name for adAccountId (MCP only) |
lineItemIdrequired | string | from list_x_ads_line_items |
name | string | new line item (ad group) name |
bidAmount | number | in 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 |
startTime | string | ISO 8601 |
endTime | string | ISO 8601 end time for this line item |
dailyBudget | number | only if the campaign is not budget-optimised |
totalBudget | number | only if the campaign is not budget-optimised |
standardDelivery | boolean | false = 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.
Related tools
update_x_ads_campaignChange an X campaign budget or settingslist_x_ads_promoted_tweetsList X promoted postslist_x_ads_targetingList an X line item’s targetinglist_x_ads_funding_instrumentsList X ad account payment methodsx_ads_targeting_searchFind X targeting ids (interests, devices, languages…)delete_x_ads_objectDelete an X ads object (permanent, cascades)