Installing ATS.js
This Version of ATS.js is Going to be DeprecatedWe are focusing our future development on version 2.0 of ATS.js. To make sure you continue to be able to use ATS, please transition to version 2 as soon as possible. We know this can be a hassle, and we apologize for the inconvenience. See Migrate to Version 2 of ATS.js to learn more or talk to one of our representatives.
An ats.js installation runs alongside prebid.js. ATS provides envelopes into demand using a UserID submodule and compatible adapters. ATS can also run in proprietary or custom wrappers as an external dependency.
Add the ATS script
Add the following script just before the closing </body> tag to ensure that the page is fully rendered and ready for user interaction.
<script>
var atsScript = document.createElement('script');
atsScript.onload = function() {
window.ats.start({
"placementID": REPLACE_ME,
"storageType": "localStorage",
"detectionType": "scrapeAndUrl",
"urlParameter": "env",
"cssSelectors": [
"input[type=text]",
"input[type=email]"
],
"logging": "error"
});
};
atsScript.src = 'https://ats.rlcdn.com/ats.js';
document.body.appendChild(atsScript);
</script>To make envelopes available to demand, you must start ATS using a valid configuration object. The example above will automatically detect valid identifiers entered into input fields of type "text" or "email". If possible, dynamically pass a user identifier into the configuration object rather than relying on detection.
About theplacementIDYou must update the
placementIDfromREPLACE_MEto valid placementID provided by LiveRamp. Contact us at [email protected] if you require a placementID.
For more information and instructions to create this configuration objection, see LINK TO THE CORRECT SECTION.
Updated 2 days ago