Import Ad Campaign Data from CSV
ad_csv_importImport Google Ads or Meta Ads CSV exports to enable all AdOps tools (analytics, budget, anomaly, A/B test, benchmark, forecast) on your real campaign and performance data, no API required.
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
| Name | Required | Description | Default |
|---|---|---|---|
| platform | Yes | Which platform the CSV is from: "google" (Google Ads Editor or web UI export) or "meta" (Meta Ads Manager → Export → Campaigns) | |
| csv_path | No | Absolute path to a CSV file on disk. Preferred for large exports. Example: "/Users/you/Downloads/google_ads_report.csv" | |
| csv_content | No | Raw CSV content as a string. Use for small exports pasted directly into the tool. | |
| connection_name | No | Friendly name for this data source (e.g., "ACME Google Account"). Defaults to "<Platform> Ads (CSV Import)". | |
| account_id | No | Your platform account ID (e.g., Google customer ID "123-456-7890" or Meta "act_1234567890"). Used to identify the connection. |