Dynamic Creative Optimization (DCO) Implementation

Dynamic Creative Optimization (DCO) is an automated rule-based approach to advertising that generates unique creatives on demand. DCO ads take in data like time, location, device, weather, ad placement, and retargeting data to automatically produce creatives. These automatically produced ads allow multivariate testing and can be extremely cost-effective at generating very high ROI.

DCO Implementation with Salesforce Audience Studio involves these general steps:

  1. Audience Studio clients set their segments to be available "On Site" in the Audience Studio UI.
  2. Audience Studio or client provides client-specific JavaScript URLs to execute per browser impression.
  3. Verify the implementation with web browser Developer Tools.
  4. Modify your ad tag with Audience Studio segments.

Set Segments Available "On Site"

When a client sets an Audience Studio Segment available "On Site", that segment ID is available to be written to the browser. Please work with the Audience Studio client to ensure that at least one segment is marked "On Site" for testing. The client should provide the segment ID to the DCO vendor for testing.

The Client may wish to provide the DCO Vendor with an audience segment mapping document to match the Audience Studio Audience Segment Names to their Audience Studio Audience Segment IDs.

Example Segment Mapping Document

Audience Studio Audience Segment Name Audience Studio Audience Segment ID/Value
150k_Auto_intender pzqs7s853
Auto Intender oaljv8e66

Provide Client Specific JavaScript URLs

Contact the Salesforce Audience Studio Support team at kruxhelp@krux.com to receive a custom Audience Studio API endpoint. Note that there will be a unique endpoint per client-DCO implementation.

Example Audience Studio API endpoint:


Verify the Implementation

To verify the implementation, associate yourself with a segment and check that the segment is returned. Note that Audience Studio or the client can provide the pub ID to insert in the URLs in steps 1 and 2, as well as the segment_ID that is enabled for "On-Site":

  1. Enter the URL
    in your browser.

  2. Check that you are returned in the segment

    You should see the segment_ID returned in the call, as well as any other segments enabled for "On-Site" that you might belong to.

  3. Call the JavaScript for the endpoint
  4. Open your browser Developer Tools > Console and type
  5. You should see the segment(s) returned, comma delimited (eg: ["1234","5678”])

Modify Your Ad Tag

Please work with your engineering team for specifics on how to modify your ad tags to include Audience Studio segments as variables. However, your ad tags should be modified to include the Audience Studio API endpoint prepended to your ad tag. Finally, any reference your system has made to accept the Audience Studio segments as a variable (eg: KXSEG), you should replace with window.Krux.{client_namespace}_segments, as seen in the verification step above.

Need Help?

If you need with implementing DCO withAudience Studio, don't hesitate to contact your Salesforce Audience Studio Support team at kruxhelp@krux.com.



Have more questions? Submit a request


Article is closed for comments.