Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/96.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/opengl/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios 无法在测试模式下请求广告_Ios_Testing_Ads_Mopub - Fatal编程技术网

Ios 无法在测试模式下请求广告

Ios 无法在测试模式下请求广告,ios,testing,ads,mopub,Ios,Testing,Ads,Mopub,MPAdView.h中的文档说明: /** @name Enabling Test Mode */ /** * A Boolean value that determines whether the ad view should request ads in test mode. * * The default value is NO. * @warning **Important**: If you set this value to YES, make sure to reset

MPAdView.h
中的文档说明:

/** @name Enabling Test Mode */

/**
 * A Boolean value that determines whether the ad view should request ads in test mode.
 *
 * The default value is NO.
 * @warning **Important**: If you set this value to YES, make sure to reset it to NO before
 * submitting your application to the App Store.
 */
@property (nonatomic, assign, getter = isTesting) BOOL testing;
但当使用所述测试模式请求横幅时:

self.adView = [[MPAdView alloc] initWithAdUnitId:self.adUnitID size:self.size];
self.adView.delegate = self;
self.adView.testing = YES;
[self.adView loadAd];
未返回任何广告:

MOPUB: Banner view (7e99efe0cd814f9d8c946ff530aa9900) failed. Error: Error Domain=NSURLErrorDomain Code=-1003 "A server with the specified hostname could not be found." UserInfo=0x167eeef0 {NSErrorFailingURLStringKey=http://testing.ads.mopub.com/m/ad?v=8&udid=ifa:XXXX&id=7e99efe0cd814f9d8c946ff530aa9900&nv=2.4.0&o=l&sc=2.0&z=-0200&mr=1&ct=2&av=1.5&cn=TIM&iso=&mnc=&mcc=&dn=iPhone3%2C1&ts=1, NSErrorFailingURLKey=http://testing.ads.mopub.com/m/ad?v=8&udid=ifa:XXXX&id=7e99efe0cd814f9d8c946ff530aa9900&nv=2.4.0&o=l&sc=2.0&z=-0200&mr=1&ct=2&av=1.5&cn=TIM&iso=&mnc=&mcc=&dn=iPhone3%2C1&ts=1, NSLocalizedDescription=A server with the specified hostname could not be found., NSUnderlyingError=0x167db490 "A server with the specified hostname could not be found."}
我正在使用iOS版的
MoPub SDK 3.0.0

那文件过时了吗?如何启用测试广告

注:

  • 我的网络连接正常
  • 当测试模式等于
    NO
    时,我能够显示广告
据我所知,你现在所做的似乎还可以。 我建议下载MoPub SDK的最新版本:(目前为3.5.0)


您好,添加取决于国家/地区。请尝试联系MoPub的支持部门,了解您所在国家/地区的adds填充率。。