WordPress Script Integration (Push Notifications)
It's fairly simple to integrate Adcash zone scripts into your WordPress website.
- You submit your website for validation in Adcash's publisher panel, and the Website has been validated.
- You create a zone for your website with the intended format.
When you have created a zone for your website, A script will be provided that must be inserted in your website.
Go to your WordPress admin dashboard,
Click Plugins > Add new
Search for Advanced Ads and install the plugin.
Click on Activate
Find your newly installed plugin in the dashboard menu and click on it.
Go to Ads and select New Ad.
Enter the title, choose Plain Text and Code and press Next.
Insert the script provided in the Adcash publisher's panel into the code box and press Next and Next again.
At this stage, your ad has been created. Now you need to insert your newly created Ad into your website.
Go to Placement and select New Placement.
Choose the placement type. Choose the position that is best for your requirements as well as the ad format you are inserting.
Give this placement a name. Choose the Ad name that you just created in the previous step.
Choose the Ad or Group. Choose the Ad from the Dropdown, for this placement.
Create file sw.js with the below content importScripts("https://superonclick.com/script/psw.min.js") and upload it to your webroot folder. Make sure it is accessible at https://xxxxxxxxxxxxxxx.com/sw.js
Adcash Js scripts are asynchronous which enables the tag to be loaded immediately when a web page is loaded, without affecting the user experience of the website for visitors.
Integration tutorial. (Push Notification)