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 DMP involves these general steps:

  1. Salesforce DMP clients set their segments to be available "On Site" in the Salesforce DMP UI.
  2. Salesforce DMP 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 Salesforce DMP segments.

Set Segments Available "On Site"

When a client sets a Salesforce DMP Segment available "On Site", that segment ID is available to be written to the browser. Please work with the Salesforce DMP 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 Salesforce DMP Audience Segment Names to their Salesforce DMP Audience Segment IDs.

Example Segment Mapping Document

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

Provide Client Specific JavaScript URLs

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

Example Salesforce DMP API endpoint:


Verify the Implementation

To verify the implementation, associate yourself with a segment and check that the segment is returned. Note that Salesforce DMP 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 Salesforce DMP segments as variables. However, your ad tags should be modified to include the Salesforce DMP API endpoint prepended to your ad tag. Finally, any reference your system has made to accept the Salesforce DMP 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 with Salesforce DMP, don't hesitate to contact your Salesforce DMP Support team at kruxhelp@krux.com.


Have more questions? Submit a request


Article is closed for comments.