CampaignSettings

Represents an org’s Campaign Influence, Einstein Attribution, Einstein Key Accounts, and campaign member settings. These features help you understand how your campaigns and accounts are affecting your opportunity pipeline.

In the package manifest, all organization settings metadata types are accessed using the Settings name. See Settings for details.

Parent Type 

This type extends Metadata and inherits its fields.

File Suffix and Directory Location 

CampaignSettings values are stored in the Campaign.settings file in the settings folder. The .settings files are different from other named components because there’s only one settings file for each settings component.

Version 

Introduced in API version 48.0.

Fields 

aiAttributionTimeframe 

  • Type: int
  • Required: No
  • Introduced: API version 49.0
  • Description: Indicates the number of months between the opportunity creation date and an engagement activity, during which Einstein scans for influential campaigns. The value must be a multiple of three, up to 24. This field supports Einstein Attribution.

enableAccountsAsCM 

  • Type: boolean
  • Required: No
  • Introduced: API version 51.0
  • Description: Indicates whether accounts can be used as campaign members (true) or not (false). The default value is false.

enableAIAttribution 

  • Type: boolean
  • Required: No
  • Introduced: API version 49.0
  • Description: Indicates whether the Einstein Attribution feature is enabled (true) or not (false). The default value is false.

enableAutoCampInfluenceDisabled 

  • Type: boolean

  • Required: No

  • Description: Indicates whether Salesforce creates Campaign Influence information (true) or not (false). enableCampaignInfluence2 must be false to use this setting.

    The default value is false.

enableB2bmaCampaignInfluence2 

  • Type: boolean

  • Required: No

  • Description: Indicates whether your org can access campaign influence models from other systems, such as Pardot (true) or not (false). enableCampaignInfluence2 must be true to use this setting.

    The default value is false.

enableCampaignHistoryTrackEnabled 

  • Type: boolean
  • Required: No
  • Description: This read-only field is reserved for system use.

enableCampaignInfluence2 

  • Type: boolean

  • Required: No

  • Description: Indicates whether Customizable Campaign Influence is enabled (true) or not (false). When true, Campaign Influence 1.0 is hidden from users and is no longer active.

    The default value is true.

enableCampaignMemberTWCF 

  • Type: boolean
  • Required: No
  • Description: This read-only field is reserved for system use.

enableEKAI 

  • Type: boolean
  • Required: No
  • Introduced: API version 53.0
  • Description: Indicates whether Einstein Key Accounts Identification is enabled (true) or not (false). The default value is false.

enableOpportunityInfluence 

  • Type: boolean
  • Required: No
  • Description: Indicates whether Opportunity Influence campaign attribution is enabled (true) or not (false). When enabled, Opportunity Influence connects opportunity revenue to specific campaigns. The default value is false. Available with Marketing Cloud Growth and Advanced editions in API version 63.0 and higher.

enableSuppressNoValueCI2 

  • Type: boolean
  • Required: No
  • Description: This read-only field is reserved for system use.

Declarative Metadata Sample Definition 

The following is an example of the Campaign.settings file:

1<?xml version="1.0" encoding="UTF-8"?>
2<CampaignSettings xmlns="http://soap.sforce.com/2006/04/metadata">
3    <enableCampaignInfluence2>true</enableCampaignInfluence2>
4    <enableSuppressNoValueCI2>true</enableSuppressNoValueCI2>
5    <enableCampaignHistoryTrackEnabled>true</enableCampaignHistoryTrackEnabled>
6    <enableAutoCampInfluenceDisabled>true</enableAutoCampInfluenceDisabled>
7    <enableCampaignMemberTWCF>true</enableCampaignMemberTWCF>
8    <enableB2bmaCampaignInfluence2>true</enableB2bmaCampaignInfluence2>
9    <enableAccountsAsCM>true</enableAccountsAsCM>
10    <enableAIAttribution>true</enableAIAttribution>
11    <aiAttributionTimeframe>9</aiAttributionTimeframe>
12    <enableEKAI>true</enableEKAI>
13</CampaignSettings>

Example Package Manifest 

The following is an example package manifest used to deploy or retrieve the Campaign settings metadata:

1<?xml version="1.0" encoding="UTF-8"?>
2<Package xmlns="http://soap.sforce.com/2006/04/metadata">
3	<types>
4 <members>Campaign</members>
5 <name>Settings</name>
6	</types>
7	<version>29.0</version>
8</Package>

Wildcard Support in the Manifest File 

The wildcard character * (asterisk) in the package.xml manifest file doesn’t apply to metadata types for feature settings. The wildcard applies only when retrieving all settings, not for an individual setting. For details, see Settings. For information about using the manifest file, see Deploying and Retrieving Metadata with the Zip File.