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 UIWebView.

@property(nonatomic, weak) IBOutlet UIWebView *webview;

- (void) loadOffers
{
  [self.webview loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"https://www.adscendmedia.com/adwall/publisher/123456/profile/52415/preview?subid1=abc123"]]];
}

Implement UIWebViewDelegate methods to track the URL response status.

Privacy opt-out

If your app knows the user has opted out of the sale or sharing of their personal information, for example through your own consent platform, append privacy_opt_out=1 to the Offer Wall URL above, or, if you use a consent management platform, the user's GPP string in gpp (with gpp_sid). Market research offers and surveys, and offers that use the user's device ID, are then not shown to them. A request that carries the Sec-GPC: 1 header is honoured the same way, but a WebView does not reliably forward it, so passing the parameter yourself is the dependable option here. See the Offer Wall API documentation for details.

For users in the EEA and the UK, also append the user's IAB TCF v2 consent string in gdpr_consent and gdpr=1, as your consent management platform provides them. See EEA and UK consent.