01Jobs it does
Each one is a real command line. Copy it, or open it in the builder below to change it.
weekparting
Also: weekday performance
p202 report weekpart02What 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 report weekpart --period last30 Clicks Clickthroughs Conversions Conv % Revenue Cost Profit ROI % EPC CPA Avg CPC day_name day_of_week ------ ------------- ----------- ------ ------- ------ ------- -------- ------ ------- ------- -------- ----------- 357 357 16 4.4818 2652 251.39 2400.61 954.9346 7.4286 15.7119 0.7042 Mon 0 371 371 19 5.1213 2326 261.13 2064.87 790.7441 6.2695 13.7437 0.7039 Tue 1 437 437 16 3.6613 3328 339.97 2988.03 878.9099 7.6156 21.2481 0.778 Wed 2 519 519 16 3.0829 1795 363.76 1431.24 393.4572 3.4586 22.735 0.7009 Thu 3 410 410 23 5.6098 2407 261.60 2145.40 820.107 5.8707 11.3739 0.638 Fri 4 395 395 14 3.5443 1889 265.32 1623.68 611.9705 4.7823 18.9514 0.6717 Sat 5 412 412 17 4.1262 1440 289.81 1150.19 396.8773 3.4951 17.0476 0.7034 Sun 6
$ p202 report weekpart --period last30 --json { "data": [ { "avg_cpc": 0.704173669, "conv_rate": 4.4818, "cpa": 15.711875, "day_name": "Mon", "day_of_week": 0, "epc": 7.428571428, "roi": 954.934563825, "total_click_throughs": 357, "total_clicks": 357, "total_cost": 251.39, "total_income": 2652, "total_leads": 16, "total_net": 2400.61 }, { "avg_cpc": 0.703854447, "conv_rate": 5.1213, "cpa": 13.74368421, "day_name": "Tue", "day_of_week": 1, "epc": 6.269541778, "roi": 790.744073833, "total_click_throughs": 371, "total_clicks": 371, "total_cost": 261.13, "total_income": 2326, "total_leads": 19, "total_net": 2064.87 }, { "avg_cpc": 0.777963386, "conv_rate": 3.6613, "cpa": 21.248125, "day_name": "Wed", "day_of_week": 2, "epc": 7.61556064, "roi": 878.909903815, "total_click_throughs": 437, "total_clicks": 437, "total_cost": 339.97, "total_income": 3328, "total_leads": 16, "total_net": 2988.03 }, { "avg_cpc": 0.700886319, "conv_rate": 3.0829, "cpa": 22.735, "day_name": "Thu", "day_of_week": 3, "epc": 3.458574181, "roi": 393.457224544, "total_click_throughs": 519, "total_clicks": 519, "total_cost": 363.76, "total_income": 1795, "total_leads": 16, "total_net": 1431.24 }, { "avg_cpc": 0.63804878, "conv_rate": 5.6098, "cpa": 11.373913043, "day_name": "Fri", "day_of_week": 4, "epc": 5.870731707, "roi": 820.107033639, "total_click_throughs": 410, "total_clicks": 410, "total_cost": 261.6, "total_income": 2407, "total_leads": 23, "total_net": 2145.4 }, { "avg_cpc": 0.671696202, "conv_rate": 3.5443, "cpa": 18.951428571, "day_name": "Sat", "day_of_week": 5, "epc": 4.782278481, "roi": 611.970450776, "total_click_throughs": 395, "total_clicks": 395, "total_cost": 265.32, "total_income": 1889, "total_leads": 14, "total_net": 1623.68 }, { "avg_cpc": 0.70342233, "conv_rate": 4.1262, "cpa": 17.047647058, "day_name": "Sun", "day_of_week": 6, "epc": 3.495145631, "roi": 396.877264415, "total_click_throughs": 412, "total_clicks": 412, "total_cost": 289.81, "total_income": 1440, "total_leads": 17, "total_net": 1150.19 } ], "timezone": "America/New_York" }
Profit by day
- Mon
- Tue
- Wed
- Thu
- Fri
- Sat
- Sun
Drawn from the JSON output above; hover a column for its value. The highest is labeled.
$ p202 report weekpart Clicks Clickthroughs Conversions Conv % Revenue Cost Profit ROI % EPC CPA Avg CPC day_name day_of_week ------ ------------- ----------- ------ ------- ------ ------- -------- ------ ------- ------- -------- ----------- 357 357 16 4.4818 2652 251.39 2400.61 954.9346 7.4286 15.7119 0.7042 Mon 0 371 371 19 5.1213 2326 261.13 2064.87 790.7441 6.2695 13.7437 0.7039 Tue 1 437 437 16 3.6613 3328 339.97 2988.03 878.9099 7.6156 21.2481 0.778 Wed 2 519 519 16 3.0829 1795 363.76 1431.24 393.4572 3.4586 22.735 0.7009 Thu 3 410 410 23 5.6098 2407 261.60 2145.40 820.107 5.8707 11.3739 0.638 Fri 4 395 395 14 3.5443 1889 265.32 1623.68 611.9705 4.7823 18.9514 0.6717 Sat 5 412 412 17 4.1262 1440 289.81 1150.19 396.8773 3.4951 17.0476 0.7034 Sun 6
$ p202 report weekpart --json { "data": [ { "avg_cpc": 0.704173669, "conv_rate": 4.4818, "cpa": 15.711875, "day_name": "Mon", "day_of_week": 0, "epc": 7.428571428, "roi": 954.934563825, "total_click_throughs": 357, "total_clicks": 357, "total_cost": 251.39, "total_income": 2652, "total_leads": 16, "total_net": 2400.61 }, { "avg_cpc": 0.703854447, "conv_rate": 5.1213, "cpa": 13.74368421, "day_name": "Tue", "day_of_week": 1, "epc": 6.269541778, "roi": 790.744073833, "total_click_throughs": 371, "total_clicks": 371, "total_cost": 261.13, "total_income": 2326, "total_leads": 19, "total_net": 2064.87 }, { "avg_cpc": 0.777963386, "conv_rate": 3.6613, "cpa": 21.248125, "day_name": "Wed", "day_of_week": 2, "epc": 7.61556064, "roi": 878.909903815, "total_click_throughs": 437, "total_clicks": 437, "total_cost": 339.97, "total_income": 3328, "total_leads": 16, "total_net": 2988.03 }, { "avg_cpc": 0.700886319, "conv_rate": 3.0829, "cpa": 22.735, "day_name": "Thu", "day_of_week": 3, "epc": 3.458574181, "roi": 393.457224544, "total_click_throughs": 519, "total_clicks": 519, "total_cost": 363.76, "total_income": 1795, "total_leads": 16, "total_net": 1431.24 }, { "avg_cpc": 0.63804878, "conv_rate": 5.6098, "cpa": 11.373913043, "day_name": "Fri", "day_of_week": 4, "epc": 5.870731707, "roi": 820.107033639, "total_click_throughs": 410, "total_clicks": 410, "total_cost": 261.6, "total_income": 2407, "total_leads": 23, "total_net": 2145.4 }, { "avg_cpc": 0.671696202, "conv_rate": 3.5443, "cpa": 18.951428571, "day_name": "Sat", "day_of_week": 5, "epc": 4.782278481, "roi": 611.970450776, "total_click_throughs": 395, "total_clicks": 395, "total_cost": 265.32, "total_income": 1889, "total_leads": 14, "total_net": 1623.68 }, { "avg_cpc": 0.70342233, "conv_rate": 4.1262, "cpa": 17.047647058, "day_name": "Sun", "day_of_week": 6, "epc": 3.495145631, "roi": 396.877264415, "total_click_throughs": 412, "total_clicks": 412, "total_cost": 289.81, "total_income": 1440, "total_leads": 17, "total_net": 1150.19 } ], "timezone": "America/New_York" }
03Build your command
Pick values and the command line writes itself, quoted and ready to paste.
p202 report weekpartSet flags below; the command updates as you type.
04Flags
22 flags, plus the global flags every command takes.
| Flag | What it does |
|---|---|
| --aff-campaign-idstring | Filter by INTERNAL campaign id (from campaign list), not the public id in tracking URLs |
| --aff-network-idstring | Filter by affiliate network ID |
| --browser-idstring | Filter by browser ID (the id of a --breakdown browser row) |
| --country-idstring | Filter by country ID |
| --device-typestring | Filter by device type ID: 1 Desktop, 2 Mobile, 3 Tablet, 4 Bot (the ids of --breakdown device_type rows) |
| --ipstring | Only clicks from this one IP address, IPv4 or IPv6 |
| --isp-idstring | Filter by ISP/carrier ID (the id of a --breakdown isp row) |
| --keywordstring | Only clicks whose keyword contains this text (case-insensitive) |
| --landing-page-idstring | Filter by landing page ID |
| --method-of-promotionstring | Only direct-link clicks or only landing-page clicks: directlink, landingpagedirectlinklandingpage |
| --period, -pstring | Period: today, yesterday, last7, last14, last30, last90, thismonth, lastmonth, thisyear, lastyear, alltimetodayyesterdaylast7last14last30last90thismonthlastmonththisyearlastyearalltime |
| --platform-idstring | Filter by platform (OS) ID (the id of a --breakdown platform row) |
| --ppc-account-idstring | Filter by PPC account ID |
| --ppc-network-idstring | Filter by PPC network ID, or none for the clicks with no traffic source |
| --refererstring | Only clicks whose referring URL contains this text (case-insensitive) |
| --region-idstring | Filter by region ID (the id of a --breakdown region row) |
| --showstring | Which clicks count (default all): all, real, filtered, filtered_bot, leads; real = not filtered, filtered_bot = filtered as bots, leads = convertedallrealfilteredfiltered_botleads |
| --sort, -sstring | Sort by: day_of_week, total_clicks, total_click_throughs, total_leads, total_income, total_cost, total_net, epc, avg_cpc, conv_rate, roi, cpa (aliases: clicks=total_clicks, conversions=total_leads, cost=total_cost, income=total_income, leads=total_leads, net=total_net, profit=total_net, revenue=total_income)day_of_weektotal_clickstotal_click_throughstotal_leadstotal_incometotal_costtotal_netepcavg_cpcconv_rateroicpaclicks → total_clicksconversions → total_leadscost → total_costincome → total_incomeleads → total_leadsnet → total_netprofit → total_netrevenue → total_income |
| --sort-dirstring | Sort direction (also --sort-dir): ASC, DESCASCDESC |
| --text-ad-idstring | Filter by text ad ID |
| --time-fromstring | Start: unix seconds, a date (2026-10-01, from its first second in the account's timezone) or a time with its offset (2026-10-01T09:30:00Z) |
| --time-tostring | End, inclusive: unix seconds, a date (2026-10-01, through its last second in the account's timezone) or a time with its offset |
05For agents
Running this from an agent
- Read the same facts as JSON:
p202 commands report weekpart --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 report weekpart",
"use": "weekpart",
"short": "Get stats grouped by day of week (Mon-Sun) to find best-performing days",
"runnable": true,
"tasks": [
{
"run": "p202 report weekpart",
"ui_pages": [
"Overview › Week Parting"
],
"phrases": [
"weekparting",
"weekday performance"
]
}
],
"flags": [
{
"name": "aff-campaign-id",
"type": "string",
"default": "",
"usage": "Filter by INTERNAL campaign id (from `campaign list`), not the public id in tracking URLs",
"required": false
},
{
"name": "aff-network-id",
"type": "string",
"default": "",
"usage": "Filter by affiliate network ID",
"required": false
},
{
"name": "browser-id",
"type": "string",
"default": "",
"usage": "Filter by browser ID (the id of a `--breakdown browser` row)",
"required": false
},
{
"name": "country-id",
"type": "string",
"default": "",
"usage": "Filter by country ID",
"required": false
},
{
"name": "device-type",
"type": "string",
"default": "",
"usage": "Filter by device type ID: 1 Desktop, 2 Mobile, 3 Tablet, 4 Bot (the ids of `--breakdown device_type` rows)",
"required": false
},
{
"name": "ip",
"type": "string",
"default": "",
"usage": "Only clicks from this one IP address, IPv4 or IPv6",
"required": false
},
{
"name": "isp-id",
"type": "string",
"default": "",
"usage": "Filter by ISP/carrier ID (the id of a `--breakdown isp` row)",
"required": false
},
{
"name": "keyword",
"type": "string",
"default": "",
"usage": "Only clicks whose keyword contains this text (case-insensitive)",
"required": false
},
{
"name": "landing-page-id",
"type": "string",
"default": "",
"usage": "Filter by landing page ID",
"required": false
},
{
"name": "method-of-promotion",
"type": "string",
"default": "",
"usage": "Only direct-link clicks or only landing-page clicks: directlink, landingpage",
"allowed_values": [
"directlink",
"landingpage"
],
"required": false
},
{
"name": "period",
"shorthand": "p",
"type": "string",
"default": "",
"usage": "Period: today, yesterday, last7, last14, last30, last90, thismonth, lastmonth, thisyear, lastyear, alltime",
"allowed_values": [
"today",
"yesterday",
"last7",
"last14",
"last30",
"last90",
"thismonth",
"lastmonth",
"thisyear",
"lastyear",
"alltime"
],
"required": false
},
{
"name": "platform-id",
"type": "string",
"default": "",
"usage": "Filter by platform (OS) ID (the id of a `--breakdown platform` row)",
"required": false
},
{
"name": "ppc-account-id",
"type": "string",
"default": "",
"usage": "Filter by PPC account ID",
"required": false
},
{
"name": "ppc-network-id",
"type": "string",
"default": "",
"usage": "Filter by PPC network ID, or none for the clicks with no traffic source",
"required": false
},
{
"name": "referer",
"type": "string",
"default": "",
"usage": "Only clicks whose referring URL contains this text (case-insensitive)",
"required": false
},
{
"name": "region-id",
"type": "string",
"default": "",
"usage": "Filter by region ID (the id of a `--breakdown region` row)",
"required": false
},
{
"name": "show",
"type": "string",
"default": "",
"usage": "Which clicks count (default all): all, real, filtered, filtered_bot, leads; real = not filtered, filtered_bot = filtered as bots, leads = converted",
"allowed_values": [
"all",
"real",
"filtered",
"filtered_bot",
"leads"
],
"required": false
},
{
"name": "sort",
"shorthand": "s",
"type": "string",
"default": "",
"usage": "Sort by: day_of_week, total_clicks, total_click_throughs, total_leads, total_income, total_cost, total_net, epc, avg_cpc, conv_rate, roi, cpa (aliases: clicks=total_clicks, conversions=total_leads, cost=total_cost, income=total_income, leads=total_leads, net=total_net, profit=total_net, revenue=total_income)",
"allowed_values": [
"day_of_week",
"total_clicks",
"total_click_throughs",
"total_leads",
"total_income",
"total_cost",
"total_net",
"epc",
"avg_cpc",
"conv_rate",
"roi",
"cpa"
],
"value_aliases": {
"clicks": "total_clicks",
"conversions": "total_leads",
"cost": "total_cost",
"income": "total_income",
"leads": "total_leads",
"net": "total_net",
"profit": "total_net",
"revenue": "total_income"
},
"required": false
},
{
"name": "sort-dir",
"type": "string",
"default": "",
"usage": "Sort direction (also --sort-dir): ASC, DESC",
"allowed_values": [
"ASC",
"DESC"
],
"required": false
},
{
"name": "text-ad-id",
"type": "string",
"default": "",
"usage": "Filter by text ad ID",
"required": false
},
{
"name": "time-from",
"type": "string",
"default": "",
"usage": "Start: unix seconds, a date (2026-10-01, from its first second in the account's timezone) or a time with its offset (2026-10-01T09:30:00Z)",
"required": false
},
{
"name": "time-to",
"type": "string",
"default": "",
"usage": "End, inclusive: unix seconds, a date (2026-10-01, through its last second in the account's timezone) or a time with its offset",
"required": false
}
]
}