Ad network sw.js file to add to root on wordpress

Edd king

Junior Member
Joined
Apr 29, 2019
Messages
168
Reaction score
86
Hello,

I just registered with a native ad network, in order to display ads on my website they ask to add a js file to the root directory of my domain wich i did from cpanel file manager, i then copied the ad code in my page but it doesnt work, im quessing that its because i am using wordpress ?
Where should i put the sw.js file for wordpress to display ads, is there any tutorial please ?
 
Upload it to your public html folder.
thats what i did, but i cant see any ads, i uploaded the file to public-html and added the ad code to my wordpress page (insert - html) yet i cant see the ads.
 
Try to paste the code through theme editor. Paste into the header (maybe body. Ask your ad network if you're not sure).
 
Paste the ad code in header between <head> and </head> tag and put the SW.js file in public_html and then clear your cache.
 
you need to declare the js file.
I havent used wordpress for years so dont know if theres a way to add to head through a user interface.
Through html you need to add <script src="sw.js"></script> preferably inbetween your pages header tags
 
Upload to root via ftp
I am sure that Ad network should have support/clear instructions on how to do that
 
thanks guys, the network i use is evadav do they have banner ads ? wtf are push notifications native ads is it just some ad that shows up in mobile notifications ?
 
thanks guys, the network i use is evadav do they have banner ads ? wtf are push notifications native ads is it just some ad that shows up in mobile notifications ?

How come you have an account with them and have no idea what they do?
Have you tried opening their site reading...?
 
How come you have an account with them and have no idea what they do?
Have you tried opening their site reading...?
well i looked for adsense alternatives and found them there, i have a way to get alot of fb traffic, i just wanted a site to put ads on like adsense, i joined them but i cant find any banner ads to put on.
 
Back
Top