Skip to content

Commit f2f1856

Browse files
committed
adsense test 9
1 parent a866d11 commit f2f1856

File tree

1 file changed

+16
-9
lines changed

1 file changed

+16
-9
lines changed

main.py

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -429,15 +429,22 @@ def generate_question_cards():
429429
for i, x in enumerate(question_objects(section))
430430
]
431431
def ad_maven_card():
432-
return '''<amp-ad width="100vw" height="320"
433-
type="adsense"
434-
data-ad-client="ca-pub-2090178937498462"
435-
data-ad-slot="8188391527"
436-
data-auto-format="rspv"
437-
data-full-width="">
438-
<div overflow=""></div>
439-
</amp-ad>'''
440-
432+
return Div(
433+
Script(
434+
src='https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-2090178937498462',
435+
crossorigin='anonymous'
436+
),
437+
Ins(
438+
cls="adsbygoogle",
439+
style="display:block",
440+
data_ad_format="fluid",
441+
data_ad_layout_key="-6w+ed+2i-1n-4w",
442+
data_ad_client="ca-pub-2090178937498462",
443+
data_ad_slot="7186574111"
444+
),
445+
Script("(adsbygoogle = window.adsbygoogle || []).push({});"),
446+
cls="w-96 h-auto"
447+
)
441448

442449

443450

0 commit comments

Comments
 (0)