01Jobs it does
Each one is a real command line. Copy it, or open it in the builder below to change it.
campaign performance
Also: stats per campaign
p202 report breakdown --breakdown campaignKeywords report
p202 report breakdown --breakdown keywordText Ads report
p202 report breakdown --breakdown text_adReferers report
p202 report breakdown --breakdown refererIPs report
p202 report breakdown --breakdown ipCountries report
p202 report breakdown --breakdown countryRegions report
p202 report breakdown --breakdown regionCities report
p202 report breakdown --breakdown cityISP/Carrier report
p202 report breakdown --breakdown ispLanding Pages report
p202 report breakdown --breakdown landing_pageDevices report
p202 report breakdown --breakdown deviceBrowsers report
p202 report breakdown --breakdown browserPlatforms report
p202 report breakdown --breakdown platformc1 c2 c3 c4
Also: custom variable breakdown
p202 report breakdown --breakdown c102What 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 breakdown --breakdown campaign --period last30 id name Clicks Clickthroughs Conversions Conv % Revenue Cost Profit ROI % EPC CPA Avg CPC -- ---------------------------- ------ ------------- ----------- ------ ------- ------ ------- --------- ------ ------- ------- 1 Spring Collection / US 787 787 25 3.1766 3532 356.45 3175.55 890.8823 4.4879 14.258 0.4529 2 Coffee Subscription / US 545 545 26 4.7706 988 214.97 773.03 359.599 1.8128 8.2681 0.3944 3 Standing Desk Launch / UK 438 438 5 1.1416 1907 424.30 1482.70 349.4461 4.3539 84.86 0.9687 4 Project Tool Pro Annual / US 308 308 13 4.2208 5244 499.20 4744.80 950.4808 17.026 38.40 1.6208 5 Free Trial to Paid / CA 298 298 15 5.0336 435 391.90 43.10 10.9977 1.4597 26.1267 1.3151 7 Holiday Gift Cards / AU 287 287 13 4.5296 1650 119.23 1530.77 1283.8799 5.7491 9.1715 0.4154 6 Bakery Pre-orders / Local 237 237 23 9.7046 1593 26.82 1566.18 5839.5973 6.7215 1.1661 0.1132
$ p202 report breakdown --breakdown campaign --period last30 --json { "available_breakdowns": [ "campaign", "aff_network", "ppc_account", "ppc_network", "landing_page", "keyword", "country", "city", "region", "browser", "platform", "device", "isp", "text_ad", "ip", "referer", "referer_url", "device_type", "c1", "c2", "c3", "c4", "utm_source", "utm_medium", "utm_campaign", "utm_term", "utm_content", "rotator", "rotator_rule" ], "breakdown": "campaign", "data": [ { "avg_cpc": 0.45292249, "conv_rate": 3.1766, "cpa": 14.258, "epc": 4.487928843, "id": 1, "name": "Spring Collection / US", "roi": 890.882311685, "total_click_throughs": 787, "total_clicks": 787, "total_cost": 356.45, "total_income": 3532, "total_leads": 25, "total_net": 3175.55 }, { "avg_cpc": 0.394440366, "conv_rate": 4.7706, "cpa": 8.268076923, "epc": 1.812844036, "id": 2, "name": "Coffee Subscription / US", "roi": 359.599013816, "total_click_throughs": 545, "total_clicks": 545, "total_cost": 214.97, "total_income": 988, "total_leads": 26, "total_net": 773.03 }, { "avg_cpc": 0.968721461, "conv_rate": 1.1416, "cpa": 84.86, "epc": 4.353881278, "id": 3, "name": "Standing Desk Launch / UK", "roi": 349.446146594, "total_click_throughs": 438, "total_clicks": 438, "total_cost": 424.3, "total_income": 1907, "total_leads": 5, "total_net": 1482.7 }, { "avg_cpc": 1.62077922, "conv_rate": 4.2208, "cpa": 38.4, "epc": 17.025974025, "id": 4, "name": "Project Tool Pro Annual / US", "roi": 950.480769231, "total_click_throughs": 308, "total_clicks": 308, "total_cost": 499.2, "total_income": 5244, "total_leads": 13, "total_net": 4744.8 }, { "avg_cpc": 1.315100671, "conv_rate": 5.0336, "cpa": 26.126666666, "epc": 1.459731543, "id": 5, "name": "Free Trial to Paid / CA", "roi": 10.997703496, "total_click_throughs": 298, "total_clicks": 298, "total_cost": 391.9, "total_income": 435, "total_leads": 15, "total_net": 43.1 }, { "avg_cpc": 0.41543554, "conv_rate": 4.5296, "cpa": 9.171538461, "epc": 5.749128919, "id": 7, "name": "Holiday Gift Cards / AU", "roi": 1283.879895999, "total_click_throughs": 287, "total_clicks": 287, "total_cost": 119.23, "total_income": 1650, "total_leads": 13, "total_net": 1530.77 }, { "avg_cpc": 0.113164556, "conv_rate": 9.7046, "cpa": 1.166086956, "epc": 6.721518987, "id": 6, "name": "Bakery Pre-orders / Local", "roi": 5839.597315436, "total_click_throughs": 237, "total_clicks": 237, "total_cost": 26.82, "total_income": 1593, "total_leads": 23, "total_net": 1566.18 } ] }
$ p202 report breakdown --breakdown campaign --period last30 --csv id,name,total_clicks,total_click_throughs,total_leads,conv_rate,total_income,total_cost,total_net,roi,epc,cpa,avg_cpc 1,Spring Collection / US,787,787,25,3.1766,3532,356.45,3175.55,890.882311685,4.487928843,14.258,0.45292249 2,Coffee Subscription / US,545,545,26,4.7706,988,214.97,773.03,359.599013816,1.812844036,8.268076923,0.394440366 3,Standing Desk Launch / UK,438,438,5,1.1416,1907,424.3,1482.7,349.446146594,4.353881278,84.86,0.968721461 4,Project Tool Pro Annual / US,308,308,13,4.2208,5244,499.2,4744.8,950.480769231,17.025974025,38.4,1.62077922 5,Free Trial to Paid / CA,298,298,15,5.0336,435,391.9,43.1,10.997703496,1.459731543,26.126666666,1.315100671 7,Holiday Gift Cards / AU,287,287,13,4.5296,1650,119.23,1530.77,1283.879895999,5.749128919,9.171538461,0.41543554 6,Bakery Pre-orders / Local,237,237,23,9.7046,1593,26.82,1566.18,5839.597315436,6.721518987,1.166086956,0.113164556
$ p202 report breakdown --breakdown campaign --period last30 --ndjson {"avg_cpc":0.45292249,"conv_rate":3.1766,"cpa":14.258,"epc":4.487928843,"id":1,"name":"Spring Collection / US","roi":890.882311685,"total_click_throughs":787,"total_clicks":787,"total_cost":356.45,"total_income":3532,"total_leads":25,"total_net":3175.55} {"avg_cpc":0.394440366,"conv_rate":4.7706,"cpa":8.268076923,"epc":1.812844036,"id":2,"name":"Coffee Subscription / US","roi":359.599013816,"total_click_throughs":545,"total_clicks":545,"total_cost":214.97,"total_income":988,"total_leads":26,"total_net":773.03} {"avg_cpc":0.968721461,"conv_rate":1.1416,"cpa":84.86,"epc":4.353881278,"id":3,"name":"Standing Desk Launch / UK","roi":349.446146594,"total_click_throughs":438,"total_clicks":438,"total_cost":424.3,"total_income":1907,"total_leads":5,"total_net":1482.7} {"avg_cpc":1.62077922,"conv_rate":4.2208,"cpa":38.4,"epc":17.025974025,"id":4,"name":"Project Tool Pro Annual / US","roi":950.480769231,"total_click_throughs":308,"total_clicks":308,"total_cost":499.2,"total_income":5244,"total_leads":13,"total_net":4744.8} {"avg_cpc":1.315100671,"conv_rate":5.0336,"cpa":26.126666666,"epc":1.459731543,"id":5,"name":"Free Trial to Paid / CA","roi":10.997703496,"total_click_throughs":298,"total_clicks":298,"total_cost":391.9,"total_income":435,"total_leads":15,"total_net":43.1} {"avg_cpc":0.41543554,"conv_rate":4.5296,"cpa":9.171538461,"epc":5.749128919,"id":7,"name":"Holiday Gift Cards / AU","roi":1283.879895999,"total_click_throughs":287,"total_clicks":287,"total_cost":119.23,"total_income":1650,"total_leads":13,"total_net":1530.77} {"avg_cpc":0.113164556,"conv_rate":9.7046,"cpa":1.166086956,"epc":6.721518987,"id":6,"name":"Bakery Pre-orders / Local","roi":5839.597315436,"total_click_throughs":237,"total_clicks":237,"total_cost":26.82,"total_income":1593,"total_leads":23,"total_net":1566.18}
$ p202 report breakdown --breakdown campaign --period last30 -q 1 2 3 4 5 7 6
Profit by campaign
Drawn from the JSON output above.
$ p202 report breakdown --breakdown ppc_account --period last30 id name Clicks Clickthroughs Conversions Conv % Revenue Cost Profit ROI % EPC CPA Avg CPC -- ------------------------ ------ ------------- ----------- ------ ------- ------ ------- --------- ------- ------- ------- 3 Social Ads - Prospecting 969 969 27 2.7864 2636 560.22 2075.78 370.5294 2.7203 20.7489 0.5781 2 Search Ads - Shopping 663 663 21 3.1674 4054 494.29 3559.71 720.1663 6.1146 23.5376 0.7455 1 Search Ads - Brand 524 524 31 5.916 4103 720.24 3382.76 469.6712 7.8302 23.2335 1.3745 4 Social Ads - Retargeting 286 286 14 4.8951 971 85.12 885.88 1040.7425 3.3951 6.08 0.2976 5 Newsletter 238 238 22 9.2437 2477 0 2477 0 10.4076 0 0 6 Podcast Sponsorship 220 220 5 2.2727 1108 173 935 540.4624 5.0364 34.60 0.7864
$ p202 report breakdown --breakdown ppc_account --period last30 --json { "available_breakdowns": [ "campaign", "aff_network", "ppc_account", "ppc_network", "landing_page", "keyword", "country", "city", "region", "browser", "platform", "device", "isp", "text_ad", "ip", "referer", "referer_url", "device_type", "c1", "c2", "c3", "c4", "utm_source", "utm_medium", "utm_campaign", "utm_term", "utm_content", "rotator", "rotator_rule" ], "breakdown": "ppc_account", "data": [ { "avg_cpc": 0.578142414, "conv_rate": 2.7864, "cpa": 20.748888888, "epc": 2.720330237, "id": 3, "name": "Social Ads - Prospecting", "roi": 370.529434865, "total_click_throughs": 969, "total_clicks": 969, "total_cost": 560.22, "total_income": 2636, "total_leads": 27, "total_net": 2075.78 }, { "avg_cpc": 0.745535444, "conv_rate": 3.1674, "cpa": 23.537619047, "epc": 6.114630467, "id": 2, "name": "Search Ads - Shopping", "roi": 720.166299136, "total_click_throughs": 663, "total_clicks": 663, "total_cost": 494.29, "total_income": 4054, "total_leads": 21, "total_net": 3559.71 }, { "avg_cpc": 1.374503816, "conv_rate": 5.916, "cpa": 23.233548387, "epc": 7.830152671, "id": 1, "name": "Search Ads - Brand", "roi": 469.671220704, "total_click_throughs": 524, "total_clicks": 524, "total_cost": 720.24, "total_income": 4103, "total_leads": 31, "total_net": 3382.76 }, { "avg_cpc": 0.297622377, "conv_rate": 4.8951, "cpa": 6.08, "epc": 3.395104895, "id": 4, "name": "Social Ads - Retargeting", "roi": 1040.742481203, "total_click_throughs": 286, "total_clicks": 286, "total_cost": 85.12, "total_income": 971, "total_leads": 14, "total_net": 885.88 }, { "avg_cpc": 0, "conv_rate": 9.2437, "cpa": 0, "epc": 10.407563025, "id": 5, "name": "Newsletter", "roi": 0, "total_click_throughs": 238, "total_clicks": 238, "total_cost": 0, "total_income": 2477, "total_leads": 22, "total_net": 2477 }, { "avg_cpc": 0.786363636, "conv_rate": 2.2727, "cpa": 34.6, "epc": 5.036363636, "id": 6, "name": "Podcast Sponsorship", "roi": 540.462427746, "total_click_throughs": 220, "total_clicks": 220, "total_cost": 173, "total_income": 1108, "total_leads": 5, "total_net": 935 } ] }
$ p202 report breakdown --breakdown country --period last30 id name Clicks Clickthroughs Conversions Conv % Revenue Cost Profit ROI % EPC CPA Avg CPC -- -------------- ------ ------------- ----------- ------ ------- ------ ------- --------- ------ ------- ------- 2 United States 1757 1757 88 5.0085 9371 938.64 8432.36 898.3593 5.3335 10.6664 0.5342 4 United Kingdom 451 451 9 1.9956 3299 489.10 2809.90 574.5042 7.3149 54.3444 1.0845 1 Canada 316 316 10 3.1646 1029 374.30 654.70 174.9132 3.2563 37.43 1.1845 3 Australia 292 292 13 4.4521 1650 119.23 1530.77 1283.8799 5.6507 9.1715 0.4083 5 Germany 84 84 0 0 0 111.60 -111.60 -100 0 0 1.3286
$ p202 report breakdown --breakdown country --period last30 --json { "available_breakdowns": [ "campaign", "aff_network", "ppc_account", "ppc_network", "landing_page", "keyword", "country", "city", "region", "browser", "platform", "device", "isp", "text_ad", "ip", "referer", "referer_url", "device_type", "c1", "c2", "c3", "c4", "utm_source", "utm_medium", "utm_campaign", "utm_term", "utm_content", "rotator", "rotator_rule" ], "breakdown": "country", "data": [ { "avg_cpc": 0.534228799, "conv_rate": 5.0085, "cpa": 10.666363636, "epc": 5.33352305, "id": 2, "name": "United States", "roi": 898.35932839, "total_click_throughs": 1757, "total_clicks": 1757, "total_cost": 938.64, "total_income": 9371, "total_leads": 88, "total_net": 8432.36 }, { "avg_cpc": 1.084478935, "conv_rate": 1.9956, "cpa": 54.344444444, "epc": 7.314855875, "id": 4, "name": "United Kingdom", "roi": 574.504191372, "total_click_throughs": 451, "total_clicks": 451, "total_cost": 489.1, "total_income": 3299, "total_leads": 9, "total_net": 2809.9 }, { "avg_cpc": 1.18449367, "conv_rate": 3.1646, "cpa": 37.43, "epc": 3.256329113, "id": 1, "name": "Canada", "roi": 174.913171253, "total_click_throughs": 316, "total_clicks": 316, "total_cost": 374.3, "total_income": 1029, "total_leads": 10, "total_net": 654.7 }, { "avg_cpc": 0.408321917, "conv_rate": 4.4521, "cpa": 9.171538461, "epc": 5.650684931, "id": 3, "name": "Australia", "roi": 1283.879895999, "total_click_throughs": 292, "total_clicks": 292, "total_cost": 119.23, "total_income": 1650, "total_leads": 13, "total_net": 1530.77 }, { "avg_cpc": 1.328571428, "conv_rate": 0, "cpa": 0, "epc": 0, "id": 5, "name": "Germany", "roi": -100, "total_click_throughs": 84, "total_clicks": 84, "total_cost": 111.6, "total_income": 0, "total_leads": 0, "total_net": -111.6 } ] }
03Build your command
Pick values and the command line writes itself, quoted and ready to paste.
p202 report breakdownSet flags below; the command updates as you type.
04Flags
30 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 |
| --breakdown, -bstring | Dimension (rows are one per stored value; clicks without one, e.g. no referer, are in report summary only): campaign, aff_network, ppc_account, ppc_network, landing_page, keyword, country, city, region, browser, platform, device, isp, text_ad, ip, referer, referer_url, device_type, c1, c2, c3, c4, utm_source, utm_medium, utm_campaign, utm_term, utm_content, rotator, rotator_rule (aliases: geo=country, lp=landing_page, network=aff_network, offer=campaign, referrer=referer, referrer_url=referer_url, rule=rotator_rule, source=ppc_account)campaignaff_networkppc_accountppc_networklanding_pagekeywordcountrycityregionbrowserplatformdeviceisptext_adiprefererreferer_urldevice_typec1c2c3c4utm_sourceutm_mediumutm_campaignutm_termutm_contentrotatorrotator_rulegeo → countrylp → landing_pagenetwork → aff_networkoffer → campaignreferrer → refererreferrer_url → referer_urlrule → rotator_rulesource → ppc_account |
| --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) |
| --group-bystring | Alias for --breakdown (matches analytics --group-by): campaign, aff_network, ppc_account, ppc_network, landing_page, keyword, country, city, region, browser, platform, device, isp, text_ad, ip, referer, referer_url, device_type, c1, c2, c3, c4, utm_source, utm_medium, utm_campaign, utm_term, utm_content, rotator, rotator_rule (aliases: geo=country, lp=landing_page, network=aff_network, offer=campaign, referrer=referer, referrer_url=referer_url, rule=rotator_rule, source=ppc_account)campaignaff_networkppc_accountppc_networklanding_pagekeywordcountrycityregionbrowserplatformdeviceisptext_adiprefererreferer_urldevice_typec1c2c3c4utm_sourceutm_mediumutm_campaignutm_termutm_contentrotatorrotator_rulegeo → countrylp → landing_pagenetwork → aff_networkoffer → campaignreferrer → refererreferrer_url → referer_urlrule → rotator_rulesource → ppc_account |
| --havingstring | Post-filter rows: FIELD OP NUMBER, FIELD a metric column or its alias, OP one of >= <= != = > < (e.g. 'total_leads=0', 'roi<0') |
| --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 |
| --limit, -lstring | Max results |
| --method-of-promotionstring | Only direct-link clicks or only landing-page clicks: directlink, landingpagedirectlinklandingpage |
| --min-clicksfloat64 | Only rows with at least N clicks |
| --min-costfloat64 | Only rows with at least $N cost |
| --offset, -ostring | Pagination offset |
| --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: 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)total_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: 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 |
| --zero-leadsbool | Only rows with cost > 0 and zero conversions (pure waste) |
05For agents
Running this from an agent
- Read the same facts as JSON:
p202 commands report breakdown --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, 6 no Pro licence on the install.
{
"path": "p202 report breakdown",
"use": "breakdown",
"short": "Get stats broken down by a dimension (campaign, traffic source, country, landing page, etc.)",
"runnable": true,
"tasks": [
{
"run": "p202 report breakdown --breakdown campaign",
"ui_pages": [
"Overview › Campaign Overview"
],
"phrases": [
"campaign performance",
"stats per campaign"
]
},
{
"run": "p202 report breakdown --breakdown keyword",
"ui_pages": [
"Analyze › Keywords"
]
},
{
"run": "p202 report breakdown --breakdown text_ad",
"ui_pages": [
"Analyze › Text Ads"
]
},
{
"run": "p202 report breakdown --breakdown referer",
"ui_pages": [
"Analyze › Referers"
]
},
{
"run": "p202 report breakdown --breakdown ip",
"ui_pages": [
"Analyze › IPs"
]
},
{
"run": "p202 report breakdown --breakdown country",
"ui_pages": [
"Analyze › Countries"
]
},
{
"run": "p202 report breakdown --breakdown region",
"ui_pages": [
"Analyze › Regions"
]
},
{
"run": "p202 report breakdown --breakdown city",
"ui_pages": [
"Analyze › Cities"
]
},
{
"run": "p202 report breakdown --breakdown isp",
"ui_pages": [
"Analyze › ISP/Carrier"
]
},
{
"run": "p202 report breakdown --breakdown landing_page",
"ui_pages": [
"Analyze › Landing Pages"
]
},
{
"run": "p202 report breakdown --breakdown device",
"ui_pages": [
"Analyze › Devices"
]
},
{
"run": "p202 report breakdown --breakdown browser",
"ui_pages": [
"Analyze › Browsers"
]
},
{
"run": "p202 report breakdown --breakdown platform",
"ui_pages": [
"Analyze › Platforms"
]
},
{
"run": "p202 report breakdown --breakdown c1",
"ui_pages": [
"Analyze › Custom Variables"
],
"phrases": [
"c1 c2 c3 c4",
"custom variable breakdown"
]
}
],
"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": "breakdown",
"shorthand": "b",
"type": "string",
"default": "",
"usage": "Dimension (rows are one per stored value; clicks without one, e.g. no referer, are in `report summary` only): campaign, aff_network, ppc_account, ppc_network, landing_page, keyword, country, city, region, browser, platform, device, isp, text_ad, ip, referer, referer_url, device_type, c1, c2, c3, c4, utm_source, utm_medium, utm_campaign, utm_term, utm_content, rotator, rotator_rule (aliases: geo=country, lp=landing_page, network=aff_network, offer=campaign, referrer=referer, referrer_url=referer_url, rule=rotator_rule, source=ppc_account)",
"allowed_values": [
"campaign",
"aff_network",
"ppc_account",
"ppc_network",
"landing_page",
"keyword",
"country",
"city",
"region",
"browser",
"platform",
"device",
"isp",
"text_ad",
"ip",
"referer",
"referer_url",
"device_type",
"c1",
"c2",
"c3",
"c4",
"utm_source",
"utm_medium",
"utm_campaign",
"utm_term",
"utm_content",
"rotator",
"rotator_rule"
],
"value_aliases": {
"geo": "country",
"lp": "landing_page",
"network": "aff_network",
"offer": "campaign",
"referrer": "referer",
"referrer_url": "referer_url",
"rule": "rotator_rule",
"source": "ppc_account"
},
"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": "group-by",
"type": "string",
"default": "",
"usage": "Alias for --breakdown (matches `analytics --group-by`): campaign, aff_network, ppc_account, ppc_network, landing_page, keyword, country, city, region, browser, platform, device, isp, text_ad, ip, referer, referer_url, device_type, c1, c2, c3, c4, utm_source, utm_medium, utm_campaign, utm_term, utm_content, rotator, rotator_rule (aliases: geo=country, lp=landing_page, network=aff_network, offer=campaign, referrer=referer, referrer_url=referer_url, rule=rotator_rule, source=ppc_account)",
"allowed_values": [
"campaign",
"aff_network",
"ppc_account",
"ppc_network",
"landing_page",
"keyword",
"country",
"city",
"region",
"browser",
"platform",
"device",
"isp",
"text_ad",
"ip",
"referer",
"referer_url",
"device_type",
"c1",
"c2",
"c3",
"c4",
"utm_source",
"utm_medium",
"utm_campaign",
"utm_term",
"utm_content",
"rotator",
"rotator_rule"
],
"value_aliases": {
"geo": "country",
"lp": "landing_page",
"network": "aff_network",
"offer": "campaign",
"referrer": "referer",
"referrer_url": "referer_url",
"rule": "rotator_rule",
"source": "ppc_account"
},
"required": false
},
{
"name": "having",
"type": "string",
"default": "",
"usage": "Post-filter rows: FIELD OP NUMBER, FIELD a metric column or its alias, OP one of >= <= != = > < (e.g. 'total_leads=0', 'roi<0')",
"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": "limit",
"shorthand": "l",
"type": "string",
"default": "",
"usage": "Max results",
"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": "min-clicks",
"type": "float64",
"default": "0",
"usage": "Only rows with at least N clicks",
"required": false
},
{
"name": "min-cost",
"type": "float64",
"default": "0",
"usage": "Only rows with at least $N cost",
"required": false
},
{
"name": "offset",
"shorthand": "o",
"type": "string",
"default": "",
"usage": "Pagination offset",
"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: 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": [
"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: 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
},
{
"name": "zero-leads",
"type": "bool",
"default": "false",
"usage": "Only rows with cost > 0 and zero conversions (pure waste)",
"required": false
}
]
}