ios - Unable to request ads in test mode -



ios - Unable to request ads in test mode -

the documentation within mpadview.h says:

/** @name enabling test mode */ /** * boolean value determines whether advertisement view should request ads in test mode. * * default value no. * @warning **important**: if set value yes, create sure reset no before * submitting application app store. */ @property (nonatomic, assign, getter = istesting) bool testing;

but when requesting banner using described test mode:

self.adview = [[mpadview alloc] initwithadunitid:self.adunitid size:self.size]; self.adview.delegate = self; self.adview.testing = yes; [self.adview loadad];

no advertisement returned:

mopub: banner view (7e99efe0cd814f9d8c946ff530aa9900) failed. error: error domain=nsurlerrordomain code=-1003 "a server specified hostname not 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 specified hostname not found., nsunderlyingerror=0x167db490 "a server specified hostname not found."}

i using mopub sdk 3.0.0 ios.

is documentation obsolete? how can enable test ads?

notes:

my net connection ok; i able display ads when test mode equal no;

for can see, doing seems ok. recommend downloading lastly version of mopub sdk : (3.5.0 @ moment)

https://github.com/mopub/mopub-ios-sdk/

ios testing ads mopub

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -