Skip to first unread message

DMitri Bailey

unread,
Apr 2, 2014, 7:43:32 AM4/2/14
to mitappinv...@googlegroups.com

You have to first upload your app *without* ads, to get it approved on MobPartner.  Once it is approved (takes a couple of days) you can start adding campaigns.

 Once that’s done, you’re going to need to grab some URLs from here

:4

When you are logged into MobPartner, click on Sites & Apps.  Then in the app you want, click Banner.  You should get a screen like the one above.  I have highlighted the two main things you will need.  The click URL (in yellow) and the image URL (in green.)

Now, on to AppInventor 21

In your app you are going to have to add a Clock, and an Activity Starter.  The Clock can be found under “User Interface” and the Activity Starter can be found under “Connectivity”.  As you can see in the image above, My Clock is named Clock1 and my Activity Starter is named openAd.

The clock should be configured like this:2

The TimerInterval is set to 15000, which means it will fire every 15 seconds.  This means the banner ad will change every 15 seconds.  You can set this to be higher if you want… but I wouldn’t suggest you set it to be any lower.

The Activity Starter should look like this:3

The Action should be: android.intent.action.VIEW

The DataURL should be something like this: http://c.mobpartner.mobi/?pool=49645&format=banner   This is your click URL, which I highlighted in yellow above.  Don’t use *this* exact URL, it is mine, you have to log into MobPartner to find yours.

Next you need to add a button.  The button should have no text.  Place the button where you want the advertisement to appear on the screen.  I choose to put it inside a HorizantalArrangement so I could better format it.

On to the blocks!5These are the blocks you need to make the ad function.  The first one is changing the advertisement every time that the 15 seconds are up.  The URL above is mine, the one you will use is your own image URL from MobPartner (highlighted in green above!)

The second block opens the link when the button is clicked.

If you run the app at this point you will notice that although it works, the button is blank for the first 15 seconds!  So we need to do one more thing to set that up.6

When the screen initiates, I do a lot of things.  The ones that are important are below the hashed line.  I am setting the button image to be my image URL (highlighted in green above).  This means we won’t have to wait 15 seconds for our first ad.  As you can see I also set the height and width of the banner here.  You don’t necessarily have to do this, but you can :)

Since you already uploaded a version of your app without ads to get it approved on MobPartner, make sure you set your new app to versions 1.1 or something like that.  Then you just need to upload the new .apk

DMitri Bailey

unread,
Apr 2, 2014, 7:45:54 AM4/2/14
to mitappinv...@googlegroups.com
I have not tried this because i'm still new to App Inventor. I have tried it with my first app but my app was refused.
Do you guys suggest first leaving your app on the App store to gain some downloads before sending for approval by MobPartner?

DMitri Bailey

unread,
Apr 7, 2014, 3:06:23 PM4/7/14
to mitappinv...@googlegroups.com
Finally got an app approved by MobParter. Awaiting Campaign approvals :)


DMitri Bailey

unread,
Apr 8, 2014, 11:36:23 AM4/8/14
to mitappinv...@googlegroups.com
I noticed this guide is out of date.
Any that can asist with implementing adds please?



Enis

unread,
Apr 8, 2014, 1:37:15 PM4/8/14
to mitappinv...@googlegroups.com
DMitri...

To put ads into your App Inventor app, you'll have to use an external service.  Check out Hossein's AI2LiveComlete:

http://amerkashi.wordpress.com/

DMitri Bailey

unread,
Apr 8, 2014, 1:52:32 PM4/8/14
to mitappinv...@googlegroups.com
Thnx for this :-)

bob inventory

unread,
Jul 4, 2014, 10:12:47 AM7/4/14
to mitappinv...@googlegroups.com
Dmitri;

I know this is an old topic, but mobpartner also refused my first application twice. Can you explain, how you achieved? Is this normal for the first and new apps.

fr3...@gmail.com

unread,
Jul 7, 2014, 11:27:25 AM7/7/14
to mitappinv...@googlegroups.com
Thx a lot ! This is helpful !

GM Johll

unread,
Sep 1, 2014, 7:20:28 AM9/1/14
to mitappinv...@googlegroups.com
This is my problem too.  Admob rejected my app because it says it wants apps with more traffic.  How do I generate the traffic without the ads?  Frustrating.

same as

unread,
Jun 20, 2015, 12:21:49 AM6/20/15
to mitappinv...@googlegroups.com
Cannot afford the fee, so its goodbye from me.
Reply all
Reply to author
Forward
0 new messages