01Run it
Replace the <placeholders> with your own values, or use the builder below.
p202 goal outcomes <id>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 goal outcomes 1 app_registration_id campaign_id conversion_id event_id goal_id ineligible_reason n outcome_id payable reached_at subject_id subject_type value value_note value_source version ------------------- ----------- ------------- ---------- ------- ----------------- - ---------- ------- ---------- ---------- ------------ ----- ----------------------- ------------ ------- 5 116 trial-224 1 1 1 false 1790776146 224 click not_payable_on_campaign none 1 5 117 trial-710 1 1 2 false 1789144270 710 click not_payable_on_campaign none 1 5 118 trial-746 1 1 3 false 1789229076 746 click not_payable_on_campaign none 1 5 119 trial-805 1 1 4 false 1791136270 805 click not_payable_on_campaign none 1 5 120 trial-940 1 1 5 false 1790877466 940 click not_payable_on_campaign none 1 5 121 trial-968 1 1 6 false 1791453986 968 click not_payable_on_campaign none 1 5 122 trial-1321 1 1 7 false 1791122525 1321 click not_payable_on_campaign none 1 5 123 trial-1372 1 1 8 false 1789066565 1372 click not_payable_on_campaign none 1 5 124 trial-1642 1 1 9 false 1790331165 1642 click not_payable_on_campaign none 1 5 125 trial-1899 1 1 10 false 1789846353 1899 click not_payable_on_campaign none 1 5 126 trial-2109 1 1 11 false 1790377123 2109 click not_payable_on_campaign none 1 5 127 trial-2150 1 1 12 false 1789732908 2150 click not_payable_on_campaign none 1 5 128 trial-1344 1 1 13 false 1789231239 1344 click not_payable_on_campaign none 1 5 129 trial-1707 1 1 14 false 1791012352 1707 click not_payable_on_campaign none 1 5 130 trial-1019 1 1 15 false 1789901888 1019 click not_payable_on_campaign none 1 5 131 trial-1287 1 1 16 false 1791108350 1287 click not_payable_on_campaign none 1 5 132 trial-997 1 1 17 false 1790808274 997 click not_payable_on_campaign none 1 5 133 trial-549 1 1 18 false 1791069619 549 click not_payable_on_campaign none 1 5 134 trial-1557 1 1 19 false 1790235984 1557 click not_payable_on_campaign none 1 5 135 trial-2479 1 1 20 false 1790681979 2479 click not_payable_on_campaign none 1 5 136 trial-2899 1 1 21 false 1791482993 2899 click not_payable_on_campaign none 1 5 137 trial-1260 1 1 22 false 1790866471 1260 click not_payable_on_campaign none 1 5 138 trial-646 1 1 23 false 1789875031 646 click not_payable_on_campaign none 1 5 139 trial-2895 1 1 24 false 1789818414 2895 click not_payable_on_campaign none 1 5 140 trial-2611 1 1 25 false 1789763139 2611 click not_payable_on_campaign none 1 5 141 trial-7 1 1 26 false 1788951958 7 click not_payable_on_campaign none 1 5 142 trial-1523 1 1 27 false 1791135379 1523 click not_payable_on_campaign none 1 5 143 trial-190 1 1 28 false 1789775613 190 click not_payable_on_campaign none 1 5 144 trial-2603 1 1 29 false 1789938359 2603 click not_payable_on_campaign none 1 5 145 trial-851 1 1 30 false 1789265372 851 click not_payable_on_campaign none 1 5 146 trial-992 1 1 31 false 1790854672 992 click not_payable_on_campaign none 1 5 147 trial-2632 1 1 32 false 1789616172 2632 click not_payable_on_campaign none 1 5 148 trial-1991 1 1 33 false 1790462858 1991 click not_payable_on_campaign none 1 5 149 trial-949 1 1 34 false 1790758867 949 click not_payable_on_campaign none 1 5 150 trial-1717 1 1 35 false 1791450300 1717 click not_payable_on_campaign none 1 5 151 trial-1704 1 1 36 false 1790780987 1704 click not_payable_on_campaign none 1 5 152 trial-565 1 1 37 false 1791046411 565 click not_payable_on_campaign none 1 5 153 trial-455 1 1 38 false 1790792820 455 click not_payable_on_campaign none 1 5 154 trial-2869 1 1 39 false 1790159127 2869 click not_payable_on_campaign none 1 5 155 trial-1414 1 1 40 false 1790575624 1414 click not_payable_on_campaign none 1 5 156 trial-2753 1 1 41 false 1790598769 2753 click not_payable_on_campaign none 1 5 157 trial-2457 1 1 42 false 1790442662 2457 click not_payable_on_campaign none 1 5 158 trial-1039 1 1 43 false 1790794164 1039 click not_payable_on_campaign none 1 5 159 trial-1148 1 1 44 false 1789810347 1148 click not_payable_on_campaign none 1 5 160 trial-371 1 1 45 false 1791311799 371 click not_payable_on_campaign none 1 Total: 45 | Limit: 50 | Offset: 0
$ p202 goal outcomes 1 --json { "data": [ { "app_registration_id": null, "campaign_id": 5, "conversion_id": 116, "event_id": "trial-224", "goal_id": 1, "ineligible_reason": null, "n": 1, "outcome_id": 1, "payable": false, "reached_at": 1790776146, "subject_id": 224, "subject_type": "click", "value": null, "value_note": "not_payable_on_campaign", "value_source": "none", "version": 1 }, { "app_registration_id": null, "campaign_id": 5, "conversion_id": 117, "event_id": "trial-710", "goal_id": 1, "ineligible_reason": null, "n": 1, "outcome_id": 2, "payable": false, "reached_at": 1789144270, "subject_id": 710, "subject_type": "click", "value": null, "value_note": "not_payable_on_campaign", "value_source": "none", "version": 1 }, { "app_registration_id": null, "campaign_id": 5, "conversion_id": 118, "event_id": "trial-746", "goal_id": 1, "ineligible_reason": null, "n": 1, "outcome_id": 3, "payable": false, "reached_at": 1789229076, "subject_id": 746, "subject_type": "click", "value": null, "value_note": "not_payable_on_campaign", "value_source": "none", "version": 1 }, { "app_registration_id": null, "campaign_id": 5, "conversion_id": 119, "event_id": "trial-805", "goal_id": 1, "ineligible_reason": null, "n": 1, "outcome_id": 4, "payable": false, "reached_at": 1791136270, "subject_id": 805, "subject_type": "click", "value": null, "value_note": "not_payable_on_campaign", "value_source": "none", "version": 1 }, { "app_registration_id": null, "campaign_id": 5, "conversion_id": 120, "event_id": "trial-940", "goal_id": 1, "ineligible_reason": null, "n": 1, "outcome_id": 5, "payable": false, "reached_at": 1790877466, "subject_id": 940, "subject_type": "click", "value": null, "value_note": "not_payable_on_campaign", "value_source": "none", "version": 1 }, { "app_registration_id": null, "campaign_id": 5, "conversion_id": 121, "event_id": "trial-968", "goal_id": 1, "ineligible_reason": null, "n": 1, "outcome_id": 6, "payable": false, "reached_at": 1791453986, "subject_id": 968, "subject_type": "click", "value": null, "value_note": "not_payable_on_campaign", "value_source": "none", "version": 1 }, { "app_registration_id": null, "campaign_id": 5, "conversion_id": 122, "event_id": "trial-1321", "goal_id": 1, "ineligible_reason": null, "n": 1, "outcome_id": 7, "payable": false, "reached_at": 1791122525, "subject_id": 1321, "subject_type": "click", "value": null, "value_note": "not_payable_on_campaign", "value_source": "none", "version": 1 }, { "app_registration_id": null, "campaign_id": 5, "conversion_id": 123, "event_id": "trial-1372", "goal_id": 1, "ineligible_reason": null, "n": 1, "outcome_id": 8, "payable": false, "reached_at": 1789066565, "subject_id": 1372, "subject_type": "click", "value": null, "value_note": "not_payable_on_campaign", "value_source": "none", "version": 1 }, { "app_registration_id": null, "campaign_id": 5, "conversion_id": 124, "event_id": "trial-1642", "goal_id": 1, "ineligible_reason": null, "n": 1, "outcome_id": 9, "payable": false, "reached_at": 1790331165, "subject_id": 1642, "subject_type": "click", "value": null, "value_note": "not_payable_on_campaign", "value_source": "none", "version": 1 }, { "app_registration_id": null, "campaign_id": 5, "conversion_id": 125, "event_id": "trial-1899", "goal_id": 1, "ineligible_reason": null, "n": 1, "outcome_id": 10, "payable": false, "reached_at": 1789846353, "subject_id": 1899, "subject_type": "click", "value": null, "value_note": "not_payable_on_campaign", "value_source": "none", "version": 1 }, { "app_registration_id": null, "campaign_id": 5, "conversion_id": 126, "event_id": "trial-2109", "goal_id": 1, "ineligible_reason": null, "n": 1, "outcome_id": 11, "payable": false, "reached_at": 1790377123, "subject_id": 2109, "subject_type": "click", "value": null, "value_note": "not_payable_on_campaign", "value_source": "none", "version": 1 }, { "app_registration_id": null, "campaign_id": 5, "conversion_id": 127, "event_id": "trial-2150", "goal_id": 1, "ineligible_reason": null, "n": 1, "outcome_id": 12, "payable": false, "reached_at": 1789732908, "subject_id": 2150, "subject_type": "click", "value": null, "value_note": "not_payable_on_campaign", "value_source": "none", "version": 1 }, { "app_registration_id": null, "campaign_id": 5, "conversion_id": 128, "event_id": "trial-1344", "goal_id": 1, "ineligible_reason": null, "n": 1, "outcome_id": 13, "payable": false, "reached_at": 1789231239, "subject_id": 1344, "subject_type": "click", "value": null, "value_note": "not_payable_on_campaign", "value_source": "none", "version": 1 }, { "app_registration_id": null, "campaign_id": 5, "conversion_id": 129, "event_id": "trial-1707", "goal_id": 1, "ineligible_reason": null, "n": 1, "outcome_id": 14, "payable": false, "reached_at": 1791012352, "subject_id": 1707, "subject_type": "click", "value": null, "value_note": "not_payable_on_campaign", "value_source": "none", "version": 1 }, { "app_registration_id": null, "campaign_id": 5, "conversion_id": 130, "event_id": "trial-1019", "goal_id": 1, "ineligible_reason": null, "n": 1, "outcome_id": 15, "payable": false, "reached_at": 1789901888, "subject_id": 1019, "subject_type": "click", "value": null, "value_note": "not_payable_on_campaign", "value_source": "none", "version": 1 }, { "app_registration_id": null, "campaign_id": 5, "conversion_id": 131, "event_id": "trial-1287", "goal_id": 1, "ineligible_reason": null, "n": 1, "outcome_id": 16, "payable": false, "reached_at": 1791108350, "subject_id": 1287, "subject_type": "click", "value": null, "value_note": "not_payable_on_campaign", "value_source": "none", "version": 1 }, { "app_registration_id": null, "campaign_id": 5, "conversion_id": 132, "event_id": "trial-997", "goal_id": 1, "ineligible_reason": null, "n": 1, "outcome_id": 17, "payable": false, "reached_at": 1790808274, "subject_id": 997, "subject_type": "click", "value": null, "value_note": "not_payable_on_campaign", "value_source": "none", "version": 1 }, { "app_registration_id": null, "campaign_id": 5, "conversion_id": 133, "event_id": "trial-549", "goal_id": 1, "ineligible_reason": null, "n": 1, "outcome_id": 18, "payable": false, "reached_at": 1791069619, "subject_id": 549, "subject_type": "click", "value": null, "value_note": "not_payable_on_campaign", "value_source": "none", "version": 1 }, { "app_registration_id": null, "campaign_id": 5, "conversion_id": 134, "event_id": "trial-1557", "goal_id": 1, "ineligible_reason": null, "n": 1, "outcome_id": 19, "payable": false, "reached_at": 1790235984, "subject_id": 1557, "subject_type": "click", "value": null, "value_note": "not_payable_on_campaign", "value_source": "none", "version": 1 }, { "app_registration_id": null, "campaign_id": 5, "conversion_id": 135, "event_id": "trial-2479", "goal_id": 1, "ineligible_reason": null, "n": 1, "outcome_id": 20, "payable": false, "reached_at": 1790681979, "subject_id": 2479, "subject_type": "click", "value": null, "value_note": "not_payable_on_campaign", "value_source": "none", "version": 1 }, { "app_registration_id": null, "campaign_id": 5, "conversion_id": 136, "event_id": "trial-2899", "goal_id": 1, "ineligible_reason": null, "n": 1, "outcome_id": 21, "payable": false, "reached_at": 1791482993, "subject_id": 2899, "subject_type": "click", "value": null, "value_note": "not_payable_on_campaign", "value_source": "none", "version": 1 }, { "app_registration_id": null, "campaign_id": 5, "conversion_id": 137, "event_id": "trial-1260", "goal_id": 1, "ineligible_reason": null, "n": 1, "outcome_id": 22, "payable": false, "reached_at": 1790866471, "subject_id": 1260, "subject_type": "click", "value": null, "value_note": "not_payable_on_campaign", "value_source": "none", "version": 1 }, { "app_registration_id": null, "campaign_id": 5, "conversion_id": 138, "event_id": "trial-646", "goal_id": 1, "ineligible_reason": null, "n": 1, "outcome_id": 23, "payable": false, "reached_at": 1789875031, "subject_id": 646, "subject_type": "click", "value": null, "value_note": "not_payable_on_campaign", "value_source": "none", "version": 1 }, { "app_registration_id": null, "campaign_id": 5, "conversion_id": 139, "event_id": "trial-2895", "goal_id": 1, "ineligible_reason": null, "n": 1, "outcome_id": 24, "payable": false, "reached_at": 1789818414, "subject_id": 2895, "subject_type": "click", "value": null, "value_note": "not_payable_on_campaign", "value_source": "none", "version": 1 }, { "app_registration_id": null, "campaign_id": 5, "conversion_id": 140, "event_id": "trial-2611", "goal_id": 1, "ineligible_reason": null, "n": 1, "outcome_id": 25, "payable": false, "reached_at": 1789763139, "subject_id": 2611, "subject_type": "click", "value": null, "value_note": "not_payable_on_campaign", "value_source": "none", "version": 1 }, { "app_registration_id": null, "campaign_id": 5, "conversion_id": 141, "event_id": "trial-7", "goal_id": 1, "ineligible_reason": null, "n": 1, "outcome_id": 26, "payable": false, "reached_at": 1788951958, "subject_id": 7, "subject_type": "click", "value": null, "value_note": "not_payable_on_campaign", "value_source": "none", "version": 1 }, { "app_registration_id": null, "campaign_id": 5, "conversion_id": 142, "event_id": "trial-1523", "goal_id": 1, "ineligible_reason": null, "n": 1, "outcome_id": 27, "payable": false, "reached_at": 1791135379, "subject_id": 1523, "subject_type": "click", "value": null, "value_note": "not_payable_on_campaign", "value_source": "none", "version": 1 }, { "app_registration_id": null, "campaign_id": 5, "conversion_id": 143, "event_id": "trial-190", "goal_id": 1, "ineligible_reason": null, "n": 1, "outcome_id": 28, "payable": false, "reached_at": 1789775613, "subject_id": 190, "subject_type": "click", "value": null, "value_note": "not_payable_on_campaign", "value_source": "none", "version": 1 }, { "app_registration_id": null, "campaign_id": 5, "conversion_id": 144, "event_id": "trial-2603", "goal_id": 1, "ineligible_reason": null, "n": 1, "outcome_id": 29, "payable": false, "reached_at": 1789938359, "subject_id": 2603, "subject_type": "click", "value": null, "value_note": "not_payable_on_campaign", "value_source": "none", "version": 1 }, { "app_registration_id": null, "campaign_id": 5, "conversion_id": 145, "event_id": "trial-851", "goal_id": 1, "ineligible_reason": null, "n": 1, "outcome_id": 30, "payable": false, "reached_at": 1789265372, "subject_id": 851, "subject_type": "click", "value": null, "value_note": "not_payable_on_campaign", "value_source": "none", "version": 1 }, { "app_registration_id": null, "campaign_id": 5, "conversion_id": 146, "event_id": "trial-992", "goal_id": 1, "ineligible_reason": null, "n": 1, "outcome_id": 31, "payable": false, "reached_at": 1790854672, "subject_id": 992, "subject_type": "click", "value": null, "value_note": "not_payable_on_campaign", "value_source": "none", "version": 1 }, { "app_registration_id": null, "campaign_id": 5, "conversion_id": 147, "event_id": "trial-2632", "goal_id": 1, "ineligible_reason": null, "n": 1, "outcome_id": 32, "payable": false, "reached_at": 1789616172, "subject_id": 2632, "subject_type": "click", "value": null, "value_note": "not_payable_on_campaign", "value_source": "none", "version": 1 }, { "app_registration_id": null, "campaign_id": 5, "conversion_id": 148, "event_id": "trial-1991", "goal_id": 1, "ineligible_reason": null, "n": 1, "outcome_id": 33, "payable": false, "reached_at": 1790462858, "subject_id": 1991, "subject_type": "click", "value": null, "value_note": "not_payable_on_campaign", "value_source": "none", "version": 1 }, { "app_registration_id": null, "campaign_id": 5, "conversion_id": 149, "event_id": "trial-949", "goal_id": 1, "ineligible_reason": null, "n": 1, "outcome_id": 34, "payable": false, "reached_at": 1790758867, "subject_id": 949, "subject_type": "click", "value": null, "value_note": "not_payable_on_campaign", "value_source": "none", "version": 1 }, { "app_registration_id": null, "campaign_id": 5, "conversion_id": 150, "event_id": "trial-1717", "goal_id": 1, "ineligible_reason": null, "n": 1, "outcome_id": 35, "payable": false, "reached_at": 1791450300, "subject_id": 1717, "subject_type": "click", "value": null, "value_note": "not_payable_on_campaign", "value_source": "none", "version": 1 }, { "app_registration_id": null, "campaign_id": 5, "conversion_id": 151, "event_id": "trial-1704", "goal_id": 1, "ineligible_reason": null, "n": 1, "outcome_id": 36, "payable": false, "reached_at": 1790780987, "subject_id": 1704, "subject_type": "click", "value": null, "value_note": "not_payable_on_campaign", "value_source": "none", "version": 1 }, { "app_registration_id": null, "campaign_id": 5, "conversion_id": 152, "event_id": "trial-565", "goal_id": 1, "ineligible_reason": null, "n": 1, "outcome_id": 37, "payable": false, "reached_at": 1791046411, "subject_id": 565, "subject_type": "click", "value": null, "value_note": "not_payable_on_campaign", "value_source": "none", "version": 1 }, { "app_registration_id": null, "campaign_id": 5, "conversion_id": 153, "event_id": "trial-455", "goal_id": 1, "ineligible_reason": null, "n": 1, "outcome_id": 38, "payable": false, "reached_at": 1790792820, "subject_id": 455, "subject_type": "click", "value": null, "value_note": "not_payable_on_campaign", "value_source": "none", "version": 1 }, { "app_registration_id": null, "campaign_id": 5, "conversion_id": 154, "event_id": "trial-2869", "goal_id": 1, "ineligible_reason": null, "n": 1, "outcome_id": 39, "payable": false, "reached_at": 1790159127, "subject_id": 2869, "subject_type": "click", "value": null, "value_note": "not_payable_on_campaign", "value_source": "none", "version": 1 }, { "app_registration_id": null, "campaign_id": 5, "conversion_id": 155, "event_id": "trial-1414", "goal_id": 1, "ineligible_reason": null, "n": 1, "outcome_id": 40, "payable": false, "reached_at": 1790575624, "subject_id": 1414, "subject_type": "click", "value": null, "value_note": "not_payable_on_campaign", "value_source": "none", "version": 1 }, { "app_registration_id": null, "campaign_id": 5, "conversion_id": 156, "event_id": "trial-2753", "goal_id": 1, "ineligible_reason": null, "n": 1, "outcome_id": 41, "payable": false, "reached_at": 1790598769, "subject_id": 2753, "subject_type": "click", "value": null, "value_note": "not_payable_on_campaign", "value_source": "none", "version": 1 }, { "app_registration_id": null, "campaign_id": 5, "conversion_id": 157, "event_id": "trial-2457", "goal_id": 1, "ineligible_reason": null, "n": 1, "outcome_id": 42, "payable": false, "reached_at": 1790442662, "subject_id": 2457, "subject_type": "click", "value": null, "value_note": "not_payable_on_campaign", "value_source": "none", "version": 1 }, { "app_registration_id": null, "campaign_id": 5, "conversion_id": 158, "event_id": "trial-1039", "goal_id": 1, "ineligible_reason": null, "n": 1, "outcome_id": 43, "payable": false, "reached_at": 1790794164, "subject_id": 1039, "subject_type": "click", "value": null, "value_note": "not_payable_on_campaign", "value_source": "none", "version": 1 }, { "app_registration_id": null, "campaign_id": 5, "conversion_id": 159, "event_id": "trial-1148", "goal_id": 1, "ineligible_reason": null, "n": 1, "outcome_id": 44, "payable": false, "reached_at": 1789810347, "subject_id": 1148, "subject_type": "click", "value": null, "value_note": "not_payable_on_campaign", "value_source": "none", "version": 1 }, { "app_registration_id": null, "campaign_id": 5, "conversion_id": 160, "event_id": "trial-371", "goal_id": 1, "ineligible_reason": null, "n": 1, "outcome_id": 45, "payable": false, "reached_at": 1791311799, "subject_id": 371, "subject_type": "click", "value": null, "value_note": "not_payable_on_campaign", "value_source": "none", "version": 1 } ], "pagination": { "limit": 50, "offset": 0, "total": 45 } }
03Build your command
Pick values and the command line writes itself, quoted and ready to paste.
p202 goal outcomesSet flags below; the command updates as you type.
04Flags
4 flags, plus the global flags every command takes.
| Flag | What it does |
|---|---|
| --limit, -lstring | Max results |
| --offset, -ostring | Pagination offset |
| --subject-idstring | Only this click (or install) |
| --subject-typestring | Only this kind of subject: click, installclickinstall |
05For agents
Running this from an agent
- Read the same facts as JSON:
p202 commands goal outcomes --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 goal outcomes",
"use": "outcomes <id>",
"short": "List a goal's live outcomes (each time a click or install reached it)",
"runnable": true,
"flags": [
{
"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": "subject-id",
"type": "string",
"default": "",
"usage": "Only this click (or install)",
"required": false
},
{
"name": "subject-type",
"type": "string",
"default": "",
"usage": "Only this kind of subject: click, install",
"allowed_values": [
"click",
"install"
],
"required": false
}
]
}