ActivateCampaignItem Method

Activates a specific campaign item.

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

Syntax

'Declaration
<WebMethodAttribute> _
Public Overridable Sub ActivateCampaignItem ( _
    campaignItemId As Integer, _
    active As Boolean, _
    timestamp As DateTime _
)
'Usage
Dim instance As MarketingWebService
Dim campaignItemId As Integer
Dim active As Boolean
Dim timestamp As DateTime

instance.ActivateCampaignItem(campaignItemId, _
    active, timestamp)
[WebMethodAttribute]
public virtual void ActivateCampaignItem(
    int campaignItemId,
    bool active,
    DateTime timestamp
)
[WebMethodAttribute]
public:
virtual void ActivateCampaignItem(
    int campaignItemId, 
    bool active, 
    DateTime timestamp
)
public function ActivateCampaignItem(
    campaignItemId : int, 
    active : boolean, 
    timestamp : DateTime
)

Parameters

Remarks

The timestamp of the CampaignItem is provided to avoid a race condition when the author has changed the campaign between the time the approver got it from the server to examine it, and the time when it was actually approved. If the time stamp does not match the information in the database, it indicates the race condition.

Permissions

See Also

Reference

MarketingWebService Class

MarketingWebService Members

Microsoft.CommerceServer.Marketing.WebService Namespace