javascript - 如何将 Vue/NuxtJs 与 Ezoic 集成?
问题描述
Ezoic 为网络发布商提供针对其广告、内容、布局等的自动化网站智能。
Ezoic 只能由 Cloudflare 或名称服务器集成 - https://support.ezoic.com/support/solutions/articles/48000453862-how-can-i-integrate-my-site-with-ezoic-
ezoic 服务器正在用广告脚本替换广告占位符。
例子:
<span id="ezoic-pub-ad-placeholder-100"></span> ---> ad script
问题是如何将它与 NuxtJS 和 Vue 连接起来。水合后,广告脚本被移除并替换为占位符。我可以告诉 Vue - 不要重新渲染那段代码吗?
组件代码:
<template>
<div class="google-ads" :class="`google-ads--${type}`">
<template v-if="type === 'top'">
<!-- Ezoic - standard - top_of_page -->
<div id="ezoic-pub-ad-placeholder-102"></div>
<!-- End Ezoic - standard - top_of_page -->
</template>
</div>
</template>
解决方案
推荐阅读
- php - 如果网站在 Google 搜索结果中列出,则防止包含 PHP 文件
- angular - 正则表达式匹配 Angular 代理中的各种 URL
- jmeter-plugins - 在 JMeter 中,为什么加载时间等于延迟?
- apache - Apache .htacess 重定向
- google-sheets - QUERY 和 IMPORTRANGE 的问题 | 谷歌表格
- swiftui - 在 Touch Bar 中显示 TabView 元素 - SwiftUI
- microsoft-graph-api - 图 api me/messages 端点不允许在选择列表中开始和结束日期时间
- javascript - Expo + FirebaseAuthentication(使用 Twitter)无法正常工作
- arrays - 主函数和自定义函数中数组的大小不同
- wpf - 如何从外部程序集访问资源?