omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    Welcome!

    This is the community forum for my apps Pythonista and Editorial.

    For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.


    Ads in a Scene?

    Pythonista
    5
    9
    6010
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Shambhala
      Shambhala last edited by

      Is there a way (or a hack) to support advertisements in a scene class? I want to show a banner ad at the top or bottom of the screen, how would I go about doing this?

      1 Reply Last reply Reply Quote 0
      • LawAbidingCactus
        LawAbidingCactus last edited by

        Currently I don't think there's a way to do this inside of Pythonista. You would have to export your project to XCode and then put ads in from there.

        1 Reply Last reply Reply Quote 0
        • JonB
          JonB last edited by

          1. download your banner image from a website, using urllib, urllib2, or requests.
          2. display it in your scene using scene.image

          Of course, anyone could simply remove that line of code an run your app without ads, but presumably you are talking about distributing your app to the App Store, otherwise why bother?

          1 Reply Last reply Reply Quote 0
          • Shambhala
            Shambhala last edited by

            @JonB

            I think this could work for still images without interactivity - but would it work for iAds/Admob/etc?

            There has to be some kind of way. I know it would be much easier using UI, but I am not using the UI module.

            1 Reply Last reply Reply Quote 0
            • Shambhala
              Shambhala last edited by

              @LawAbidingCactus

              How would I go about placing ads over Pythonista in XCode?

              1 Reply Last reply Reply Quote 0
              • Shambhala
                Shambhala last edited by

                Is it possible to put a banner ad over a standalone app in XCode?

                1 Reply Last reply Reply Quote 0
                • techteej
                  techteej last edited by

                  @Shambhala There is currently no way to do this in Pythonista. You'd have to learn Objective-C and C.

                  1 Reply Last reply Reply Quote 0
                  • Shambhala
                    Shambhala last edited by

                    @techteej Yeah, that's what I expected. How do I do it in Objective-C?

                    1 Reply Last reply Reply Quote 0
                    • bashedcrab
                      bashedcrab last edited by

                      You can publish Swift apps now, so you can avoid Objective-C if you like.

                      If you mainly write games (like me), you can't beat ray wenderlich for iOS tutorials.

                      http://www.raywenderlich.com/1371/iad-tutorial-for-ios-how-to-integrate-iad-into-your-iphone-app

                      1 Reply Last reply Reply Quote 0
                      • First post
                        Last post
                      Powered by NodeBB Forums | Contributors