01Jobs it does
Each one is a real command line. Copy it, or open it in the builder below to change it.
traffic source accounts
Also: ad accounts
p202 ppc-account list02What you get
Captured from the real binary, run against a demo store with 30 days of traffic. Switch tabs to see the same run as JSON, the shape scripts and agents parse.
$ p202 ppc-account list etag ppc_account_default ppc_account_id ppc_account_name ppc_network_id user_id version ------------------------------------------ ------------------- -------------- ------------------------ -------------- ------- ---------------------------------------- "0d8fe53fdbf7d492118574c713f498e07348ef94" 0 6 Podcast Sponsorship 3 1 0d8fe53fdbf7d492118574c713f498e07348ef94 "4eed8384f5a993b6521e044489bb8cf3f6f5c995" 0 5 Newsletter 3 1 4eed8384f5a993b6521e044489bb8cf3f6f5c995 "44bb195b3bb81ae2df1cd8a22463928aac0279ee" 0 4 Social Ads - Retargeting 2 1 44bb195b3bb81ae2df1cd8a22463928aac0279ee "90b0f1253e7560f476aeda8468adc57effe54ba8" 0 3 Social Ads - Prospecting 2 1 90b0f1253e7560f476aeda8468adc57effe54ba8 "b7f69dc98d7f6f816be00e4c69fe05008e541d11" 0 2 Search Ads - Shopping 1 1 b7f69dc98d7f6f816be00e4c69fe05008e541d11 "f0d7fcb66ca9d87e17967c259373b1fe922259b8" 0 1 Search Ads - Brand 1 1 f0d7fcb66ca9d87e17967c259373b1fe922259b8 Total: 6 | Limit: 50 | Offset: 0
$ p202 ppc-account list --json { "data": [ { "etag": "\"0d8fe53fdbf7d492118574c713f498e07348ef94\"", "ppc_account_default": 0, "ppc_account_id": 6, "ppc_account_name": "Podcast Sponsorship", "ppc_network_id": 3, "user_id": 1, "version": "0d8fe53fdbf7d492118574c713f498e07348ef94" }, { "etag": "\"4eed8384f5a993b6521e044489bb8cf3f6f5c995\"", "ppc_account_default": 0, "ppc_account_id": 5, "ppc_account_name": "Newsletter", "ppc_network_id": 3, "user_id": 1, "version": "4eed8384f5a993b6521e044489bb8cf3f6f5c995" }, { "etag": "\"44bb195b3bb81ae2df1cd8a22463928aac0279ee\"", "ppc_account_default": 0, "ppc_account_id": 4, "ppc_account_name": "Social Ads - Retargeting", "ppc_network_id": 2, "user_id": 1, "version": "44bb195b3bb81ae2df1cd8a22463928aac0279ee" }, { "etag": "\"90b0f1253e7560f476aeda8468adc57effe54ba8\"", "ppc_account_default": 0, "ppc_account_id": 3, "ppc_account_name": "Social Ads - Prospecting", "ppc_network_id": 2, "user_id": 1, "version": "90b0f1253e7560f476aeda8468adc57effe54ba8" }, { "etag": "\"b7f69dc98d7f6f816be00e4c69fe05008e541d11\"", "ppc_account_default": 0, "ppc_account_id": 2, "ppc_account_name": "Search Ads - Shopping", "ppc_network_id": 1, "user_id": 1, "version": "b7f69dc98d7f6f816be00e4c69fe05008e541d11" }, { "etag": "\"f0d7fcb66ca9d87e17967c259373b1fe922259b8\"", "ppc_account_default": 0, "ppc_account_id": 1, "ppc_account_name": "Search Ads - Brand", "ppc_network_id": 1, "user_id": 1, "version": "f0d7fcb66ca9d87e17967c259373b1fe922259b8" } ], "pagination": { "cursor": null, "cursor_expires_at": null, "limit": 50, "offset": 0, "total": 6 } }
03Build your command
Pick values and the command line writes itself, quoted and ready to paste.
p202 ppc-account listSet flags below; the command updates as you type.
04Flags
6 flags, plus the global flags every command takes.
| Flag | What it does |
|---|---|
| --allbool | Fetch all rows across pages |
| --limit, -lstring | Max results |
| --offset, -ostring | Pagination offset |
| --pagestring | Page number |
| --ppc-network-idstring | Filter by PPC network ID (from p202 ppc-network list) |
| --resolve-namesbool | Resolve foreign key IDs to names |
05For agents
Running this from an agent
- Read the same facts as JSON:
p202 commands ppc-account list --json. - With
AI_AGENT,CLAUDECODEor another agent variable set, output is compact JSON and errors arrive on stderr as a JSON envelope with ahint. - Exit codes: 0 ok, 1 bad input, 2 auth, 3 network, 4 server error, 5 partial failure.
{
"path": "p202 ppc-account list",
"use": "list",
"short": "List traffic sources (PPC accounts)",
"runnable": true,
"tasks": [
{
"run": "p202 ppc-account list",
"phrases": [
"traffic source accounts",
"ad accounts"
]
}
],
"flags": [
{
"name": "all",
"type": "bool",
"default": "false",
"usage": "Fetch all rows across pages",
"required": false
},
{
"name": "limit",
"shorthand": "l",
"type": "string",
"default": "",
"usage": "Max results",
"required": false
},
{
"name": "offset",
"shorthand": "o",
"type": "string",
"default": "",
"usage": "Pagination offset",
"required": false
},
{
"name": "page",
"type": "string",
"default": "",
"usage": "Page number",
"required": false
},
{
"name": "ppc-network-id",
"type": "string",
"default": "",
"usage": "Filter by PPC network ID (from `p202 ppc-network list`)",
"required": false
},
{
"name": "resolve-names",
"type": "bool",
"default": "false",
"usage": "Resolve foreign key IDs to names",
"required": false
}
]
}