Click or drag to resize

LoyaltyCampaignOfferClientDeleteCampaignOffer Method

Delete the Campaign Offer from the submitted Campaign Offer RSN.

The Campaign Offer RSN can be fetched from the Web Service Method: SelectCampaignOfferList

Syntax
C#
public Result DeleteCampaignOffer(
	ManagementGroupRequestOfguid request
)

Parameters

request
Type: LoyaltyServiceManagementGroupRequestOfguid

Return Value

Type: Result
Examples
C#
using (var svc = new LoyaltyService.LoyaltyCampaignOfferClient())
{
  var request = new LoyaltyService.ManagementGroupRequestOfguid();
  request.Token = "Token";//Required - Token returned from AccountService.ManagementGroupLogin
  request.ManagementGroup = "Management group";//Required - ManagementGroup supplied when calling AccountService.ManagementGroupLogin
  request.Value = new Guid("a4a8980d-70d5-42a1-b6ce-280f65ad331e");;//Required - RSN of campaign offer

  LoyaltyService.Result result = svc.DeleteCampaignOffer(request);

  if (result.FaultCode == 0)
  {
    //Request succeeded.
  }
  else
  {
    //Request failed
    throw new Exception(result.FaultDescription);
  }
}
See Also