IOS joins GOOGLE ads 2 minutes to join

Source: Internet
Author: User

Regarding the advertisement question, the domestic possibility water is very deep, the data is on, the direct saying adds the SDK

1, add the following framework

CoreMedia. FRAMEWORDK,

CORETELEPHONY.FRAMEWORDK,

AUDIOTOOLBOX.FRAMEWORDK,

MEDIAPLAYER.FRAMEWORDK,

MESSAGEUI.FRAMEWORDK,

Storekit.framework,

MediaPlayer,
Eventkitui,
Eventkit,

Adsupport.framework This library to note that the Apple backstage to set the library black I have been so many times


2, add the SDK to the project, http://download.csdn.net/detail/a287971/8338719


3,

#import "GADBannerView.h" Gadbannerview *bannerview_;

  Bannerview_ = [[Gadbannerview alloc]                       initwithframe:cgrectmake (0.0,                                                self.view.frame.size.height-113,                                                Gad_size_320x50.width,                                                Gad_size_320x50.height)];        Bannerview_.adunitid = @ "ca-app-pub-4604023153892773/4960498111"; Here's your own <pre name= "code" class= "html" >adunitidbannerview_.rootviewcontroller = self; [Self.view Addsubview:bannerview_]; [Bannerview_ loadrequest:[gadrequest request]];

4, other linker Flags set to-OBJC


5,run look at the effect

IOS joins GOOGLE ads 2 minutes to join

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.