wanghw678
wanghw678
  • 发布:2025-09-22 11:52
  • 更新:2025-09-22 11:58
  • 阅读:28

微信小程序节日信息流广告怎么提示:无效的广告位标识adpid,请使用正确的adpid

分类:uni-app

微信小程序节日信息流广告本地调试怎么提示:无效的广告位标识adpid,请使用正确的adpid,我传入的adpid时正确的,后台申请的。
我把adpid在页面写死也报这个错。

<template>  
    <view>  
        <!-- 广告后台申请的广告位(adpid)需要自定义基座/云打包/本地打包后生效 -->  
        <!-- #ifdef H5 -->  
        <view class="content ad-view" v-if="isVip!=1&&open==1">  
            <!-- <ad :adpid="h5Adpid" @load="onload" :ad-intervals="35" @close="onclose" @error="onerror"></ad> -->  
        </view>  
        <!-- #endif -->  
        <!-- #ifdef MP-WEIXIN -->  
        <view class="content ad-view" v-if="isVip!=1&&open==1">  
            <ad :adpid="wxAdpid" @load="onload" :ad-intervals="35" @close="onclose" @error="onerror"></ad>  
        </view>  
        <!-- #endif -->  
    </view>  
</template>  

<script>  
    export default {  
        name: '',  
        props: {  
            isVip: Number,  
            open: {  
                  type: String,  
                  default: '0'  
            },  
            h5Adpid: {  
                type: String,  
                default: ''  
            },  
            wxAdpid: {  
                type: String,  
                default: ''  
            }  
        },  
        data() {  
            return {  
                title: 'ad'  
            }  
        },  

        methods: {  
            onload(e) {  
                console.log("onload");  
            },  
            onclose(e) {  
                console.log("onclose: " + e.detail);  
            },  
            onerror(e) {  
                console.log("onerror: " + e.detail.errCode + " message:: " + e.detail.errMsg);  
            }  
        }  
    }  
</script>  

<style>  
    .content {  
        background-color: #f5eded;  
        padding: 10rpx;  
    }  

    .ad-view {  
        background-color: #FFFFFF;  
        margin-bottom: 10rpx;  
    }  
</style>  
2025-09-22 11:52 负责人:无 分享
已邀请:
DCloud_UNI_Anne

DCloud_UNI_Anne

adpid 私发我

  • wanghw678 (作者)

    你好,发您了

    2025-09-22 12:18

要回复问题请先登录注册