@frontity/smart-adserverpackage will load a third-party Smart Adserver library which adds certain properties on the global
windowobject. Then you as the developer can render the exposed
<SmartAd>component, which will use those properties to make the "ad call" (which are basically API calls to the Smart Adserver).
<SmartAd>component was rendered.
<Head>that loads the Smart Adserver library. When the user adds the
frontity.settings.jsfile, this library will be loaded automatically.
SmartAdcomponent. This component is exposed in
libraries.fills.SmartAdserver.SmartAd. The users can just use this component directly to display ads by passing it relevant props. The component takes care of calling the Smart Adserver API and injecting the ad into the DOM in the relevant place
frontity.settings.jsfile. Ads can be placed in specific slots in a theme by using that approach.
frontity.settings.jsfile as one of the packages that will be part of your Frontity project.
SmartAdcomponent available in the
<Slot>component (see table below)
idof the container that will contain the ad. Default Value:
Slot & Fillpattern
frontity.settings.jsas explained above.
libraries, you can get the
librariesand render it wherever you wish.