Inarticle iOS webview guide

Embedding an inarticle ad in iOS UIWebview

Adding an inarticle ad to a UIWebview in iOS is very straightforward. To be able to show an inarticle ad on an iPhone, be sure to set play inline media to YES.

webView.allowsInlineMediaPlayback = YES;

Place a javascript tag in the web page to show the inarticle ad on that position. (This is an example tag, get the proper embed tag from your VMS. Make sure the playout used has the setting "Force inView actions" enabled.)

<script  type="text/javascript" src=""></script>

Load the web page in the webview, and scroll down to the ad position.

NSURL *url = [[NSURL alloc] initWithString:@""];
NSURLRequest *request = [[NSURLRequest alloc] initWithURL:url];
[self.webView loadRequest:request];

You can download a working example app here: