بنقرة واحدة
gmp-shared
gmp CLI: Shared patterns for authentication, global flags, and output formatting.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
gmp CLI: Shared patterns for authentication, global flags, and output formatting.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Google Tag Manager: Accounts, containers, tags, triggers, variables, and versions.
BigQuery: Run pre-built query templates against GMP export datasets.
BigQuery: Query GMP export data (GA4, Ads, GSC) with pre-built templates and custom SQL.
Recipe: GA4 funnel analysis via BigQuery — session_start → page_view → add_to_cart → checkout → purchase.
Google Ads: Campaign performance reports with date ranges and status filters.
Google Ads: Campaigns, ad groups, keywords, search terms, and raw GAQL queries.
| name | gmp-shared |
| version | 1.0.0 |
| description | gmp CLI: Shared patterns for authentication, global flags, and output formatting. |
| metadata | {"openclaw":{"category":"analytics","requires":{"bins":["gmp"]}}} |
npm install -g @lucianfialho/gmp-cli
Or from source:
git clone https://github.com/lucianfialho/gmp-cli.git
cd gmp-cli
npm install && npm run build && npm link
The gmp binary must be on $PATH.
# Browser-based OAuth (opens default browser)
gmp auth login
# Check auth status
gmp auth status
# Use your own OAuth credentials (optional)
gmp auth set-credentials --client-id YOUR_ID --client-secret YOUR_SECRET
# Logout
gmp auth logout
Tokens are stored in ~/.config/gmp-cli/tokens.json and auto-refresh.
Google Ads requires a developer token in addition to OAuth:
# Set developer token
gmp auth set-developer-token YOUR_TOKEN
# If using a Manager Account (MCC)
gmp auth set-login-customer-id 1234567890
| Flag | Description |
|---|---|
-f, --format <fmt> | Output format: json (default), table, csv |
| Format | Best for |
|---|---|
json | Piping to jq or feeding to AI agents |
table | Human-readable terminal output |
csv | Export to spreadsheets or other tools |
~/.config/gmp-cli/