Skip to main content
Which reporting tool should I use?
  • Aggregated stats (totals, trends, breakdowns) → run_performance_report or run_network_summary
  • Raw event records (individual clicks or conversions over a window) → search_clicks or search_conversions
  • Single event by ID (attribution troubleshooting, dispute resolution) → get_click or get_conversion

get_report_schema

Returns the complete list of valid dimension keys, filter keys, and metric names for run_performance_report. Call this first if you’re unsure which keys to use — the exact strings returned here are the accepted values for dimensions, filters, and sort_by. Parameters: None. Response fields:
FieldTypeDescription
columnsarrayValid dimension keys for the dimensions parameter
filtersarrayValid filter keys for the filters parameter
metricsarrayValid metric names for sort_by — also returned in every report row

run_performance_report

Queries aggregated performance data grouped by one or more dimensions. The primary tool for campaign analysis, partner comparison, and revenue reporting. Parameters:
ParameterTypeRequiredDescription
fromstringYesStart date (YYYY-MM-DD)
tostringYesEnd date (YYYY-MM-DD)
dimensionsstringYesComma-separated dimensions (see below) — max 256 chars
filtersstringNoComma-separated inclusive type:value pairs — e.g. offer:123,affiliate:456 — max 4,096 chars total; sub-param values (sub1sub5, adv1adv5, source_id) max 600 chars each. Match several IDs for one ID filter by separating them with | — e.g. offer:1|2|5. Only inclusive filters are supported — there is no exclusion syntax.
sort_bystringNoMetric name to sort by (see metrics accordion below) — max 128 chars
sort_directionstringNoasc or desc (default: desc) — max 8 chars
timezonestringNoIANA timezone name — max 64 chars
currencystringNoCurrency code (default: USD) — max 8 chars
page_sizenumberNoRows per page (1–100, default 50)
cursorstringNoPagination cursor from a prior response — max 1,024 chars
The filters parameter uses comma-separated type:value strings — for example offer:123,affiliate:456,country_code:US. To match multiple values for the same ID filter, separate them with a pipe — offer:1|2|5 returns all three offers in a single query instead of running a separate report per offer. This differs from list_entities, which accepts a JSON object. See the filters accordion below for all valid keys.
Response envelope:
run_performance_report uses total_rows (not total_matching) in its pagination envelope, which differs from list tools like list_offers and list_affiliates.
FieldTypeDescription
next_cursorstringPass as cursor to retrieve the next page. Absent when there are no further pages.
rows_returnednumberNumber of rows in this page
total_rowsnumberTotal rows matching the query across all pages
truncatedbooleantrue when the query matched more than 500 total rows — the result set is capped at 500 rows across all pages. Narrow your date range, add filters, or reduce the number of dimensions to get under the limit.
warningstringPresent when truncated is true — human-readable message describing the truncation.
When truncated is true, the agent is only seeing part of the data. To get complete results: narrow the date range, add more specific filters (e.g. a single affiliate or offer), or split the request into multiple smaller queries.
Pass one or more of these keys as a comma-separated dimensions string.Time
DimensionDescription
dateDay (YYYY-MM-DD)
hourHour of day (0–23)
hourlyFull datetime rounded to the hour
weekISO week
monthMonth (YYYY-MM)
yearYear
day_of_weekDay of week (0 = Sunday … 6 = Saturday)
Entities
DimensionDescription
offerOffer name
offer_idOffer ID
affiliateAffiliate name
affiliate_idAffiliate ID
advertiserAdvertiser name
advertiser_idAdvertiser ID
campaignSmart link / campaign name
campaign_idCampaign ID
creativeCreative name
creative_idCreative ID
offer_groupOffer group name
offer_group_idOffer group ID
offer_urlOffer URL
offer_statusOffer status
affiliate_statusAffiliate status
originating_offerOriginating offer in a redirect chain
categoryOffer category
networkNetwork identifier
source_idTraffic source ID
event_nameConversion event name
advertiser_event_nameAdvertiser-side event name
advertiser_campaign_nameAdvertiser campaign name
Geo
DimensionDescription
countryCountry name
country_codeISO 2-letter country code
regionRegion / state
cityCity
dmaDesignated market area (US only)
postal_codePostal code
Device & Technology
DimensionDescription
browserBrowser name
platformOS platform
device_typeDevice type (desktop, mobile, tablet)
device_makeDevice manufacturer
device_modelDevice model
os_versionOS version string
languageBrowser language
connection_typeConnection type (wifi, cellular, etc.)
carrierMobile carrier
ispInternet service provider
is_proxyWhether traffic came through a proxy
meta_platformMeta / Facebook platform
Tracking & Attribution
DimensionDescription
tracking_domainCustom tracking domain
transaction_idRaw transaction ID
attribution_methodAttribution method
order_idOrder ID passed on conversion
coupon_codeCoupon code
refererReferring URL
click_error_codeClick error code
conversion_error_codeConversion error code
People & Managers
DimensionDescription
affiliate_managerAffiliate manager name
account_managerAccount manager name
sales_managerSales manager name
account_executiveAccount executive name
customer_support_managerCustomer support manager name
admin_account_managerAdmin account manager name
Payout & Revenue
DimensionDescription
payout_typePayout model (CPA, CPC, etc.)
payout_amountPayout amount
revenue_typeRevenue model
revenue_amountRevenue amount
currencyCurrency code
custom_payout_revenueCustom payout/revenue rule name
custom_payout_revenue_idCustom payout/revenue rule ID
Sub-Parameters
DimensionDescription
sub1sub5Affiliate sub parameters (pass separately: sub1, sub2, …)
adv1adv5Advertiser sub parameters (pass separately: adv1, adv2, …)
App
DimensionDescription
project_idApp project ID
app_identifierApp identifier
bundle_idApp bundle ID
Pass filters as comma-separated inclusive type:value pairs — e.g. offer:123,affiliate:456,country_code:US. Only inclusive filters are supported — there is no exclusion syntax. status is not a supported filter or dimension on this tool; to filter conversions by status, use search_conversions instead.Multiple values (OR): for any ID filter, separate IDs with a pipe to match any of them in one query — offer:1|2|5 returns offers 1, 2, and 5 together. Repeating a key (offer:1,offer:2) does the same. Supported on the ID filters: offer, offer_group, affiliate, advertiser, creative, campaign, category, network, tracking_domain, channel. Prefer one multi-value query over many single-ID queries.Entities
FilterValue formatExample
offerNumeric offer IDoffer:123
offer_groupNumeric offer group IDoffer_group:45
affiliateNumeric affiliate IDaffiliate:678
advertiserNumeric advertiser IDadvertiser:99
creativeNumeric creative IDcreative:12
campaignNumeric campaign IDcampaign:7
categoryNumeric category IDcategory:3
networkNumeric network IDnetwork:1
source_idStringsource_id:google
event_nameStringevent_name:purchase
offer_urlNumeric URL IDoffer_url:8
offer_statusactive, paused, pending, deletedoffer_status:active
originating_offerNumeric offer IDoriginating_offer:123
transaction_id32-char hex stringtransaction_id:abc123...
error_codeNumeric error codeerror_code:0
coupon_codeStringcoupon_code:SUMMER20
tracking_domainNumeric domain IDtracking_domain:5
channelNumeric channel IDchannel:2
Georegion/city take internal numeric IDs; resolve a name to its ID with list_entities (type=region / type=city, and type=country for the country_id that scopes a region lookup).
FilterValue formatExample
countryISO 2-letter code (resolve names via list_entities type=country)country:US
country_codeISO 2-letter codecountry_code:US
regionNumeric region ID (resolve via list_entities type=region)region:1140
cityNumeric city ID (resolve via list_entities type=city, which requires region_id)city:534
Device & Technology
FilterValue formatExample
browserBrowser namebrowser:Chrome
device_typedesktop, mobile, tabletdevice_type:mobile
device_platformPlatform stringdevice_platform:iOS
device_makeManufacturer namedevice_make:Apple
device_modelModel namedevice_model:iPhone 15
carrierCarrier namecarrier:Verizon
languageBrowser language codelanguage:en-US
connection_typeConnection type stringconnection_type:wifi
People & Managers — numeric employee IDs; resolve a name with list_entities type=employee.
FilterValue formatExample
account_managerNumeric employee IDaccount_manager:55
affiliate_managerNumeric employee IDaffiliate_manager:12
sales_managerNumeric employee IDsales_manager:8
account_executiveNumeric employee IDaccount_executive:3
Sub-Parameters
FilterValue formatExample
sub1sub5Stringsub1:source_a
adv1adv5Stringadv1:campaign_x
Billing & Labels
FilterValue formatExample
labelLabel namelabel:top_affiliate
business_unitBusiness unit namebusiness_unit:retail
affiliate_tierTier nameaffiliate_tier:gold
billing_frequencyFrequency stringbilling_frequency:monthly
advertiser_billing_frequencyBilling frequencyadvertiser_billing_frequency:weekly
These are also the valid values for the sort_by parameter.Volume
MetricDescription
impressionsTotal impression count
gross_clicksAll clicks including duplicates
clicksValid clicks
unique_clicksDeduplicated clicks
duplicate_clicksDuplicate clicks within dedup window
invalid_clicksClicks flagged as invalid
conversionsApproved conversions
total_conversionsAll conversions regardless of status
eventsPost-conversion events
Revenue & Cost
MetricDescription
payoutTotal affiliate payout
revenueTotal advertiser revenue
profitRevenue minus payout
gross_salesGross sale amount
media_buying_costMedia buying cost
Rates & Efficiency
MetricDescription
ctrClick-through rate
cvrConversion rate
epcEarnings per click
rpcRevenue per click
cpaCost per action
cpcCost per click
cpmCost per thousand impressions
roasReturn on ad spend
marginProfit margin percentage

run_network_summary

Returns headline performance totals for a date range — no grouping, just aggregate numbers. Optionally includes a comparison against the prior equivalent period. Parameters:
ParameterTypeRequiredDescription
fromstringYesStart date (YYYY-MM-DD)
tostringYesEnd date (YYYY-MM-DD)
timezonestringNoIANA timezone name — max 64 chars
currencystringNoCurrency code (default: USD) — max 8 chars
includestringNocomparison — adds prior-period metrics for delta analysis — max 256 chars

search_clicks

Searches raw click events within a date-time window.
This tool is not paginated. It returns a single capped result set — at most 1,000 records, sorted by most recent first. The response includes a capped_at field indicating the ceiling. If you need aggregated counts instead of raw records, use run_performance_report.
Results are automatically filtered by affiliate visibility. If your account has a limited affiliate scope, rows for affiliates outside that scope are silently excluded. This may cause result counts to be lower than expected when querying without an affiliate_id filter.
Parameters:
ParameterTypeRequiredDescription
fromstringYesStart datetime (YYYY-MM-DD or YYYY-MM-DD HH:MM:SS)
tostringYesEnd datetime — maximum 14-day window from from
offer_idstringNoFilter by offer ID — max 64 chars
affiliate_idstringNoFilter by affiliate ID — max 64 chars
advertiser_idstringNoFilter by advertiser ID — max 64 chars
error_codestringNoFilter by error code — max 64 chars
countrystringNoFilter by 2-letter ISO country code — max 64 chars
sub1sub5stringNoFilter by sub parameter value — max 600 chars each
source_idstringNoFilter by traffic source ID — max 600 chars
Response envelope:
FieldTypeDescription
clicksarrayArray of click records (see fields below)
totalnumberNumber of records returned
capped_atnumberHard ceiling applied — always 1000
Per-record fields:
FieldTypeDescription
transaction_idstringTransaction ID
timestampstringClick datetime (UTC, YYYY-MM-DD HH:MM:SS)
offer_idnumberOffer ID
affiliate_idnumberAffiliate ID
advertiser_idnumberAdvertiser ID
error_codenumberError code (0 = no error)
is_uniquebooleanWhether this was a unique click
payoutnumberPayout amount
revenuenumberRevenue amount
currencystringCurrency code
countrystringCountry code (if present)
sub1sub5stringSub parameters (omitted if empty)
source_idstringTraffic source ID (omitted if empty)
campaign_idnumberCampaign ID (omitted if not set)

