次の方法で共有


ActivateCampaign Method

Activates a specific campaign.

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

Syntax

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

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

Parameters

  • active
    Type: System..::.Boolean
    true to indicate the Campaign is currently active; otherwise false.

Remarks

A Campaign is a marketing program that represents one or more contracts or orders from a Customer. For example, you might have a campaign to introduce new products, retain existing users, or increase market share. You manage your campaigns to maximize the effect of ads, discounts, and direct mail.

The timestamp of the Campaign 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