GADAdMobExtras and DFPExtras with a single GADExtras class.#import "GADAdMobExtras.h"
#import "GADRequest.h"
#import "GADURequest.h"change with for iOS SDK 7.0.0
#import "<GoogleMobileAds/GADExtras.h>"
#import "<oogleMobileAds/GADRequest.h>"
#import "GADURequest.h"
- (GADRequest *)request {
GADRequest *request = [GADRequest request];
request.testDevices = self.testDevices;
request.keywords = self.keywords;
request.birthday = self.birthday;
request.gender = self.gender;
[request tagForChildDirectedTreatment:self.tagForChildDirectedTreatment];
[self.extras setValue:@"1" forKey:@"unity"];
GADAdMobExtras *extras = [[[GADAdMobExtras alloc] init] autorelease];
extras.additionalParameters = self.extras;
[request registerAdNetworkExtras:extras];
return request;
}with 4th last line change for iOS SDK 7.0.0
- (GADRequest *)request {
GADRequest *request = [GADRequest request];
request.testDevices = self.testDevices;
request.keywords = self.keywords;
request.birthday = self.birthday;
request.gender = self.gender;
[request tagForChildDirectedTreatment:self.tagForChildDirectedTreatment];
[self.extras setValue:@"1" forKey:@"unity"];
GADExtras *extras = [[[GADExtras alloc] init] autorelease];
extras.additionalParameters = self.extras;
[request registerAdNetworkExtras:extras];
return request;
}
File: GADUBanner.m
Old Data for Hader imports for iOS SDK 6.12.0
#import "GADUBanner.h"
#import "GADAdMobExtras.h"
#import "GADAdSize.h"
#import "GADBannerView.h"
#import "GADBannerViewDelegate.h"#import "GADUBanner.h"
#import "<GoogleMobileAds/GADExtras.h>"
#import "<GoogleMobileAds/GADAdSize.h>"
#import "<GoogleMobileAds/GADBannerView.h>"
#import "<GoogleMobileAds/GADBannerViewDelegate.h>"
But some how My xCode not able to find GADExtras.h file from famework GoogleMobileAds.framework of iOS SDK 7.0.0, in GADURequest.m file, its gave me xcode error like Screen Shot 2015-02-06 at 11.09.51 am.png file