gpt4 book ai didi

android - Facebook SDK 广告在没有 AdSettings.addTestDevice 的情况下无法工作

转载 作者:太空宇宙 更新时间:2023-11-03 13:48:59 25 4
gpt4 key购买 nike

这是我加载广告的代码:

        adView = new AdView(this,getResources().getString(R.string.facebook_ad_id) , AdSize.BANNER_320_50);
LinearLayout layout = (LinearLayout)findViewById(R.id.adView);
layout.addView(adView);
//AdSettings.addTestDevice("d0750cd2c16e48849a32688beeaa1890");
adView.loadAd();

除非我取消对 AdSettings.addTestDevice() 的注释,否则此代码将无法运行,这就是问题所在。我想看看它是否适用于发布。

这是我尝试加载广告时的 logcat:

    05-25 15:34:09.253 13334-13572/h2d.drawteam.howtodraw D/IMGSRV: gralloc_register_buffer:1390: hnd=0x55725c6890 ID=280842 fd=88 ref=1
05-25 15:34:09.253 13334-13572/h2d.drawteam.howtodraw D/GraphicBuffer: register, handle(0x55725c6890) (w:1080 h:1920 s:1088 f:0x1 u:0x000b00)
05-25 15:34:09.310 13334-13334/h2d.drawteam.howtodraw V/SettingsInterface: from settings cache , name = sound_effects_enabled , value = 1
05-25 15:34:09.328 13334-22002/h2d.drawteam.howtodraw E/ActivityThread: Failed to find provider info for com.facebook.katana.provider.AttributionIdProvider
05-25 15:34:09.332 13334-13334/h2d.drawteam.howtodraw D/ColorDrawable: Color = -1118482, canvas = android.view.GLES20RecordingCanvas@6b66443, mTintMode = SRC_IN, mTint = null, ColorDrawable = android.graphics.drawable.ColorDrawable@1f5f1cdd
05-25 15:34:09.393 13334-22004/h2d.drawteam.howtodraw I/System.out: [CDS]rx timeout:1
05-25 15:34:09.394 13334-22004/h2d.drawteam.howtodraw I/System.out: [CDS]rx timeout:1
05-25 15:34:09.394 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x557258cde0 sslRead buf=0x55727744e0 len=2048,timeo=10
05-25 15:34:09.396 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x557258cde0 info_callback where=0x4004 ret=256
05-25 15:34:09.396 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x557258cde0 SSL3 alert read:W:CN warning close notify
05-25 15:34:09.396 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x557258cde0 info_callback ignored
05-25 15:34:09.396 13334-22004/h2d.drawteam.howtodraw I/System.out: [CDS]rx timeout:8000
05-25 15:34:09.396 13334-22004/h2d.drawteam.howtodraw I/System.out: [CDS]rx timeout:8000
05-25 15:34:09.396 13334-22004/h2d.drawteam.howtodraw I/System.out: Close in OkHttp:0
05-25 15:34:09.396 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x557258cde0 NativeCrypto_SSL_interrupt
05-25 15:34:09.396 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: sslNotify, appData=0x5572417de0 ret=1
05-25 15:34:09.396 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: sslNotify, appData=0x5572417de0 ret=1
05-25 15:34:09.396 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x557258cde0 info_callback where=0x4008 ret=256
05-25 15:34:09.396 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x557258cde0 SSL3 alert write:W:CN warning close notify
05-25 15:34:09.396 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x557258cde0 info_callback ignored
05-25 15:34:09.397 13334-22004/h2d.drawteam.howtodraw I/System.out: [CDS]close[49487]
05-25 15:34:09.397 13334-22004/h2d.drawteam.howtodraw D/libc-netbsd: [getaddrinfo]: hostname=graph.facebook.com; servname=(null); cache_mode=(null), netid=0; mark=0
05-25 15:34:09.397 13334-22004/h2d.drawteam.howtodraw D/libc-netbsd: [getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=4; ai_family=0
05-25 15:34:09.397 13334-22004/h2d.drawteam.howtodraw D/libc-netbsd: [getaddrinfo]: hostname=graph.facebook.com; servname=(null); cache_mode=(null), netid=0; mark=0
05-25 15:34:09.397 13334-22004/h2d.drawteam.howtodraw D/libc-netbsd: [getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=1024; ai_family=0
05-25 15:34:09.415 13334-22004/h2d.drawteam.howtodraw D/libc-netbsd: getaddrinfo: graph.facebook.com get result from proxy >>
05-25 15:34:09.415 13334-22004/h2d.drawteam.howtodraw I/System.out: propertyValue:true
05-25 15:34:09.420 13334-22004/h2d.drawteam.howtodraw I/System.out: [CDS]rx timeout:8000
05-25 15:34:09.421 13334-22004/h2d.drawteam.howtodraw I/System.out: [socket][3] connection graph.facebook.com/31.13.92.10:443;LocalPort=36844(0)
05-25 15:34:09.421 13334-22004/h2d.drawteam.howtodraw I/System.out: [CDS]connect[graph.facebook.com/31.13.92.10:443] tm:90
05-25 15:34:09.422 13334-22004/h2d.drawteam.howtodraw D/Posix: [Posix_connect Debug]Process h2d.drawteam.howtodraw :443
05-25 15:34:09.455 13334-22004/h2d.drawteam.howtodraw I/System.out: [socket][/192.168.1.107:36844] connected
05-25 15:34:09.460 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x5572747e30 NativeCrypto_SSL_do_handshake fd=0x7f7c141f94 shc=0x7f7c141f98 timeout_millis=8000 client_mode=1 npn=0x0
05-25 15:34:09.460 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: doing handshake ++
05-25 15:34:09.460 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x5572747e30 info_callback where=0x10 ret=1
05-25 15:34:09.460 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x5572747e30 handshake start in UNKWN before/connect initialization
05-25 15:34:09.460 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x5572747e30 info_callback calling handshakeCompleted
05-25 15:34:09.460 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x5572747e30 info_callback completed
05-25 15:34:09.460 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x5572747e30 info_callback where=0x1001 ret=1
05-25 15:34:09.460 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x5572747e30 SSL_connect:UNKWN before/connect initialization
05-25 15:34:09.460 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x5572747e30 info_callback ignored
05-25 15:34:09.460 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x5572747e30 info_callback where=0x1001 ret=1
05-25 15:34:09.460 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x5572747e30 SSL_connect:3WCH_A SSLv3 write client hello A
05-25 15:34:09.460 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x5572747e30 info_callback ignored
05-25 15:34:09.460 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x5572747e30 info_callback where=0x1002 ret=-1
05-25 15:34:09.460 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x5572747e30 SSL_connect:error exit in 3RSH_A SSLv3 read server hello A
05-25 15:34:09.460 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x5572747e30 info_callback ignored
05-25 15:34:09.460 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: doing handshake -- ret=-1
05-25 15:34:09.460 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x5572747e30 NativeCrypto_SSL_do_handshake ret=-1 errno=11 sslError=2 timeout_millis=8000
05-25 15:34:09.494 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: doing handshake ++
05-25 15:34:09.494 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x5572747e30 info_callback where=0x1001 ret=1
05-25 15:34:09.494 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x5572747e30 SSL_connect:3RSH_A SSLv3 read server hello A
05-25 15:34:09.494 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x5572747e30 info_callback ignored
05-25 15:34:09.494 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x5572747e30 info_callback where=0x1001 ret=1
05-25 15:34:09.494 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x5572747e30 SSL_connect:3RFINA SSLv3 read finished A
05-25 15:34:09.494 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x5572747e30 info_callback ignored
05-25 15:34:09.494 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x5572747e30 info_callback where=0x1001 ret=1
05-25 15:34:09.494 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x5572747e30 SSL_connect:3WCCSA SSLv3 write change cipher spec A
05-25 15:34:09.494 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x5572747e30 info_callback ignored
05-25 15:34:09.494 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x5572747e30 info_callback where=0x1001 ret=1
05-25 15:34:09.494 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x5572747e30 SSL_connect:3WFINA SSLv3 write finished A
05-25 15:34:09.494 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x5572747e30 info_callback ignored
05-25 15:34:09.494 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x5572747e30 info_callback where=0x1001 ret=1
05-25 15:34:09.494 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x5572747e30 SSL_connect:3FLUSH SSLv3 flush data
05-25 15:34:09.494 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x5572747e30 info_callback ignored
05-25 15:34:09.494 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x5572747e30 info_callback where=0x20 ret=1
05-25 15:34:09.494 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x5572747e30 handshake done in SSLOK SSL negotiation finished successfully
05-25 15:34:09.494 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x5572747e30 info_callback calling handshakeCompleted
05-25 15:34:09.494 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x5572747e30 info_callback completed
05-25 15:34:09.494 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x5572747e30 info_callback where=0x1002 ret=1
05-25 15:34:09.494 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x5572747e30 SSL_connect:ok exit in SSLOK SSL negotiation finished successfully
05-25 15:34:09.494 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x5572747e30 info_callback ignored
05-25 15:34:09.494 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: doing handshake -- ret=1
05-25 15:34:09.494 13334-22004/h2d.drawteam.howtodraw I/System.out: gba_cipher_suite:TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256
05-25 15:34:09.495 13334-22004/h2d.drawteam.howtodraw I/System.out: [OkHttp] sendRequest>>
05-25 15:34:09.495 13334-22004/h2d.drawteam.howtodraw I/System.out: [OkHttp] sendRequest<<
05-25 15:34:09.495 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x5572747e30 sslWrite buf=0x55727744e0 len=1079 write_timeout_millis=0
05-25 15:34:09.495 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x5572747e30 sslRead buf=0x55727744e0 len=2048,timeo=8000

我怀疑 E/ActivityThread: Failed to find provider info for com.facebook.katana.provider.AttributionIdProvider 错误应该告诉我一些事情,但据我搜索,它与权限或错误的 ID,但所有这些都已正确设置。

最佳答案

事实证明,只有在 Facebook 开发者控制台中的管理员批准该应用程序后,Facebook 才会转换广告。

关于android - Facebook SDK 广告在没有 AdSettings.addTestDevice 的情况下无法工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37437376/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com