Impact

This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact

1 decade ago by coreysnyder

Are you able to test iAds inside of Ejecta while doing Ad-Hoc builds through test-flight? From what I've read you must enable iAds in itunes connect but I haven't submitted to iTunes Connect. So do you just set it up and hope it works when it makes it past approval?

1 decade ago by dominic

You can enter your App's info and enable iAds on iTunes Connect without submitting your App. Submitting your App is only the last step.

If you see the iAd placeholders, it should work in the finished product.

1 decade ago by coreysnyder

Thanks Dom.

1 decade ago by coreysnyder

If anyone wants to center the iAd horizontally so it doesn't look goofy in the bottom left corner of a landscape game you can modify the 'EJ_BIND_SET' method in the 'EJBindingAdBanner.m' file.

EJ_BIND_SET( isAtBottom, ctx, value ) {
	isAtBottom = JSValueToBoolean(ctx, value);
	
	CGRect frame = banner.frame;
	frame.origin.y = isAtBottom
		? [EJApp instance].view.bounds.size.height - frame.size.height
		: 0;
	frame.origin.x = ([EJApp instance].view.bounds.size.width / 2) - (frame.size.width / 2);
		
	banner.frame = frame;
}

1 decade ago by coreysnyder

I was hoping to have a full width landscape Ad but that wouldn't work for some reason. I even tried to hardcode this line:

banner.requiredContentSizeIdentifiers = [NSSet setWithObjects:
			([[EJApp instance] landscapeMode]
				? ADBannerContentSizeIdentifierLandscape
				: ADBannerContentSizeIdentifierLandscape),
			nil];
Page 1 of 1
« first « previous next › last »