Quest evidence
Streak evidence
API type: streak. Own-platform only. A day counts when your server reports the streak’s daily activity that day.
On this page
What you do
Report the streak’s daily activity from your server whenever the user does it. Sending it more than once a day is fine: a day counts once.
AdQuest counts one day per local day in the streak’s timezone, applies the missed-day rule (reset or freeze) and settles the reward on the last day.
Show progress with getStreakStatus(questId): currentDay, dayCount, unlocked, nextUnlockAt and lastCompletedDay.
Report today’s activity — using reportActivities from Report activities
await reportActivities([
{ id: "lesson_" + lessonId, type: "lesson.completed", user: externalUserId, occurred_at: Math.floor(Date.now() / 1000) },
]);Check before publishing
- Report twice on the same local day and check that one day counts.
- Skip a day and check that reset or freeze matches the quest.
- Check that only the last day pays the full reward.
- Send occurred_at as the real time of the action: it decides which local day counts.