mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 10:47:04 +02:00
feat: re-enable adsense
This commit is contained in:
1 parent
6a48638171
commit
c615284d87
2 files changed
+15
-15
No files matched your search
@@ -1,14 +1,14 @@
|
||||
import { useEffect } from 'react';
|
||||
|
||||
export function AdHorizontal() {
|
||||
useEffect(() => {
|
||||
(window as any).msAdsQueue.push(() => {
|
||||
(window as any).pubCenterSdk.render({
|
||||
adUnitId: '635230699',
|
||||
elementId: 'ms-ad-635230699',
|
||||
});
|
||||
});
|
||||
});
|
||||
// useEffect(() => {
|
||||
// (window as any).msAdsQueue.push(() => {
|
||||
// (window as any).pubCenterSdk.render({
|
||||
// adUnitId: '635230699',
|
||||
// elementId: 'ms-ad-635230699',
|
||||
// });
|
||||
// });
|
||||
// });
|
||||
|
||||
return <div id="ms-ad-635230699" />;
|
||||
// return <div id="ms-ad-635230699" />;
|
||||
|
||||
return null;
|
||||
}
|
||||
@@ -25,18 +25,18 @@ export function Party3() {
|
||||
/>
|
||||
|
||||
{/* adsense */}
|
||||
{/* <script
|
||||
<script
|
||||
async
|
||||
src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-1289406790225052"
|
||||
crossOrigin="anonymous"
|
||||
/> */}
|
||||
/>
|
||||
|
||||
{/* pub center */}
|
||||
<script
|
||||
{/* <script
|
||||
async
|
||||
src="https://adsdk.microsoft.com/pubcenter/sdk.js?siteId=364477&publisherId=253617120"
|
||||
crossOrigin="anonymous"
|
||||
/>
|
||||
/> */}
|
||||
</>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user