objective c - Google Interactive Media Ads for tvOS -
i using google interactive media ads in ios application. it's working , want use them in tvos application. when add code google interactive media ads getting these issues:
terminating app due uncaught exception 'nsinvalidargumentexception', reason: '-[nsconcretenotification imamessage]: unrecognized selector sent instance 0x7fe4d9e0cb20'
and using code playing ad:
- (void)requestadspre:(nsstring *)url { self.adplayerlayer = nil; //[self.contentplayer.view removefromsuperview]; [self setupadsloader]; [self setupaddisplaycontainer]; // create ad request our ad tag, display container, , optional user context. imaadsrequest *request = [[imaadsrequest alloc] initwithadtagurl:url addisplaycontainer:self.addisplaycontainer usercontext:nil]; [self.adsloader requestadswithrequest:request]; } #pragma mark sdk setup - (void)setupadsloader { self.adsloader = [[imaadsloader alloc] initwithsettings:nil]; self.adsloader.delegate = self; } - (void)setupaddisplaycontainer { self.addisplaycontainer = [[imaaddisplaycontainer alloc] initwithadcontainer:self.videoview companionslots:nil]; }
can tell me how use google interactive media ads tvos? google interactive media ads working both ios , tvos apps.
google interactive media ads do not support tvos.
currently ima sdk not support tvos. if changes, make announcement on our blog , add note on release page.
the tvos advertising framework i'm aware of @ moment applovin.
Comments
Post a Comment