Skip to main content
Glama

Draft a Demand Gen image ad

draft_demand_gen_ad

Draft a Demand Gen multi-asset image ad in a Demand Gen ad group — returns a PREVIEW.

The images and logos must already be in the asset library: upload them with draft_library_image_assets and pass the asset ids it returns. The draft checks every text length, that the ad group belongs to a Demand Gen campaign, that each asset is an image of this account with the ratio its slot needs, and that final_url is reachable. The ad is created PAUSED. Nothing changes until confirm_and_apply applies the plan_id; a dry run has Google validate it.

Google Ads API: https://developers.google.com/google-ads/api/docs/start

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "ad_group_id": "<ad_group_id>",
      "final_url": "<final_url>",
      "headlines": "<headlines>",
      "descriptions": "<descriptions>",
      "business_name": "<business_name>",
      "logo_asset_ids": "<logo_asset_ids>"
    },
    "name": "draft_demand_gen_ad"
  }
}

Input Schema

NameRequiredDescriptionDefault
ad_nameNoOptional name of the ad in Google Ads.
final_urlYesLanding page. Must be a real, reachable page.
headlinesYes1 to 5 headlines, at most 40 characters each.
ad_group_idYesNumeric id of the Demand Gen ad group.
customer_idNoGoogle Ads customer ID (digits, dashes optional). Defaults to the configured account.
descriptionsYes1 to 5 descriptions, at most 90 characters each.
business_nameYesAdvertiser name shown with the ad, at most 25 characters.
call_to_actionNoOptional button text in the ad's language, e.g. "Learn more". Empty lets Google choose.
logo_asset_idsYes1 to 5 square (1:1) logo image asset ids.
animated_imagesNoSame for animated images. Off by default.
generated_videosNoLet Google build videos from this ad's images and texts and serve them as extra ads. Off by default (Google's own default is on).
square_image_asset_idsNoSquare (1:1) image asset ids. At least one landscape or square image is required.
portrait_image_asset_idsNoPortrait (4:5) image asset ids. At most 20 landscape, square, portrait and tall portrait images in total.
marketing_image_asset_idsNoLandscape (1.91:1) image asset ids.
tall_portrait_image_asset_idsNoTall portrait (9:16) image asset ids, in addition to a landscape or square image.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing that the ad is created PAUSED, that the call only produces a draft plus plan_id, that a dry run has Google validate, and it enumerates the pre-flight checks (text lengths, campaign type, asset ratio/account ownership, final_url reachability).

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?

Front-loaded with purpose, then prerequisites, then the validate/pause/apply lifecycle — no repetition of schema text. The trailing bare Google Ads API documentation link contributes little and is the only filler.

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

Completeness5/5

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

For a 15-parameter mutation tool this covers the full lifecycle: asset sourcing, validation rules, paused creation, and confirmation via plan_id. With an output schema present it need not describe the return payload, so nothing an agent needs is missing.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds the origin of the asset ids and the requirement that each image match its slot ratio, plus the reachability constraint on final_url. It does not explain anything additional about the boolean flags that deviate from Google defaults.

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

Purpose5/5

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

States a specific verb and resource ('Draft a Demand Gen multi-asset image ad in a Demand Gen ad group') and immediately names the output form ('returns a PREVIEW'), which separates it from the responsive search / reddit ad drafting siblings.

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

Usage Guidelines5/5

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

Explicit prerequisites and routing: images must first be uploaded via draft_library_image_assets and the returned asset ids passed in; nothing changes until confirm_and_apply applies the plan_id. The agent knows both the ordering and the commit path without inference.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.