Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Admob Unity Package that work with Unity 3.2 above

Discussion in 'Android' started by MicroEyes, Mar 8, 2013.

?

Are you Satisfy with this Plugin Tutorial

  1. Yes

    66.9%
  2. No

    8.0%
  3. Not Completely

    25.1%
  1. progmeer

    progmeer

    Joined:
    Oct 5, 2012
    Posts:
    36
    PM with the APK link sent. I hope it wasn't filtered out. It's a dropbox link.
     
  2. MicroEyes

    MicroEyes

    Joined:
    Jul 3, 2012
    Posts:
    309
    Hey man,
    I got the link. I'll ping you in a couple of hours. latest by a day
     
  3. METALWINGS

    METALWINGS

    Joined:
    Dec 22, 2011
    Posts:
    21
    Thanks MicroEyes for this plugin.
    Just one question please, Do i need to have the game deployed to googleplay in order to see the adds? you know, i want to test my games with the adds before publishing anything.
     
  4. MicroEyes

    MicroEyes

    Joined:
    Jul 3, 2012
    Posts:
    309
    Your game don't need to be published in Google Play Store. You can test in development stage too. But don't forget to turn on testing in plugin.
     
  5. METALWINGS

    METALWINGS

    Joined:
    Dec 22, 2011
    Posts:
    21
    Thank you, i will make sure to include your name in the credits.
     
  6. ArtOne

    ArtOne

    Joined:
    Aug 22, 2013
    Posts:
    1
    Hi MicroEyes ! Your plugin is the coolest!!!
    I wanted to know, is it possible to add ads only on one page?. Because advertising is common to all pages in the project.

    maybe I was not attentive, but I have not found a solution.
    Thanks!
     
  7. arrast

    arrast

    Joined:
    Mar 18, 2012
    Posts:
    4
    Hello!

    First of all, thanks for your plugin. I looks like you have spent a lot of time on it...

    I have a problem, and i cannot get it to work (I am using the test scene, but it just don't show anything if I try to use my ID)
    I will attach here the logcat info, so maybe you can help.

    Code (csharp):
    1. I/ActivityManager(207):Nolongerwantcom.outlook.Z7:client(pid32679):hidden#16
    2. D/Unity(1080):Timedout.Continuingwithouthostconnection.
    3. D/Unity(1080):UsingmonoOptions--debugger-agent=transport=dt_socket,embedding=1,defer=y,address=0.0.0.0:56375
    4. D/Unity(1080):InitializeMonoFromMainOK(5d2cbf00)
    5. D/Unity(1080):PlayerConnection::Initialize
    6. D/Unity(1080):PlayerInitEngineNoGraphicsOK
    7. D/Unity(1080):Renderer:PowerVRSGX540
    8. D/Unity(1080):Vendor:ImaginationTechnologies
    9. D/Unity(1080):Version:OpenGLES2.0build1.8@785978
    10. D/Unity(1080):GL_OES_rgb8_rgba8GL_OES_depth24GL_OES_vertex_half_floatGL_OES_texture_floatGL_OES_texture_half_floatGL_OES_element_index_uintGL_OES_mapbufferGL_OES_fragment_precision_highGL_OES_compressed_ETC1_RGB8_textureGL_OES_EGL_imageGL_OES_EGL_image_externalGL_OES_required_internalformatGL_OES_depth_textureGL_OES_get_program_binaryGL_OES_packed_depth_stencilGL_OES_standard_derivativesGL_OES_vertex_array_objectGL_OES_egl_syncGL_EXT_multi_draw_arraysGL_EXT_texture_format_BGRA8888GL_EXT_discard_framebufferGL_EXT_shader_texture_lodGL_IMG_shader_binaryGL_IMG_texture_compression_pvrtcGL_IMG_texture_npotGL_IMG_texture_format_BGRA8888GL_IMG_read_formatGL_IMG_program_binaryGL_IMG_multisampled_render_to_texture
    11. D/Unity(1080):CreatingOpenGLES2.0graphicsdevice
    12. D/Unity(1080):InitializeGfxDeviceOK
    13. D/Unity(1080):Initializeengineversion:3.5.6f4
    14. V/AudioPolicyManagerBase(138):getDeviceForStrategy()fromcachestrategy0,device2
    15. V/AudioPolicyManagerBase(138):getOutput()stream3,samplingRate0,format0,channels3,flags0
    16. V/AudioPolicyManagerBase(138):startOutput()output1,stream3,session595
    17. V/AudioPolicyManagerBase(138):changeRefCount()stream3,count1
    18. V/AudioPolicyManagerBase(138):getDeviceForStrategy()fromcachestrategy0,device2
    19. V/AudioPolicyManagerBase(138):getNewDevice()selecteddevice2
    20. V/AudioPolicyManagerBase(138):setOutputDevice()output1device2delayMs0
    21. V/AudioPolicyManagerBase(138):setOutputDevice()settingsamedevice2ornulldeviceforoutput1
    22. V/AudioPolicyManagerBase(138):VOLUMEvolindex=[6080100],dB=[-11.0-5.50.0]ampl=0.53089
    23. D/Unity(1080):BeginMonoManagerReloadAssembly
    24. D/Unity(1080):Platformassembly:/data/app/com.Verstudios.AdmobTest-2.apk/assets/bin/Data/Managed/UnityEngine.dll(thismessageisharmless)
    25. D/Unity(1080):Loading/data/app/com.Verstudios.AdmobTest-2.apk/assets/bin/Data/Managed/UnityEngine.dllintoUnityChildDomain
    26. D/Unity(1080):Platformassembly:/data/app/com.Verstudios.AdmobTest-2.apk/assets/bin/Data/Managed/Assembly-CSharp.dll(thismessageisharmless)
    27. D/Unity(1080):Loading/data/app/com.Verstudios.AdmobTest-2.apk/assets/bin/Data/Managed/Assembly-CSharp.dllintoUnityChildDomain
    28. W/audience(138):AudienceES305notinitialized.
    29. D/Unity(1080):-Completedreload,in0.128seconds
    30. D/Unity(1080):PlayerInitEngineGraphicsOK
    31. I/Unity(1080):UnityCallingStart
    32. I/Unity(1080):UnityEngine.Debug:Internal_Log(Int32,String,Object)
    33. I/Unity(1080):UnityEngine.Debug:Log(Object)
    34. I/Unity(1080):AdvertisementManager:Start()(atC:\Users\Arrast\Downloads\AdmobUnityProject\Prueba2\Assets\Scripts\Mics\Advertisement\AdvertisementManager.cs:152)
    35. I/Unity(1080):
    36. I/Unity(1080):(Filename:CLine:0)
    37. I/Unity(1080):
    38. I/Unity(1080):InitializingwithPubID:7927580502874127AdvSize:SMART_BANNEROrientation:HORIZONTALPosition1:BOTTOMPosition2:CENTER_HORIZONTALIsTesting:TrueDeviceID:3D42000200000001AnimIn:NO_ANIMATIONAnimOut:FADE_OUTLevelOfDebug:LOW
    39. I/Unity(1080):UnityEngine.Debug:Internal_Log(Int32,String,Object)
    40. I/Unity(1080):UnityEngine.Debug:Log(Object)
    41. I/Unity(1080):AdvertisementManager:Start()(atC:\Users\Arrast\Downloads\AdmobUnityProject\Prueba2\Assets\Scripts\Mics\Advertisement\AdvertisementManager.cs:153)
    42. I/Unity(1080):
    43. I/Unity(1080):(Filename:CLine:0)
    44. I/Unity(1080):
    45. I/Unity(1080):InstantiateCalled
    46. I/Unity(1080):UnityEngine.Debug:Internal_Log(Int32,String,Object)
    47. I/Unity(1080):UnityEngine.Debug:Log(Object)
    48. I/Unity(1080):AdvertisementHandler:Instantiate(String,AdvSize,AdvOrientation,Position,Position,Boolean,String,AnimationInType,AnimationOutType,LevelOfDebug)(atC:\Users\Arrast\Downloads\AdmobUnityProject\Prueba2\Assets\Scripts\Mics\Advertisement\AdvertisementHandler.cs:86)
    49. I/Unity(1080):AdvertisementManager:Start()(atC:\Users\Arrast\Downloads\AdmobUnityProject\Prueba2\Assets\Scripts\Mics\Advertisement\AdvertisementManager.cs:167)
    50. I/Unity(1080):
    51. I/Unity(1080):(Filename:CLine:0)
    52. I/Unity(1080):
    53. I/ADMOB(1080):FunctionCall:0ReceivedPUB_ID:7927580502874127ADV_SIZE:4Orientation:1pos_1:80pos_2:1isTesting:trueAnimationInType:2AnimationOutType:1levelOfDebug:1
    54. I/ADMOB(1080):Requested:InstantiatingAdView
    55. I/ADMOB(1080):SetCurrentAdvSizeto360x50_mb
    56. I/Unity(1080):InstantiateFINISHED
    57. I/Unity(1080):UnityEngine.Debug:Internal_Log(Int32,String,Object)
    58. I/Unity(1080):UnityEngine.Debug:Log(Object)
    59. I/Unity(1080):AdvertisementHandler:Instantiate(String,AdvSize,AdvOrientation,Position,Position,Boolean,String,AnimationInType,AnimationOutType,LevelOfDebug)(atC:\Users\Arrast\Downloads\AdmobUnityProject\Prueba2\Assets\Scripts\Mics\Advertisement\AdvertisementHandler.cs:91)
    60. I/Unity(1080):AdvertisementManager:Start()(atC:\Users\Arrast\Downloads\AdmobUnityProject\Prueba2\Assets\Scripts\Mics\Advertisement\AdvertisementManager.cs:167)
    61. I/Unity(1080):
    62. I/Unity(1080):(Filename:CLine:0)
    63. I/Unity(1080):
    64. I/ADMOB(1080):InstantiatedSuccessfully
    65. I/Unity(1080):ENABLEDCalled
    66. I/Unity(1080):UnityEngine.Debug:Internal_Log(Int32,String,Object)
    67. I/Unity(1080):UnityEngine.Debug:Log(Object)
    68. I/Unity(1080):AdvertisementHandler:EnableAds()(atC:\Users\Arrast\Downloads\AdmobUnityProject\Prueba2\Assets\Scripts\Mics\Advertisement\AdvertisementHandler.cs:99)
    69. I/Unity(1080):AdvertisementManager:Start()(atC:\Users\Arrast\Downloads\AdmobUnityProject\Prueba2\Assets\Scripts\Mics\Advertisement\AdvertisementManager.cs:170)
    70. I/Unity(1080):
    71. I/Unity(1080):(Filename:CLine:0)
    72. I/Unity(1080):
    73. I/ADMOB(1080):FunctionCall:2ReceivedPUB_ID:ADV_SIZE:-1Orientation:-1pos_1:-1pos_2:-1isTesting:falseAnimationInType:-1AnimationOutType:-1levelOfDebug:-1
    74. I/ADMOB(1080):Requested:EnablingAdView
    75. I/Unity(1080):ENABLEDFINISHED
    76. I/Unity(1080):UnityEngine.Debug:Internal_Log(Int32,String,Object)
    77. I/Unity(1080):UnityEngine.Debug:Log(Object)
    78. I/Unity(1080):AdvertisementHandler:EnableAds()(atC:\Users\Arrast\Downloads\AdmobUnityProject\Prueba2\Assets\Scripts\Mics\Advertisement\AdvertisementHandler.cs:101)
    79. I/Unity(1080):AdvertisementManager:Start()(atC:\Users\Arrast\Downloads\AdmobUnityProject\Prueba2\Assets\Scripts\Mics\Advertisement\AdvertisementManager.cs:170)
    80. I/Unity(1080):
    81. I/Unity(1080):(Filename:CLine:0)
    82. I/Unity(1080):
    83. W/System.err(1080):java.lang.NumberFormatException:Invalidint:""
    84. W/System.err(1080): atjava.lang.Integer.invalidInt(Integer.java:138)
    85. W/System.err(1080): atjava.lang.Integer.parseInt(Integer.java:359)
    86. W/System.err(1080): atjava.lang.Integer.parseInt(Integer.java:332)
    87. W/System.err(1080): atjava.util.Calendar.getHwFirstDayOfWeek(Calendar.java:807)
    88. W/System.err(1080): atjava.util.Calendar.<init>(Calendar.java:745)
    89. W/System.err(1080): atjava.util.GregorianCalendar.<init>(GregorianCalendar.java:338)
    90. W/System.err(1080): atjava.util.GregorianCalendar.<init>(GregorianCalendar.java:314)
    91. W/System.err(1080): atjava.text.SimpleDateFormat.<init>(SimpleDateFormat.java:378)
    92. W/System.err(1080): atjava.text.SimpleDateFormat.<init>(SimpleDateFormat.java:368)
    93. W/System.err(1080): atjava.text.SimpleDateFormat.<init>(SimpleDateFormat.java:253)
    94. W/System.err(1080): atcom.google.ads.AdRequest.<clinit>(SourceFile:48)
    95. W/System.err(1080): atcom.microeyes.admob.AdmobActivity$2.run(AdmobActivity.java:254)
    96. W/System.err(1080): atandroid.os.Handler.handleCallback(Handler.java:605)
    97. W/System.err(1080): atandroid.os.Handler.dispatchMessage(Handler.java:92)
    98. W/System.err(1080): atandroid.os.Looper.loop(Looper.java:137)
    99. W/System.err(1080): atandroid.app.ActivityThread.main(ActivityThread.java:4424)
    100. W/System.err(1080): atjava.lang.reflect.Method.invokeNative(NativeMethod)
    101. W/System.err(1080): atjava.lang.reflect.Method.invoke(Method.java:511)
    102. W/System.err(1080): atcom.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:791)
    103. W/System.err(1080): atcom.android.internal.os.ZygoteInit.main(ZygoteInit.java:558)
    104. W/System.err(1080): atdalvik.system.NativeStart.main(NativeMethod)
    105. W/AdsProvider(328):Noactiveaccountorspecifiedaccountcouldnotbefound;aborting
    106. I/ADMOB(1080):EnablingDone
    107. I/Ads(1080):Togettestadsonthisdevice,calladRequest.addTestDevice("73EAE4B5EA048A2CF2C49C73BA1B948F");
    108. D/dalvikvm(1080):DexOpt:---BEGIN'ads-1840429572.jar'(bootstrap=0)---
    109. D/dalvikvm(1295):DexOpt:load3ms,verify+opt4ms
    110. D/dalvikvm(1080):DexOpt:---END'ads-1840429572.jar'(success)---
    111. D/dalvikvm(1080):DEXprep'/data/data/com.Verstudios.AdmobTest/cache/ads-1840429572.jar':unzipin0ms,rewrite65ms
    112. I/Ads(1080):adRequestUrlHtml:<html><head><scriptsrc="http://media.admob.com/sdk-core-v40.js"></script><script>AFMA_getSdkConstants();AFMA_buildAdURL({"preqs":0,"session_id":"967238908554173604","seq_num":"1","slotname":"7927580502874127","u_w":360,"msid":"com.Verstudios.AdmobTest","js":"afma-sdk-a-v6.4.1","bas_off":0,"net":"wi","app_name":"1.android.com.Verstudios.AdmobTest","hl":"es","smart_w":"full","gnt":3,"carrier":"21407","u_audio":3,"u_sd":1.5,"ms":"1K3S779jeyk9if3yxdyS379Q1WlhkkMRvMUfEimaWHXtP7dz1_dJUF9uagou35BPIF6b9C5j094TR5GBTocUP8sSAhOLsz296ETxRab87XEO2IAEbxDpbexNsA4nvW8eJrDb3nHP2MSgSvKIa8oGszlrKWRQCXsYcQOCsP76p4TCUOUNWXlwZGoO__qn_e-iu6IK63WUMZTBDKHpVbrIPrnrs7vKnEAZpXsJ6XlwxGtbeEiJV8MAEcius9sXNE70b5mvJehmgYtes52bPtkrdhV48ase0_PIMnFKtJnpG9GwexP5wuI4UbQSpHZXG-Q1PfTRH1IvbruAN2VyrrioQg","mv":"80230011.com.android.vending","isu":"73EAE4B5EA048A2CF2C49C73BA1B948F","format":"360x50_mb","oar":0,"smart_h":"auto","ad_pos":{"height":0,"visible":1,"y":960,"x":270,"width":0},"u_h":640,"pt":1,"bas_on":0,"ptime":0});</script></head><body></body></html>
    113. E/WebCore(1080):drm.service.enabled=true
    114. D/webhistory(1080):WritingFormdataelse{}Tag
    115. V/AlarmManager(207):set:Alarm{421d7e78type2com.google.android.gms}
    116. V/AlarmManager(207):AddingalarmAlarm{421d7e78type2com.google.android.gms}at22
    117. V/AlarmManager(207):alarms:23type:2
    118. V/AlarmManager(207):0:ene.0204:15:00a.m.android
    119. V/AlarmManager(207):1:ene.0204:20:22a.m.android
    120. V/AlarmManager(207):2:ene.0204:26:55a.m.com.google.android.gsf
    121. V/AlarmManager(207):3:ene.0204:30:00a.m.com.google.android.talk
    122. V/AlarmManager(207):4:ene.0204:30:00a.m.com.google.android.talk
    123. V/AlarmManager(207):5:ene.0204:30:00a.m.com.google.android.talk
    124. V/AlarmManager(207):6:ene.0204:30:00a.m.com.google.android.talk
    125. V/AlarmManager(207):7:ene.0204:45:00a.m.com.google.android.talk
    126. V/AlarmManager(207):8:ene.0204:45:00a.m.com.google.android.talk
    127. V/AlarmManager(207):9:ene.0205:15:00a.m.com.google.android.talk
    128. V/AlarmManager(207):10:ene.0205:15:00a.m.com.google.android.talk
    129. V/AlarmManager(207):11:ene.0205:15:00a.m.com.google.android.talk
    130. V/AlarmManager(207):12:ene.0205:15:00a.m.com.google.android.talk
    131. V/AlarmManager(207):13:ene.0206:27:32a.m.com.google.android.gms
    132. V/AlarmManager(207):14:ene.0209:55:05a.m.com.google.android.gms
    133. V/AlarmManager(207):15:ene.0211:46:16a.m.android
    134. V/AlarmManager(207):16:ene.0211:30:00p.m.com.google.android.talk
    135. V/AlarmManager(207):17:ene.0312:45:00a.m.com.google.android.talk
    136. V/AlarmManager(207):18:ene.1009:00:00a.m.com.google.android.apps.plus
    137. V/AlarmManager(207):19:ene.2307:48:21a.m.com.google.android.gms
    138. V/AlarmManager(207):20:ene.2307:48:22a.m.com.google.android.gms
    139. V/AlarmManager(207):21:ene.2307:48:22a.m.com.google.android.gms
    140. V/AlarmManager(207):22:ene.2712:43:18a.m.com.google.android.gms
    141. I/Ads(1080):Receivedadurl:<url:"http://googleads.g.doubleclick.net:80/mads/mediate?preqs=0&session_id=967238908554173604&seq_num=1&slotname=7927580502874127&u_w=360&msid=com.Verstudios.AdmobTest&js=afma-sdk-a-v6.4.1&bas_off=0&net=wi&app_name=1.android.com.Verstudios.AdmobTest&hl=es&smart_w=full&gnt=3&carrier=21407&u_audio=3&u_sd=1.5&ms=1K3S779jeyk9if3yxdyS379Q1WlhkkMRvMUfEimaWHXtP7dz1_dJUF9uagou35BPIF6b9C5j094TR5GBTocUP8sSAhOLsz296ETxRab87XEO2IAEbxDpbexNsA4nvW8eJrDb3nHP2MSgSvKIa8oGszlrKWRQCXsYcQOCsP76p4TCUOUNWXlwZGoO__qn_e-iu6IK63WUMZTBDKHpVbrIPrnrs7vKnEAZpXsJ6XlwxGtbeEiJV8MAEcius9sXNE70b5mvJehmgYtes52bPtkrdhV48ase0_PIMnFKtJnpG9GwexP5wuI4UbQSpHZXG-Q1PfTRH1IvbruAN2VyrrioQg&mv=80230011.com.android.vending&format=360x50_mb&oar=0&smart_h=auto&u_h=640&bas_on=0&ptime=0&u_so=p&imbf=%40installed_markets%40&output=html&region=mobile_app&u_tz=120&client_sdk=1&ex=1&gsb=wi&caps=inlineVideo_interactiveVideo_mraid1_th_mediation_sdkAdmobApiForAds_di&eisu=bTEwn2uLddKBBuYYtqY7vK4OuFH81048LOw2RU5R10naqrafu9FUAmFyT0d_wmMmO9_LUfhp4VKuSAwgT7PNeyBxBMXhe-qZanO4AECge3P1iTBLktOBA-ZkEUtvz725&et=13&jsv=54"type:"gwhirl"afmaNotifyDt:"null"activationOverlayUrl:"null"useWebViewLoadUrl:"false">
    142. I/Ads(1080):Adurlmodifiedtohttp://googleads.g.doubleclick.net:80/mads/mediate?preqs=0&session_id=967238908554173604&seq_num=1&slotname=7927580502874127&u_w=360&msid=com.Verstudios.AdmobTest&js=afma-sdk-a-v6.4.1&bas_off=0&net=wi&app_name=1.android.com.Verstudios.AdmobTest&hl=es&smart_w=full&gnt=3&carrier=21407&u_audio=3&u_sd=1.5&ms=1K3S779jeyk9if3yxdyS379Q1WlhkkMRvMUfEimaWHXtP7dz1_dJUF9uagou35BPIF6b9C5j094TR5GBTocUP8sSAhOLsz296ETxRab87XEO2IAEbxDpbexNsA4nvW8eJrDb3nHP2MSgSvKIa8oGszlrKWRQCXsYcQOCsP76p4TCUOUNWXlwZGoO__qn_e-iu6IK63WUMZTBDKHpVbrIPrnrs7vKnEAZpXsJ6XlwxGtbeEiJV8MAEcius9sXNE70b5mvJehmgYtes52bPtkrdhV48ase0_PIMnFKtJnpG9GwexP5wuI4UbQSpHZXG-Q1PfTRH1IvbruAN2VyrrioQg&mv=80230011.com.android.vending&format=360x50_mb&oar=0&smart_h=auto&u_h=640&bas_on=0&ptime=0&u_so=p&imbf=8009&output=html&region=mobile_app&u_tz=120&client_sdk=1&ex=1&gsb=wi&caps=inlineVideo_interactiveVideo_mraid1_th_mediation_sdkAdmobApiForAds_di&eisu=bTEwn2uLddKBBuYYtqY7vK4OuFH81048LOw2RU5R10naqrafu9FUAmFyT0d_wmMmO9_LUfhp4VKuSAwgT7PNeyBxBMXhe-qZanO4AECge3P1iTBLktOBA-ZkEUtvz725&et=13&jsv=54
    143. I/Ads(1080):Requestscenario:Onlineserverrequest.
    144. I/Ads(1080):Badrequest
    145. D/webviewglue(1080):nativeDestroyview:0x17fb0c0
    146. I/Ads(1080):onFailedToReceiveAd(InvalidAdrequest.)
    147. D/ADMOB(1080):failedtoreceivead(InvalidAdrequest.)
    148. D/webhistory(1080):WritingFormdataelse{}Tag
    149. I/Unity(1080):SHOWADVCalled
    150. I/Unity(1080):UnityEngine.Debug:Internal_Log(Int32,String,Object)
    151. I/Unity(1080):UnityEngine.Debug:Log(Object)
    152. I/Unity(1080):AdvertisementHandler:ShowAds()(atC:\Users\Arrast\Downloads\AdmobUnityProject\Prueba2\Assets\Scripts\Mics\Advertisement\AdvertisementHandler.cs:132)
    153. I/Unity(1080):AdvertisementManager:OnGUI()(atC:\Users\Arrast\Downloads\AdmobUnityProject\Prueba2\Assets\Scripts\Mics\Advertisement\AdvertisementManager.cs:33)
    154. I/Unity(1080):
    155. I/Unity(1080):(Filename:CLine:0)
    156. I/Unity(1080):
    157. I/ADMOB(1080):FunctionCall:4ReceivedPUB_ID:ADV_SIZE:-1Orientation:-1pos_1:-1pos_2:-1isTesting:falseAnimationInType:-1AnimationOutType:-1levelOfDebug:-1
    158. I/ADMOB(1080):Requested:ShowAdView
    159. I/Unity(1080):SHOWADVFINISHED
    160. I/Unity(1080):UnityEngine.Debug:Internal_Log(Int32,String,Object)
    161. I/Unity(1080):UnityEngine.Debug:Log(Object)
    162. I/Unity(1080):AdvertisementHandler:ShowAds()(atC:\Users\Arrast\Downloads\AdmobUnityProject\Prueba2\Assets\Scripts\Mics\Advertisement\AdvertisementHandler.cs:134)
    163. I/Unity(1080):AdvertisementManager:OnGUI()(atC:\Users\Arrast\Downloads\AdmobUnityProject\Prueba2\Assets\Scripts\Mics\Advertisement\AdvertisementManager.cs:33)
    164. I/Unity(1080):
    165. I/Unity(1080):(Filename:CLine:0)
    166. I/Unity(1080):
    167. I/Unity(1080):SHOWADVCalled
    168. I/Unity(1080):UnityEngine.Debug:Internal_Log(Int32,String,Object)
    169. I/Unity(1080):UnityEngine.Debug:Log(Object)
    170. I/Unity(1080):AdvertisementHandler:ShowAds()(atC:\Users\Arrast\Downloads\AdmobUnityProject\Prueba2\Assets\Scripts\Mics\Advertisement\AdvertisementHandler.cs:132)
    171. I/Unity(1080):AdvertisementManager:OnGUI()(atC:\Users\Arrast\Downloads\AdmobUnityProject\Prueba2\Assets\Scripts\Mics\Advertisement\AdvertisementManager.cs:33)
    172. I/Unity(1080):
    173. I/Unity(1080):(Filename:CLine:0)
    174. I/Unity(1080):
    175. I/ADMOB(1080):FunctionCall:4ReceivedPUB_ID:ADV_SIZE:-1Orientation:-1pos_1:-1pos_2:-1isTesting:falseAnimationInType:-1AnimationOutType:-1levelOfDebug:-1
    176. I/ADMOB(1080):Requested:ShowAdView
    177. I/Unity(1080):SHOWADVFINISHED
    178. I/Unity(1080):UnityEngine.Debug:Internal_Log(Int32,String,Object)
    179. I/Unity(1080):UnityEngine.Debug:Log(Object)
    180. I/Unity(1080):AdvertisementHandler:ShowAds()(atC:\Users\Arrast\Downloads\AdmobUnityProject\Prueba2\Assets\Scripts\Mics\Advertisement\AdvertisementHandler.cs:134)
    181. I/Unity(1080):AdvertisementManager:OnGUI()(atC:\Users\Arrast\Downloads\AdmobUnityProject\Prueba2\Assets\Scripts\Mics\Advertisement\AdvertisementManager.cs:33)
    182. I/Unity(1080):
    183. I/Unity(1080):(Filename:CLine:0)
    184. I/Unity(1080):
    185. I/Unity(1080):HIDEADVCalled
    186. I/Unity(1080):UnityEngine.Debug:Internal_Log(Int32,String,Object)
    187. I/Unity(1080):UnityEngine.Debug:Log(Object)
    188. I/Unity(1080):AdvertisementHandler:HideAds()(atC:\Users\Arrast\Downloads\AdmobUnityProject\Prueba2\Assets\Scripts\Mics\Advertisement\AdvertisementHandler.cs:122)
    189. I/Unity(1080):AdvertisementManager:OnGUI()(atC:\Users\Arrast\Downloads\AdmobUnityProject\Prueba2\Assets\Scripts\Mics\Advertisement\AdvertisementManager.cs:27)
    190. I/Unity(1080):
    191. I/Unity(1080):(Filename:CLine:0)
    192. I/Unity(1080):
    193. I/ADMOB(1080):FunctionCall:3ReceivedPUB_ID:ADV_SIZE:-1Orientation:-1pos_1:-1pos_2:-1isTesting:falseAnimationInType:-1AnimationOutType:-1levelOfDebug:-1
    194. I/ADMOB(1080):Requested:HideAdView
    195. I/Unity(1080):HIDEADVFINISHED
    196. I/Unity(1080):UnityEngine.Debug:Internal_Log(Int32,String,Object)
    197. I/Unity(1080):UnityEngine.Debug:Log(Object)
    198. I/Unity(1080):AdvertisementHandler:HideAds()(atC:\Users\Arrast\Downloads\AdmobUnityProject\Prueba2\Assets\Scripts\Mics\Advertisement\AdvertisementHandler.cs:124)
    199. I/Unity(1080):AdvertisementManager:OnGUI()(atC:\Users\Arrast\Downloads\AdmobUnityProject\Prueba2\Assets\Scripts\Mics\Advertisement\AdvertisementManager.cs:27)
    200. I/Unity(1080):
    201. I/Unity(1080):(Filename:CLine:0)
    202. I/Unity(1080):
    203. I/Unity(1080):DISABLEDCalled
    204. I/Unity(1080):UnityEngine.Debug:Internal_Log(Int32,String,Object)
    205. I/Unity(1080):UnityEngine.Debug:Log(Object)
    206. I/Unity(1080):AdvertisementHandler:DisableAds()(atC:\Users\Arrast\Downloads\AdmobUnityProject\Prueba2\Assets\Scripts\Mics\Advertisement\AdvertisementHandler.cs:111)
    207. I/Unity(1080):AdvertisementManager:OnGUI()(atC:\Users\Arrast\Downloads\AdmobUnityProject\Prueba2\Assets\Scripts\Mics\Advertisement\AdvertisementManager.cs:21)
    208. I/Unity(1080):
    209. I/Unity(1080):(Filename:CLine:0)
    210. I/Unity(1080):
    211. I/ADMOB(1080):FunctionCall:1ReceivedPUB_ID:ADV_SIZE:-1Orientation:-1pos_1:-1pos_2:-1isTesting:falseAnimationInType:-1AnimationOutType:-1levelOfDebug:-1
    212. I/ADMOB(1080):Requested:DisableAdView
    213. I/ADMOB(1080):RemovingAdView
    214. I/ADMOB(1080):AdviewRemoved
    215. I/Unity(1080):DISABLEDFINISHED
    216. I/Unity(1080):UnityEngine.Debug:Internal_Log(Int32,String,Object)
    217. I/Unity(1080):UnityEngine.Debug:Log(Object)
    218. I/Unity(1080):AdvertisementHandler:DisableAds()(atC:\Users\Arrast\Downloads\AdmobUnityProject\Prueba2\Assets\Scripts\Mics\Advertisement\AdvertisementHandler.cs:113)
    219. I/Unity(1080):AdvertisementManager:OnGUI()(atC:\Users\Arrast\Downloads\AdmobUnityProject\Prueba2\Assets\Scripts\Mics\Advertisement\AdvertisementManager.cs:21)
    220. I/Unity(1080):
    221. I/Unity(1080):(Filename:CLine:0)
    222. I/Unity(1080):
    223. I/Unity(1080):ENABLEDCalled
    224. I/Unity(1080):UnityEngine.Debug:Internal_Log(Int32,String,Object)
    225. I/Unity(1080):UnityEngine.Debug:Log(Object)
    226. I/Unity(1080):AdvertisementHandler:EnableAds()(atC:\Users\Arrast\Downloads\AdmobUnityProject\Prueba2\Assets\Scripts\Mics\Advertisement\AdvertisementHandler.cs:99)
    227. I/Unity(1080):AdvertisementManager:OnGUI()(atC:\Users\Arrast\Downloads\AdmobUnityProject\Prueba2\Assets\Scripts\Mics\Advertisement\AdvertisementManager.cs:16)
    228. I/Unity(1080):
    229. I/Unity(1080):(Filename:CLine:0)
    230. I/Unity(1080):
    231. I/ADMOB(1080):FunctionCall:2ReceivedPUB_ID:ADV_SIZE:-1Orientation:-1pos_1:-1pos_2:-1isTesting:falseAnimationInType:-1AnimationOutType:-1levelOfDebug:-1
    232. I/ADMOB(1080):Requested:EnablingAdView
    233. I/Unity(1080):ENABLEDFINISHED
    234. I/Unity(1080):UnityEngine.Debug:Internal_Log(Int32,String,Object)
    235. I/Unity(1080):UnityEngine.Debug:Log(Object)
    236. I/Unity(1080):AdvertisementHandler:EnableAds()(atC:\Users\Arrast\Downloads\AdmobUnityProject\Prueba2\Assets\Scripts\Mics\Advertisement\AdvertisementHandler.cs:101)
    237. I/Unity(1080):AdvertisementManager:OnGUI()(atC:\Users\Arrast\Downloads\AdmobUnityProject\Prueba2\Assets\Scripts\Mics\Advertisement\AdvertisementManager.cs:16)
    238. I/Unity(1080):
    239. I/Unity(1080):(Filename:CLine:0)
    240. I/Unity(1080):
    241. W/AdsProvider(328):Noactiveaccountorspecifiedaccountcouldnotbefound;aborting
    242. I/ADMOB(1080):EnablingDone
    243. I/Ads(1080):Togettestadsonthisdevice,calladRequest.addTestDevice("73EAE4B5EA048A2CF2C49C73BA1B948F");
    244. E/dalvikvm(1080):GC_CONCURRENTfreed1365K,18%free9490K/11555K,paused3ms+2ms
    245. D/webviewglue(1080):nativeDestroyview:0x17f84c0
    246. D/webviewglue(1080):nativeDestroyview:0x17f1cd0
    247. I/Ads(1080):adRequestUrlHtml:<html><head><scriptsrc="http://media.admob.com/sdk-core-v40.js"></script><script>AFMA_buildAdURL({"preqs":1,"session_id":"967238908554173604","seq_num":"2","slotname":"7927580502874127","u_w":360,"msid":"com.Verstudios.AdmobTest","js":"afma-sdk-a-v6.4.1","bas_off":0,"imbf":"8009","net":"wi","app_name":"1.android.com.Verstudios.AdmobTest","hl":"es","smart_w":"full","gnt":3,"carrier":"21407","u_audio":3,"u_sd":1.5,"ms":"lu5kSnL_TzeSPsjVgRqgZAbjh50tKeDpQSv118s5zVcTU0SA3L2hppqDJunHaj7o9s_I6IQdOryasCd5uBSYnE96uXZyESNVlWkHGiD4_gF-wV_P9PfxsNMg0DQ-r5XRi3WQdB2RABPkHeCvJI3FRUa1YF0W2A5Dq_ScFB7QKDmlHx_5Gu0QdvtJsjcqjdi-Y_mLZN1F-zo3zut4e74AONuY02o3GSdsE9G4CMgatZwszFSjtyvr-ZGWBSp_oIO2ExUd9Uy2PMo0w0JwlrmJaWvzmngPnWN9qFaQpV6d45CQR27opgfJ3UNpy4OHUTD-LCZipHDNObWfyhLOykbhkA","mv":"80230011.com.android.vending","isu":"73EAE4B5EA048A2CF2C49C73BA1B948F","format":"360x50_mb","oar":0,"smart_h":"auto","ad_pos":{"height":0,"visible":1,"y":960,"x":270,"width":0},"u_h":640,"pt":1,"bas_on":0,"ptime":5270});</script></head><body></body></html>
    248. E/WebCore(1080):drm.service.enabled=true
    249. D/webhistory(1080):WritingFormdataelse{}Tag
    250. I/Ads(1080):Receivedadurl:<url:"http://googleads.g.doubleclick.net:80/mads/mediate?preqs=1&session_id=967238908554173604&seq_num=2&slotname=7927580502874127&u_w=360&msid=com.Verstudios.AdmobTest&js=afma-sdk-a-v6.4.1&bas_off=0&imbf=8009&net=wi&app_name=1.android.com.Verstudios.AdmobTest&hl=es&smart_w=full&gnt=3&carrier=21407&u_audio=3&u_sd=1.5&ms=lu5kSnL_TzeSPsjVgRqgZAbjh50tKeDpQSv118s5zVcTU0SA3L2hppqDJunHaj7o9s_I6IQdOryasCd5uBSYnE96uXZyESNVlWkHGiD4_gF-wV_P9PfxsNMg0DQ-r5XRi3WQdB2RABPkHeCvJI3FRUa1YF0W2A5Dq_ScFB7QKDmlHx_5Gu0QdvtJsjcqjdi-Y_mLZN1F-zo3zut4e74AONuY02o3GSdsE9G4CMgatZwszFSjtyvr-ZGWBSp_oIO2ExUd9Uy2PMo0w0JwlrmJaWvzmngPnWN9qFaQpV6d45CQR27opgfJ3UNpy4OHUTD-LCZipHDNObWfyhLOykbhkA&mv=80230011.com.android.vending&format=360x50_mb&oar=0&smart_h=auto&u_h=640&bas_on=0&ptime=5270&u_so=p&output=html&region=mobile_app&u_tz=120&client_sdk=1&ex=1&gsb=wi&caps=inlineVideo_interactiveVideo_mraid1_th_mediation_sdkAdmobApiForAds_di&eisu=XEtDnDvcpnT83XYnSUTZdItOixAgl_Cq3ZGMkzcFujLGSFtzgFZSDWkn_yf4VXBkepYUlPpZ-emlBxM3MWhJ05RifJTkfKkwEIJA3oFFcqFiUJoEdkcRr9ZijDZIQp8p&et=7&jsv=54"type:"gwhirl"afmaNotifyDt:"null"activationOverlayUrl:"null"useWebViewLoadUrl:"false">
    251. I/Ads(1080):Requestscenario:Onlineserverrequest.
    252. I/Ads(1080):Badrequest
    253. D/webviewglue(1080):nativeDestroyview:0x1830528
    254. I/Ads(1080):onFailedToReceiveAd(InvalidAdrequest.)
    255. D/ADMOB(1080):failedtoreceivead(InvalidAdrequest.)
    256. D/webhistory(1080):WritingFormdataelse{}Tag
    257. I/Unity(1080):ENABLEDCalled
    258. I/Unity(1080):UnityEngine.Debug:Internal_Log(Int32,String,Object)
    259. I/Unity(1080):UnityEngine.Debug:Log(Object)
    260. I/Unity(1080):AdvertisementHandler:EnableAds()(atC:\Users\Arrast\Downloads\AdmobUnityProject\Prueba2\Assets\Scripts\Mics\Advertisement\AdvertisementHandler.cs:99)
    261. I/Unity(1080):AdvertisementManager:OnGUI()(atC:\Users\Arrast\Downloads\AdmobUnityProject\Prueba2\Assets\Scripts\Mics\Advertisement\AdvertisementManager.cs:16)
    262. I/Unity(1080):
    263. I/Unity(1080):(Filename:CLine:0)
    264. I/Unity(1080):
    265. I/ADMOB(1080):FunctionCall:2ReceivedPUB_ID:ADV_SIZE:-1Orientation:-1pos_1:-1pos_2:-1isTesting:falseAnimationInType:-1AnimationOutType:-1levelOfDebug:-1
    266. I/ADMOB(1080):Requested:EnablingAdView
    267. I/ADMOB(1080):AlreadyEnabled
    268. I/Unity(1080):ENABLEDFINISHED
    269. I/Unity(1080):UnityEngine.Debug:Internal_Log(Int32,String,Object)
    270. I/Unity(1080):UnityEngine.Debug:Log(Object)
    271. I/Unity(1080):AdvertisementHandler:EnableAds()(atC:\Users\Arrast\Downloads\AdmobUnityProject\Prueba2\Assets\Scripts\Mics\Advertisement\AdvertisementHandler.cs:101)
    272. I/Unity(1080):AdvertisementManager:OnGUI()(atC:\Users\Arrast\Downloads\AdmobUnityProject\Prueba2\Assets\Scripts\Mics\Advertisement\AdvertisementManager.cs:16)
    273. I/Unity(1080):
    274. I/Unity(1080):(Filename:CLine:0)
    275. I/Unity(1080):
    276. I/Unity(1080):SHOWADVCalled
    277. I/Unity(1080):UnityEngine.Debug:Internal_Log(Int32,String,Object)
    278. I/Unity(1080):UnityEngine.Debug:Log(Object)
    279. I/Unity(1080):AdvertisementHandler:ShowAds()(atC:\Users\Arrast\Downloads\AdmobUnityProject\Prueba2\Assets\Scripts\Mics\Advertisement\AdvertisementHandler.cs:132)
    280. I/Unity(1080):AdvertisementManager:OnGUI()(atC:\Users\Arrast\Downloads\AdmobUnityProject\Prueba2\Assets\Scripts\Mics\Advertisement\AdvertisementManager.cs:33)
    281. I/Unity(1080):
    282. I/Unity(1080):(Filename:CLine:0)
    283. I/Unity(1080):
    284. I/ADMOB(1080):FunctionCall:4ReceivedPUB_ID:ADV_SIZE:-1Orientation:-1pos_1:-1pos_2:-1isTesting:falseAnimationInType:-1AnimationOutType:-1levelOfDebug:-1
    285. I/ADMOB(1080):Requested:ShowAdView
    286. I/Unity(1080):SHOWADVFINISHED
    287. I/Unity(1080):UnityEngine.Debug:Internal_Log(Int32,String,Object)
    288. I/Unity(1080):UnityEngine.Debug:Log(Object)
    289. I/Unity(1080):AdvertisementHandler:ShowAds()(atC:\Users\Arrast\Downloads\AdmobUnityProject\Prueba2\Assets\Scripts\Mics\Advertisement\AdvertisementHandler.cs:134)
    290. I/Unity(1080):AdvertisementManager:OnGUI()(atC:\Users\Arrast\Downloads\AdmobUnityProject\Prueba2\Assets\Scripts\Mics\Advertisement\AdvertisementManager.cs:33)
    291. I/Unity(1080):
    292. I/Unity(1080):(Filename:CLine:0)
    293. I/Unity(1080):
    294. I/Unity(1080):SHOWADVCalled
    295. I/Unity(1080):UnityEngine.Debug:Internal_Log(Int32,String,Object)
    296. I/Unity(1080):UnityEngine.Debug:Log(Object)
    297. I/Unity(1080):AdvertisementHandler:ShowAds()(atC:\Users\Arrast\Downloads\AdmobUnityProject\Prueba2\Assets\Scripts\Mics\Advertisement\AdvertisementHandler.cs:132)
    298. I/Unity(1080):AdvertisementManager:OnGUI()(atC:\Users\Arrast\Downloads\AdmobUnityProject\Prueba2\Assets\Scripts\Mics\Advertisement\AdvertisementManager.cs:33)
    299. I/Unity(1080):
    300. I/Unity(1080):(Filename:CLine:0)
    301. I/Unity(1080):
    302. I/ADMOB(1080):FunctionCall:4ReceivedPUB_ID:ADV_SIZE:-1Orientation:-1pos_1:-1pos_2:-1isTesting:falseAnimationInType:-1AnimationOutType:-1levelOfDebug:-1
    303. I/ADMOB(1080):Requested:ShowAdView
    304. I/Unity(1080):SHOWADVFINISHED
    305. I/Unity(1080):UnityEngine.Debug:Internal_Log(Int32,String,Object)
    306. I/Unity(1080):UnityEngine.Debug:Log(Object)
    307. I/Unity(1080):AdvertisementHandler:ShowAds()(atC:\Users\Arrast\Downloads\AdmobUnityProject\Prueba2\Assets\Scripts\Mics\Advertisement\AdvertisementHandler.cs:134)
    308. I/Unity(1080):AdvertisementManager:OnGUI()(atC:\Users\Arrast\Downloads\AdmobUnityProject\Prueba2\Assets\Scripts\Mics\Advertisement\AdvertisementManager.cs:33)
    309. I/Unity(1080):
    310. I/Unity(1080):(Filename:CLine:0)
    311. I/Unity(1080):
    312. I/Unity(1080):SHOWADVCalled
    313. I/Unity(1080):UnityEngine.Debug:Internal_Log(Int32,String,Object)
    314. I/Unity(1080):UnityEngine.Debug:Log(Object)
    315. I/Unity(1080):AdvertisementHandler:ShowAds()(atC:\Users\Arrast\Downloads\AdmobUnityProject\Prueba2\Assets\Scripts\Mics\Advertisement\AdvertisementHandler.cs:132)
    316. I/Unity(1080):AdvertisementManager:OnGUI()(atC:\Users\Arrast\Downloads\AdmobUnityProject\Prueba2\Assets\Scripts\Mics\Advertisement\AdvertisementManager.cs:33)
    317. I/Unity(1080):
    318. I/Unity(1080):(Filename:CLine:0)
    319. I/Unity(1080):
    320. I/ADMOB(1080):FunctionCall:4ReceivedPUB_ID:ADV_SIZE:-1Orientation:-1pos_1:-1pos_2:-1isTesting:falseAnimationInType:-1AnimationOutType:-1levelOfDebug:-1
    321. I/ADMOB(1080):Requested:ShowAdView
    322. I/Unity(1080):SHOWADVFINISHED
    323. I/Unity(1080):UnityEngine.Debug:Internal_Log(Int32,String,Object)
    324. I/Unity(1080):UnityEngine.Debug:Log(Object)
    325. I/Unity(1080):AdvertisementHandler:ShowAds()(atC:\Users\Arrast\Downloads\AdmobUnityProject\Prueba2\Assets\Scripts\Mics\Advertisement\AdvertisementHandler.cs:134)
    326. I/Unity(1080):AdvertisementManager:OnGUI()(atC:\Users\Arrast\Downloads\AdmobUnityProject\Prueba2\Assets\Scripts\Mics\Advertisement\AdvertisementManager.cs:33)
    327. I/Unity(1080):
    328. I/Unity(1080):(Filename:CLine:0)
    329. I/Unity(1080):.
    Thanks in advance!
     
  8. Oniony

    Oniony

    Joined:
    Aug 15, 2013
    Posts:
    31
    Just released my first game made with Unity to Google Play and in the free version I used your amazing plugin! It's pretty cool. I set it to show only when the weapons panel is opened by the user. otherwise, during gameplay it is hidden. Really helped and I love it. Proper credit given right on the main menu of my game when you click the credits bubble.

    In the app, you can take a picture and then use various weapons to destroy the picture. The free version features 5/11 of the full version's weapons. Weapons include a flamethrower, a machine gun, a hammer, etc. In the full version, you can also import pictures from internet links.

    It's pretty fun. Even for me. You'd think after developing this for such a long time, I'd be sick of it, but I use it all the time to relieve stress and just mess around. Hahaha.

    Here's the link to my game: Defacer on Google Play


    $48EIS.jpg $48EJq.jpg
     
  9. pavlito

    pavlito

    Joined:
    Nov 27, 2007
    Posts:
    136
    I see some people are having troubles with displaying ads with their ID. I had the same problem.
    Make sure you put your APP ID (in unity) the same as on admob site (when you make a new app record) and change your admob ID in the inspector (and possibly in the .cs file as well).

    Hope it helps and gets your ads displayed. Good luck!
     
  10. MicroEyes

    MicroEyes

    Joined:
    Jul 3, 2012
    Posts:
    309
    Hi, if your "one page" means to only one scene then Remove "DontDestroy" Script from AdvertisementManager Prefab in your scene.
     
  11. pezz

    pezz

    Joined:
    Apr 29, 2011
    Posts:
    606
    Hi,

    I just stumbled across your admob plugin and tried it.

    However I am getting these errors.

    JNI: Unable to find field id for 'currentActivity' (static)
    UnityEngine.AndroidJavaObject:GetStatic(String)
    AdvertisementHandler:Instantiate(String, AdvSize, AdvOrientation, Position, Position, Boolean, String, AnimationInType, AnimationOutType, LevelOfDebug) (at Assets/Scripts/Mics/Advertisement/AdvertisementHandler.cs:89)
    AdvertisementManager:Start() (at Assets/Scripts/Mics/Advertisement/AdvertisementManager.cs:167)

    Same thing for getClass,getName, and AdvHandler.
     
  12. MicroEyes

    MicroEyes

    Joined:
    Jul 3, 2012
    Posts:
    309
    Seems like you are trying to run on UnityEditor. If Yes, Please build APK, install run on device.
     
  13. Pragnani K

    Pragnani K

    Joined:
    Jun 6, 2013
    Posts:
    8
    Hi MicroEyes, I have used your previous plug version 1. I want to display add like this $test.png
     
  14. MicroEyes

    MicroEyes

    Joined:
    Jul 3, 2012
    Posts:
    309
     
  15. pezz

    pezz

    Joined:
    Apr 29, 2011
    Posts:
    606
    Thanks that did it.
     
  16. NinhKidd

    NinhKidd

    Joined:
    Jul 8, 2013
    Posts:
    6
    Hi MicroEyes, thank you ton for the useful plugin :)

    I just wonder: How could i use your plugin for Admob Meditation? Because Admob use the same code to call Ad View for normal ad and meditation; so will it be just simple use the Mediation ID and copy other adnetwork lib to Asset?

    And one more thing, just my opinion: you currently use LinearLayout to add view so we have the ad's positions are bottom, top... if you use RelativeLayout match the parent and apply margin to the child, the Ad View can be display at very precise position
     
  17. Pragnani K

    Pragnani K

    Joined:
    Jun 6, 2013
    Posts:
    8
     
  18. Pragnani K

    Pragnani K

    Joined:
    Jun 6, 2013
    Posts:
    8
    I have Tested with your Version 2 , I am unable to achieve that ..please don't let me change the game design
     
  19. Shigidy

    Shigidy

    Joined:
    Dec 14, 2011
    Posts:
    441
    I'm confused, do I just paste the Advertisement Manager to every scene?
     
  20. NinhKidd

    NinhKidd

    Joined:
    Jul 8, 2013
    Posts:
    6
    Use DontDestroyOnLoad to keep it through :)
     
  21. Shigidy

    Shigidy

    Joined:
    Dec 14, 2011
    Posts:
    441
    $ads.png

    Are you talking about the advertisment manager, or something else. Because I have another package, IRDS that has DestroyOnLoad, but don't see that on advertisement manager.
     
  22. NinhKidd

    NinhKidd

    Joined:
    Jul 8, 2013
    Posts:
    6
    About advertisement manager. To me, I'm not paste it in every scene. I creat a gameobject in my main menu, attach advertisment manager and call it DontDestroyOnLoad; so for every scene after that, i find the gameobject and call function in the advertisement manager
     
  23. Shigidy

    Shigidy

    Joined:
    Dec 14, 2011
    Posts:
    441
    $ads2.png

    Is this correct?
     
  24. NinhKidd

    NinhKidd

    Joined:
    Jul 8, 2013
    Posts:
    6
    "correct" or not it depends on your purpose. For me, i just creat an emty gameobject and add Advertisement Manager script to it...

    And then, i add to the script function onAwake(), call DontDestroyOnLoad(gameobject) in there.

    I also remove all the OnGui function to use. And write more function to call hideAd, showAd... and then every time i want to control the add, i find the gameobject, get the Advertisement Manager script and call function.

    All these steps is due to my purpose in my app, you know. For your app, it may/should be different...
     
  25. Shigidy

    Shigidy

    Joined:
    Dec 14, 2011
    Posts:
    441
    Question do you not see the ads, in the build? Because when I hit play all i see is the four options to show, hide, etc. Thanks for your help, also if you could help which lines of code need to be deleted for the gui to go away. Also I tried to add your destroy thing, but couldn't get that to work. I'm sorry I'm not a coder. :)

    $code.png
     
    Last edited: Aug 29, 2013
  26. NinhKidd

    NinhKidd

    Joined:
    Jul 8, 2013
    Posts:
    6
    OK, i will paste some later. I'm not on my computer now :)
     
  27. Shigidy

    Shigidy

    Joined:
    Dec 14, 2011
    Posts:
    441
    Thanks man!!!! :)
     
  28. NinhKidd

    NinhKidd

    Joined:
    Jul 8, 2013
    Posts:
    6
    First, remember, ad will not show on you Unity Editor, test it on your real device

    About the code, Micro Eyes make some buttons for testing (four options to show, hide, etc. ..). All of it are by the function void onGUI() { , so just delete all of the void onGUI() or make it comment

    And then, on your first scene, go to GameObject, creat an empty GameObject. You can change it name to smt more easy to remember, like "ADMOB". Then go go Component --> script --> choose AdvertisementManager to attack the script to your ADMOB game object
    remember to edit some variables like AdID, position... you want

    Open AdvertisementManager , add some code:

    1. Make the ADMOB not to be destroyed when you load a new scene, so you dont have to paste it again and again
    also have the boolean created to make sure it will not be duplicate when you back to you first scene

    private static bool created = false;
    // Use this for initialization
    void Awake() {
    DontDestroyOnLoad(gameObject);
    if (!created) {
    // this is the first instance - make it persist
    DontDestroyOnLoad(this.gameObject);
    created = true;
    } else {
    // this must be a duplicate from a scene reload - DESTROY!
    Destroy(this.gameObject);
    }
    }

    2. I also add some more functions, it like Micro Eyes testing buttons:

    void hideAd() {
    AdvertisementHandler.HideAds();
    }

    void ShowAds() {
    AdvertisementHandler.ShowAds();
    }

    void EnableAds() {
    AdvertisementHandler.EnableAds();
    }

    void DisableAds() {
    AdvertisementHandler.DisableAds();
    }

    3. Let the Ad enable on Start. In the void onStart(), make the request: AdvertisementHandler.EnableAds();

    Done customize the AdvertisementManager. Now everytime you want to control the Ad, do this in your script (your game engine or GUI or camera... up to you)
    i wrote these in Javascript

    private var adMob:GameObject;

    function Start () {
    adMob = GameObject.Find("ADMOB"); //this line will find the gameobject with the Ad script
    }

    and call the function of AdvertisementManager by this code (on event click a button or something up to your app)
    adMob.SendMessage("ShowAds", SendMessageOptions.DontRequireReceiver); //call function show the ad
    adMob.SendMessage("hideAd", SendMessageOptions.DontRequireReceiver);
    ...
     
  29. killer2012

    killer2012

    Joined:
    Jul 29, 2013
    Posts:
    4
    Hey you got some notifications, please answer.
     
  30. MicroEyes

    MicroEyes

    Joined:
    Jul 3, 2012
    Posts:
    309
    Hey,
    if you are trying achieve changing @ runtime, then it isn't possible yet. But, if Orientation from Editor settings isn't working then, i think its bug.
    I need to figure out this.
     
  31. MicroEyes

    MicroEyes

    Joined:
    Jul 3, 2012
    Posts:
    309
    Hey,
    Thanks killer2012 for your attention, but What i am left with?
     
  32. Pragnani K

    Pragnani K

    Joined:
    Jun 6, 2013
    Posts:
    8
  33. Shigidy

    Shigidy

    Joined:
    Dec 14, 2011
    Posts:
    441
    Can someone explain to me how you make money with this? Does the person ask for my paypal address? Also how much percentage do I get.
    Thanks :)

    Also can I just paste this code anywhere.


    private static bool created = false;
    // Use this for initialization
    void Awake() {
    DontDestroyOnLoad(gameObject);
    if (!created) {
    // this is the first instance - make it persist
    DontDestroyOnLoad(this.gameObject);
    created = true;
    } else {
    // this must be a duplicate from a scene reload - DESTROY!
    Destroy(this.gameObject);
    }
    }



    and this will make sure it doen't get destroyed?

    $code delet.png

    Is this all I need to delete to get rid of the GUI
     
    Last edited: Aug 31, 2013
  34. pezz

    pezz

    Joined:
    Apr 29, 2011
    Posts:
    606
    -.- lol

    google pays you, not a person.
     
  35. Shigidy

    Shigidy

    Joined:
    Dec 14, 2011
    Posts:
    441
    I mean, aren't I'm using somebody's code, and it's his adsense account? Right? If so how does that person pay's us?
     
  36. MicroEyes

    MicroEyes

    Joined:
    Jul 3, 2012
    Posts:
    309
    First tell your friend to generate another Google Admob App ID. This ID will give you xxxxxxx app ID.
    Use this app ID in your Admob. In this way, you could find your money in your friends account.
     
  37. killer2012

    killer2012

    Joined:
    Jul 29, 2013
    Posts:
    4
    My reply was not adressed to you.but to Shigidy.
     
  38. MicroEyes

    MicroEyes

    Joined:
    Jul 3, 2012
    Posts:
    309
    Hey Killer2012,
    What was your issue? I didn't received any notification from your side.
     
  39. kebrus

    kebrus

    Joined:
    Oct 10, 2011
    Posts:
    415
    Is it possible to run this in the editor?

    if not, is it possible to have some sort of testing environment that doesn't needs me to compile and run on device?
     
  40. MicroEyes

    MicroEyes

    Joined:
    Jul 3, 2012
    Posts:
    309
    No, there is no such kind of feature to test on Editor.
    Its a precompiled jar file.
     
  41. kebrus

    kebrus

    Joined:
    Oct 10, 2011
    Posts:
    415
    thx, one more question though, i tried your test project and it works without problems but when i tried changing the pubID nothing shows up, i also noticed your pubID is a lot different than mine, i suspect i've messed up something on the admob creation process, do you have an idea whats wrong?

    EDIT: I've noticed now that having isTesting set to true it shows up, there's something i'm missing...
     
    Last edited: Sep 3, 2013
  42. Gintas_

    Gintas_

    Joined:
    Feb 23, 2013
    Posts:
    44
    Using Unity 4.2, trying to run demo scene, but getting "java.lang.ClassNotFoundException: com.microeyes.admob.AdmobActivity". Does anyone knows any solution?

    EDIT: fixed by moving Plugins folder to main Assets folder as it was right after importing.
     
    Last edited: Sep 3, 2013
  43. MicroEyes

    MicroEyes

    Joined:
    Jul 3, 2012
    Posts:
    309
    Hey....
    Sorry, I do not have any idea what you are missing. You should follow a tutorial for process.
     
  44. killer2012

    killer2012

    Joined:
    Jul 29, 2013
    Posts:
    4
    Like I already said, I send the notification to Shigidy. He doesn´t answer my notification, seems to be active in this thread, so I decided to contact him here.
     
  45. Gintas_

    Gintas_

    Joined:
    Feb 23, 2013
    Posts:
    44
    Hi,
    I had the same problem. New admob changed a little bit, so now you have to use "unit ID"(that long combination of symbols) and not "publisher ID". You can find it when adding new app. I hope it will help.
     
  46. ktxPress

    ktxPress

    Joined:
    Sep 5, 2013
    Posts:
    1
    It's very easy and useful. Thanks^^
     
  47. sou_su

    sou_su

    Joined:
    Sep 8, 2013
    Posts:
    1
    Can support InterstitialAd ?Thank you for Package!
     
  48. Ticked Off Pixel

    Ticked Off Pixel

    Joined:
    Mar 23, 2013
    Posts:
    9
    Nevermind... figured it out by myself.

    But, maybe you could integrate it with Playmaker. That would be awesome!
     
    Last edited: Sep 12, 2013
  49. MoribitoMT

    MoribitoMT

    Joined:
    Jun 1, 2013
    Posts:
    301
    I have one question ?

    I have GameScene, and its being loaded again after each fail in the during game play. It means this scene is being loaded like 100s of times :D, it also means i will be calling EnableAds() like 100 times :D.

    Does this effect anything ? calling EnableAds() again and again ?? Is there a method to check like isAlreadyEnabled ?
    Regards
     
  50. MoribitoMT

    MoribitoMT

    Joined:
    Jun 1, 2013
    Posts:
    301
    One more question ?

    I just cant go ad mode, isTesting is checked also device is set correctly, why is this ? (I tested device id with simple eclipse project, admob testing works there)