I didn't really get the question? You want to know generally how affiliate programs work? Or you have some specific question?
in term of publisher u manage to hit their term (pay per sale,per sign up,per free sign up...)and you get pay in term of advertiser u give comsision for pple to sell your poduct ,membership sign up to improve your sale