AdMob Plugin Request

0 favourites
  • 8 posts
From the Asset Store
AdMob Plus PRO
$12.99 USD
[ Support C3 Build service ] Native Ad, App Open Ad, Banner Ad, Interstitial Ad, Rewarded Interstitial Ad, Rewarded Ad.
  • Hey,

    Please make a plugin for admob by which we can ad ads easily without having to copy the code and other difficult things i don't know

  • i am with you in this, its really painful to do !!

  • i am author of Phonegap plugin. (http://www.scirra.com/forum/topic74901.html)

    i can create the plugin called PhonegapAD if you help me.

    without use of activity.root member (root is not public member, so compile error occurs)

    use other activity's member and get layout

    in "REPLACE THIS CODE" line, what other code you can put?

          adView = new AdView(activity, AdSize.BANNER, "a1503e07f0254b1");

                        

          LinearLayout layout = activity.root;//compile error//REPLACE THIS CODE

          layout.addView(adView);//bottom

          layout.setHorizontalGravity(android.view.Gravity.CENTER_HORIZONTAL);

          AdRequest request = new AdRequest();

          adView.loadAd(request);

  • i am author of Phonegap plugin. (http://www.scirra.com/forum/topic74901.html)

    i can create the plugin called PhonegapAD if you help me.

    without use of activity.root member (root is not public member, so compile error occurs)

    use other activity's member and get layout

    in "REPLACE THIS CODE" line, what other code you can put?

          adView = new AdView(activity, AdSize.BANNER, "a1503e07f0254b1");

                        

          LinearLayout layout = activity.root;//compile error//REPLACE THIS CODE

          layout.addView(adView);//bottom

          layout.setHorizontalGravity(android.view.Gravity.CENTER_HORIZONTAL);

          AdRequest request = new AdRequest();

          adView.loadAd(request);

    it would be nice if you can do it , but i have no clue in coding

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • asmina22

    i tried to create PhonegapAD plugin.

    but that blocked me.

    if that solved, the plugin you want will come out.

    welcome to scirra.

  • cranberrygame,

    maybe you can use:

    LinearLayout layout = (LinearLayout)findViewById(R.id.mainLayout);

    i got the code from this link:

    developers.google.com/mobile-ads-sdk/docs/admob/fundamentals

  • gamesura

    i checked your code but runtime error occurred.

    very thank you.

    p.s even not plugin, if you can replace "REPLACE THIS CODE" to something in main java file, send to me that code.

    i'll apply that code.

    adView = new AdView(activity, AdSize.BANNER, "a1503e07f0254b1");

    LinearLayout layout = activity.root;//compile error//REPLACE THIS CODE

    layout.addView(adView);//bottom

    layout.setHorizontalGravity(android.view.Gravity.CENTER_HORIZONTAL);

    AdRequest request = new AdRequest();

    adView.loadAd(request);

  • c2 phonegap admob plugin released!

    come to

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)