Added settings for Advertisement ID (including randomization)

Fixes #738