latest iOS SDK breaks Unity Plugin?

1,616 views
Skip to first unread message

Michael Le

unread,
Feb 4, 2015, 6:42:49 PM2/4/15
to google-adm...@googlegroups.com
think the Unity plugin needs to be updated because of this change

  • Replaced GADAdMobExtras and DFPExtras with a single GADExtras class.
I get a "GADAdMobExtras.h" is missing error

thanks

Eric Leichtenschlag (Mobile Ads SDK Team)

unread,
Feb 5, 2015, 11:50:07 AM2/5/15
to google-adm...@googlegroups.com
Hi Michael,

You're absolutely right. I was hoping we could go more than 24 hours before anybody noticed. :)

I've created Issue #68 to track this. In the meantime, please continue to use 6.12.2 until this issue gets resolved. I hope to complete it within the next week.

Thanks,
Eric

PAHeartBeat

unread,
Feb 6, 2015, 12:49:21 AM2/6/15
to google-adm...@googlegroups.com
Hi Eric,

I am not XCode or iOS Developer but I face issue as you created Issue #68 and modified fe .h and .m files from unity package iOS Folder as bellow

File: GADURequest.m 
Old Data for Hader imports for iOS SDK 6.12.0
#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"


and old RequestMethod for iOS SDK 6.12.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"];
 
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"

Changes with for iOS SDK 7.0.0

#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

Can you guide me what I am doing wrong, I have also share this information wiht Issue #68 created by you on GitRepot issue secttion

~Thanks
Ranpariya Ankur (PAHeartBeat)
Screen Shot 2015-02-06 at 11.09.51 am.png

Eric Leichtenschlag (Mobile Ads SDK Team)

unread,
Feb 6, 2015, 3:28:05 PM2/6/15
to google-adm...@googlegroups.com
I responded in the issue, but essentially you don't need quotes around the imports when you have brackets:

#import <GoogleMobileAds/GADExtras.h>
#import <GoogleMobileAds/GADRequest.h>

Michael Le

unread,
Feb 18, 2015, 3:08:29 PM2/18/15
to google-adm...@googlegroups.com
Any update on the issue? :)

I would use 6.12.2 in the meantime but it doesn't look like there's a place to get it? If anyone can get me a copy that'd be great

Eric Leichtenschlag (Mobile Ads SDK Team)

unread,
Feb 18, 2015, 7:38:23 PM2/18/15
to google-adm...@googlegroups.com
We are still working on the update - it is in progress.

PAHeartBeat

unread,
Feb 18, 2015, 11:29:10 PM2/18/15
to google-adm...@googlegroups.com
Hi Michael,

I found a solution to use lateste iOS SDK v7.0.0 with Unity Plugin, I have posted a comment on issue 68 (https://github.com/googleads/googleads-mobile-plugins/issues/68) please take look and you can try it, till We dont get new wraper of iOS SDK 7.0.0 for Unity from Google AdMob Team.

Solution which I have comment on issue 68, It is tested with Untiy 4.6.1p4 (Mono backend) and Unity 4.6.1p5 (ILCPP Backend) it;s work goods and ads are shows on device. you can also download my sample project from GitHub (https://github.com/PAHeartBeat/Unity-GoogleMobileAds)

~Thanks
Ranpariya Ankur (PAHeartBeat)

Jeff Gardner

unread,
Feb 22, 2015, 11:52:40 PM2/22/15
to google-adm...@googlegroups.com
Hi,
Do you have an eta on when the new plugin will be ready to go?

PAHeartBeat

unread,
Feb 24, 2015, 7:40:43 AM2/24/15
to google-adm...@googlegroups.com
Hi Jeff,

I didn't get about eta.

Ram Parameswaran (Mobile SDK Team)

unread,
Feb 24, 2015, 4:40:43 PM2/24/15
to google-adm...@googlegroups.com
Support for Google Mobile Ads iOS 7.0.0 SDK has been added to the source files.

- Ram
Reply all
Reply to author
Forward
0 new messages