Page 1 of 1

Anyone have luck integrating AdMob ads in the Android exported projects?

Posted: Sun Aug 25, 2013 9:44 am
by Garrett

I was able to successfully integrate AdMob into the iOS exported projects, but I am running into an issue with Android.

Without AdMob, the app compiles and runs great in the Android emulator, but when I integrate AdMob (following https://developers.google.com/mobile-ads-sdk/docs/?hl=en_US#android and https://developers.google.com/mobile-ads-sdk/docs/admob/fundamentals#android I get an error with this line... code
// Lookup your LinearLayout assuming it's been given
// the attribute android:id="@+id/mainLayout"
LinearLayout layout = (LinearLayout)findViewById(R.id.mainLayout);
/code

it seems that "mainLayout" is not valid. Any clues what appery names the main layout?


Anyone have luck integrating AdMob ads in the Android exported projects?

Posted: Sun Aug 25, 2013 10:16 am
by Alena Prykhodko

Garrett,

I'll direct the question to our dev team, and get back with answer as soon as possible.


Anyone have luck integrating AdMob ads in the Android exported projects?

Posted: Sun Aug 25, 2013 10:17 am
by Garrett

Much appreciated!


Anyone have luck integrating AdMob ads in the Android exported projects?

Posted: Sun Aug 25, 2013 10:17 am
by Garrett

Much appreciated!


Anyone have luck integrating AdMob ads in the Android exported projects?

Posted: Mon Aug 26, 2013 4:04 pm
by Garrett

Any word on this?


Anyone have luck integrating AdMob ads in the Android exported projects?

Posted: Mon Aug 26, 2013 4:21 pm
by maxkatz

It might take time before we can get back to you. Using 3rd party plug-ins/APIs is in general outside the scope of our support. I hope you understand. It's probably best if you contact AdMob as it's their plug-in.


Anyone have luck integrating AdMob ads in the Android exported projects?

Posted: Mon Aug 26, 2013 4:46 pm
by Garrett

With your Android exported projects, what is the name of the main layout?


Anyone have luck integrating AdMob ads in the Android exported projects?

Posted: Mon Aug 26, 2013 6:58 pm
by maxkatz

I'm not sure I understand the question... the app that you export is a hybrid app. The UI is still jQuery Mobile.


Anyone have luck integrating AdMob ads in the Android exported projects?

Posted: Tue Aug 27, 2013 1:37 pm
by Maryna Brodina

Hello! Please take a look here https://github.com/sainttex/PhoneGap-...