admob - putting your add at x,y?
Monkey Targets Forums/Android/admob - putting your add at x,y?
| ||
Hey guys - Thought I'd check out admob using the one built into Monkey and got it working no problem (if only IAP were builtin /wink /wink), however id like to position the ad anywhere on screen rather then top,bottom etc. I had a quick look at the .java file, changed it to SMARTBANNER just cus but I cannot see a way to set an x,y - googling didn't help me either. Any ideas? |
| ||
Seems google maybe wants relative coordinates. Some layout definition could help but it might be not the native gui thing. Quite a bit of discussion about this if you google for it |
| ||
There is no easy way for this. I guess you have to mess with the layout files... |
| ||
ah thought as much. |
| ||
Can't you just place the webview where you want and scale it to the correct ad-size? It *should* be possible, but involves altering brl.admob. |
| ||
Hum I am sure I scanned over the brl.admob and didn't see anything obvious but i'll take another look. |
| ||
While we on about admob I assume I need to remove the two;#ADMOB_ANDROID_TEST_DEVICE lines from; #ADMOB_PUBLISHER_ID="abcdabcdabcdabc" 'from your admob account #ADMOB_ANDROID_TEST_DEVICE1="TEST_EMULATOR" #ADMOB_ANDROID_TEST_DEVICE2="ABCDABCDABCDABCDABCDABCDABCDABCD" 'your device's admob ID for test mode When I go live? |
| ||
however id like to position the ad anywhere on screen Nice if we can do that and animate the pos. Moving ads seem to get more attention. Imagine in 10 minute duration the ads move from top to botom and back to top again after 10 minute. But maybe violation admob rule. |