У меня есть история AMP с примерно 5 страницами истории.Я хочу включить объявление amp4ads в пользовательский слот страницы истории (например, на 6-й странице будет размещено объявление) на основе этого стандарта https://amp.dev/documentation/guides-and-tutorials/develop/story_ads_best_practices/ Я не могу найти способ встроить рекламный код в свою историю как историюстр.Внедрение кода внутри тега, конечно, не сработает.И я не могу найти какую-либо документацию по этому аспекту!
У меня есть действительный сюжет усилителя, но я не могу найти способ встроить рекламный HTML-код в свою страницу истории.
...
<amp-story>
...
<amp-story-page>
...
</amp-story-page>
##and here i want to add the ad code
##start injected code
<html amp4ads>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,minimum-scale=1">
<!-- Specifies where the user is directed -->
<meta name="amp-cta-url" content="%%CLICK_URL_UNESC%%%%DEST_URL%%">
<!-- Specifies the call to action button text enum -->
<meta name="amp-cta-type" content="EXPLORE">
<!-- Specifies what type of landing page the user is direct to -->
<meta name="amp-cta-landing-page-type" content="NONAMP">
<style amp4ads-boilerplate>body{visibility:hidden}</style>
<style amp-custom>
amp-img {height: 100vh}
</style>
<script async src="https://cdn.ampproject.org/amp4ads-v0.js"></script>
</head>
<body>
<amp-img src="https://amp.dev/static/img/docs/stampads/sponsored_story_full.png" layout="responsive" height="1280" width="720"></amp-img>
</body>
</html>
##end injected code
<amp-story-page>
...
</amp-story-page>
...
</amp-story>
...