Android
Offer Wall WebView Integration
Integrate Your Offer Wall
Launching an Offer Wall requires at least 3 parameters or data points: your publisher ID, the Offer Wall ID associated with an Offer Wall profile that you have created, and the unique ID of the user who is using the Offer Wall. The Offer Wall ID you use, along with your publisher ID, you should have retrieved on the last step of the previous page after having setup your Offer Wall profile.
Showing the Offer Wall
To display the offer wall, create an URL with the values you gathered above for PublisherID and OfferWallID, along with the end user's uniqueID for subId1. Append all the values to the URL below
https://www.adscendmedia.com/adwall/publisher/{publisherID}/profile/{OfferWallID}/preview?subid1={subId1}
eg. PublisherID = 123456, OfferWallID = 52415, subId1 = abc123, your URL will look like this
https://www.adscendmedia.com/adwall/publisher/123456/profile/52415/preview?subid1=abc123
Now, load the created URL into WebView and you should see the desired OfferWall. Handle the navigations(back/forward) as desired.
Following is the code snippet showing how you can load URL into the WebView.
private void loadOffers() { Intent intent = new Intent(this, WebWiewActivity.class); intent.putExtra("OfferWallWebViewUrl","https://www.adscendmedia.com/adwall/publisher/123456/profile/52415/preview?subid1=abc123"); startActivity(intent); }
Use webView.setWebViewClient() and override its methods to track URL response status.