From 1be85405cb9113ca00aef923974e2bc7cd3efc0b Mon Sep 17 00:00:00 2001 From: Crawlerop Date: Fri, 13 Nov 2020 22:00:48 +0700 Subject: [PATCH] updated readme --- README.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 5c8929d..b267c43 100644 --- a/README.md +++ b/README.md @@ -42,7 +42,16 @@ We also ported LPAds to JavaScript! To include in your site, add in your html fi ``` 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.