Updated ad functionality