Garrett
Posts: 0
Joined: Sat Aug 17, 2013 12:18 pm

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

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?

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

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

Garrett,

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

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

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

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.

Garrett
Posts: 0
Joined: Sat Aug 17, 2013 12:18 pm

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

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

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

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

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

Return to “Issues”