I have uploaded my first two apps to the google store and wanted to advertised them with admob. I looked at the tutorial from Erel and download the admob library which included an xml and jar file
I also downloaded the GoogleAdmobsdk and put that in my New libraries file but there was only an jar file.
I used the Tools - configure path to link the additional libraries and all compiled ok with a banner on my app, which was in red writing at the top using a layout of 320x50dip but displayed an error saying i need an Adactivity
Note there was only a Admob library to check so I assume the google jar is part of it.
I then re-read the tutorial and discovered the need to add something to the manifest and copied it from the tutorial.
I get this error when compiling
Parsing code. 0.01
Compiling code. 0.12
Compiling layouts code. 0.02
Generating R file. Error
AndroidManifest.xml:20: error: Error: String types not allowed (at 'configChanges' with value 'keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize').
I simply copied the script and from the tutorial and added this to the manifest so the manifest now reads
'This code will be applied to the manifest file during compilation.
'You do not need to modify it in most cases.
'See this link for for more information: Manifest Editor
AddManifestText(
<uses-sdk android:minSdkVersion="4" android:targetSdkVersion="14"/>
<supports-screens android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
android:anyDensity="true"/>)
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
'End of default text.
'AdMob
AddApplicationText(
<activity android:name="com.google.ads.AdActivity" android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"/>
)
'End of AdMob
What do i need or doing wrong?
Please help
RP
I also downloaded the GoogleAdmobsdk and put that in my New libraries file but there was only an jar file.
I used the Tools - configure path to link the additional libraries and all compiled ok with a banner on my app, which was in red writing at the top using a layout of 320x50dip but displayed an error saying i need an Adactivity
Note there was only a Admob library to check so I assume the google jar is part of it.
I then re-read the tutorial and discovered the need to add something to the manifest and copied it from the tutorial.
I get this error when compiling
Parsing code. 0.01
Compiling code. 0.12
Compiling layouts code. 0.02
Generating R file. Error
AndroidManifest.xml:20: error: Error: String types not allowed (at 'configChanges' with value 'keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize').
I simply copied the script and from the tutorial and added this to the manifest so the manifest now reads
'This code will be applied to the manifest file during compilation.
'You do not need to modify it in most cases.
'See this link for for more information: Manifest Editor
AddManifestText(
<uses-sdk android:minSdkVersion="4" android:targetSdkVersion="14"/>
<supports-screens android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
android:anyDensity="true"/>)
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
'End of default text.
'AdMob
AddApplicationText(
<activity android:name="com.google.ads.AdActivity" android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"/>
)
'End of AdMob
What do i need or doing wrong?
Please help
RP