Share via


DeleteCampaignItem Method

Deletes a CampaignItem.

Namespace:  Microsoft.CommerceServer.Marketing.WebService
Assembly:  Microsoft.CommerceServer.Marketing.DataManagement (in Microsoft.CommerceServer.Marketing.DataManagement.dll)

Syntax

'Declaration
<WebMethodAttribute> _
Public Overridable Sub DeleteCampaignItem ( _
    campaignItemId As Integer _
)
'Usage
Dim instance As MarketingWebService
Dim campaignItemId As Integer

instance.DeleteCampaignItem(campaignItemId)
[WebMethodAttribute]
public virtual void DeleteCampaignItem(
    int campaignItemId
)
[WebMethodAttribute]
public:
virtual void DeleteCampaignItem(
    int campaignItemId
)
public function DeleteCampaignItem(
    campaignItemId : int
)

Parameters

Exceptions

Exception Condition
ArgumentOutOfRangeException

The campaignItemId is less than zero.

NotAuthorizedException

The user is not authorized to perform the requested operation.

EntityDoesNotExistException

The campaignItemId does not exist (update).

EntityStateException

The campaignItemId has been deleted (update).

OptimisticLockException

The entity has been modified since the last time this user accessed it. It should be reloaded and the operation should be retried.

DatabaseIntegrityException

A serious integrity issue with the database exists.

Remarks

Deletes a Campaign Item. You can delete three types of campaign items in Commerce Server: ads, direct mail, or discounts.

Permissions

See Also

Reference

MarketingWebService Class

MarketingWebService Members

Microsoft.CommerceServer.Marketing.WebService Namespace