search_conversions

Searches conversion events within a date-time window.
This tool is not paginated. It returns a single capped result set — at most 500 records, sorted by most recent first. The response includes a capped_at field indicating the ceiling. For aggregated conversion counts, use run_performance_report.
Results are automatically filtered by affiliate visibility. If your account has a limited affiliate scope, rows for affiliates outside that scope are silently excluded. This may cause result counts to be lower than expected when querying without an affiliate_id filter.
Parameters:
The minimum reliable window is one full UTC day: YYYY-MM-DD 00:00:00 to YYYY-MM-DD 23:59:59. Windows shorter than a full UTC day may return an error.
ParameterTypeRequiredDescription
fromstringYesStart datetime (YYYY-MM-DD or YYYY-MM-DD HH:MM:SS). Use 00:00:00 for reliability.
tostringYesEnd datetime (YYYY-MM-DD or YYYY-MM-DD HH:MM:SS). Use 23:59:59 for reliability.
offer_idstringNoFilter by offer ID — max 64 chars
affiliate_idstringNoFilter by affiliate ID — max 64 chars
advertiser_idstringNoFilter by advertiser ID — max 64 chars
statusstringNoapproved, pending, rejected, invalid — max 64 chars
sub1sub5stringNoFilter by affiliate sub parameter value — max 600 chars each
adv1adv5stringNoFilter by advertiser sub parameter value — max 600 chars each
source_idstringNoFilter by traffic source ID — max 600 chars
countrystringNoFilter by 2-letter ISO country code — max 64 chars
Response envelope:
FieldTypeDescription
conversionsarrayArray of conversion records (see fields below)
totalnumberNumber of records returned
capped_atnumberHard ceiling applied — always 500
Per-record fields:
FieldTypeDescription
conversion_idstringConversion ID
transaction_idstringClick transaction ID
timestampstringConversion datetime (UTC, YYYY-MM-DD HH:MM:SS)
statusstringConversion status
offer_idnumberOffer ID
offer_namestringOffer name
affiliate_idnumberAffiliate ID
affiliate_namestringAffiliate name
payoutnumberPayout amount
revenuenumberRevenue amount
countrystringCountry code (if present)
sub1sub5stringSub parameters (omitted if empty)
order_idstringOrder ID (omitted if empty)
coupon_codestringCoupon code (omitted if empty)
is_scrubbooleanPresent and true if conversion was scrubbed

