Skip to main content

Implement ATS Direct

Once you create an ATS Direct configuration, you must integrate an existing ATS for Web configuration that is tied to the same placement with ATS Direct.

To create a new ATS for Web configuration, see Create an ATS Configuration.

Integrate ATS Direct with ATS for Web

When ATS Direct is implemented through ATS for Web, ATS Direct will send the ATS Envelope to LiveRamp and cache the matching segments in local storage to minimize latency on your website.

Procedure. To integrate ATS Direct with ATS for Web:
  1. Go to ATSWeb and select an ATS configuration.

  2. Select Integrations and then click New.

  3. Select ATS Direct.

  4. Click Publish.

You are now ready to start working with deals in Console. Optionally, you can use the existing ATS.js functions to retrieve matching segments.

Configuring Google Publisher Tag

If you're working with Google Ad Manager (GAM), you must add the ATS Direct key that is passed from the ATS Direct module to the Google Publisher Tag. The key will ensure that the segment IDs (values) are registered correctly in GAM. If you haven't yet, make sure you've created the ATS Direct key value in GAM.

You can also customize and generate ad tags from the GAM interface without having to edit code manually.

Procedure. To configure GPT for ATS Direct:
  1. Sign in to Google Ad Manager.

  2. Go to Inventory → Ad units.

  3. Find the ad unit to which you want to add the ATS Direct key and click its name to see details.

  4. Select the Tags tab on the ad unit details page.

  5. Enter "atsd" as a key value in the Page level key-values field.

    GPT.png

To learn more about key-value targeting with GPT, see Google's article "Use key-value targeting with GPT".

Code example:

<script async src="https://securepubads.g.doubleclick.net/tag/js/gpt.js"></script>
<script>
  window.googletag = window.googletag || {cmd: []};
  googletag.cmd.push(function() {
    googletag.defineSlot('/1234/liveramp_ros_segmentation', [[728, 90], [970, 250]], 'div-gpt-ad-1655556672-0').addService(googletag.pubads());
    googletag.pubads().enableSingleRequest();
    googletag.pubads().setTargeting('atsd', []);
    googletag.enableServices();
  });
</script>