File tree Expand file tree Collapse file tree 2 files changed +9
-7
lines changed
Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,8 @@ export const sharedPageComponents: SharedLayout = {
88 afterBody : [
99 Component . DesktopOnly (
1010 Component . Adsense ( {
11- client :"ca-pub-1829817529831781"
11+ clientId : "ca-pub-1829817529831781" ,
12+ slotId : "7543380157"
1213 } )
1314 ) ,
1415 Component . Comments ( {
Original file line number Diff line number Diff line change 11import { QuartzComponent , QuartzComponentConstructor , QuartzComponentProps } from "./types"
22
33interface Options {
4- client : string
4+ clientId : string ,
5+ slotId : String
56}
67
78const defaultOptions : Options = {
8- client : "ca-pub-1829817529831781" ,
9+ clientId : "ca-pub-1829817529831781" ,
10+ slotId : "7543380157"
911}
1012
1113export default ( ( opts : Options ) => {
@@ -14,13 +16,13 @@ export default ((opts: Options) => {
1416 < div >
1517 < script
1618 async
17- src = { `https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=${ opts . client } ` }
19+ src = { `https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=${ opts . clientId } ` }
1820 crossorigin = "anonymous" >
1921 </ script >
2022 < ins class = "adsbygoogle"
2123 style = "display:block"
22- data-ad-client = { `${ opts . client } ` }
23- data-ad-slot = "7543380157"
24+ data-ad-client = { `${ opts . clientId } ` }
25+ data-ad-slot = { ` ${ opts . slotId } ` }
2426 data-ad-format = "auto"
2527 data-full-width-responsive = "true" > </ ins >
2628 < script >
@@ -29,6 +31,5 @@ export default ((opts: Options) => {
2931 </ div >
3032 )
3133 }
32-
3334 return Adsense
3435} ) satisfies QuartzComponentConstructor < Options >
You can’t perform that action at this time.
0 commit comments