4
MPAdView.h
내부 문서는 말한다 :수 없습니다
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."}
/** @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;
을하지만 기술 테스트 모드를 사용하여 배너를 요청할 때
iOS 용으로 MoPub SDK 3.0.0
을 사용하고 있습니다.
설명서가 더 이상 사용되지 않습니까? 테스트 광고를 활성화하려면 어떻게해야합니까?
참고 :
- 내 인터넷 연결을 확인입니다
- 테스트 모드가
NO
일 때 광고를 표시 할 수 있습니다.
안녕하세요, 를 추가는 국가 지역에 의존하고 있습니다 (이 순간에 3.5.0) : 나는 마지막 MoPub에서 SDK의 버전을 다운로드 추천 할 것입니다. 귀하의 국가에 대한 MoPub의 지원에 문의하십시오. –