Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Creates a new Campaign for a specified customer.
Namespace: Microsoft.CommerceServer.Marketing.WebService
Assembly: Microsoft.CommerceServer.Marketing.DataManagement (in Microsoft.CommerceServer.Marketing.DataManagement.dll)
Syntax
'Declaration
<WebMethodAttribute> _
Public Overridable Function NewCampaign ( _
parentCustomerId As Integer _
) As CampaignData
'Usage
Dim instance As MarketingWebService
Dim parentCustomerId As Integer
Dim returnValue As CampaignData
returnValue = instance.NewCampaign(parentCustomerId)
[WebMethodAttribute]
public virtual CampaignData NewCampaign(
int parentCustomerId
)
[WebMethodAttribute]
public:
virtual CampaignData^ NewCampaign(
int parentCustomerId
)
public function NewCampaign(
parentCustomerId : int
) : CampaignData
Parameters
- parentCustomerId
Type: System..::.Int32
The customer under which the campaign is to be created.
Return Value
Type: CampaignData
The newly created CampaignData instance associated with the parentCustomerId.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | parentCustomerId is less than zero. |
| NotAuthorizedException | The user is not authorized to perform the requested operation. |
| EntityDoesNotExistException | No customer exists with this parentCustomerId. |
| ParentEntityDoesNotExistException | The customer does not exist. |
| ParentEntityDeletedException | The customer has been deleted. |
| DatabaseIntegrityException | A serious integrity issue with the database exists. |
Remarks
Creates a new Campaign object with default values. The Campaign does not exist in the database until SaveCampaign is called.
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.