You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add this to your app's `build.gradle` file's `dependencies` element.
@@ -148,6 +148,45 @@ Any registered `Observer` will be called with the final authentication and subsc
148
148
* We refresh these tokens automatically in the background before they're invalidated.
149
149
* The subscription information gets validated as well on every token refresh.
150
150
151
+
### Counting an impression
152
+
153
+
To count an impression, call either the suspending function `countImpressionSuspending(context: Context)` or the compatibility function `countImpression(context: Context, callback: CountImpressionCallback)`.
154
+
155
+
In both cases you'll need to supply a `Context` (i.e. an `Activity` or `Fragment`) so the login process can be started again in case the user needs to login again.
156
+
157
+
For an impression to be able to be counted, a user has to be authenticated and have an active subscription applicable to your scope.
0 commit comments