Click or drag to resize

LoyaltyCampaignOfferClientDeleteCampaignOfferCategory Method

Delete the Campaign Offer Category from the submitted Campaign Offer Category RSN.

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

Syntax
C#
public Result DeleteCampaignOfferCategory(
	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("6f4b0906-d967-49da-a06c-aed6b615a31d");;//Required - RSN of campaign offer

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

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