Dynamic Content Variation Object

Dynamic content personalizes parts of your website based on what you know about a viewer. Variations are the blocks of content that are displayed to prospects dynamically, based on criteria. Learn more about dynamic content in Salesforce Help.

The API to access the dynamic content variation object follows the conventions described in Version 5 Overview.

OperationHTTP VerbURL FormatAbility Requirements
ReadGEThttps://pi.pardot.com/api/v5/objects/dynamic-contents/<id>?<params>Content > Dynamic Content > View ability
QueryGEThttps://pi.pardot.com/api/v5/objects/dynamic-contents?<params>Content > Dynamic Content > View ability

Read-Only Fields

FieldTypeDescription
comparisonStringThe logic used to set the criteria for a variation. This field works together with the Dynamic Content basedOn field to determine which variation a prospect is served.
contentStringThe text content of the variation.
dynamicContentIdIntegerID of the dynamic content this variation is associated with.
dynamicContentDynamic ContentThe dynamic content the variation is associated with.
idIntegerPardot ID for this dynamic content variation.

Retrieve a single dynamic content variation following the conventions described in the Version 5 Overview.

Example Request

Example Response

Retrieve a collection of dynamic content variations following the conventions described in the Version 5 Overview.

Sortable Fields

  • id

Filtering Results

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
dynamicContentIdGreaterThanOrEqualToReturns any dynamic content variation where ID is greater than or equal to the specified value.
dynamicContentIdGreaterThanReturns any dynamic content variation where ID is greater than the specified value, non-inclusive.
dynamicContentIdLessThanOrEqualToReturns any dynamic content variation where ID is less than or equal to the specified value.
dynamicContentIdLessThanReturns any dynamic content variation where ID is less than the specified value, non-inclusive.
dynamicContentIdReturns any dynamic content where ID is equal to the given integer value.
idGreaterThanOrEqualToReturns any dynamic content variation where ID is greater than or equal to the specified value.
idGreaterThanReturns any dynamic content variation where ID is greater than the specified value, non-inclusive.
idLessThanOrEqualToReturns any dynamic content variation where ID is less than or equal to the specified value.
idLessThanReturns any dynamic content variation where ID is less than the specified value, non-inclusive.
idReturns any dynamic content variation where ID is equal to the given integer value.

Example Request

Example response: