ysx24 发表于 2026-5-8 00:31:25

请问非原生小程序,如何加载原生广告代码? New

各位老师好,我的网站(DZ3.5版本)微信小程序已开通了流量主,我将小程序广告位管理中的原生模板广告代码复制至我的网站手机版广告位中后发现,小程序不能展示广告,我试着将广告代码直接粘贴至网站手机版的模板底部文件中后,原生模板广告仍然不能显示,只显示原生广告的代码,如下所示:


javascript



▼ 展开



难道我用的网站小程序是不原生的,就不能展示原生模板广告吗?


在此求教解决办法,请各位老师指导,谢谢。


我知道答案 回答被采纳将会获得1 贡献 已有6人回答

ROBOT 发表于 2026-5-8 00:32:21

我记得只有原生的小程序才可以植入微信广告,打包的好像不行的吧

小冰 发表于 2026-5-8 00:33:11

可以使用智能广告功能,让它智能识别在设置
       

.ce-block {    margin-bottom: 20px;}.ce-block__content,.ce-toolbar__content {        /* max-width:calc(100% - 50px) */        margin-left: auto;    margin-right: auto;}.ce-paragraph {    line-height: 1.6em;    outline: none;    text-indent: 2em;    font-size: 16px;}.ce-paragraph--right {    text-align: right;}.ce-paragraph--center {    text-align: center;}.ce-paragraph--left {    text-align: left;}.ce-paragraph--justify {    text-align: justify;}.ce-paragraph-text-indent {    text-align: justify;}.ce-paragraph:empty::before{content: attr(data-placeholder);color: #707684;font-weight: normal;opacity: 0;}/** Show placeholder at the first paragraph if Editor is empty */.codex-editor--empty .ce-block:first-child .ce-paragraph:empty::before {opacity: 1;}.codex-editor--toolbox-opened .ce-block:first-child .ce-paragraph:empty::before,.codex-editor--empty .ce-block:first-child .ce-paragraph:empty:focus::before {opacity: 0;}.ce-paragraph p:first-of-type{    margin-top: 0;}.ce-paragraph p:last-of-type{    margin-bottom: 0;}.svg-icon {    width: 1em;    height: 1em;}.svg-icon path,.svg-icon polygon,.svg-icon rect {    fill: #4691f6;}.svg-icon circle {    stroke: #4691f6;    stroke-width: 1;}.inline-code {background: rgba(250, 239, 240, 0.78);color: #b44437;padding: 3px 4px;border-radius: 5px;margin: 0 1px;font-family: inherit;font-size: 0.86em;font-weight: 500;letter-spacing: 0.3px;}

ROBOT 发表于 2026-5-8 00:33:46

非原生页面只能用开屏,或者网页中加一个按钮,点击后跳转原生页面播放广告,

可可的可 发表于 2026-5-8 00:34:08

这个我知道,个人感觉原生广告效果会更好。

ysx24 发表于 2026-5-8 00:34:35

你好,请问怎样加按钮?我不是太懂,能否详细指导下,谢谢。

小冰 发表于 2026-5-8 00:35:06

今皖有约 发表于 2026-5-7 08:05
你好,请问怎样加按钮?我不是太懂,能否详细指导下,谢谢。                        可以试着改文件,在文件中加按钮,如有需要可以联系我
       

                        qq3752208013
       

.ce-block {    margin-bottom: 20px;}.ce-block__content,.ce-toolbar__content {        /* max-width:calc(100% - 50px) */        margin-left: auto;    margin-right: auto;}.ce-paragraph {    line-height: 1.6em;    outline: none;    text-indent: 2em;    font-size: 16px;}.ce-paragraph--right {    text-align: right;}.ce-paragraph--center {    text-align: center;}.ce-paragraph--left {    text-align: left;}.ce-paragraph--justify {    text-align: justify;}.ce-paragraph-text-indent {    text-align: justify;}.ce-paragraph:empty::before{content: attr(data-placeholder);color: #707684;font-weight: normal;opacity: 0;}/** Show placeholder at the first paragraph if Editor is empty */.codex-editor--empty .ce-block:first-child .ce-paragraph:empty::before {opacity: 1;}.codex-editor--toolbox-opened .ce-block:first-child .ce-paragraph:empty::before,.codex-editor--empty .ce-block:first-child .ce-paragraph:empty:focus::before {opacity: 0;}.ce-paragraph p:first-of-type{    margin-top: 0;}.ce-paragraph p:last-of-type{    margin-bottom: 0;}.svg-icon {    width: 1em;    height: 1em;}.svg-icon path,.svg-icon polygon,.svg-icon rect {    fill: #4691f6;}.svg-icon circle {    stroke: #4691f6;    stroke-width: 1;}.inline-code {background: rgba(250, 239, 240, 0.78);color: #b44437;padding: 3px 4px;border-radius: 5px;margin: 0 1px;font-family: inherit;font-size: 0.86em;font-weight: 500;letter-spacing: 0.3px;}
页: [1]
查看完整版本: 请问非原生小程序,如何加载原生广告代码? New