forked from adobe/target-nodejs-sdk-samples
-
Notifications
You must be signed in to change notification settings - Fork 5
/
sampleRules.json
1 lines (1 loc) · 6.11 KB
/
sampleRules.json
1
{"version":"1.0.0","meta":{"clientCode":"adobesummit2018","generatedAt":"2020-05-11T17:50:11.470Z","environment":"waters_test"},"globalMbox":"target-global-mbox","responseTokens":["activity.id","activity.name","experience.name","experience.id","offer.name","offer.id","option.id","option.name"],"remoteMboxes":["target-global-mbox"],"rules":{"mboxes":{"demo-marketing-offer2":[{"meta":{"activityId":345967,"activityType":"ab","experienceId":0,"locationName":"demo-marketing-offer2","locationType":"mbox","locationId":0,"audienceIds":[],"offerIds":[645951]},"condition":{"<":[0,{"var":"allocation"},50]},"consequence":{"name":"demo-marketing-offer2","options":[{"type":"html","content":"<p class=\"lead\">Experience A</p>\n<img src=\"assets/demo-marketing-offer1-exp-A.png\" class=\"rounded offer\"/>","eventToken":"HZX7npD8JbNQHNmhqCQpPmqipfsIHvVzTQxHolz2IpSCnQ9Y9OaLL2gsdrWQTvE5D1i1VIvi6hLUaKBzNXfVcQ=="}],"metrics":[]}},{"meta":{"activityId":345967,"activityType":"ab","experienceId":1,"locationName":"demo-marketing-offer2","locationType":"mbox","locationId":0,"audienceIds":[],"offerIds":[645950]},"condition":{"<":[50,{"var":"allocation"},100]},"consequence":{"name":"demo-marketing-offer2","options":[{"type":"html","content":"<p class=\"lead\">Experience B</p>\n<img src=\"assets/demo-marketing-offer1-exp-B.png\" class=\"rounded offer\"/>","eventToken":"HZX7npD8JbNQHNmhqCQpPpNWHtnQtQrJfmRrQugEa2qCnQ9Y9OaLL2gsdrWQTvE5D1i1VIvi6hLUaKBzNXfVcQ=="}],"metrics":[]}}],"demo-marketing-offer1":[{"meta":{"activityId":345822,"activityType":"ab","experienceId":0,"locationName":"demo-marketing-offer1","locationType":"mbox","locationId":0,"audienceIds":[],"offerIds":[645820]},"condition":{"<":[0,{"var":"allocation"},50]},"consequence":{"name":"demo-marketing-offer1","options":[{"type":"json","content":{"experience":"A","asset":"demo-marketing-offer1-exp-A.png"},"eventToken":"y+HbeDWrMK/iSRu7CyIQU2qipfsIHvVzTQxHolz2IpSCnQ9Y9OaLL2gsdrWQTvE5D1i1VIvi6hLUaKBzNXfVcQ=="}],"metrics":[]}},{"meta":{"activityId":345822,"activityType":"ab","experienceId":1,"locationName":"demo-marketing-offer1","locationType":"mbox","locationId":0,"audienceIds":[],"offerIds":[645821]},"condition":{"<":[50,{"var":"allocation"},100]},"consequence":{"name":"demo-marketing-offer1","options":[{"type":"json","content":{"experience":"B","asset":"demo-marketing-offer1-exp-B.png"},"eventToken":"y+HbeDWrMK/iSRu7CyIQU5NWHtnQtQrJfmRrQugEa2qCnQ9Y9OaLL2gsdrWQTvE5D1i1VIvi6hLUaKBzNXfVcQ=="}],"metrics":[]}}],"demo-engineering-flags":[{"meta":{"activityId":345998,"activityType":"ab","experienceId":0,"locationName":"demo-engineering-flags","locationType":"mbox","locationId":0,"audienceIds":[],"offerIds":[646021]},"condition":{"<":[0,{"var":"allocation"},50]},"consequence":{"name":"demo-engineering-flags","options":[{"type":"json","content":{"cdnHostname":"cdn.cloud.corp.net","searchProviderId":"starwars","hasLegacyAccess":false},"eventToken":"kmRGKfY0vzeilGwqmXicO2qipfsIHvVzTQxHolz2IpSCnQ9Y9OaLL2gsdrWQTvE5D1i1VIvi6hLUaKBzNXfVcQ=="}],"metrics":[]}},{"meta":{"activityId":345998,"activityType":"ab","experienceId":1,"locationName":"demo-engineering-flags","locationType":"mbox","locationId":0,"audienceIds":[],"offerIds":[646020]},"condition":{"<":[50,{"var":"allocation"},100]},"consequence":{"name":"demo-engineering-flags","options":[{"type":"json","content":{"cdnHostname":"cdn.megacloud.corp.com","searchProviderId":"startrek","hasLegacyAccess":true},"eventToken":"kmRGKfY0vzeilGwqmXicO5NWHtnQtQrJfmRrQugEa2qCnQ9Y9OaLL2gsdrWQTvE5D1i1VIvi6hLUaKBzNXfVcQ=="}],"metrics":[]}}],"target-global-mbox":[{"meta":{"activityId":345975,"activityType":"ab","experienceId":0,"locationName":"target-global-mbox","locationType":"view","locationId":0,"audienceIds":[5661671],"offerIds":[]},"condition":{"and":[{"<":[0,{"var":"allocation"},50]},{"and":[{"==":["127.0.0.1",{"var":"page.domain"}]},{"==":["/",{"var":"page.path"}]}]}]},"consequence":{"name":"target-global-mbox","options":[{"type":"actions","content":[{"type":"setImageSource","selector":"#offer > IMG.rounded:eq(0)","cssSelector":"#offer > IMG:nth-of-type(1)","content":"assets/demo-marketing-offer1-exp-A.png"}],"eventToken":"5mFU2TowClLcgXz1gLRoLGqipfsIHvVzTQxHolz2IpSCnQ9Y9OaLL2gsdrWQTvE5D1i1VIvi6hLUaKBzNXfVcQ=="}],"metrics":[]}},{"meta":{"activityId":345975,"activityType":"ab","experienceId":0,"locationName":"target-global-mbox","locationType":"view","locationId":1,"audienceIds":[5661671],"offerIds":[]},"condition":{"and":[{"<":[0,{"var":"allocation"},50]},{"and":[{"==":["127.0.0.1",{"var":"page.domain"}]},{"==":["/",{"var":"page.path"}]}]}]},"consequence":{"name":"target-global-mbox","options":[{"type":"actions","content":[{"type":"setHtml","selector":"#offer > P.lead:eq(0)","cssSelector":"#offer > P:nth-of-type(1)","content":"Experience A"}],"eventToken":"5mFU2TowClLcgXz1gLRoLGqipfsIHvVzTQxHolz2IpSCnQ9Y9OaLL2gsdrWQTvE5D1i1VIvi6hLUaKBzNXfVcQ=="}],"metrics":[]}},{"meta":{"activityId":345975,"activityType":"ab","experienceId":1,"locationName":"target-global-mbox","locationType":"view","locationId":0,"audienceIds":[5661671],"offerIds":[]},"condition":{"and":[{"<":[50,{"var":"allocation"},100]},{"and":[{"==":["127.0.0.1",{"var":"page.domain"}]},{"==":["/",{"var":"page.path"}]}]}]},"consequence":{"name":"target-global-mbox","options":[{"type":"actions","content":[{"type":"setImageSource","selector":"#offer > IMG.rounded:eq(0)","cssSelector":"#offer > IMG:nth-of-type(1)","content":"assets/demo-marketing-offer1-exp-B.png"}],"eventToken":"5mFU2TowClLcgXz1gLRoLJNWHtnQtQrJfmRrQugEa2qCnQ9Y9OaLL2gsdrWQTvE5D1i1VIvi6hLUaKBzNXfVcQ=="}],"metrics":[]}},{"meta":{"activityId":345975,"activityType":"ab","experienceId":1,"locationName":"target-global-mbox","locationType":"view","locationId":1,"audienceIds":[5661671],"offerIds":[]},"condition":{"and":[{"<":[50,{"var":"allocation"},100]},{"and":[{"==":["127.0.0.1",{"var":"page.domain"}]},{"==":["/",{"var":"page.path"}]}]}]},"consequence":{"name":"target-global-mbox","options":[{"type":"actions","content":[{"type":"setHtml","selector":"#offer > P.lead:eq(0)","cssSelector":"#offer > P:nth-of-type(1)","content":"Experience B"}],"eventToken":"5mFU2TowClLcgXz1gLRoLJNWHtnQtQrJfmRrQugEa2qCnQ9Y9OaLL2gsdrWQTvE5D1i1VIvi6hLUaKBzNXfVcQ=="}],"metrics":[]}}]},"views":{}}}