Click or drag to resize

AdministrationClientSelectPagedCampaignActivityList Method

Syntax
C#
public ResultOfPagedCollectionOfCampaignActivity SelectPagedCampaignActivityList(
	ManagementGroupRequestOfCampaignActivitySearch request
)

Parameters

request
Type: AdministrationServiceManagementGroupRequestOfCampaignActivitySearch

Return Value

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

  var campaignActivitySearch = new AdministrationService.CampaignActivitySearch();
  campaignActivitySearch.ActivitySubType = string.Empty; //Optional
  campaignActivitySearch.ActivityType = string.Empty; //Optional
  campaignActivitySearch.CampaignList_RSN = Guid.Empty; //Optional
  campaignActivitySearch.CampaignName = string.Empty; //Optional
  campaignActivitySearch.CampaignSegmentName = string.Empty; //Optional
  campaignActivitySearch.CampaignSegment_RSN = Guid.Empty; //Optional
  campaignActivitySearch.Campaign_RSN = Guid.Empty; //Optional
  campaignActivitySearch.Member_RSN = Guid.Empty; //Optional
  campaignActivitySearch.DateFrom = null;  //Optional
  campaignActivitySearch.DateTo = null; //Optional
  campaignActivitySearch.PageNumber = 1; //Optional
  campaignActivitySearch.PageSize = 10; //Optional 

  request.Value = campaignActivitySearch;

  AdministrationService.ResultOfPagedCollectionOfCampaignActivity result = svc.SelectPagedCampaignActivityList(request);

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