mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-25 03:29:51 +01: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() {
|
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({});`,
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
</>
|
||||||
|
);
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user