Skip to main content
Glama

Import Ad Campaign Data from CSV

ad_csv_import

Import campaign performance data from Google Ads or Meta Ads CSV exports. Enables all AdOps tools to operate on real data without API keys.

Instructions

Import real campaign + performance data from a Google Ads or Meta Ads CSV export. After import, every AdOps tool (ads_report, budget_analyze, anomaly_detect, ab_test_analyze, competitor_benchmark, forecast_spend) operates on your real data. No API keys or OAuth required — just export from your ad dashboard and import here.

HOW TO EXPORT: • Google Ads: Reports → Campaign performance → Download → Comma-separated (.csv). Include "Day" segment for daily metrics. • Meta Ads Manager: Campaigns view → Export → Campaign performance (.csv). Check "Include breakdowns: By day" for daily metrics.

INPUT: Provide either csv_path (absolute path to file on disk) OR csv_content (raw CSV string). Optional connection_name groups imports; re-importing with the same name appends new data. Returns a summary with campaigns_imported, metrics_imported, warnings, and the connection id to reference in other tools.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
platformYesWhich platform the CSV is from: "google" (Google Ads Editor or web UI export) or "meta" (Meta Ads Manager → Export → Campaigns)
csv_pathNoAbsolute path to a CSV file on disk. Preferred for large exports. Example: "/Users/you/Downloads/google_ads_report.csv"
csv_contentNoRaw CSV content as a string. Use for small exports pasted directly into the tool.
connection_nameNoFriendly name for this data source (e.g., "ACME Google Account"). Defaults to "<Platform> Ads (CSV Import)".
account_idNoYour platform account ID (e.g., Google customer ID "123-456-7890" or Meta "act_1234567890"). Used to identify the connection.
Behavior4/5

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

Discloses key behaviors: re-importing with the same connection_name appends data, and returns a summary with campaigns_imported, metrics_imported, warnings, and connection id. Annotations provide no hints, so the description carries the full burden.

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 for purpose, export instructions, and input details. The HOW TO EXPORT section is detailed but practical; overall length is justified given the complexity of supported platforms and input options.

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?

Covers all aspects: purpose, required inputs, behavior on re-import, return values, and platform-specific export steps. No output schema exists, so the description adequately explains the return summary.

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?

Schema coverage is 100% with descriptions for all 5 parameters. The description adds significant value by explaining the preference for csv_path for large exports, the default for connection_name, and the purpose of account_id, going beyond schema details.

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?

The description clearly states the tool imports real campaign data from Google Ads or Meta Ads CSV exports. It distinguishes from siblings like ad_demo_seed (demo data) and platform_connect (API) by emphasizing no API keys needed.

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

Usage Guidelines4/5

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

Provides context on when to use (CSV exports, no API) and includes step-by-step export instructions for both platforms. However, it does not explicitly compare with alternative import methods like platform_connect or ad_demo_seed.

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/enzoemir1/adops-mcp'

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