Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by DubstepDragon · Feb 26, 2014 at 07:13 PM · adsadmob

AdMob - Cannot move Ad around the screen...

I have two issues with my AdMob plugin that I acquired from this link. It is simple, yet effective, and works perfectly with my AdMob account; However, there are two issues that I am facing. The first, is that I cannot move my ad around, or change the location, or only have it on one scene. The second issue is, when I build the app and run it on my Android device, and touch the ad, it does not open the web browser or any other application it should link to. Is this perhaps something that only works after publishing to Google Play?

Thank you so much for your help so far, if it weren't for this community then I wouldn't have progressed this far :D

Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Dblfstr · Feb 26, 2014 at 08:34 PM 0
Share

I did answer below, but you can always write your own, its not hard, and there are plenty of tutorials specifically for admob and android.

1 Reply

· Add your reply
  • Sort: 
avatar image
1
Best Answer

Answer by Dblfstr · Feb 26, 2014 at 08:25 PM

For the touchscreen issue. In you android manifest, set "Forward native events to dalvik" to true. It is false by default.

 ForwardNativeEventsToDalvik = true

As for the plugin, propably wont be able to change that. Most likely, the location on screen was created in java, in eclipse, and is using a SMART_BANNER to fit the screen size. You are stuck with the location I am afraid.

Comment
Add comment · Show 6 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image DubstepDragon · Feb 26, 2014 at 09:06 PM 0
Share

Well, that is not a huge problem, it may work out fine on the bottom... However, I only want the ad to display in my main menu scene, and not when the game scene is loaded. Is that possible? I checked the script for any DontDestroyOnLoad parameters and I found one, which, when removed, did nothing. How can I only have it work on one scene?

avatar image DubstepDragon · Feb 26, 2014 at 09:08 PM 0
Share

Oh and my Android $$anonymous$$anifest has the line already set to true:

Perhaps it needs to be connected to Google Play in order for it to work?

avatar image Dblfstr · Feb 26, 2014 at 09:23 PM 0
Share

Nah, I could click my ads before I uploaded to the Play Store. So I don't know why you cant click them. But, that plugin is OLD. And the guy that made it even said to use a different one... Another one that is free. I am still trying to figure out how to keep it within a scene. It seems that when I create a java object in Unity (which is what the plugin you use does) I cannot get rid of it... ever! I have even destroyed the gameobject that has the script. But the java object is still there, and I cannot access it.

avatar image DubstepDragon · Feb 26, 2014 at 09:39 PM 0
Share

Yeah, I switched to the new, better one, and now I am getting another annoying error. Everything works fine, my android SD$$anonymous$$ is installed correctly, but after I did something, somehow unity is malfunctioning. The error says I have no android SD$$anonymous$$ installed. I have it here:

 Error building Player: CommandInvokationFailure: Unable to retrieve device properties. Please make sure the Android SD$$anonymous$$ is installed and is properly configured in the Editor. See the Console for more details. 
 C:/adt-bundle-windows-x86_64-20131030/sdk\platform-tools\adb.exe -s ZH8000LP0B shell getprop
 
 stderr[
 error: device offline
 ]
 stdout[
 
 ]
 
avatar image DubstepDragon · Feb 26, 2014 at 09:55 PM 0
Share

Never$$anonymous$$d, my bad, unity was acting weird :P

After a fresh boot and restart it started functioning normally again.

Thanks again! :D

Show more comments

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

22 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

How can I implement AdMob ads into a specific Unity Scene in XCode? 3 Answers

How to enable ads in your games. 1 Answer

iAds fallback to admob 0 Answers

A node in a childnode? 1 Answer

Admob interstitial showing using listener 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges