> ## Documentation Index
> Fetch the complete documentation index at: https://docs.markifact.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Update Line Item

> Advanced: partially updates a DV360 line item from a raw v4 field payload with an update mask; only masked fields change and micros values are raw

Advanced: partially updates a DV360 line item from a raw v4 field payload with an update mask; only masked fields change and micros values are raw. The mask is derived from the payload when omitted. Prefer the dedicated operations (dv360\_update\_line\_item\_status, dv360\_update\_line\_item\_budget) for simple changes. Supports dry\_run.

|                       |                          |
| --------------------- | ------------------------ |
| **App**               | DV360                    |
| **Operation ID**      | `dv360_update_line_item` |
| **Type**              | Action                   |
| **Connection**        | `dv360` (required)       |
| **Credits per run**   | 1                        |
| **Agent / MCP tool**  | Yes                      |
| **Requires approval** | Yes (write operation)    |

## Inputs

| Field            | Type                 | Required | Default | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| ---------------- | -------------------- | -------- | ------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `account`        | DynamicAccount       | Yes      | -       | Select the DV360 advertiser that owns the line item.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| `line_item_id`   | string or SelectItem | Yes      | -       | ID of the DV360 line item to update. Do not repeat it inside update\_payload.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| `update_payload` | object or string     | Yes      | -       | Line item fields to update as a JSON object using the official DV360 v4 camelCase field names, sent as-is with raw micros values. Only the fields named in the update mask are changed. Common editable fields: displayName, flight, budget (maxAmount raw micros), pacing, bidStrategy, partnerRevenueModel, conversionCounting, creativeIds, frequencyCap, and entityStatus. Prefer the dedicated operations (dv360\_update\_line\_item\_status and dv360\_update\_line\_item\_budget) for simple changes. Example: \{"bidStrategy": \{"fixedBid": \{"bidAmountMicros": "2000000"}}} |
| `update_mask`    | string               | No       | -       | Optional comma-separated DV360 update mask. When omitted, it is derived from the top-level keys of update\_payload. Provide it explicitly for nested masks, for example campaignFlight.plannedDates or budget.budgetSegments.                                                                                                                                                                                                                                                                                                                                                          |
| `dry_run`        | boolean              | No       | `False` | When true, do not call DV360. Return the resolved update mask and payload for review.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |

### SelectItem

| Field   | Type   | Required | Default | Description                                                                                          |
| ------- | ------ | -------- | ------- | ---------------------------------------------------------------------------------------------------- |
| `value` | string | Yes      | -       | The value of the selectable item.                                                                    |
| `label` | string | Yes      | -       | The label of the selectable item, used for display purposes. If not provided, defaults to the value. |

## Output

**Type**: `Dict`

Returns the update mask, payload, and updated line item.

**Fields**: `line_item_id`, `update_mask`, `payload`, `dry_run`
