Anastasia Beverly Hills Donates $1M to the Black Community

Anastasia Beverly Hills Donates $1M to the Black Community | POPSUGAR Beauty

m to the black community”,”bot”:”false”,”page_type_template”:”slideshow”,”channel”:”beauty”,”page_type”:”gallery”},”is_mobile”:null,”is_tv”:false,”category_exclusions”:[],”disable_poe”:false,”secure”:true,”page_hierarchy”:”5485/US/popsugar/beauty/gallery/”,”is_au”:false,”is_us”:true,”is_uk”:false,”specific_slots_to_render”:false,”is_pared”:false,”is_dev”:false,”google_tag”:true,”is_mobile_ajax”:false,”ad_units”:{“prebid_adunit”:{“leaderboard”:{“code”:”leaderboard-0″,”bids”:[{“bidder”:”rubicon”,”params”:{“accountId”:11516,”siteId”:33940,”zoneId”:572938}},{“bidder”:”openx”,”params”:{“delDomain”:”popsugar-d.openx.net”,”unit”:540215009}},{“bidder”:”appnexus”,”params”:{“placementId”:10050889}},{“bidder”:”criteo”,”params”:{“zoneId”:1252579}},{“bidder”:”sonobi”,”params”:{“ad_unit”:”5485/US/popsugar/beauty/gallery/leaderboard”}}],”mediaTypes”:{“banner”:{“sizes”:[[728,90],[970,90],[970,250]]}}},”upper_rec”:{“code”:”upper_rec-0″,”bids”:[{“bidder”:”rubicon”,”params”:{“accountId”:11516,”siteId”:33940,”zoneId”:572938}},{“bidder”:”openx”,”params”:{“delDomain”:”popsugar-d.openx.net”,”unit”:540215009}},{“bidder”:”appnexus”,”params”:{“placementId”:10050891}},{“bidder”:”criteo”,”params”:{“zoneId”:1249203}},{“bidder”:”sonobi”,”params”:{“ad_unit”:”5485/US/popsugar/beauty/gallery/upper_rec”}}],”mediaTypes”:{“banner”:{“sizes”:[[300,250],[300,600],[160,600]]}}},”badge”:{“code”:”badge-0″,”bids”:[{“bidder”:”sonobi”,”params”:{“ad_unit”:”5485/US/popsugar/beauty/gallery/badge”}}],”mediaTypes”:{“banner”:{“sizes”:[180,55]}}}},”apstag_adunit”:{“leaderboard”:{“slotID”:”leaderboard-0″,”slotName”:”leaderboard”,”sizes”:[[728,90],[970,90],[970,250]]},”upper_rec”:{“slotID”:”upper_rec-0″,”slotName”:”upper_rec”,”sizes”:[[300,250],[300,600],[160,600]]},”badge”:{“slotID”:”badge-0″,”slotName”:”badge”,”sizes”:[180,55]}}},”amazon_id”:3217}’);
var configGPTAdsPlugin = {
init: function (resolve) {
if (Object.keys(ad_context.ad_units).length > 0) {
SUGAR.gpt.setAdUnitsConfig(ad_context.ad_units);
}
for (var i in ad_context.slots) {
var slot = ad_context.slots[i];
SUGAR.gpt.configAd(slot.slot_id, slot, false);
}
googletag.cmd.push(function () {
for (var i in ad_context.slots) {
SUGAR.gpt.defineGPTAd(null, ad_context.slots[i], false);
}
});
googletag.cmd.push(function () {
googletag.pubads().enableSingleRequest();
googletag.pubads().disableInitialLoad();
if (Object.keys(ad_context.page_targeting).length > 0) {
for (var key in ad_context.page_targeting) {
googletag.pubads().setTargeting(key, ad_context.page_targeting[key]);
}
}
if (SUGAR.ads.getPOE()) {
googletag.pubads().setTargeting(‘first_impression’, ‘true’);
}
else {
googletag.pubads().setTargeting(‘first_impression’, ‘false’);
}
if (SUGAR.ads.checkCPC()) {
googletag.pubads().setTargeting(‘cpc’, ‘1’);
}
var dfpUTMCookie;
if (dfpUTMCookie = SUGAR.ads.checkUTMSource()) {
googletag.pubads().setTargeting(‘utm_source’, dfpUTMCookie);
}
googletag.pubads().setTargeting(‘viewportsize’, window.innerHeight >= 900 ? ‘big’ : ‘small’);
if (ad_context.category_exclusions.length > 0) {
for (var exclusion in ad_context.category_exclusions) {
googletag.pubads().setCategoryExclusion(exclusion);
}
}
if (!!document.getElementById(‘video-ad-player-container’)) {
googletag.pubads().setCategoryExclusion(‘100% Share of Page’);
}
googletag.pubads().addEventListener(‘slotRenderEnded’, function (ad) {
SUGAR.gpt.slotRenderEnded(ad);
});
googletag.pubads().enableAsyncRendering();
if (ad_context.is_pared) {
googletag.pubads().setTargeting(‘related’, ‘no’);
googletag.pubads().enableLazyLoad({
fetchMarginPercent: 300, // Fetch slots within 3 viewports.
renderMarginPercent: 200, // Render slots within 2 viewports.
mobileScaling: 1.0 // Double the above values on mobile.
});
}
else
{
googletag.pubads().collapseEmptyDivs(true);
}
googletag.enableServices();
});
googletag.cmd.push(function () {
googletag.pubads().addEventListener(‘impressionViewable’, function (e) {
e.slot.getAdUnitName = function () {
var slotElementId = e.slot.getSlotElementId();
return slotElementId.split(‘-‘)[0];
};
document.dispatchEvent(new CustomEvent(‘adSlotViewed’, {detail: e}));
});
});
if (ad_context.disable_poe) {
SUGAR.gpt.disablePOE();
}
resolve();
}
};
/*
This function is called when all of the plugins have either timed out or resolved.
This is what kicks off the initial ad request on the page.
*/
function adPush() {
googletag.cmd.push(function () {
window.setTimeout(function () {
googletag.display(ad_context.slots[0].slot_id);
if (ad_context.is_au && !ad_context.is_mobile && SUGAR.gpt.getGPTAd(‘skin-0’)) {
googletag.display(‘skin-0’);
}
if (ad_context.specific_slots_to_render) { // Non lazyloaded slots.
// If we are lazy loading ads check for global variable being set by pb.js
// and based on that, refresh all ads or some ads if needed.
if (typeof pbjs !== ‘undefined’) {
SUGAR.gpt.pbjsRefreshAds(ad_context.specific_slots_to_render);
}
}
else if (ad_context.is_pared) {
for (var i in ad_context.slots) {
var slotId = ad_context.slots[i].slot_id;
googletag.display(slotId);
googletag.pubads().refresh([SUGAR.gpt.getGPTAd(slotId)]);
}
}
else {
googletag.pubads().refresh();
}
document.dispatchEvent(new CustomEvent(‘slotsCreated’));
}, 0);
});
}
(function() {
window.SUGAR = window.SUGAR || {};
window.SUGAR.IAS = window.SUGAR.IAS || (function(googletag) {
var error = false;
window.__iasPET = window.__iasPET || {};
window.__iasPET.queue = window.__iasPET.queue || [];
var js = document.createElement(‘script’);
js.src = ‘https://cdn.adsafeprotected.com/iasPET.1.js’;
js.onerror = function() {error = true;};
js.async = true;
document.head.appendChild(js);
var targeting = {
fr: ‘failed’,
adt: ‘failed’,
alc: ‘failed’,
dlm: ‘failed’,
drg: ‘failed’,
hat: ‘failed’,
off: ‘failed’,
vio: ‘failed’
};
syncGPTTargeting();
function syncGPTTargeting() {
googletag.cmd.push(function() {
Object.keys(targeting).forEach(function (key) {
googletag.pubads().setTargeting(key, targeting[key]);
});
});
}
function setTargeting(newTargeting) {
var unsafeContent = false;
targeting.fr = newTargeting.fr;
Object.keys(newTargeting.brandSafety).forEach(function(key) {
targeting[key] = newTargeting.brandSafety[key];
if (targeting[key].toLowerCase() !== ‘verylow’) {
unsafeContent = true;
}
});
if (newTargeting.fr === ‘true’) {
ONSUGAR.Util.log(‘IAS Fraudulent Traffic Detected!’);
SUGAR.gpt.setIrregular();
}
if (unsafeContent) {
googletag.cmd.push(function() {
googletag.pubads().setCategoryExclusion(‘IAS Brand Safety’);
});
}
}
function getTargeting() {
return targeting;
}
function getAdSlots() {
var adSlots = [];
var obj = {};
if (ad_context.hasOwnProperty(‘slots’) && ad_context.slots.length > 0) {
for (var i in ad_context.slots) {
obj = getAdSlot(ad_context.slots[i]);
adSlots.push(obj);
}
}
return adSlots;
}
function getAdSlot(slot) {
var obj = {};
var adPath = SUGAR.gpt.getHierarchy() + slot.slot;
var slotId = slot.slot_id;
var slotPrimarySize = JSON.parse(slot.primary_size);
obj.adSlotId = slotId;
obj.size = slotPrimarySize;
obj.adUnitPath = adPath;
return obj;
}
function iasPETPush(slot, resolve) {
window.__iasPET.queue.push({
adSlots: typeof slot !== ‘undefined’ ? [getAdSlot(slot)] : getAdSlots(),
dataHandler: function(adSlotData) {
try {
var data = JSON.parse(adSlotData);
} catch(e) {
resolve();
return;
}
setTargeting(data);
ONSUGAR.Event.fire(‘IAS_loaded’);
window.__iasPET.setTargetingForGPT();
resolve();
}
});
}
function init(resolve) {
if (error) {
resolve();
return;
}
window.__iasPET.pubId = ‘8225’;
iasPETPush(undefined, resolve);
}
function onTimeout() {
targeting = {
fr: ‘timeout’,
adt: ‘timeout’,
alc: ‘timeout’,
dlm: ‘timeout’,
drg: ‘timeout’,
hat: ‘timeout’,
off: ‘timeout’,
vio: ‘timeout’
};
ONSUGAR.Event.fire(‘IAS_loaded’);
syncGPTTargeting();
}
return {
init: init,
name: ‘IAS’,
onTimeout: onTimeout,
timeout: 1000,
setTargeting: setTargeting,
getTargeting: getTargeting,
iasPETPush: iasPETPush
}
})(window.googletag);
var HeaderBiddingPlugin = (function() {
function init(resolve) {
SUGAR.gpt.pbjsQuePush();
var prebidPollInterval;
var pollPrebid = function() {
if (SUGAR.gpt.getAdserverRequestSent()) {
clearInterval(prebidPollInterval);
resolve();
}
};
prebidPollInterval = setInterval(pollPrebid, 50);
}
function onTimeout(){
SUGAR.gpt.sendAdserverRequest();
}
return {
init: init,
name: ‘Header Bidding’,
timeout: 5000,
onTimeout: onTimeout
}
})();
var ApsTagPlugin = (function(){
function init(resolve){
!function(a9,a,p,s,t,A,g){if(a[a9])return;function q(c,r){a[a9]._Q.push([c,r])}a[a9]={init:function(){q(“i”,arguments)},fetchBids:function(){q(“f”,arguments)},setDisplayBids:function(){},targetingKeys:function(){return[]},_Q:[]};A=p.createElement(s);A.async=!0;A.src=t;g=p.getElementsByTagName(s)[0];g.parentNode.insertBefore(A,g)}(“apstag”,window,document,”script”,”//c.amazon-adsystem.com/aax2/apstag.js”);
SUGAR.gpt.apsTagInit(ad_context.amazon_id);
SUGAR.gpt.apsTagfetchBids();
resolve();
}
return {
init: init,
name: ‘ApsTag’,
timeout: 6000
}
})();
var SugarJsPlugin = {
init: function(resolve) {
// This is down here to prevent a circular dependency between the IAS and the configGPTAdsPlugin
// It seemed like an annoying hammer to create a plugin just for this one line of code.
SUGAR.gpt.setHierarchy(ad_context.page_hierarchy);
resolve();
},
name: ‘SugarJsLoadedPlugin’,
timeout: 2147483647 // MAX 32 bit signed integer
};
var sponsorRefPlugin = (function(){
var refId;
function init(resolve) {
refId = getCookie();
addPageTargeting();
resolve();
}
function getCookie() {
return ONSUGAR.Util.getCookie(‘sponsor_ref_id’);
}
function addPageTargeting() {
googletag.cmd.push(function() {
if (refId) {
googletag.pubads().setTargeting(‘ref’, refId);
}
});
}
return {
init: init,
timeout: 0
}
})();
var bixbyRefPlugin = (function() {
function init(resolve) {
if (ONSUGAR.Util.getURIComponentValue(window.location, ‘utm_source’) === ‘bixby’) {
SUGAR.gpt.setBixby();
}
resolve();
}
return {
init: init,
timeout: 0
}
}());
var privacyStringPlugin = (function() {
function init(resolve) {
window.__uspapi = window.__uspapi || __uspapi;
window.addEventListener(“message”, receiveMessage, false);
resolve();
}
function receiveMessage(e) {
if (e.data.__uspapiCall) {
var data = e.data.__uspapiCall;
__uspapi(data.command, data.version, null, data.callId, e);
}
}
function __uspapi(command, version, callback, callId, e) {
function sendPrivacyString(privacyString) {
// Request sent directly
if (callback) {
callback({
version: 1,
uspString: privacyString
}, true);
}
// Request sent another way
else {
var __uspapiReturn = {
returnValue: privacyString,
success: true,
callId: callId
};
e.source.postMessage({ __uspapiReturn: __uspapiReturn }, e.origin);
}
}
ONSUGAR.Util.getPrivacyString().then(function(privacyString) {
if (!privacyString) {
sendPrivacyString(‘1YNY’);
}
sendPrivacyString(privacyString)
}).catch(function() {
sendPrivacyString(‘1YNY’);
});
}
return {
init: init,
timeout: 0
}
})();
(function() {
function promisifyPlugin(plugin, dependencies) {
function getRacePromise() {
var timeoutId;
var timeoutPromise = new Promise(function (resolve) {
timeoutId = window.setTimeout(function() {
resolve();
if (plugin.onTimeout && typeof plugin.onTimeout === “function”) {
plugin.onTimeout();
}
}, plugin.timeout ? plugin.timeout : 1000);
});
var actionPromise = new Promise(plugin.init);
actionPromise.then(function() {
window.clearTimeout(timeoutId);
});
return Promise.race([timeoutPromise, actionPromise]);
}
if(!dependencies) {
return getRacePromise();
} else {
return Promise.all(dependencies).then(getRacePromise);
}
}
function init() {
var SugarJsPluginPromise = promisifyPlugin(SugarJsPlugin);
var IASPluginPromise = promisifyPlugin(window.SUGAR.IAS, [SugarJsPluginPromise]);
var sponsorRefPluginPromise = promisifyPlugin(sponsorRefPlugin, [SugarJsPluginPromise]);
var bixbyPluginPromise = promisifyPlugin(bixbyRefPlugin, [SugarJsPluginPromise]);
var configGPTAdsPluginPromise = promisifyPlugin(configGPTAdsPlugin, [SugarJsPluginPromise, IASPluginPromise, bixbyPluginPromise]);
var privacyStringPluginPromise = promisifyPlugin(privacyStringPlugin, [SugarJsPluginPromise]);
var pluginPromises = [];
pluginPromises.push(SugarJsPluginPromise, configGPTAdsPluginPromise, IASPluginPromise, sponsorRefPluginPromise, bixbyPluginPromise, privacyStringPluginPromise);
if (!ad_context.is_uk && !ad_context.is_pared) {
var HeaderBiddingPluginPromise = promisifyPlugin(HeaderBiddingPlugin, [SugarJsPluginPromise, IASPluginPromise, configGPTAdsPluginPromise, privacyStringPluginPromise]);
var ApsTagPluginPromise = promisifyPlugin(ApsTagPlugin, [SugarJsPluginPromise, configGPTAdsPluginPromise, privacyStringPluginPromise]);
pluginPromises.push(HeaderBiddingPluginPromise, ApsTagPluginPromise);
}
var allPromise = Promise.all(pluginPromises);
allPromise.then(function() {
if(document.readyState === ‘interactive’ || document.readyState === “complete”) {
adPush();
}
else {
document.addEventListener(‘DOMContentLoaded’, adPush, false);
}
});
}
if (window.Promise) {
init();
} else {
var js = document.createElement(‘script’);
js.src = ‘https://media1.popsugar-assets.com/static/js/vendor/polyfills/promise.min.js’;
js.async = true;
js.onload = init;
document.head.appendChild(js);
}
})();
})();

Skip Nav