p202 ppc-account list

List traffic sources (PPC accounts)

All commands

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 list

02What 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
$ 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
Real output · p202 1.9.77 · demo dataexit 0

03Build your command

Pick values and the command line writes itself, quoted and ready to paste.

p202 ppc-account list

Set flags below; the command updates as you type.

04Flags

6 flags, plus the global flags every command takes.

FlagWhat it does
--allboolFetch all rows across pages
--limit, -lstringMax results
--offset, -ostringPagination offset
--pagestringPage number
--ppc-network-idstringFilter by PPC network ID (from p202 ppc-network list)
--resolve-namesboolResolve 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, CLAUDECODE or another agent variable set, output is compact JSON and errors arrive on stderr as a JSON envelope with a hint.
  • Exit codes: 0 ok, 1 bad input, 2 auth, 3 network, 4 server error, 5 partial failure.
p202 commands ppc-account list --json
{
  "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
    }
  ]
}