Madvertise settings

Hi! I’m again here! hahaha

Well Im setting up the madvertise ads on my app, I’m reading the oficial documentation to install (https://github.com/madvertise/madvertise-android-sdk/blob/master/README.textile) and I havent seen nothing about edit any activity (.java), only Manifest and xml files… but the example that come with the madadvertise sdk have any things about the madvertise ads, then… I guess that it doesn’t mandatory, true?

Any revelenat diference between these methods?

Edit: Ups! I got it! Thanks, Anyway I’m trying add ads to admob too, and I have a error with Admob, I put my code here:

    private AdView adView;//Admob
//onCreate
        ...
        adView = new AdView(this, AdSize.BANNER, "a14fca2bfd316d8" );
        LinearLayout lpublicidad = (LinearLayout)findViewById(R.id.publicidad);
        lpublicidad.addView(adView);
        adView.loadAd(new AdRequest());
        ...

//public void onLoaded(boolean succeed, MadvertiseView madView) {
//My idea is on Madvertise failed, show AdMob, else show Madvertise

            ...
            if (succeed) {
            // ad loaded
            Log.d("MADVERTISE", "Ad successfully loaded");
            if (adView.getVisibility() == View.VISIBLE) {
            	adView.setVisibility(View.GONE);
            }
            mMadView.setVisibility(View.VISIBLE);
        } else {
            // ad could not be loaded
            Log.w("MADVERTISE", "Ad could not be loaded");
            if (adView.getVisibility() == View.GONE) {
            	adView.setVisibility(View.VISIBLE);
            }
            mMadView.setVisibility(View.GONE);
        }
         ...

The error is:

06-02 18:02:00.190: E/AndroidRuntime(24508): java.lang.NoClassDefFoundError: com.google.ads.AdView

And the app say “force quit” on start, I can open it :S

Finally I did this and all working now: http://stackoverflow.com/questions/9857539/noclassdeffounderror-when-googleanalyticstracker-getinstance

Thanks a lot!

So did you manage to get everything working? That StackOverflow article is right - you should put external libraries in the “libs” folder if you want to include them in your project.

@“Johannes Borchardt” has posted a good article about how to combine Madvertise with another ad network. Check it out at http://droid-blog.net/2011/08/19/how-to-combine-madvertise-with-another-ad-network/

Thanks! I saw his article :slight_smile: I think all workin now, but is possible that I ends using adwhirl or similar.

where to buy gf fresh google play account ?