Aller au contenu principal
Reporting docs
Use case Claude + AdOps

Daily delivery standup

Daily GAM report with Claude as coworker

Give Claude one morning prompt and let it pull yesterday's GAM delivery, summarize pacing, and prepare a compact AdOps handoff.

User prompt

"Claude, every morning, pull yesterday's GAM performance by advertiser, order, line item and ad unit. Highlight revenue, CTR, fill issues and anything that needs a trafficker action before 10:00."

Expected outcome

A short daily readout with delivery totals, anomalies, top movers and a cached resultId for the full table.

Agent workflow

  1. 01

    Run the GAM report with the minimum fields needed for a morning review.

  2. 02

    Group rows by advertiser and line item, then flag CTR, revenue or delivery deltas.

  3. 03

    Export CSV only when the user asks for the operational table.

MCP functions

Parent MCP call shown with the reporting action.

FunctionCostPurpose
reporting(action="run_custom_report")0.5 crRuns the daily GAM delivery report.
reporting(action="get_report_result")0 crReads the full cached table by resultId.
reporting(action="export_report_csv")0.5 crExports the operational table when needed.

JSON payload

{
  "tool": "reporting",
  "arguments": {
    "action": "run_custom_report",
    "params": {
      "api": "rest",
      "dateRangeType": "YESTERDAY",
      "dimensions": [
        "DATE",
        "ADVERTISER_NAME",
        "ORDER_NAME",
        "LINE_ITEM_NAME",
        "AD_UNIT_NAME"
      ],
      "metrics": [
        "AD_SERVER_IMPRESSIONS",
        "AD_SERVER_CLICKS",
        "AD_SERVER_CTR",
        "AD_SERVER_REVENUE",
        "AD_SERVER_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE"
      ]
    }
  }
}

Representative output

  • Yesterday: 1,284,220 GAM impressions, EUR 4,862 revenue, 0.42% CTR.
  • Watch: Line Item LI-8241 is 18% below its 7-day average on AD_UNIT_NAME=Sports/Home.
  • Action: inspect creative rotation before noon; full resultId rep_20260609_daily.

Dimensions and metrics

Dimensions
NameSourceDescription
DATEGAMReport day
ADVERTISER_NAMEGAMAdvertiser label
ORDER_NAMEGAMCampaign order
LINE_ITEM_NAMEGAMDelivery line
AD_UNIT_NAMEGAMInventory placement
Metrics
NameSourceDescription
AD_SERVER_IMPRESSIONSGAMServed impressions
AD_SERVER_CLICKSGAMRecorded clicks
AD_SERVER_CTRGAMClick-through rate
AD_SERVER_REVENUEGAMAd server revenue
AD_SERVER_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATEGAMViewability rate

Limits

  • run_custom_report returns a preview inline and caches the full result for 30 days.
  • REST is the preferred API; switch to api='soap' only for legacy-only fields.
  • Use get_report_result for the full cached result when the inline response is truncated.
  • Validate every field against the dimensions and metrics reference before automating the prompt.
MCP and GAM names are intentionally not translated so prompts remain copy-pasteable.
Read the Academy guide

Use the editorial guide for the audience framing, then come back here for exact MCP actions, fields and payloads.

Read the Academy guide
Field references