Campaign Object

An Account Engagement campaign tracks the first interaction that a person has with your online marketing materials. Associate your assets to an Account Engagement campaign to organize and track your marketing efforts. Learn more about Account Engagement campaigns in Salesforce Help.

Include the authentication header with every request. For information on how to authenticate, see Authentication.

The API to access the Campaign object collection follows the conventions described in Version 5 Overview.

OperationVerbURL FormatAbility Requirements
ReadGEThttps://pi.pardot.com/api/v5/objects/campaigns/<id>?<params>Marketing > Other > Campaigns > View
QueryGEThttps://pi.pardot.com/api/v5/objects/campaigns?<params>Marketing > Other > Campaigns > View
Connect Salesforce CampaignPOSThttps://pi.pardot.com/api/v5/objects/campaigns/<id>/do/connectSalesforceCampaignMarketing > Other > Campaigns > Create
Add TagPOSThttps://pi.pardot.com/api/v5/objects/campaigns/<id>/do/addTagMarketing > Other > Campaigns > Create AND Marketing > Segmentation > Tags > Create
Remove TagPOSThttps://pi.pardot.com/api/v5/objects/campaigns/<id>/do/removeTagMarketing > Other > Campaigns > Create AND Marketing > Segmentation > Tags > Create
FieldTypeDescription
idIntegerID of the object.
nameStringName of the object for identification in Account Engagement.
isDeletedBooleanTrue if the object is in the recycle bin in Account Engagement.
folderIdIntegerID of the folder containing this object.
costFloatCost of the campaign object.
parentCampaignIdIntegerThe ID of the parent campaign.
createdByIdIntegerID of the individual who created this object.
updatedByIdIntegerID of the individual who last updated this object.
createdAtDateTimeThe timestamp of when this object was created.
updatedAtDateTimeThe timestamp of when this object was last updated.
salesforceIdStringSalesforce Id of the object.
folderFolderJSON object representing the folder for this object. See documentation for folder for fields.
createdByUserUser object representing the user who created this object. See documentation for User for fields.
updatedByUserUser object representing the user who last updated this object. See documentation for User for fields.
parentCampaignCampaignCampaign object representing the parent campaign for this campaign. See documentation for Campaign for fields.

Retrieve a single campaign object following the conventions described in the Version 5 Overview.

Example request:

Example response:

Retrieving a collection of campaigns follows the conventions described in Version 5 Overview.

When executing a query, the following fields can be specified in the orderBy parameter. See the conventions for query described in the Version 5 Overview.

  • id
  • createdAt
  • updatedAt

Example request:

Example response:

When executing a query, the following parameters can be used to filter the returned results. These parameters can be specified in the request along with any shared parameters defined in Version 5 Overview. When specifying more than one parameter, all parameters must match the record in order for it to be returned in the results.

ParameterDescription
idReturns any campaigns where ID is equal to the given integer value.
idListReturns any campaigns where ID is included in the given list of values.
idGreaterThanReturns any campaigns where ID is greater than the specified value, non-inclusive.
idGreaterThanOrEqualToReturns any campaigns where ID is greater than or equal to the specified value.
idLessThanReturns any campaigns where ID is less than the specified value, non-inclusive.
idLessThanOrEqualToReturns any campaigns where ID is less than or equal to the specified value.
nameReturns any campaigns where Name is equal to the given string value.
createdAtReturns any campaigns where CreatedAt is equal to the given datetime value.
createdAtAfterReturns any campaigns where CreatedAt is after the given datetime value, non-inclusive.
createdAtAfterOrEqualToReturns any campaigns where CreatedAt is after or equal to the given datetime value.
createdAtBeforeReturns any campaigns where CreatedAt is before the given datetime value, non-inclusive.
createdAtBeforeOrEqualToReturns any campaigns where CreatedAt is before or equal to the given datetime value.
updatedAtReturns any campaigns where UpdatedAt is equal to the given datetime value.
updatedAtAfterReturns any campaigns where UpdatedAt is after the given datetime value, non-inclusive.
updatedAtAfterOrEqualToReturns any campaigns where UpdatedAt is after or equal to the given datetime value.
updatedAtBeforeReturns any campaigns where UpdatedAt is before the given datetime value, non-inclusive.
updatedAtBeforeOrEqualToReturns any campaigns where UpdatedAt is before or equal to the given datetime value.
deletedDetermines whether to return deleted records. The value can be false (default), true, or all.

Example request:

Example response:

Associates an Account Engagement campaign to a Salesforce campaign. The field salesforceCampaignId is required.

Example Request

Example Response

Adds a Tag to the Campaign object, which creates a TaggedObject.

Example Request

Example Response

Remove a tag from a Campaign object. When you remove a tag, the associated TaggedObject record is deleted.

Example Request

Example Response

Returns code 204 no content.