Skip to documentation
AdQuestDocs

Visit evidence

API type: visit. Attribute a visit to your destination URL.

On this page

Record the visit before completion

Start the quest without a timer. On the participant’s visit action, call client.visitQuest(id) and open its redirectUrl. This records the attributed visit. For web hosts, preserve the user gesture when opening a new tab to avoid popup blocking. For a WebView, handle the destination with the host’s URL policy.

Visit flow — client and config from the Quest evidence overview
await client.startQuest(questId, { requiresTimer: false });
const { redirectUrl } = await client.visitQuest(questId);
// Open redirectUrl through your web/native navigation handler.
// When the participant returns and requests completion:
const completion = await questRequest(config, questId, "complete");

Understand what is verified

  • Check that completion cannot succeed before the configured visit evidence.
  • Test a blocked popup, returning from an external app and a repeated visit.

Next steps

Something unclear, missing or wrong here? Tell us