feat: re-enable adsense

This commit is contained in:
TrèsAbhi committed 2024-04-21 10:37:44 -05:00
1 parent 6a48638171
commit c615284d87
2 files changed
+15 -15

No files matched your search

+11 -11
View File
@@ -1,14 +1,14 @@
import { useEffect } from 'react';
export function AdHorizontal() { export function AdHorizontal() {
useEffect(() => { // useEffect(() => {
(window as any).msAdsQueue.push(() => { // (window as any).msAdsQueue.push(() => {
(window as any).pubCenterSdk.render({ // (window as any).pubCenterSdk.render({
adUnitId: '635230699', // adUnitId: '635230699',
elementId: 'ms-ad-635230699', // elementId: 'ms-ad-635230699',
}); // });
}); // });
}); // });
return <div id="ms-ad-635230699" />; // return <div id="ms-ad-635230699" />;
return null;
} }
+4 -4
View File
@@ -25,18 +25,18 @@ export function Party3() {
/> />
{/* adsense */} {/* adsense */}
{/* <script <script
async async
src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-1289406790225052" src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-1289406790225052"
crossOrigin="anonymous" crossOrigin="anonymous"
/> */} />
{/* pub center */} {/* pub center */}
<script {/* <script
async async
src="https://adsdk.microsoft.com/pubcenter/sdk.js?siteId=364477&publisherId=253617120" src="https://adsdk.microsoft.com/pubcenter/sdk.js?siteId=364477&publisherId=253617120"
crossOrigin="anonymous" crossOrigin="anonymous"
/> /> */}
</> </>
); );
} }