add algorithm to ads show