Offerwall
The offerwall contains the UI to show the user the rewarded apps which he can install and use. It is contained in a separate activity.

Displaying the offerwall

To display the offerwall call
1
Adjoe.ShowOfferwall();
Copied!
This will launch the AdjoeActivity displaying the adjoe offerwall. If you need to know in advance whether the user will see the offerwall or not, you can call Adjoe.CanShowOfferwall(). This method will return if you can show the offerwall and false otherwise.
Before the user can interact with the partner apps on our offerwall, he has to accept the adjoe Terms of Service and grant your app permission to track the usage of other apps in his phone settings.
UA Parameters You can pass any additional UA parameters when you show the offerwall, which will be logged every time a user views or clicks a campaign:
1
AdjoeParams adjoeParams = new AdjoeParams();
2
adjoeParams.SetUaNetwork("network")
3
.SetUaChannel("Channel")
4
.SetUaSubPublisherCleartext("SubPublisherCleartext")
5
.SetUaSubPublisherEncrypted("SubPublisherEncrypted")
6
.SetPlacement("placement");
7
Adjoe.ShowOfferwall(adjoeParams)
Copied!

teaser_shown event

You should send the teaser_shown event when the user can see the teaser, e.g. the button via which he can access the adjoe SDK from the SDK App. Trigger this event when the teaser has been successfully rendered and would successfully redirect the user to the adjoe SDK. It should be triggered regardless of whether the user has actually clicked the teaser or not. This event is mostly appropriate for uses, in which the functionality of the SDK App and SDK are kept separate to a relevant degree.
1
Adjoe.SendUserEvent(Adjoe.EVENT_TEASER_SHOWN, adjoeParams);
Copied!

Best practices for teaser_shown event

It's always good to check if the offerwall can be shown to the user before showing the teaser button.
1
if (Adjoe.canShowOfferwall()) {
2
// Show the teaser button.
3
Adjoe.sendEvent(Adjoe.EVENT_TEASER_SHOWN, null, adjoeParams);
4
}
Copied!
Last modified 7mo ago