palbaseDocs

Palbase IAP · API

GET/iap/experiments/{experiment_id}/results

Read an experiment's results

What each variant's audience did: 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 — and how many viewers made one; the conversion rate; what was paid for them to date, net of refunds, by currency; and each variant's chance to convert best. leader is the likeliest best, confident whether declaring it the winner is sound. A store's test purchases count only with sandbox=true (a development environment's are all test purchases).

Called by your server, with the project's secret key.

Path

experiment_idstring (uuid) · requiredThe experiment's id.

Query

window_daysinteger · optionalThe days after first seeing a variant a purchase counts for it (7 unless said).
sandboxboolean · optionalCount the stores' test purchases too.
curl
curl -X GET "https://<your-ref>.palbase.studio/iap/experiments/<experiment_id>/results" \
  -H "apikey: $PALBASE_SECRET_KEY"

Responses

200The results

400`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 experiment (`experiment_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 GetExperimentResults of iap's contract.