mirror of
https://github.com/crawlerop/lpads
synced 2026-08-13 14:02:32 +07:00
updated readme
This commit is contained in:
parent
eb846c017d
commit
1be85405cb
1 changed files with 10 additions and 1 deletions
11
README.md
11
README.md
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue