I figure I'm probably doing something wrong since I'm not seeing that iAd test message in either F2.5 or on any device. I have Enable iAd checked and Display iAd in one of my frames.
Is there something I am missing?
Don't have an account yet? Then register once and completely free of charge and use our wide range of topics, features and great options. As a registered member on our site, you can use all functions to actively participate in community life. Write posts, open topics, upload your pictures, put your videos online, talk to other members and help us to constantly improve our project and grow together! So, what are you waiting for? Become a part of us today!
Login or registerTo get support for a technical issue such as installing the software, to query a purchase that you've made/would like to make, or anything other than using our software, please visit our Customer Service Desk:
Open a TicketI figure I'm probably doing something wrong since I'm not seeing that iAd test message in either F2.5 or on any device. I have Enable iAd checked and Display iAd in one of my frames.
Is there something I am missing?
I am having the same problem. I have recently upgraded to the developer version (via Steam) and updated my project to enable iAds. However, there are no ads shown on the device. A sample project from Apple (BasicBanner) does work on the device. I've filed a bug report with Clickteam: Please login to see this link..
Are you still having the problem? Or did you manage to solve it somehow?
Cheers,
Christian
I couldn't figure out a work around. I just decided to put it on the App Store for a dollar. We'll see how things go.
iAds used to work fine. I had a free app, that I've never had a problem with it with. I'm afraid to update it though.
I'm looking into this
xhedgehogx: Good luck with the sales and let's hope they'll fix it soon.
Anders: Thank you! I have attached a sample project to the bug report. Let's hope that helps.
Have there been any updates on this?
I am also interested in an update. Any News yet?
I also have problem with this. The ad did show up once when testing, but only at the top and then it started half way across the screen so you only saw the left part of it. Is it possible to center it somehow?
Also, is it possible to use admob? I am pretty sure I saw an iOS alternative in the admob manager last time i looked..
Been waiting for a fix to this.
Anyone know if there are repercussions from copy/paste to an MMF 2.0 app from 2.5?
Does iAds even work in 2.0 still? Anyone know?
I had iads working in my previous app built in 2.0, but i dont think you can copy to 2.0 from 2.5?
One of my projects was set to D3D mode, changing it to 'Standard Mode' iAds now show up while testing on PC.
Ill post here after I test on iOS.
After changing my project to 'Standard Mode' iAds did show up on my PC. They did not show up on my device.
However, I had a look on the source code in the 'CIAdViewController.m' file. And I think I've found the bug. The iAd isn't positioned properly. It is always set to a position outside of the screen.
Try to locate the positiodiAD method and search for the following line of code: 'if (app->hdr2Options&AH2OPT_IADBOTTOM)'. Now change the following block like this:
if (app->hdr2Options&AH2OPT_IADBOTTOM)
{
outPoint = CGPointMake(screen.width/4, screen.height/2+ad.height/2);
inPoint = CGPointMake(screen.width/4, screen.height/2-ad.height/2);
}
else
{
outPoint = CGPointMake(screen.width/4, -ad.height/2);
inPoint = CGPointMake(screen.width/4, ad.height/2);
}
Now the iAds should be shown on the device. However, if you have the status bar enabled, it will be shown on top of the ad. You might want to place the ad a bit further down.
Maybe this could be fixed in the next release.
Cheers,
Christian
P.S.: It seems like screen.width is measured in pixels whereas ad.height is measured in points. So, my code will fail on a non-retina device. It might be best to use another way to get the width and height of the screen measured in points right from the beginning.
Working on a new game and will be implementing iAds into it for the first time, hope it works.
I just released my app Match the Gems for free with ads, but I see no ads in the game. I made sure to check all the boxes in the frames and in the application to enable IAd and I made sure that on Itunes Connect that iAd is enabled for this app. Anyone know what the problem could be?
Hazzow, check the post made by Christian above.
There is currently a bug with how 2.5 is calculating the position of the iAds.
Christian posted a partial fix to the bug, a fix that will fail on pre-4s devices(non-retina).
Christian, does that fix work on iPads? Wondering about non-retina and retina.
I haven't had the chance to try it out yet.
xhedgehogx, I will have a look. I think I've fixed it. I just need to test it on a non-retina iPad.
Still need to fix the status bar issue though.
I will post an update on Monday or Tuesday.
Cheers,
Christian
Ok, I guess I've got it now. Replace the code for the '-(void)positioniAD' method with the following code (in 'CIAdViewController.m'):
#define DEVICE_SIZE [[[[UIApplication sharedApplication] keyWindow] rootViewController].view convertRect:[[UIScreen mainScreen] bounds] fromView:nil].size // Updated (Christian R.).
-(void)positioniAD
{
CGSize ad;
CGSize screen = CGSizeMake(DEVICE_SIZE.width, DEVICE_SIZE.height); // Updated (Christian R.).
//#ifndef __IPHONE_6_0 Updated (Christian R.).
//iOS6 phases out landscape ads completely.
//http://www.iphonedevsdk.com/forum/iphone-sdk-development/108118-landscape-iad-banners-in-ios-6-edit-landscape-phased-out-completely.html
switch(app->actualOrientation)
{
case ORIENTATION_PORTRAIT:
case ORIENTATION_PORTRAITUPSIDEDOWN:
adView.requiredContentSizeIdentifiers=[NSSet setWithObjects:ADBannerContentSizeIdentifierPortrait, nil];
adView.currentContentSizeIdentifier=ADBannerContentSizeIdentifierPortrait;
break;
case ORIENTATION_LANDSCAPERIGHT:
case ORIENTATION_LANDSCAPELEFT:
adView.requiredContentSizeIdentifiers=[NSSet setWithObjects:ADBannerContentSizeIdentifierLandscape, nil];
adView.currentContentSizeIdentifier=ADBannerContentSizeIdentifierLandscape;
break;
}
//#endif Updated (Christian R.).
ad = [self getiADSize];
if (app->hdr2Options&AH2OPT_IADBOTTOM)
{
outPoint = CGPointMake(screen.width/2, screen.height+ad.height/2);
inPoint = CGPointMake(screen.width/2, screen.height-ad.height/2);
}
else
{
outPoint = CGPointMake(screen.width/2, -ad.height/2);
inPoint = CGPointMake(screen.width/2, ad.height/2);
// BEGIN: Updated (Christian R.).
UIApplication *application = [UIApplication sharedApplication];
if (application.statusBarHidden == NO)
{
inPoint.y += MIN(application.statusBarFrame.size.width, application.statusBarFrame.size.height);
}
// END: Updated (Christian R.).
}
if(bShown)
adView.center = inPoint;
else
adView.center = outPoint;
}
Display More
This should work for retina and non-retina devices (both in portrait and landscape mode) and it will take the status bar into account (if shown). I've tested it both on the iPhone and iPad simulators. It works fine for me. I haven't tested it with iOS 6 though.
Cheers,
Christian
Huge props to you Christian, thank you for your efforts, especially for sharing them with those of us completely lost with Xcode.
/kudos
arsdigita: Thank you!
Don’t have an account yet? Register yourself now and be a part of our community!
Almightyzentaco (Fusion 2.5 Tutorials)
Captain Quail (Firefly Tutorials)