create_line_item
Add a new line item to a Google Ad Manager order by specifying targeting, type, dates, and goals to manage ad delivery and campaigns.
Instructions
Create a new line item for an order.
Args: order_id: The order ID to add line item to name: Line item name end_year: End date year (e.g., 2025) end_month: End date month (1-12) end_day: End date day (1-31) target_ad_unit_id: Ad unit ID to target (find via GAM UI or ad unit tools) line_item_type: Type of line item. Valid types: - SPONSORSHIP: Guaranteed, time-based (100% share of voice) - STANDARD: Guaranteed, goal-based (specific number of impressions) - NETWORK: Non-guaranteed, run-of-network - BULK: Non-guaranteed, volume-based - PRICE_PRIORITY: Non-guaranteed, competes on price - HOUSE: Internal/house ads (lowest priority) - CLICK_TRACKING: For tracking clicks only - ADSENSE: AdSense backfill - AD_EXCHANGE: Ad Exchange backfill - BUMPER: Short video bumper ads - PREFERRED_DEAL: Programmatic preferred deals goal_impressions: Impression goal (default: 100000) creative_sizes: JSON string of sizes, e.g. '[{"width": 300, "height": 250}, {"width": 728, "height": 90}]' If not provided, uses defaults: 300x250, 300x600, 728x90, 1000x250 cost_per_unit_micro: Cost per unit in micro amounts (e.g., 1000000 = 1 MAD) currency_code: Currency code (default: MAD)
Returns the created line item details.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| order_id | Yes | ||
| name | Yes | ||
| end_year | Yes | ||
| end_month | Yes | ||
| end_day | Yes | ||
| target_ad_unit_id | Yes | ||
| line_item_type | No | STANDARD | |
| goal_impressions | No | ||
| creative_sizes | No | ||
| cost_per_unit_micro | No | ||
| currency_code | No | MAD |