Palbase IAP · API
/iap/placements/{placement}/resultsRead a placement's results by rule
What a placement's viewers did over its last days (30 unless said, at most 90), by where what they were shown came from: each rule — with the variant of the experiment it sent them to —, each variant of the experiment running for everyone there, the default; one source for each rule, variant and paywall the placement's exposures name. Each counts as an experiment's variants are counted: exposures and viewers (distinct subjects); the purchases the stores confirmed that its viewers made within window_days (7 unless said) after first seeing it — the ledger's, never what an app reports —, each counted once, for what its buyer saw first at the placement; how many viewers made one; the conversion rate; what was paid for them to date, net of refunds, by currency. The placement's rules come first, in their order and named; then the rules it no longer has (rule_current false, unnamed), the experiments' variants and the default, the newest shown first. A store's test purchases count only with sandbox=true (a development environment's are all test purchases). Counting that takes longer than 15 seconds is refused as busy (503 results_busy, Retry-After) rather than left running.
Called by your server, with the project's secret key.
Path
placementstring · requiredThe placement's key: the place in the app a paywall is shown, as the app names it.Query
daysinteger · optionalThe days of exposures the results look back over, to now (30 unless said).window_daysinteger · optionalThe days after first seeing what a source showed a purchase counts for it (7 unless said).sandboxboolean · optionalCount the stores' test purchases too.curl -X GET "https://<your-ref>.palbase.studio/iap/placements/<placement>/results" \
-H "apikey: $PALBASE_SECRET_KEY"Responses
200The results
400`days` is not 1 to 90 (`invalid_days`); `window_days` is not 1 to 90 (`invalid_window`); `sandbox` is not true or false (`invalid_request`)
401No key, not a key of this project, or a token that is not valid (the edge's answer)
403Not the project's secret key (`secret_key_required`)
404No such placement (`placement_not_found`)
429Over the project's request limit; Retry-After says when to try again
503Temporarily unavailable; retrying is safe after Retry-After
defaultAn error: the envelope names it (`error`) and explains it (`error_description`).
Operation GetPlacementResults of iap's contract.