简体   繁体   English

混合使用iAd和Admob来测试广告

[英]Mixing iAd and Admob for testing ads

I've integrated iAds and when i click on an iAd i get the message "Welcome to iAd. You are now connected to world's largest iOS App Network". 我已经集成了iAd,当我单击iAd时,我收到消息“欢迎使用iAd。您现在已连接到世界上最大的iOS应用网络”。 I haven't signed the App Network agreement yet. 我尚未签署App Network协议。 Today i also opened up Google's AdMob account and implemented google's test ads. 今天,我还开设了Google的AdMob帐户,并实施了Google的测试广告。 However, on my simulator the iAds don't play at all anymore and only the Google test ads play. 但是,在我的模拟器上,iAd不再播放了,只播放了Google测试广告。 I made Google's ads refresh rate at 30 seconds. 我使Google的广告刷新速度为30秒。 I get only Google ads playing and iAd never shows up. 我只能播放Google广告,而iAd却永远不会显示。 How do I change this so both iAd and AdMob show up changing from iAd to Admob? 如何更改此设置,以使iAd和AdMob都从iAd变为Admob?

Are you trying to load both ads networks' classes into your app and instantiate them individually (eg one banner points to iAd via the iAd SDK, and one points to AdMob via the AdMob SDK)? 您是否要将两个广告网络的类都加载到您的应用中并分别实例化(例如,一个横幅广告通过iAd SDK指向iAd,一个横幅广告通过AdMob SDK指向AdMob)? If so, consider using mediation. 如果是这样,请考虑使用中介。 You can incorporate more networks, adjust targets after deployment, and the whole thing's a lot cleaner. 您可以合并更多的网络,在部署后调整目标,整个过程变得更加整洁。

https://developers.google.com/mobile-ads-sdk/docs/admob/ios/mediation https://developers.google.com/mobile-ads-sdk/docs/admob/ios/mediation

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM