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 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 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
$ p202 text-ad list --json { "data": [ { "aff_campaign_id": 1, "etag": "\"177385c19a50e62dda48dbd48d3e80098d383174\"", "landing_page_id": 0, "text_ad_description": "Breathable linen in eight colors. Free returns for 60 days.", "text_ad_display_url": "example.com/spring", "text_ad_headline": "Linen Shirts for Spring", "text_ad_id": 1, "text_ad_name": "Spring linen - search", "text_ad_type": 0, "user_id": 1, "version": "177385c19a50e62dda48dbd48d3e80098d383174" } ], "pagination": { "cursor": null, "cursor_expires_at": null, "limit": 50, "offset": 0, "total": 1 } }
03Build your command
Pick values and the command line writes itself, quoted and ready to paste.
p202 text-ad listSet flags below; the command updates as you type.
04Flags
6 flags, plus the global flags every command takes.
| Flag | What it does |
|---|---|
| --aff-campaign-idstring | Filter by campaign ID (from p202 campaign list) |
| --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 text-ad 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 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
}
]
}