Add CLI script to fetch active Meta Ads insights for campaigns, adsets, and ads

- Implemented a new PHP script to retrieve insights for the last N days (default 30).
- Supports command-line options for token, account ID, days, API version, and output file.
- Fetches data at campaign, adset, and ad levels, with filtering for active statuses.
- Handles JSON output and optional file saving, including directory creation if necessary.
- Includes error handling for cURL requests and JSON responses.
This commit is contained in:
2026-02-20 23:45:36 +01:00
parent 167ced3573
commit b54a9a71b1
34 changed files with 8516 additions and 1676 deletions

View File

@@ -17,7 +17,11 @@
"Bash(git commit:*)",
"Bash(php:*)",
"WebFetch(domain:adspro.projectpro.pl)",
"mcp__ide__getDiagnostics"
"mcp__ide__getDiagnostics",
"Bash(python3:*)",
"Bash(py --version)",
"Bash(where:*)",
"Bash(python:*)"
]
}
}