updated readme

This commit is contained in:
Crawlerop 2020-11-13 22:00:48 +07:00
parent eb846c017d
commit 1be85405cb

View file

@ -42,7 +42,16 @@ We also ported LPAds to JavaScript! To include in your site, add in your html fi
<script src="https://raw.githubusercontent.com/Crawlerop/lpads/main/lpadsjs/mapads.js" crossorigin=""></script>
```
If you want the examples, please click [here](https://crawlerop.github.io/lpads/lpadsjs/mapads_marker.html?localads=true)
We also have included the editor, please click the pencil button to start editing the ads.
We also have included the editor, please click the pencil button to start editing the ads. For advanced features, append &init=base64(script) and &event=base64(script). Where init script parameter is run on startup, and event script parameter is run on ad parsing. The typical script looks something like:
function (ad) {
if (ad.adName.search("eggs") != -1) {
ad.adName = "spam"
}
return ad
}
It only override the ad if the resulting event function is NOT null.
## Tracking
Locational ads depends on your interests. So ads may very on different account you are using.