Click or drag to resize

LoyaltyCampaignOfferClientSetCampaignOfferFeaturedImage Method

Syntax
C#
public Result SetCampaignOfferFeaturedImage(
	ManagementGroupRequestOfCampaignOfferSetFeaturedImage request
)

Parameters

request
Type: LoyaltyServiceManagementGroupRequestOfCampaignOfferSetFeaturedImage

Return Value

Type: Result
Examples
C#
using (var svc = new LoyaltyService.LoyaltyCampaignOfferClient())
{
  var request = new LoyaltyService.ManagementGroupRequestOfCampaignOfferSetFeaturedImage();
  request.Token = "Token";//Required - Token returned from AccountService.ManagementGroupLogin
  request.ManagementGroup = "Management group";//Required - ManagementGroup supplied when calling AccountService.ManagementGroupLogin

  var campaignOfferSetFeaturedImage = new LoyaltyService.CampaignOfferSetFeaturedImage();
  campaignOfferSetFeaturedImage.CampaignOfferRSN = new Guid("8c5db17c-bf39-426e-84ab-924b471f89a3");;//Required - RSN of campaign offer
  campaignOfferSetFeaturedImage.ImageRSN = new Guid("a1868d75-b57d-4e40-9d10-383cd53fa64c");;//Required - RSN of campaign offer gallery image

  //add filter to request
  request.Value = campaignOfferSetFeaturedImage;

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

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