2010-06-17 62 views
8

我的应用程序与AdMob广告集成。当我改变方向时,它应该根据方向适合屏幕。在纵向模式下它工作正常,但是当我更改为横向模式时,纵向模式中显示的广告尺寸与横向模式中显示的广告尺寸相同。Android中的AdMob定位问题

我在布局页面中添加以下内容。

<com.admob.android.ads.AdView 
    android:id="@+id/ad" 
    android:layout_width="fill_parent" 
    android:layout_height="wrap_content" 
    myapp:backgroundColor="#000000" 
    myapp:primaryTextColor="#FFFFFF" 
    myapp:secondaryTextColor="#CCCCCC" 
/> 
+2

我认为AdMob的问题和我们(作为开发人员)除了两件事之外无能为力(正如我在AdMod网站上看到的,此视图的最大尺寸为320x59 px nomore): 1)请AdMod开发人员修复那; 2)反编译AdMob jar文件并更改此行为:) – davs 2010-07-11 12:23:36

回答

6

这似乎这里的答案是来自AdMob:

http://groups.google.com/group/admob-publisher-discuss/browse_thread/thread/17451c55258de1ec?pli=1

不幸的是我们没有在这个时候支持480页浸 宽的广告。我们有 统一在整个网络上展示我们的广告 ,而我们现在还没有 将广告格式扩展为480 像素宽的格式。我们 希望很快加入他们的支持。 我们的SDK是建立在这样一种方式, 当我们引入更广泛的广告单元 景观手机和其他较大的 屏幕,新广告将已经 支持,你会不会需要 更新到一个新的SDK。

所以不幸的是,似乎不可能展开广告。

2

我有同样的问题,但没有解决它。

我正在考虑在LinearLayout内添加Admob的AdView,其中的内容与backgroundColor完全相同。

喜欢的东西:

<LinearLayout android:id="@+id/admob_stuff" 
      android:layout_width="fill_parent" 
      android:layout_height="wrap_content" 
      android:background="#000000"> 

    <com.admob.android.ads.AdView 
    android:id="@+id/ad" 
    android:layout_width="fill_parent" 
    android:layout_height="wrap_content" 
    myapp:backgroundColor="#000000" 
    myapp:primaryTextColor="#FFFFFF" 
    myapp:secondaryTextColor="#CCCCCC" 
    /> 

</LinearLayout> 
+1

好主意。与黑白广告和白色背景相比,简单易用的修补程序看起来更好,例如, – Chris 2011-02-07 19:13:22