Click or drag to resize

AdministrationClientSelectPagedCampaignSegmentList Method

Syntax
C#
public ResultOfPagedCollectionOfCampaignSegment SelectPagedCampaignSegmentList(
	ManagementGroupRequestOfCampaignSegmentSearch request
)

Parameters

request
Type: AdministrationServiceManagementGroupRequestOfCampaignSegmentSearch

Return Value

Type: ResultOfPagedCollectionOfCampaignSegment
Examples
C#
using (var svc = new AdministrationService.AdministrationClient())
{
  var request = new AdministrationService.ManagementGroupRequestOfCampaignSegmentSearch();
  request.Token = "Token";//Required - Token returned from AccountService.ManagementGroupLogin
  request.ManagementGroup = "Management group";//Required - ManagementGroup supplied when calling AccountService.ManagementGroupLogin

  var campaignSegmentSearch = new AdministrationService.CampaignSegmentSearch();
  campaignSegmentSearch.Campaign_RSN = new Guid("8ba19c3c-ec00-4ac0-aa49-545369ed2d15");; //Required
  campaignSegmentSearch.PageNumber = 1; //Optional
  campaignSegmentSearch.PageSize = 10; //Optional 

  request.Value = campaignSegmentSearch;

  AdministrationService.ResultOfPagedCollectionOfCampaignSegment result = svc.SelectPagedCampaignSegmentList(request);

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