Rule to trigger display of iAd
gbh1935
Member Posts: 11
I have a rule that has the iAd as a behavior of it so that when the level is completed, the iAd would show. I am having no luck in getting the ad to appear though. I know iAds work, because I can attach it to something else and it will always show, but when wrapped in a rule, it will not show when triggered. I know the rule fires because I use it to create another actor when it is fired. Has anyone else had this problem?
Comments
If you set a rule to show an iAd after some event, like an attribute having a certain value, then it doesn't show. But if you wrap the "Show iAd" behavior in a timer with an "After 1 second" setting, it does. At least this worked for me, but it was also after a scene change which may have something to do with the issue too.
BUT I also find that the iAds in a compiled (published) binary of the application behave differently. If you publish the app and install the binary (ad-hoc) through itunes, you will still see test ads just like in Preview. They definitely act differently than in the Previewer, at least for me, but I haven't gotten around to testing any specifics. For example, the 1 second timer workaround may not be needed.
Also, iAds do not show in GS Viewer. If you are using GS Viewer you will not see a test iAd. The test iAd only shows in Preview and in an ad-hoc install of a published game, and then real ads would show in an app store published game.
Of course this is just my experience and observation, others might have different results.