get_click

Looks up a single click event by transaction ID. Use this as the first step when a partner reports a missing click, tracking failure, or attribution dispute. Parameters:
ParameterTypeRequiredDescription
transaction_idstringYesThe 32-character transaction ID
Response fields:
FieldTypeDescription
transaction_idstringTransaction ID
timestampstringClick datetime (UTC, YYYY-MM-DD HH:MM:SS)
offer_idnumberOffer ID
offer_namestringOffer name
affiliate_idnumberAffiliate ID
affiliate_namestringAffiliate name
advertiser_idnumberAdvertiser ID
advertiser_namestringAdvertiser name
campaign_idnumberCampaign ID (omitted if not set)
error_codenumberError code (0 = no error)
error_messagestringHuman-readable error description
is_uniquebooleanWhether this was a unique click
is_view_throughbooleanView-through attribution flag
is_test_modebooleanWhether sent in test mode
payoutnumberPayout amount
revenuenumberRevenue amount
currencystringCurrency code
countrystringCountry code
regionstringRegion / state
citystringCity
browserstringBrowser name
platformstringOS platform
device_typestringDevice type
os_versionstringOS version
user_ipstringClient IP address
sub1sub5stringAffiliate sub parameters (omitted if empty)
source_idstringTraffic source ID (omitted if empty)
refererstringReferring URL (omitted if empty)
coupon_codestringCoupon code (omitted if empty)
has_conversionbooleanWhether this click resulted in a conversion
previous_transaction_idstringPrior click transaction ID in redirect chain (omitted if not set)

get_conversion

Looks up a single conversion event by conversion ID. Parameters:
ParameterTypeRequiredDescription
conversion_idstringYesThe unique conversion ID
Response fields:
FieldTypeDescription
conversion_idstringConversion ID
transaction_idstringOriginating click transaction ID
timestampstringConversion datetime (UTC, YYYY-MM-DD HH:MM:SS)
click_timestampstringOriginal click datetime (UTC)
statusstringConversion status (approved, pending, rejected, invalid)
error_codenumberError code (0 = no error)
error_messagestringHuman-readable error description
offer_idnumberOffer ID
offer_namestringOffer name
affiliate_idnumberAffiliate ID
affiliate_namestringAffiliate name
advertiser_idnumberAdvertiser ID
advertiser_namestringAdvertiser name
campaign_idnumberCampaign ID (omitted if not set)
payoutnumberAffiliate payout amount
revenuenumberAdvertiser revenue amount
sale_amountnumberGross sale amount (omitted if not set)
payout_typestringPayout model (e.g. cpa)
revenue_typestringRevenue model
currencystringCurrency code
event_idnumberConversion event ID
event_namestringConversion event name
order_idstringOrder ID (omitted if empty)
coupon_codestringCoupon code (omitted if empty)
is_scrubbooleantrue if the conversion was scrubbed
is_view_throughbooleanView-through attribution flag
countrystringCountry code
regionstringRegion / state
citystringCity
platformstringOS platform
device_typestringDevice type
browserstringBrowser name
os_versionstringOS version
sub1sub5stringAffiliate sub parameters (omitted if empty)
adv1adv5stringAdvertiser sub parameters (omitted if empty)
source_idstringTraffic source ID (omitted if empty)
refererstringReferring URL (omitted if empty)