Skip to main content
Version: 2.6.0

Adtrace SDK for TWA

Trusted Web Activity (TWA) apps combine a native Android shell with a web UI. The native shell passes device IDs to the web layer; install, sessions, events, and callbacks run through the Adtrace Web SDK.

Before you begin, get your app token from the Adtrace panel.

For reference code, see the TWA example project.

Passing gps_adid from native to web is required

TWA has no native↔web bridge after launch. You must read the Google Advertising ID (gps_adid) on the native Android side and pass it to the Web SDK through the launch URL into initSdk. Without it, install attribution and Testing Console checks that use gps_adid will fail or be incomplete.

Guides​