01Jobs it does
Each one is a real command line. Copy it, or open it in the builder below to change it.
traffic sources
Also: ad networks
p202 ppc-network 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-network list etag ppc_network_id ppc_network_name user_id version ------------------------------------------ -------------- ---------------- ------- ---------------------------------------- "f3eb1d2b94c1032c733552529905c2117e80904c" 3 Owned Media 1 f3eb1d2b94c1032c733552529905c2117e80904c "2f3b9676ca65da3e58a22e1f3702af8d2432f522" 2 Social 1 2f3b9676ca65da3e58a22e1f3702af8d2432f522 "b5c79e4e712591518fc05c00db3bcda7be97bb37" 1 Search 1 b5c79e4e712591518fc05c00db3bcda7be97bb37 Total: 3 | Limit: 50 | Offset: 0
$ p202 ppc-network list --json { "data": [ { "etag": "\"f3eb1d2b94c1032c733552529905c2117e80904c\"", "ppc_network_id": 3, "ppc_network_name": "Owned Media", "user_id": 1, "version": "f3eb1d2b94c1032c733552529905c2117e80904c" }, { "etag": "\"2f3b9676ca65da3e58a22e1f3702af8d2432f522\"", "ppc_network_id": 2, "ppc_network_name": "Social", "user_id": 1, "version": "2f3b9676ca65da3e58a22e1f3702af8d2432f522" }, { "etag": "\"b5c79e4e712591518fc05c00db3bcda7be97bb37\"", "ppc_network_id": 1, "ppc_network_name": "Search", "user_id": 1, "version": "b5c79e4e712591518fc05c00db3bcda7be97bb37" } ], "pagination": { "cursor": null, "cursor_expires_at": null, "limit": 50, "offset": 0, "total": 3 } }
03Build your command
Pick values and the command line writes itself, quoted and ready to paste.
p202 ppc-network listSet flags below; the command updates as you type.
04Flags
5 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 |
| --resolve-namesbool | Resolve foreign key IDs to names |
05For agents
Running this from an agent
- Read the same facts as JSON:
p202 commands ppc-network 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-network list",
"use": "list",
"short": "List traffic source networks (PPC networks)",
"runnable": true,
"tasks": [
{
"run": "p202 ppc-network list",
"ui_pages": [
"Setup › Traffic Sources"
],
"phrases": [
"traffic sources",
"ad networks"
]
}
],
"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": "resolve-names",
"type": "bool",
"default": "false",
"usage": "Resolve foreign key IDs to names",
"required": false
}
]
}