mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 18:57:03 +02:00
feat: horizontal ad
This commit is contained in:
1 parent
c615284d87
commit
1548813a21
1 file changed
+22
-12
@@ -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({});`,
|
||||
}}
|
||||
/>
|
||||
</>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user