@ff0000-ad-tech/cs-plugin-msnbc-apple-news
v1.0.2
Published
[](https://www.npmjs.com/package/@ff0000-ad-tech%2Fcs-plugin-msnbc-apple-news) [, be sure to build it to the dimension in points
- so for the 1242x699 size, build it in 414x233 instead b/c those are the dimensions of the iframe on that particular form factor
How It Works
The ad's main index.html has an iframe that renders the appropriate size creative based on the device (iPhone 5, 6, X, etc.) and orientation (i.e. landscape vs. portrait).
To enable clickthrough on iOS apps such as the Apple News app, we need to use an <a> with the href set to the clickthrough URL. The parent window has a message listener that waits for data that looks something like this:
{
// key-value pair this index uses to update clickTag
type: 'UPDATE_CLICKTAG',
// URL to set clickTag to
message: 'http://msnbc.com/something'
}In the Apple News Responsive Build Source (TODO), a postClickTagURL() function exists within the index.html which gets called in AdData.js. In AdData, you can call postClickTagURL() with the dynamic clickTag URL you need.
Usage
- In the Creative Server root interface:
- Select the two sizes you'll need for your responsive creative (e.g. 1242x699 and 2208x699 for the Large Banner's portrait and landscape orientations, respectively)
- In the Plugins dropdown, select MSNBC Apple News and hit the 🔥
- On the plugin page:
- Fill out the fields and choose the appropriate sizes for the landscape/portrait orientations
- Hit Render Ad when ready
- You will get a prompt telling you that the ads have been built successfully
- files will be in the
_apple-news-outputdirectory of project root- note about underscore in directory name: not having the underscore will cause a nested Creative Server to pop up
