view/shared/assets/js/wb/ads/2.1.3/ads.js
/**
     * generates a unique id for the container element
     * that the ad will be written into.
     * @param {object} element the element to update
     * @returns {string} the element's id
     */
generates a unique id for the container element
that the ad will be written into.
@param {object} element the element to update
@returns {string} the element's id
generates a unique id for the container element that the ad will be written into . @param { object } element the element to update @returns { string } the element ' s id
function generateId(element) {
        slot_count++;
        if(element !== null && element.attr('id')) {
            debug("generateId :: using existing id : " + element.attr('id'));
            return element.attr('id');
        }
        var id = "dfpAd-" + getRequiredParam("site_domain") + "-" + slot_count;
        element.attr('id', id );
        return id;
    }
function generateId ( element ) { slot_count ++ ; if ( element !== null && element . attr ( 'id' ) ) { debug ( "generateId :: using existing id : " + element . attr ( 'id' ) ) ; return element . attr ( 'id' ) ; } var id = "dfpAd-" + getRequiredParam ( "site_domain" ) + "-" + slot_count ; element . attr ( 'id' , id ) ; return id ; }
generates a unique id for the container element
 that the ad will be written into.
generates a unique id for the container element that the ad will be written into .
// else generate a unique id and attach to element //        debug("generateId :: creating unique id : " + id);