FAQ
Common questions about TWA integration, device ID handoff, and install attribution.
Why is gps_adid empty on the web side?
| Cause | Fix |
|---|---|
| TWA launched before Ad ID returned | Wait for getGoogleAdId callback, then call launchTwa(). Keep shouldLaunchImmediately() as false. |
| Key mismatch native vs web | Use the same key (for example gps_adid) in appendQueryParameter and getQueryParam. |
initSdk runs after URL changed | Read query params on the first document load, before login redirects or client-side routing. |
| Login redirect on launch | If unauthenticated users redirect to /login, query params on the launch URL are lost. Persist gps_adid (sessionStorage / localStorage) on first load, or delay redirect until params are saved and passed to initSdk. |
| Opted out of ads | User may receive a zero ID; this is expected Google behavior. |
| Non-mobile test device | Use a physical mobile phone or an emulator with Google Play support. |