ad cloud code for init.js