UNPKG

@frontity/smart-adserver

Version:

Integrate your Frontity site with Smart Adserver

97 lines (72 loc) โ€ข 4.69 kB
# `@frontity/smart-adserver` [![Version](https://img.shields.io/npm/v/@frontity/smart-adserver.svg)](https://www.npmjs.com/package/@frontity/smart-adserver) [![npm](https://img.shields.io/npm/dw/@frontity/smart-adserver)](https://www.npmjs.com/package/@frontity/smart-adserver) [![License: Apache--2.0](https://img.shields.io/badge/license-Apache%202-lightgrey)](https://github.com/frontity/frontity/blob/master/LICENSE) A package that integrates [Smart AdServer](https://smartadserver.com/) with Frontity. ## Install ```sh npm i @frontity/smart-adserver ``` ## Usage You can configure this package by passing some parameter to its state. For example: **`frontity.settings.js`** ```js export default { packages: [ { name: "@frontity/smart-adserver", state: { // Global settings. smartAdserver: { networkId: 620, subdomain: "www8" }, // Fills with ads. fills: { smartads1: { slot: "Below Header", library: "SmartAd", props: {, siteId: 103409, pageId: 659846, formatId: 14968, tagId: "below-header-14968", width: 300, height: 600 } }, smartads2: { slot: "Below Content", library: "SmartAd", props: { siteId: 103409, pageId: 659846, formatId: 14968, tagId: "below-content-14968", width: 300, height: 600 } } } } } ] } ``` More info about how to use this package can be found in the [Feature Discussion](https://community.frontity.org/t/smart-adserver/1586/). ## Feature Discussions [**Feature Discussions**](https://community.frontity.org/c/feature-discussions/33) about Frontity are public. You can join the discussions, vote for those you're interested in or create new ones. ## Changelog Have a look at the latest updates of this package in the [CHANGELOG](CHANGELOG.md) --- ### ยป Open Source Community [![Community Forum Topics](https://img.shields.io/discourse/topics?color=blue&label=community%20forum&server=https%3A%2F%2Fcommunity.frontity.org%2F)](https://community.frontity.org/) [![Twitter: frontity](https://img.shields.io/twitter/follow/frontity.svg?style=social)](https://twitter.com/frontity) ![Frontity Github Stars](https://img.shields.io/github/stars/frontity/frontity?style=social) Frontity has a number of different channels at your disposal where you can find out more information about the project, join in discussions about it, and also get involved: - **๐Ÿ“– [Docs](https://docs.frontity.org/):** our primary documentation resource - this is the place to learn how to build amazing sites with Frontity. * **๐Ÿ‘จโ€๐Ÿ‘ฉโ€๐Ÿ‘งโ€๐Ÿ‘ฆ [Community forum](https://community.frontity.org/):** join Frontity's forum and ask questions, share your knowledge, give feedback and meet other cool Frontity people. We'd also love to know about what you're building with Frontity, so please do swing by the [forum](https://community.frontity.org/) and tell us about your projects. * **๐Ÿž Contribute:** Frontity uses [GitHub](https://github.com/frontity/frontity) for bugs and pull requests. See our [Contributing](../../CONTRIBUTING.md/) section to find out how you can help develop Frontity, or improve this documentation. * **๐Ÿ—ฃ Social media**: interact with other Frontity users. Reach out to the Frontity team on [Twitter](https://twitter.com/frontity). Mention us in your tweets about Frontity and what you're building by using **`@frontity`**. * ๐Ÿ’Œ **Newsletter:** do you want to receive the latest news about Frontity and find out as soon as there's an update to the framework? Subscribe to our [newsletter](https://frontity.org/newsletter/). ### ยป Get involved ๐Ÿค— [![GitHub issues by-label](https://img.shields.io/github/issues/frontity/frontity/good%20first%20issue)](https://github.com/frontity/frontity/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22) Got questions or feedback about Frontity? We'd love to hear from you in our [community forum](https://community.frontity.org). Frontity also welcomes contributions. There are many ways to support the project! If you don't know where to start then this guide might help: [How to contribute?](https://docs.frontity.org/contributing/how-to-contribute). If you would like to start contributing to the code please open a pull request to address one of our [_good first issues_](https://github.com/frontity/frontity/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22).