export set_affiliate