Beginning in July 2023, Adobe has discontinued the development of the Data Integration Library (DIL) and the DIL extension.
Existing customers can continue using their DIL implementation. However, Adobe will not be developing DIL beyond this point. Customers are encouraged to evaluate Experience Platform Web SDK for their long term data collection strategy.
Customers looking to implement new data collection integrations after July 2023 should use Experience Platform Web SDK instead.
Creates a partner-specific DIL instance.
Function Signature: DIL.create: function (initConfig) {}
initConfig Elements
The visitorService
property is always required. Other properties listed here are optional, unless indicated otherwise.
initConfig
accepts the following elements:
Name | Type | Description |
---|---|---|
|
Integer |
This property sets the container ID used by Audience Manager for ID syncs. You would set In the Adobe Experience Platform Identity Service , the property
See also, idSyncContainerID . |
|
Object |
Important: Only use un-encoded values for your IDs. Encoding will create double-encoded identifiers.
Note: If you use the Adobe Experience Platform Identity Service , set customer IDs with the |
|
Boolean |
If true, defers all requests (IFRAME, event calls, ID sync, and destinationing) from executing until the |
|
Boolean |
False by default, which means Audience Manager sets a cookie in the partner's domain (sets a first party cookie). |
|
Boolean |
Important: This element has been deprecated with DIL version 8.0 (released August 2018). Use the If |
|
Boolean |
Important: This element has been deprecated with DIL version 8.0 (released August 2018). Use the Disables ID synchronization. You must disable ID syncs when using DIL v6.2+ and the Visitor ID Service. The |
|
Boolean |
Set to |
|
Boolean |
Important: This element has been deprecated with DIL version 8.0 (released August 2018). Use the Specifies if the destination publishing template should use Akamai for HTTPS connections. Enabled on a per-partner basis. |
|
Object |
Associates the value from one key-value pair to another. See Map Key Values to Other Keys . Released with v2.4. |
|
String |
Required. The |
|
String |
Required. Partner name as provided by Audience Manager . |
|
Boolean |
Removes scripts and callbacks. Default is |
|
Object |
Sets a cookie with the unique user ID returned from Audience Manager . See uuidCookie Properties . |
|
Object |
Required with DIL 6.2 or greater. DIL relies on the |
Sample Code
A sample DIL call could look similar to the following:
var partnerObject1 = DIL.create({
partner: "partner name",
visitorService:{
namespace: "INSERT-ORGANIZATION-ID-HERE"
},
containerNSID: 3,
uuidCookie:{
name:'ad_uuid',
days:200,
path:'/test',
domain:'adobe.com',
secure:true
}
});
var partnerObject2 = DIL.create({
partner: "partner name",
visitorService:{
namespace: "INSERT-MCORG-ID-HERE"
},
containerNSID: 3
});
A successful response returns the DIL instance. An unsuccessful attempt returns an error object (not thrown) if your code is configured improperly or whenever an error is encountered.
Defines the properties used by the uuidCookie
variable. This variable is part of the DIL.create
method.
uuidCookie
has the following properties:
Name | Description |
---|---|
name |
The cookie name ( aam_did is default). |
days |
Cookie lifetime (100 days is default). |
path |
Cookie path, e.g., '/test' ( / is default). |
domain |
The domain the cookie is set in, e.g., 'adobe.com' ( '.'+document.domain is default). |
secure |
Sets a flag to send data over an HTTPS connection only. |
Defines the properties used by the visitorService
variable. This variable is part of the DIL.create
method.
visitorService
has the following properties:
Name | Type | Description |
---|---|---|
namespace |
String | Required. Represents The Experience Cloud Org ID. This is needed for Experience Cloud Core Service functionality. Same parameter used to instantiate the Visitor ID functionality. |
Code Sample:
var vDil = DIL.create({
partner: 'demofirst',
visitorService: {
namespace: "INSERT-EXPCLOUD-ORG-ID-HERE"
}
});