IOS10 collects IDFA and implants third-party ads [end]--admob

Source: Internet
Author: User
Tags admob

[PS: Before the time, the company to do ASO promotion, need to collect IDFA value in the application, with the advertising platform to do the interaction! So with this demand ~ ~]

1, first, consider the situation (oneself lazy-_-#), directly on the home page wrote a banner, cyclic loading ads [are some of their own company's advertising messages];

Then, it's over the review! Everything

Here is a small ad, a simple package of their own mbadbanner little frame, has been uploaded on GitHub.

2, then, recently updated version of the time, because the collection of IDFA and no substantial advertising on the cup. Decisive Big Red reject!

Done: Added some other platform ads (* East 6.18 activities, etc.), used as collection IDFA.

3, finally, to abandon the trouble, on the import of third-party advertising services [ADMOB]

(1) using Cocoapods, [pod ' googlemobileads ', ' ~> 7.8.0 '];

-Requires a VPN.

(2) Terminal pod Search googlemobileads, found-source:https://www.gstatic.com/cpdc/ f5ae88269a942f37-googlemobileads-7.8.0.tar.gz, download the googlemobileads.framework.

--There are no framework documents that need to be added to the official website and can only be found from the updated version;

--as follows:

(3) Integrated banner code

Import
@import googlemobileads;

declaring variables
@property (nonatomic, strong) Gadbannerview *bannerview;

Add the core code to the Viewdidload
-(void) Viewdidload { Self.bannerview = [[Gadbannerview alloc] Initwithframe:cgrectmake (0, 0, +)]; self.bannerView.frame = CGRectMake (0, 0, +/-); Self.bannerView.adUnitID = @ "ca-app-pub-8372750357813473/1825818546"; Test. Self.bannerView.adUnitID = @ "ca-app-pub-3940256099942544/2934735716"; Self.bannerView.rootViewController = self; [Self.bannerview loadrequest:[gadrequest request]];//request when needed, refresh display ads! [Self.view Addsubview:_bannerview] [after the shelves, through the interface, close the advertising service] ;

[PS: Additional tips]

1. The adunitid is provided by Google's AdMob backend.

2, there are interstitial advertising services, such as access.

Official Document Address: Https://firebase.google.com/docs/admob/ios/quick-start

------------------------

IOS10 Major Update!

Last year, after blocking the mobile phone network MAC address, this year IDFA this value, once again by Apple blocked!

This is a huge impact on ASO service, what new way can we get the corresponding value under IOS10?

------------------------

IOS10 collects IDFA and implants third-party ads [end]--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.