var iframe = document.getElementById("pb_iframe"); iframe.setAttribute("id", adTagId);