Realize the function of advertisements play