增加list广告
This commit is contained in:
parent
cb5afd7302
commit
67af964370
@ -1,6 +1,9 @@
|
|||||||
@model List<string>
|
@using iyixiGames.Domain.DTOs.AdSitting
|
||||||
|
@model GoogleDTOs
|
||||||
|
|
||||||
@if (Model[0] == "body")
|
@if (Model.AmpAutoAdIsOpen == 1)
|
||||||
{
|
{
|
||||||
@Model[1]
|
<amp-auto-ads type="adsense"
|
||||||
|
data-ad-client="@Model.AmpAutoAd">
|
||||||
|
</amp-auto-ads>
|
||||||
}
|
}
|
||||||
@ -6,3 +6,9 @@
|
|||||||
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=@Model.AutoAd"
|
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=@Model.AutoAd"
|
||||||
crossorigin="anonymous"></script>
|
crossorigin="anonymous"></script>
|
||||||
}
|
}
|
||||||
|
@if(Model.AmpAutoAdIsOpen==1)
|
||||||
|
{
|
||||||
|
<script async custom-element="amp-auto-ads"
|
||||||
|
src="https://cdn.ampproject.org/v0/amp-auto-ads-0.1.js">
|
||||||
|
</script>
|
||||||
|
}
|
||||||
|
|||||||
@ -1,6 +1,30 @@
|
|||||||
@model List<string>
|
|
||||||
|
|
||||||
@if (Model[0] == "list")
|
@using iyixiGames.Domain.DTOs.AdSitting
|
||||||
|
@model GoogleDTOs
|
||||||
|
|
||||||
|
@if (Model.ListPositionIsOpen == 1)
|
||||||
{
|
{
|
||||||
@Model[1]
|
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-9479337834161326"
|
||||||
|
crossorigin="anonymous"></script>
|
||||||
|
<!-- hf_001 -->
|
||||||
|
<ins class="adsbygoogle"
|
||||||
|
style="display:block"
|
||||||
|
data-ad-client="ca-pub-9479337834161326"
|
||||||
|
data-ad-slot="1367425129"
|
||||||
|
data-ad-format="auto"
|
||||||
|
data-full-width-responsive="true"></ins>
|
||||||
|
<script>
|
||||||
|
(adsbygoogle = window.adsbygoogle || []).push({});
|
||||||
|
</script>
|
||||||
|
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-9479337834161326"
|
||||||
|
crossorigin="anonymous"></script>
|
||||||
|
<ins class="adsbygoogle"
|
||||||
|
style="display:block"
|
||||||
|
data-ad-format="autorelaxed"
|
||||||
|
data-ad-client="ca-pub-9479337834161326"
|
||||||
|
data-ad-slot="5682081797"></ins>
|
||||||
|
<script>
|
||||||
|
(adsbygoogle = window.adsbygoogle || []).push({});
|
||||||
|
</script>
|
||||||
|
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue
Block a user