Iad+admobmixed, in not receivingiAdwhen advertising is usedAdMob, once receivediAdthe ads willAdMobclosed. This can be achieved without the supportiAdin the country, openAdMob. There is no need to judge the country.
There are three main points for judging the method:
- request both iAd and AdMob
- If you get iAd ads, turn AdMob off.
- The AdMob ad was received 5 times, indicating that no iad has yet been received, which means you can close iad without receiving iad ads .
1, the directoryAdMob SDKload into Project,in thexcode->targets->build seetings->linking->other Linker Flagsadded in"-OBJC"
2,Use in ARC ===>-fno-objc-arc
If your project is compiled with ARC, you'll need to disable it for the iask files. Adding-fno-objc-arc in the "Compile Sources" phase. You can select all the relevant files at once with Shift-click and then double-click in the Compiler Flags column to enter The text.
3.1Add the relatedFrameworkto the library,in thexcode->targets->build phases->link Binary with Librariesadded in:
- Adsupport.framework
- Audiotoolbox.framework
- Avfoundation.framework
- Coregraphics.framework
- Messageui.framework
- Storekit.framework
- Systemconfiguration.framework
- Libgoogleadmobads.a
- Iad.framework
- Coretelephony.framework
3.2 6.12 will also need to increase
- Eventkitui.framework
- Evnetkit.framework
3.3 cocos2dx need to add more
- Mediaplayer.framework
- Gamecontroller.framework
4Modify the base class for adding AD support Adhelper[Eaglview Addsubview:[Adhelpergetinstance].View];
iad mixed with admob