Click or drag to resize

AdministrationClientSelectPagedCampaignList Method

Syntax
C#
public ResultOfPagedCollectionOfCampaign SelectPagedCampaignList(
	ManagementGroupRequestOfPageFilter request
)

Parameters

request
Type: AdministrationServiceManagementGroupRequestOfPageFilter

Return Value

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

  var campaignActivitySearch = new AdministrationService.PageFilter();
  campaignActivitySearch.PageNumber = 1; //Optional
  campaignActivitySearch.PageSize = 10; //Optional 

  request.Value = campaignActivitySearch;

  AdministrationService.ResultOfPagedCollectionOfCampaign result = svc.SelectPagedCampaignList(request);

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