how advertising functions 248518