p202 text-ad list

List text ads (ad creatives with headline, description, and display URL)

Web UISetup › Text Ads
All commands

01Jobs it does

Each one is a real command line. Copy it, or open it in the builder below to change it.

Text Ads

p202 text-ad list
Web UISetup › Text Ads

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 text-ad list
$ p202 text-ad list
aff_campaign_id  etag                                        landing_page_id  text_ad_description                         text_ad_display_url  text_ad_headline         text_ad_id  text_ad_name           text_ad_type  user_id  version
---------------  ------------------------------------------  ---------------  ------------------------------------------  -------------------  -----------------------  ----------  ---------------------  ------------  -------  ----------------------------------------
1                "177385c19a50e62dda48dbd48d3e80098d383174"  0                Breathable linen in eight colors. Free re…  example.com/spring   Linen Shirts for Spring  1           Spring linen - search  0             1        177385c19a50e62dda48dbd48d3e80098d383174
Total: 1 | 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 text-ad list

Set flags below; the command updates as you type.

04Flags

6 flags, plus the global flags every command takes.

FlagWhat it does
--aff-campaign-idstringFilter by campaign ID (from p202 campaign list)
--allboolFetch all rows across pages
--limit, -lstringMax results
--offset, -ostringPagination offset
--pagestringPage number
--resolve-namesboolResolve foreign key IDs to names

05For agents

Running this from an agent

  • Read the same facts as JSON: p202 commands text-ad 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 text-ad list --json
{
  "path": "p202 text-ad list",
  "use": "list",
  "short": "List text ads (ad creatives with headline, description, and display URL)",
  "runnable": true,
  "tasks": [
    {
      "run": "p202 text-ad list",
      "ui_pages": [
        "Setup › Text Ads"
      ]
    }
  ],
  "flags": [
    {
      "name": "aff-campaign-id",
      "type": "string",
      "default": "",
      "usage": "Filter by campaign ID (from `p202 campaign list`)",
      "required": false
    },
    {
      "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
    }
  ]
}