Share via


GetCampaignItem Method

Retrieves a CampaignItem, as identified by the Campaign's unique identifier.

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

Syntax

'Declaration
<WebMethodAttribute> _
Public Overridable Function GetCampaignItem ( _
    campaignItemId As Integer _
) As CampaignItemData
'Usage
Dim instance As MarketingWebService
Dim campaignItemId As Integer
Dim returnValue As CampaignItemData

returnValue = instance.GetCampaignItem(campaignItemId)
[WebMethodAttribute]
public virtual CampaignItemData GetCampaignItem(
    int campaignItemId
)
[WebMethodAttribute]
public:
virtual CampaignItemData^ GetCampaignItem(
    int campaignItemId
)
public function GetCampaignItem(
    campaignItemId : int
) : CampaignItemData

Parameters

Return Value

Type: CampaignItemData
The retrieved CampaignItem.

Exceptions

Exception Condition
ArgumentOutOfRangeException

campaignItemId is less than zero.

NotAuthorizedException

The user is not authorized to perform the requested operation.

EntityStateException

The Campaign has been deleted.

EntityDoesNotExistException

No Campaign exists with this campaignItemId.

DatabaseIntegrityException

A serious integrity issue with the database exists.

Remarks

Retrieves a specified Campaign Item.

Permissions

See Also

Reference

MarketingWebService Class

MarketingWebService Members

Microsoft.CommerceServer.Marketing.WebService Namespace