The Mediamethrics bridge has been built. Copy the snippet below, and paste it in the CustomData advanced settings.
const segmentsMR = [];
const xhr = new XMLHttpRequest();
xhr.onreadystatechange = function() {
if(this.readyState === 4) JSON.parse(xhr.response).forEach(item => {if(item.name && item.id) segmentsMR.push({label: item.name, value: item.id})});
}
xhr.open("GET", "https://customers.kameleoon.com/kameleoon/mediarithmics/segments/<ORGANISATION_ID>?artifact_id=local-storage", false);
xhr.send();
return segmentsMR;