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:
@@ -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:*)"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user