Skip to main content
Glama
MatiousCorp

Google Ad Manager MCP Server

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

TableJSON Schema
NameRequiredDescriptionDefault
order_idYes
nameYes
end_yearYes
end_monthYes
end_dayYes
target_ad_unit_idYes
line_item_typeNoSTANDARD
goal_impressionsNo
creative_sizesNo
cost_per_unit_microNo
currency_codeNoMAD

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries full burden. It states this is a creation operation but doesn't disclose behavioral aspects like required permissions, whether this is a mutating operation with side effects, rate limits, or what happens if validation fails. The description mentions default values but doesn't explain creation consequences or error handling.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Well-structured with clear sections (purpose, Args with detailed parameter explanations, Returns). While comprehensive due to many parameters, each sentence adds value. The line_item_type enumeration is necessary but makes it somewhat dense. Front-loaded with the core purpose first.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the complexity (11 parameters, creation operation, no annotations) and the presence of an output schema (so return values don't need description), the description is mostly complete. It thoroughly documents parameters but lacks behavioral context about permissions, side effects, or error handling that would be important for a creation tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 0% schema description coverage for 11 parameters, the description provides extensive parameter documentation beyond the schema. It explains each parameter's purpose, provides examples (e.g., end_year format, creative_sizes JSON format), lists valid line_item_type values with explanations, and specifies defaults where applicable, fully compensating for the schema's lack of descriptions.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool creates a new line item for an order with the verb 'Create' and resource 'line item'. It distinguishes from siblings like 'update_line_item_name' or 'duplicate_line_item' by specifying it's for creation, but doesn't explicitly contrast with all alternatives like 'create_order' or 'create_campaign'.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance on when to use this tool versus alternatives like 'create_order' or 'duplicate_line_item'. The description mentions prerequisites (order_id, target_ad_unit_id) but doesn't provide context about appropriate scenarios or exclusions for this specific creation operation.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/MatiousCorp/google-ad-manager-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server