Update advertising.lua

Updated to the new functions.