feat: horizontal ad

This commit is contained in:
TrèsAbhi committed 2024-04-21 10:41:51 -05:00
1 parent c615284d87
commit 1548813a21
1 file changed
+22 -12
+22 -12
View File
@@ -1,14 +1,24 @@
export function AdHorizontal() { export function AdHorizontal() {
// useEffect(() => { return (
// (window as any).msAdsQueue.push(() => { <>
// (window as any).pubCenterSdk.render({ <script
// adUnitId: '635230699', async
// elementId: 'ms-ad-635230699', src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-1289406790225052"
// }); crossOrigin="anonymous"
// }); />
// }); <ins
className="adsbygoogle"
// return <div id="ms-ad-635230699" />; style={{ display: 'block' }}
data-ad-client="ca-pub-1289406790225052"
return null; data-ad-slot="2391822409"
data-ad-format="auto"
data-full-width-responsive="true"
/>
<script
dangerouslySetInnerHTML={{
__html: `(adsbygoogle = window.adsbygoogle || []).push({});`,
}}
/>
</>
);
} }