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() {
// useEffect(() => {
// (window as any).msAdsQueue.push(() => {
// (window as any).pubCenterSdk.render({
// adUnitId: '635230699',
// elementId: 'ms-ad-635230699',
// });
// });
// });
// return <div id="ms-ad-635230699" />;
return null;
return (
<>
<script
async
src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-1289406790225052"
crossOrigin="anonymous"
/>
<ins
className="adsbygoogle"
style={{ display: 'block' }}
data-ad-client="ca-pub-1289406790225052"
data-ad-slot="2391822409"
data-ad-format="auto"
data-full-width-responsive="true"
/>
<script
dangerouslySetInnerHTML={{
__html: `(adsbygoogle = window.adsbygoogle || []).push({});`,
}}
/>
</>
);
}