Update advertising.lua

Updated to the new functions.
Merge pull request #48 from WibbenZ/patch-5

Update advertising.lua