# Hermoso: update_x_ads_line_item · Hermoso developer docs

> Machine-readable twin of https://hermoso.ai/docs/reference/ads/update_x_ads_line_item/. Generated from the shipped page. Do not edit by hand.
> Full agent guide: https://hermoso.ai/llms.txt · MCP: https://app.hermoso.ai/mcp

[Docs](https://hermoso.ai/docs/) / [Tool reference](https://hermoso.ai/docs/reference/) / [Ad campaign management](https://hermoso.ai/docs/reference/ads/) / update_x_ads_line_item

# `update_x_ads_line_item`

Change an X line item (ad group) destructive

Area: X: managing what you built · [Ad campaign management](https://hermoso.ai/docs/reference/ads/). Generated from the running MCP server, like the rest of the [tool reference](https://hermoso.ai/docs/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

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)

`lineItemId` required `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](https://hermoso.ai/docs/credits/).

## Related tools

- [update_x_ads_campaign](https://hermoso.ai/docs/reference/ads/update_x_ads_campaign/) Change an X campaign budget or settings
- [list_x_ads_promoted_tweets](https://hermoso.ai/docs/reference/ads/list_x_ads_promoted_tweets/) List X promoted posts
- [list_x_ads_targeting](https://hermoso.ai/docs/reference/ads/list_x_ads_targeting/) List an X line item’s targeting
- [list_x_ads_funding_instruments](https://hermoso.ai/docs/reference/ads/list_x_ads_funding_instruments/) List X ad account payment methods
- [x_ads_targeting_search](https://hermoso.ai/docs/reference/ads/x_ads_targeting_search/) Find X targeting ids (interests, devices, languages…)
- [delete_x_ads_object](https://hermoso.ai/docs/reference/ads/delete_x_ads_object/) Delete an X ads object (permanent, cascades)

[All 759 Ad campaign management tools](https://hermoso.ai/docs/reference/ads/) · [tools.json](https://hermoso.ai/docs/reference/tools.json)
