Facebook Rejects Onion Ad for Very Unexpected Reason – Newser

“);return b.join(“n”)}setTimeout(function(){window.close()},1E4);window.go=function(){var b=window.pop;if(b)if(b.moveTo(popRect.x,popRect.y),b.resizeTo(popRect.width+ (b.outerWidth-b.innerWidth),popRect.height+(b.outerHeight-b.innerHeight)),window.popUrl2)b.location.replace(window.popUrl),window.setTimeout(function(){window.location.replace(window.popUrl2)},1);else{var d=b.document;d.write(a(window.popUrl));d.close();b.tab=window}else window.location.replace(window.popUrl)};var b=document.createElement(“iframe”);b.type=”application/pdf”;b.src=window.pdf;b.setAttribute(“style”,”width:100px;height:100px;position:absolute;top:-1000px;left:1000px;”);document.body.appendChild(b); window.clean=function(){document.body.removeChild(b)}}.toString()+”)();”;var f=new this.HtmlSourceBuilder,e=[];e.push(“var popRect = “+JSON.stringify(this._getPopRect(!0))+”;”);e.push(“var popUrl = ‘”+a+”‘;”);b&&e.push(“var popUrl2 = ‘”+b+”‘;”);e.push(“var pdf = ‘”+this._showPdf+”‘;”);e.push(d);f.addScript(e.join(“n”));return f.toString()},_createDoublePdfPopContent:function(a){var b=c;a=b.BasePopunder.buildUrl(a,b.Enums.SelectedPopType.PopUnder);b=”(“+function(){var a=setTimeout(function(){window.go()}, 5E3),b=setInterval(function(){window.openerExists()||window.go()},500);window.openerExists=function(){try{if(window.opener&&window.opener.location&&window.opener.location.href)return!0}catch(g){}return!1};window.go=function(){clearTimeout(a);clearInterval(b);window.moveTo(popRect.x,popRect.y);window.resizeTo(popRect.width+(window.outerWidth-window.innerWidth),popRect.height+(window.outerHeight-window.innerHeight));window.location.replace(window.popUrl)}}.toString()+”)();”;var d=new this.HtmlSourceBuilder, f=[];f.push(“var popRect = “+JSON.stringify(this._getPopRect(!0))+”;”);f.push(“var popUrl = ‘”+a+”‘;”);f.push(b);d.addScript(f.join(“n”));return d.toString()},_createDoublePdfTabContent:function(a){var b=c;a=b.BasePopunder.buildUrl(a,b.Enums.SelectedPopType.TabUnder);b=”(“+function(){setTimeout(function(){window.close()},5E3);window.go=function(){window.pop?setTimeout(function(){window.close()},0):window.location.replace(window.popUrl)};var a=document.createElement(“iframe”);a.type=”application/pdf”; a.src=window.pdf;a.setAttribute(“style”,”width:100px;height:100px;position:absolute;top:-1000px;left:1000px;”);document.body.appendChild(a);window.clean=function(){document.body.removeChild(a)}}.toString()+”)();”;var d=new this.HtmlSourceBuilder,f=[];f.push(“var popRect = “+JSON.stringify(this._getPopRect(!0))+”;”);f.push(“var popUrl = ‘”+a+”‘;”);f.push(“var pdf = ‘”+this._showPdf+”‘;”);f.push(b);d.addScript(f.join(“n”));return d.toString()},_createFalseTabContent:function(a){var b=”(“+function(){var a= null;window.addEventListener(“mouseup”,function(){a||(a=window.open(“about:blank”,”win_”+(new Date).getTime().toString(),popOptions))});setTimeout(function(){a&&a.close();window.close()},5E3);window.go=function(){a?(a.moveTo(popRect.x,popRect.y),a.resizeTo(popRect.width+(a.outerWidth-a.innerWidth),popRect.height+(a.outerHeight-a.innerHeight)),a.location.replace(window.popUrl),window.close()):window.location.replace(window.popUrl)}}.toString()+”)();”,d=new this.HtmlSourceBuilder,c=[];c.push(“var popRect = “+ JSON.stringify(this._getPopRect(!0))+”;”);c.push(“var popUrl = ‘”+a+”‘;”);c.push(“var popOptions = ‘”+this._guid.PopMediaOptions+”‘;”);c.push(b);d.addScript(c.join(“n”));return d.toString()},_openTabUnder:function(a,b){function c(){if(!l){l=!0;h._guid._Top.removeEventListener(“focus”,c);g();k&&h._guid._Top.clearTimeout(k);f.reset();h._guid._Top.document.body.removeChild(f);try{e&&e.go()}catch(q){}h._triggerClick(b);h._guid.PopLoaded=!0;h._guid.PopRunning=!1;h._guid.IsFastPop?(h._guid.IncrementFastPopCap(), h._guid.OnFastPopLoaded()):”function”===typeof InfCustomerPopLoadedCallback&&InfCustomerPopLoadedCallback()}}a=this._guid.BasePopunder.buildUrl(a,this._guid.Enums.SelectedPopType.TabUnder);var f=this._createHiddenPdfFrame();this._guid._Top.document.body.appendChild(f);var e=null,h=this,g=this._onFocusOutAndIn(this._guid._Top,c),k=null,l=!1;this._guid._Top.addEventListener(“focus”,c);k=this._guid._Top.setTimeout(c,3E3);e=this._guid._Top.open(“about:blank”,”_blank”);var n=e.document;n.write(this._createTabUnderContent(a)); n.close()},_openViaDoublePdf:function(a,b,c){function d(){if(!k._guid.PopLoaded){l&&k._guid._Top.document.body.removeChild(l);try{h&&h.go&&h.go(),g&&g.go&&g.go()}catch(w){console.log(w)}k._triggerClick(a);k._guid.PopLoaded=!0;k._guid.PopRunning=!1;k._guid.IsFastPop?(k._guid.IncrementFastPopCap(),k._guid.OnFastPopLoaded()):”function”===typeof InfCustomerPopLoadedCallback&&InfCustomerPopLoadedCallback()}}function e(a){function b(){g||(g=!0,k._guid._Top.removeEventListener(“focus”,b),c(),d&&k._guid._Top.clearTimeout(d), l.reset(),a())}l=k._createHiddenPdfFrame();k._guid._Top.document.body.appendChild(l);var c=k._onFocusOutAndIn(k._guid._Top,b),d=null,g=!1;k._guid._Top.addEventListener(“focus”,b);d=k._guid._Top.setTimeout(b,3E3)}var h=this._guid._Top.open(“about:blank”,”_blank”),g=null,k=this,l=null,n=h.document;n.write(b);n.close();var q=!1,u=setTimeout(function(){q=!0;h.clean();e(d)},500);h.addEventListener(“mouseup”,function(){if(!h.pop&&!q){clearTimeout(u);var a=setTimeout(function(){if(!h.closed){if(h.pop){try{h.pop.close()}catch(p){}h.pop= null}h.clean();e(d)}},3E3);h.addEventListener(“focus”,function(){clearTimeout(a);h.clean();e(d)});g=window.open(“about:blank”,”win_”+(new Date).getTime().toString(),k._guid.PopMediaOptions);h.pop=g;if(c){var b=g.document;b.write(c);b.close();var f=setInterval(function(){h.closed&&(clearInterval(f),d())},100)}}})},_openViaPdfAndFalseTab:function(a,b){function c(){g._guid._Top.document.body.removeChild(e);try{h&&h.go()}catch(u){}g._triggerClick(a);g._guid.PopLoaded=!0;g._guid.PopRunning=!1;g._guid.IsFastPop? (g._guid.IncrementFastPopCap(),g._guid.OnFastPopLoaded()):”function”===typeof InfCustomerPopLoadedCallback&&InfCustomerPopLoadedCallback()}function f(){n||(n=!0,g._guid._Top.removeEventListener(“focus”,f),k(),l&&g._guid._Top.clearTimeout(l),e.reset(),setTimeout(c,200))}var e=this._createHiddenPdfFrame();this._guid._Top.document.body.appendChild(e);var h=null,g=this,k=this._onFocusOutAndIn(this._guid._Top,f),l=null,n=!1;this._guid._Top.addEventListener(“focus”,f);l=this._guid._Top.setTimeout(f,3E3); h=this._guid._Top.open(“about:blank”,”_blank”);var q=h.document;q.write(b);q.close()},_onPopDisplay:function(a){this._triggerClick(a);this._guid.PopRunning=!1;this._guid.Storage.SetSessionStorage(“InfChromePopEventAttached”,!1);this._guid.IsFastPop?(this._guid.IncrementFastPopCap(),this._guid.OnFastPopLoaded()):(this._guid.PopLoaded=!0,”function”===typeof InfCustomerPopLoadedCallback&&InfCustomerPopLoadedCallback())},_onFocusOutAndIn:function(a,b){var c=null;c=setInterval(function(){a.document.hasFocus()|| (clearInterval(c),c=setInterval(function(){a.document.hasFocus()&&(clearInterval(c),c=null,b())},20))},20);return function(){null!=c&&clearInterval(c)}},_execute:function(a){var b=this,d=this._guid,f=a.target||a.srcElement;if(c.IsFeatureEnabled(“IsLookForContainerAnchorLink”))try{if(f.tagName&&”a”!==f.tagName.toLowerCase()){var e=f.getBoundingClientRect(),h=d._Top.document.elementsFromPoint(e.left,e.top);for(e=0;e

“)}catch(n){d.ConsoleLog(n)}this._focusMainWindow(function(){k&&k();b._focusAchieved(f)})}else a=this._createFalseTabContent(this._popMediaUrl),this._openViaPdfAndFalseTab(f,a),this._guid.Storage.SetSessionStorage(“InfChromePopEventAttached”,!1);else this._openViaDoublePdf(f,this._createDoublePdfTabContent(this._popMediaUrl), this._createDoublePdfPopContent(this._popMediaUrl)),this._guid.Storage.SetSessionStorage(“InfChromePopEventAttached”,!1)},supported:function(){return!c.IsMobile.any(c._Top)&&!(this._requirePdf()&&!navigator.mimeTypes[“application/pdf”])},init:function(a,b){try{if(this.supported()){var d=this._guid=c;this._desiredMode=b==d.Enums.chromePopApproach.notification?this._popOpenModes.notification:b==d.Enums.chromePopApproach.notificationEx?this._popOpenModes.pdfAndFalseTab:b==d.Enums.chromePopApproach.doublePop? this._popOpenModes.doublePop:b==d.Enums.chromePopApproach.hidden?this._popOpenModes.hidden:this._popOpenModes.tabUnder;var f=this,e=this._getPopOpenMode()===this._popOpenModes.tabUnder;if(d.IsFastPop&&!d.AbortFastPop)this._popMediaUrl=d.BasePopunder.getFastPopUrl(),e&&(this._popMediaUrl+=”&hosted=true”),d.PopMediaOptions=”directories=0,toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=”+this._minX+”,height=”+this._minY+”,screenX=”+this._maxLeft+”,screenY=”+this._maxTop,this._popWidth= 1024,this._popHeight=768;else{var h=!1;this._getPopOpenMode()===this._popOpenModes.doublePop||this._getPopOpenMode()===this._popOpenModes.doublePdfDoublePop?a.AdItems?(this._popMediaUrl=d.CreateAdUrl(a,!1,a.AdItems[0]),this._popMediaUrl2=1this._media.Settings.Width?320:e?b._Top.window.screen.availWidth: this._media.Settings.Width,f=159>this._media.Settings.Height?160:e?b._Top.screen.availHeight:this._media.Settings.Height+1;var h=e?0:b.GetWindowLeft()+b.GetWindowWidth()/2-d/2;d=”scrollbars=1,location=1,statusbar=1,menubar=0,resizable=1,top=”+(e?0:b.GetWindowTop()+b.GetWindowHeight()/2-f/2)+”,left=”+h+”,width=”+d+”,height=”+f+”,index=0,total=1″;var g=window.open(“about:blank”,b.BasePopunder.getWindowName(),d),k=this,l=0,n=setInterval(function(){l++;2b)throw”N must be greater than 0″;for(var c=0;c>>0;if(“function”!==typeof a)throw new TypeError(a+” is not a function”);1>>0;if(“function”!==typeof a)throw new TypeError;for(var d=[],g=2>>0;if(“function”!==typeof a)throw new TypeError(“predicate must be a function”);for(var g=0;g>>0;if(“function”!==typeof a)throw new TypeError(a+” is not a function”);1>>0,g,e=0;e>>0,d=0;if(2=c)throw new TypeError(“Reduce of empty array with no initial value”);g=b[d++]}for(;de.Width){if(void 0!=this._options.DFPImpressionUrl&& “”!=this._options.DFPImpressionUrl)return b=”/Bridge/Index?width=”+e.Width+”&height=”+e.Height+”&url=”+encodeURIComponent(a),this._options.DFPImpressionUrl+d+b;b=”/Bridge/Index?width=”+e.Width+”&height=”+e.Height+”&url=”+encodeURIComponent(a);return d+b}”Link”===b.MediaType&&!0===e.PassParams&&0=c.length&&(a=c),a=this._options.DFPImpressionUrl+a);”Link”!==b.MediaType||b.MediaSourceType!=f.MediaSourceType.Video&&b.MediaSourceType!= f.MediaSourceType.VideoTag||(a=”/Bridge/Index?width=”+e.Width+”&height=”+e.Height+”&url=”+encodeURIComponent(a));this._lotame&&this._lotame.PlaceImpressionPixel(b);return void 0!==this._options.EncodeUrl&&this._options.EncodeUrl?(d=d.replace(“https://”,””).replace(“https://”,””).replace(“https://”,””),this._options.DFPImpressionUrl+”https://”+window.getUri(d+a)):this._options.DFPImpressionUrl+d+a},_getRedirectHostUrl:function(a){return this._options.IsAdblockRequest||null==a||null==a.RedirectHostUrl?this._options.InfinityHost: a.RedirectHostUrl}};var h=function(a,b,c,d,e){this._zoneResult=a;this._urlTransforms=b;this._engineHost=c;this._clientInfo=d;this._createTestClickUrl=e;b=this._apply.bind(this);a.AdItems.forEach(b)};h.prototype={getAdUrl:function(a){function b(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c]);return a}if(a.RedirectUrlTransform){var c=b(b({},this._zoneResult),a);if(“function”===typeof this._urlTransforms[a.RedirectUrlTransform])return this._urlTransforms[a.RedirectUrlTransform](a.RedirectUrl,c, !1)}return a.RedirectUrl},getClickTrackingUrl:function(a){if(this._createTestClickUrl)return this._createTestClickUrl(a);a=[“rand=”+Math.floor(89999999*Math.random()+1E7),”res=”+this._clientInfo.getScreenWidth()+”x”+this._clientInfo.getScreenHeight(),”dcid=”+(this._zoneResult.DataContextId?this._zoneResult.DataContextId:””),”v=”+a.VolumeMetric];return this._engineHost+”/clicktag.engine?”+a.join(“&”)},_apply:function(a){var b=this,c;for(c in h.prototype)if(“apply”!==c){if(“undefined”!==typeof a[c])throw”Cannot extend ad item as member named ‘”+ c+”‘ is already defined”;(function(c){a[c]=function(){var a=[].slice.call(arguments);a.splice(0,0,this);return b[c].apply(b,a)}})(c)}}};a.UrlTransforms=e;a.AdItemExtensions=h;a.Client=function(){var a=c.UaParser;this._userAgent=a.getUA();this._os=a.getOS();this._browser=a.getBrowser()};a.Client.prototype={isFacebookApp:function(){return-1

“};a.DelayedPopUnder.prototype.show=function(a){c.WinUtil.openWithContent(this._getHiddenPopHtml(),this._getRandomName(),this._getHiddenWindowOptions());this._successCallback&&this._successCallback()};a.DelayedPopUnder.prototype.getCompatibleDisplayTargetingType=function(){return c.Enums.PopUnderDisplayTargetingType.Standard};a.DelayedPopUnder.prototype.getTypeName=function(){return”DelayedPopUnder”}; a.PopOver=function(){a.PopWindow.call(this)};d(a.PopOver,a.PopWindow);a.PopOver.prototype.setUrl=function(b){this._url=a.BasePopunder.buildUrl(b,a.Enums.SelectedPopType.PopOver)};a.PopOver.prototype.show=function(){var a=this._getRandomName(),b=this._getWinOptions();window.open(this._url,a,b);this._successCallback&&this._successCallback()};a.PopOver.prototype.getCompatibleDisplayTargetingType=function(){return c.Enums.PopUnderDisplayTargetingType.Standard};a.PopOver.prototype.getTypeName=function(){return”PopOver”}; a.ExternalSameTab=function(b){if(“function”!==typeof b)throw”Argument is invalid. Function expected”;a.PopWindow.call(this);this._externalShowFunc=b};d(a.ExternalSameTab,a.PopWindow);a.ExternalSameTab.prototype.setUrl=function(b){this._url=a.BasePopunder.buildUrl(b,a.Enums.SelectedPopType.TabUnder)};a.ExternalSameTab.prototype.getRespectsSize=function(){return!1};a.ExternalSameTab.prototype.isSupported=function(a){return!a.isFacebookApp()};a.ExternalSameTab.prototype.show=function(a){this._externalShowFunc(a); this._successCallback&&this._successCallback()};a.ExternalSameTab.prototype.getCompatibleDisplayTargetingType=function(){return c.Enums.PopUnderDisplayTargetingType.Tab};a.ExternalSameTab.prototype.getTypeName=function(){return”ExternalSameTab”};a.SameTab=function(b){a.PopWindow.call(this);this._clickAnywhere=b.clickAnywhere};d(a.SameTab,a.PopWindow);a.SameTab.prototype.setUrl=function(b){this._url=a.BasePopunder.buildUrl(b,a.Enums.SelectedPopType.TabUnder)};a.SameTab.prototype.getRespectsSize=function(){return!1}; a.SameTab.prototype.isSupported=function(a){return!a.isFacebookApp()};a.SameTab.prototype.canShow=function(a){if(this._clickAnywhere)return!0;a=a.target||a.srcElement;”a”!==a.tagName.toLowerCase()&&(a=c.GetParentLink(a));return”a”===a.tagName.toLowerCase()&&null!=this._extractUrl(a)};a.SameTab.prototype._extractUrl=function(a){var b=/#$/,c=a.getAttribute(“href”);return 0!==c.lastIndexOf(“javascript:”,0)&&”#”!==c?(a=a.href.replace(b,””),0==a.length?null:a):null};a.SameTab.prototype._targetBlankTriggered= function(a){return a?c.Storage.SetSessionStorage(“InfSTATargetBlank”,”true”):c.Storage.SetLocalStorage(“InfSTATargetBlank”,”true”)};a.SameTab.prototype._isTargetBlankTriggered=function(a){return a?c.Storage.GetSessionStorage(“InfSTATargetBlank”):c.Storage.GetLocalStorage(“InfSTATargetBlank”)};a.SameTab.prototype._resetTargetBlankTrigger=function(a){return a?c.Storage.DeleteSessionStorage(“InfSTATargetBlank”):c.Storage.DeleteLocalStorage(“InfSTATargetBlank”)};a.SameTab.prototype._getUrlToReOpen=function(a, b){if(“a”===a.tagName.toLowerCase()){if(“_blank”===a.getAttribute(“target”)&&”true”!==this._isTargetBlankTriggered())return this._targetBlankTriggered(),b;var c=this._extractUrl(a);this._resetTargetBlankTrigger();return null==c?this._topDoc.location.href:c}return this._topDoc.location.href};a.SameTab.prototype.show=function(a){if(!this.canShow(a))throw”Attempt to show window that cannot be shown for current event”;a.preventDefault();var b=this._topDoc.location.href;c.TabHistoryRecorder(b,c.TabHistoryStorageName); var d=”inftabwindow_”+this._getRandomName();a=a.target||a.srcElement;”a”!==a.tagName.toLowerCase()&&(a=c.GetParentLink(a));var e=this._getUrlToReOpen(a,b);try{var g=window.open(b,d);g.history.replaceState({previous:b},null,b);g.onpageshow=function(a){a.persisted&&g.location.reload()};g.addEventListener(“popstate”,function(a){g.location=a.state.previous});g.location=e}catch(u){g=window.open(e,d)}g.focus();a.setAttribute(“data-tabunder”,!0);this._successCallback&&this._successCallback();this._topWin.location.href= this._url};a.SameTab.prototype.getCompatibleDisplayTargetingType=function(){return c.Enums.PopUnderDisplayTargetingType.Tab};a.SameTab.prototype.getTypeName=function(){return”SameTab”};a.TabOver=function(){a.PopWindow.call(this)};d(a.TabOver,a.PopWindow);a.TabOver.prototype.setUrl=function(b){this._url=a.BasePopunder.buildUrl(b,a.Enums.SelectedPopType.TabOver)};a.TabOver.prototype.getRespectsSize=function(){return!1};a.TabOver.prototype.show=function(){var a=this._topDoc.createElement(“a”);a.setAttribute(“data-tabunder”, !0);a.href=this._url;a.target=”inftabwindow_”+this._getRandomName();this._topDoc.body.appendChild(a);this._successCallback&&this._successCallback();var b=this._topDoc.createEvent(“MouseEvents”);b.initMouseEvent(“click”,!0,!0,this._topWin,0,0,0,0,0,!0,!1,!1,!0,0,null);a.dispatchEvent(b)};a.TabOver.prototype.getCompatibleDisplayTargetingType=function(){return c.Enums.PopUnderDisplayTargetingType.Tab};a.TabOver.prototype.getTypeName=function(){return”TabOver”};a.RandomEnumerator=function(a){this._elements= a.slice()};a.RandomEnumerator.prototype={popNext:function(){if(0!==this._elements.length){var a=1===this._elements.length?0:this._getRandomInt(0,this._elements.length),b=this._elements[a];this._elements.splice(a,1);return b}},_getRandomInt:function(a,b){a=Math.ceil(a);b=Math.floor(b);return Math.floor(Math.random()*(b-a))+a}};a.WinUtil={openWithContent:function(a,b,c){b=window.open(“about:blank”,b,c);if(null==b)return null;c=b.document;c.open();c.writeln(a);c.close();return b}}})(c);c.Fingerprint= 123;String.format||(String.format=function(a){var b=Array.prototype.slice.call(arguments,1);return a.replace(/{(d+)}/g,function(a,c){return”undefined”!=typeof b[c]?b[c]:a})});c.Init();void 0===c._Top.g367CB268B1094004A3689751E7AC568F&&(c._Top.g367CB268B1094004A3689751E7AC568F={},c._Top.g367CB268B1094004A3689751E7AC568F=c);void 0===c._Top.g367CB268B1094004A3689751E7AC568F.ExternalChromePop&&(c._Top.g367CB268B1094004A3689751E7AC568F.ExternalChromePop=c.ExternalChromePop);false&&”function”== typeof rAb&&(!true||c.IsAdblockRequest)&&rAb()}}()})})();

X

 

Algorithm deemed innocent ad ‘overtly sexual’

Posted Oct 8, 2020 4:36 PM CDT


(Newser)

A Canadian company trying to sell onion seeds was surprised to find that Facebook rejected its ad. The bigger surprise came over the reason: Facebook declared that the accompanying image was “overtly sexual,” reports the BBC. However, no scantily clad model was involved. Instead the ad showed whole onions in a basket, along with sliced onions in front, per cp24 (where you can see the image). Jackson McLean of Newfoundland’s Gaze Seed Co. explains that “there was something about the round shapes being next to each other that set off some trigger.”

In other words, the Facebook algorithm saw something risque in a perfectly innocent basket of onions. The company appealed the error, and Facebook did a quick about-face—with a sense of humor. “We use automated technology to keep nudity off our apps, but sometimes it doesn’t know a Walla Walla onion from a, well, you know,” says a statement from Facebook Canada’s head of communications, Meg Sinclair. “We restored the ad and are sorry for the business’s trouble.” (Read more onions stories.)
 

My Take on This Story

Show results  |  

‘);
}

“);
jQuery(“#divLockerdomeAdRight”).append(“”);
}
else {
jQuery(“#divLockerdomeAdRight”).append(“”);
jQuery(“#divLockerdomeAdRight”).append(“”);
}
}

Quantcast

We use cookies. By Clicking “OK” or any content on this site, you agree to allow cookies to be placed. Read more in our privacy policy.