GetPrograms

 

GetPrograms

This method is a combination of GetAllPrograms, GetNewPrograms, GetMyPrograms, SearchAllPrograms and SearchMyPrograms. It contains the functionality of all these 5 methods and is intended to replace them in a later release.

To access live data, please use this WSDL file:
https://api.affili.net/V2.0/PublisherProgram.svc?wsdl
To access demo data, please use this WSDL file:
https://developer-api.affili.net/V2.0/PublisherProgram.svc?wsdl


Operation test

With this form, you can try out this web service. We already filled it out with a sample request which will return data. Feel free to fill in different parameter values - our test data reference gives you an overview of our sample data.

FieldTypeValues
PublisherId *int 
DisplaySettings *DisplaySettings
CurrentPage *int 
PageSize *int 
SortByEnumenum
SortOrderEnumenum
GetProgramsQuery *GetProgramsQuery
ProgramIdsint array
SearchStringstring
PartnershipStatus *ProgramPartnership-
StatusEnum array
ProgramClassificationEnumenum
ProgramCategoryIdsint array
TrackingMethodsTrackingMethod array
SEMPolicyTypesSEMPolicyEnum array
MinimumCookieLifetimeint
MaximumProgramLifetimeint
AutoAcceptbool
HasProductDatabool
HasVoucherCodesbool
ProductDataUpdateIntervalint
IsNewbool
CommissionTypesCommissionTypeEnum array

XML response

Short paramter definitions
PublisherId (int):
Id of the publisher whose account is being used.
CurrentPage (int):
The number of the page to view.
PageSize (int):
The number of results which shall be contained per result page.
SortByEnum (enum):
The criteria along which the results shall be sorted. Possible values are: ProgramId, ProgramTitle, ProgramLifetime. Default value is ProgramId.
SortOrderEnum (enum):
The order in which the results shall be sorted. Possible values are: Ascending, Descending. Default value is Ascending.
ProgramIds (array of int):
The results will be restricted to programs out of this array.
SearchString (string):
A keyword that must be contained in the program (searches within program title, keywords, description and others).
PartnershipStatus (array of ProgramPartnershipStatusEnum)
Restricts the results to programs with which you have any of these partnership status values.
PartnershipStatusEnum (enum):
The status of the partnership you have with this program. Possible values are: Active, Paused, Waiting, Refused, NoPartnership, Cancelled
ProgramClassificationEnum (enum):
Lets you select what kind of program results shall be returned. Possible values are: All, Program, Campaign
ProgramCategoryIds (array of int):
Restricts the programs to those who belong to any of these program categories (-> GetProgramCategories).
TrackingMethods (array of TrackingMethod):
Lets you restrict on the tracking method used in the desired programs.
TrackingMethod (enum):
The tracking technology which shall be used in the returned programs. Possible values are: Cookie, Session, SessionCookie
SEMPolicyTypes (array of SEMPolicyEnum):
Lets you restrict on the SEM policy which the desired programs shall have.
SEMPolicyEnum (enum):
Lets you restrict on the SEM policy which the desired programs shall have. Possible values are: NotSet (the program has not set any SEM policy yet), Allowed (SEM generally allowed), Restricted (SEM allowed only with certain restrictions), NotAllowed (no SEM allowed)
MinimumCookieLifetime (int):
Only those programs will be returned whose cookies are valid at least this many days.
MaximumProgramLifetime (int):
Only those programs will be returned which were launched at least this many months ago.
AutoAccept (bool):
Lets you restrict to those programs that automatically accept partnership applications.
HasProductData (int):
Set this to ‘true’ if you want to receive only programs which provide product data.
HasVoucherCodes (bool):
Set this to ‘true’ if you want to receive only programs which provide at least one voucher.
ProductDataUpdateInterval (int):
The amount of days which lie between each product data update of the programs.
IsNew (bool):
Restricts the programs to those, which are featured as new in the affilinet platform.
CommissionTypeEnum (enum):
Lets you restrict on the commission mode of the programs. Possible values are: Click, ClickOut, Sale, Lead

Complete code examples

JAVA

 (request)

PHP

 (request)

.NET

 (request)

Copyright © 2008, affilinet GmbH