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
Copy file name to clipboardExpand all lines: README.md
+9-6Lines changed: 9 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -150,12 +150,15 @@ Any registered `Observer` will be called with the final authentication and subsc
150
150
* The subscription information gets validated as well on every token refresh.
151
151
152
152
### Counting an impression
153
-
154
-
To count an impression, call either the suspending function `countImpressionSuspending(context: Context)` or the compatibility function `countImpression(context: Context, callback: CountImpressionCallback)`.
155
-
156
-
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.
157
-
158
-
For an impression to be able to be counted, a user has to be authenticated and have an active subscription applicable to your scope.
153
+
To count an impression, call either the suspending function `countImpressionSuspending(context: Context)` or
154
+
the compatibility function `countImpression(context: Context, callback: CountImpressionCallback)`.
155
+
In both cases you'll need to supply a `Context` (i.e. an `Activity` or `Fragment`) so the login process can
156
+
be started again in case the user needs to login again.
157
+
158
+
These methods count impressions for billing purposes. This method must be invoked whenever a user views a piece
159
+
of content, independently of authentication state. If the current user is authenticated the impression will automatically
160
+
be logged as paid ad-free impression to calculate the publisher compensation. As the total amount of impressions is required
161
+
for billing as well, this method also counts sampled impressions of non-subscribers.
0 commit comments