handle smart advertising