This project is a demo of the integration of the Pocket Media Native Ads web library.
Method 1: custom configuration
This is the most flexible and versatile solution. It allows you to define and customize an ad unit - via a JSON configuration or with code.
In the example contained in the
custom-config folder you can see how to specify to the library which configuration you want to use (via the
ADLIB_OVERRIDES variable), and later, loading the library itself:
Method 2: ad builder
Via our Ad Builder Chrome extension it is possible to define visually the configuration for an ad unit. After its crreation, it will be stored in the server, so to load the ads you only need to include a reference to the script, indicating which ad placement you wish to load:
data-application-id value should not be 12345, but your application ID. The library will communicate with the backend to check which placements apply for your website, in the specific URL the user is visiting.
You can find this example in the