ad adjustments per vidcrunch

confirming what to do with the mobile tag...
This commit is contained in:
Thomas Zarebczan 2022-01-18 09:56:58 -05:00
parent e4658bb044
commit 2eadd986b4
No known key found for this signature in database
GPG key ID: D505010BDB4364BC

View file

@ -13,11 +13,8 @@ const ADS_TAG = 'vidcrunchJS537102317';
const IOS_ADS_URL =
'https://cdn.vidcrunch.com/integrations/618bb4d28aac298191eec411/Lbry_Odysee.com_Mobile_Floating_DFP_Rev70_1611.js';
const IOS_ADS_TAG = 'vidcrunchJS199212779';
const HOMEPAGE_ADS_URL =
'https://cdn.vidcrunch.com/integrations/618bb4d28aac298191eec411/Lbry_Odysee.com_Responsive_Floating_300x169_DFP_Rev70_1211.js';
const HOMEPAGE_ADS_TAG = 'vidcrunchJS330442776';
const EU_AD_URL = 'https://tg1.vidcrunch.com/api/adserver/spt?AV_TAGID=61dff05c599f1e20b01085d4&AV_PUBLISHERID=6182c8993c8ae776bd5635e9';
const EU_AD_URL =
'https://tg1.vidcrunch.com/api/adserver/spt?AV_TAGID=61dff05c599f1e20b01085d4&AV_PUBLISHERID=6182c8993c8ae776bd5635e9';
const EU_AD_TAG = 'AV61dff05c599f1e20b01085d4';
const IS_IOS =
@ -66,7 +63,6 @@ function Ads(props: Props) {
// load ad and tags here
let scriptUrlToUse;
let tagNameToUse;
if (type === 'video') {
if (isInEu) {
tagNameToUse = EU_AD_TAG;
scriptUrlToUse = EU_AD_URL;
@ -77,15 +73,6 @@ function Ads(props: Props) {
tagNameToUse = ADS_TAG;
scriptUrlToUse = ADS_URL;
}
} else if (type === 'homepage') {
if (isInEu) {
tagNameToUse = EU_AD_TAG;
scriptUrlToUse = EU_AD_URL;
} else {
tagNameToUse = HOMEPAGE_ADS_TAG;
scriptUrlToUse = HOMEPAGE_ADS_URL;
}
}
// add script to DOM
useEffect(() => {