Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

How do I test iAds?

According to this answer iAds can only get enabled when submitting the App to Apple.

How do I test its placement first, where should it be placed?
Does this new 1.4 version only show when the ad is available?

— asked July 29th 2010 by Caio Iglesias
  • iads
0 Comments

8 Answers

  • Accepted Answer

    Ok… got it.

    iads = Ti.UI.iOS.createAdView({
    width: 'auto',
    height: 'auto'});
    
    Titanium.UI.currentWindow.add(iads);
    

    I still don't know if it will show even if no ads are ready to be displayed, in case it does show:

    iads = Ti.UI.iOS.createAdView({
        width: 'auto',
        height: 'auto',
        bottom: -100,
        borderColor: '#000000',
        backgroundColor: '#000000'});
    
        t1 = Titanium.UI.createAnimation({bottom:0, duration:750});
    
        iads.addEventListener('load', function(){
            iads.animate(t1);
        });
    
        Titanium.UI.currentWindow.add(iads);
    

    This should take care of it.

    — answered July 29th 2010 by Dino Marchiori
    permalink
    1 Comment
    • Hey, thanks for duping my answer so I can close this down!

      — commented July 29th 2010 by Caio Iglesias
  • Ok… got it.

    iads = Ti.UI.iOS.createAdView({
    width: 'auto',
    height: 'auto'});
    
    Titanium.UI.currentWindow.add(iads);
    

    I still don't know if it will show even if no ads are ready to be displayed, in case it does show:

        iads = Ti.UI.iOS.createAdView({
        width: 'auto',
        height: 'auto',
        bottom: -100,
        borderColor: '#000000',
        backgroundColor: '#000000'});
    
        t1 = Titanium.UI.createAnimation({bottom:0, duration:750});
    
        iads.addEventListener('load', function(){
            iads.animate(t1);
        });
    
        Titanium.UI.currentWindow.add(iads);
    

    This should take care of it.

    — answered July 29th 2010 by Caio Iglesias
    permalink
    1 Comment
    • Could someone copy and paste my answer so I can close this?

      — commented July 29th 2010 by Caio Iglesias
  • Caio, do you think your approach will address the Apple submission issue mentioned here: http://developer.appcelerator.com/question/37511/iad-integration ?

    — answered July 29th 2010 by karlo kilayko
    permalink
    3 Comments
    • I think so! Daniel Lim posted something on this ticket telling everyone he got approved using the 2nd technique I posted (I got the idea from him).

      — commented July 29th 2010 by Caio Iglesias
    • Really sorry about the multiple posts! I could have sworn I only posted once!!!!

      — commented July 29th 2010 by karlo kilayko
    • hehehe no problem. The funny thing is that they didn't show up immediately. The duplicates took a long time to show up.

      — commented July 29th 2010 by Caio Iglesias
  • Yes, this iw what I need too. Thanks, ti!

    — answered July 29th 2010 by Peter Lum
    permalink
    1 Comment
    • Already answered it here.

      — commented July 29th 2010 by Caio Iglesias
  • Caio, do you think your approach will address the Apple submission issue mentioned here: http://developer.appcelerator.com/question/37511/iad-integration ?

    — answered July 29th 2010 by karlo kilayko
    permalink
    1 Comment
    • Already answered it here

      — commented July 29th 2010 by Caio Iglesias
  • 1.3.3 forward hide the ad if not available. Mine was built with 1.3.2 with patch. It's very hard on testing phase as 99% of the "tested ad" show up on request. On live? about 8-10 views per device. The placement is all in your design, put your ad where it's not annoying to your users, and not taking out too much space.

    I posted the stats here after a week in store.

    http://developer.appcelerator.com/question/47841/info–the-iad-experience

    — answered July 29th 2010 by Daniel Lim
    permalink
    1 Comment
    • Man, that's sad :( I was hoping to display ads out of US basically. I guess ad agencies are just slow to realize iads' potential. Maybe there's not a big enough market outside of US yet for them to spend money making an iad ad. I mean that by apps with iads ON, not just by iphones sales.

      — commented July 29th 2010 by Caio Iglesias
  • Caio, do you think your approach will address the Apple submission issue mentioned here: http://developer.appcelerator.com/question/37511/iad-integration ?

    — answered July 29th 2010 by karlo kilayko
    permalink
    1 Comment
    • Already answered this one here.

      — commented July 29th 2010 by Caio Iglesias
  • Caio, do you think your approach will address the Apple submission issue mentioned here: http://developer.appcelerator.com/question/37511/iad-integration ?

    — answered July 29th 2010 by karlo kilayko
    permalink
    1 Comment
    • Already answered this one here.

      — commented July 29th 2010 by Caio Iglesias
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.