iad mixed with admob

Source: Internet
Author: User
Tags admob

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.