frontity.settings.js
so that they will appear in a specific slot defined in your theme. See the Slot and Fill documentation for more information.google-ad-manager
package to your project:frontity.settings.js
file as one of the packages that will be part of your Frontity project.googleAdManager
namespace is an object which should be assigned to an arbitrarily named key. The structure should be as follows:slot
library
"googleAdManager.GooglePublisherTag"
(GooglePublisherTag
component available in the googleAdManager
package).priority
props
<Slot>
component (see table below)props
property<Slot>
component.id
id
for Ad, used to generate the ID the <div>
container will use.size
data
state.fills.googleAdManager
object it's own key:Slot & Fill
patternstate.fills.googleAdManager
namespace in frontity.settings.js
as explained above.libraries
, you can get the GooglePublisherTag
component from libraries
and render it wherever you wish.@frontity/google-ad-manager
package.