mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 18:57:03 +02:00
feat: pub ads
This commit is contained in:
1 parent
6298d6230f
commit
57cd3aae50
4 files changed
+45
-5
No files matched your search
@@ -0,0 +1,19 @@
|
||||
export function AdHorizontal() {
|
||||
return (
|
||||
<>
|
||||
<div id="ms-ad-635230699" />
|
||||
<script
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: `
|
||||
window.msAdsQueue.push(() => {
|
||||
window.pubCenterSdk.render({
|
||||
adUnitId: "635230699",
|
||||
elementId: "ms-ad-635230699"
|
||||
});
|
||||
});
|
||||
`,
|
||||
}}
|
||||
/>
|
||||
</>
|
||||
);
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
export function Google() {
|
||||
export function Party3() {
|
||||
return (
|
||||
<>
|
||||
{/* analytics */}
|
||||
@@ -19,10 +19,24 @@ export function Google() {
|
||||
/>
|
||||
|
||||
{/* adsense */}
|
||||
<script
|
||||
{/* <script
|
||||
async
|
||||
src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-1289406790225052"
|
||||
crossOrigin="anonymous"
|
||||
/> */}
|
||||
|
||||
{/* pub center */}
|
||||
<script
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: `
|
||||
window.msAdsQueue = window.msAdsQueue || [];
|
||||
`,
|
||||
}}
|
||||
/>
|
||||
<script
|
||||
async
|
||||
src="https://adsdk.microsoft.com/pubcenter/sdk.js?siteId=364477&publisherId=253617120"
|
||||
crossOrigin="anonymous"
|
||||
/>
|
||||
</>
|
||||
);
|
||||
Reference in new issue
Block a user