He integrado AdWhirl en mi proyecto y quiero mostrar solo AdMob en este momento.
Pero solo se muestra un anuncio ... no aparecen otros anuncios ... en LogCat, los anuncios son refrescantes después de 30 segundos, pero no se muestran en la pantalla.
Estoy usando la misma codificación que en el sitio web oficial de AdWhirl.
Por favor dígame cómo puedo hacer esto ... Lo necesito muy urgente.AdWhirl no muestra los anuncios de AdMob
<LinearLayout
android:id="@+id/layout_main"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="5dp"
android:orientation="vertical" >
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="" />
<com.adwhirl.AdWhirlLayout
android:id="@+id/adwhirl_layout"
android:layout_width="fill_parent"
android:layout_height="wrap_content" />
</LinearLayout>
Y esto está en mi clase principal:
try
{
AdWhirlManager.setConfigExpireTimeout(1000 * 60 * 5);
AdWhirlTargeting.setAge(23);
// AdWhirlTargeting.setGender(AdWhirlTargeting.Gender.MALE);
// AdWhirlTargeting.setKeywords("online games gaming");
// AdWhirlTargeting.setPostalCode("94123");
AdWhirlTargeting.setTestMode(false);
AdWhirlLayout adWhirlLayout = (AdWhirlLayout) findViewById(R.id.adwhirl_layout);
// TextView textView = new TextView(this);
RelativeLayout.LayoutParams layoutParams = new RelativeLayout.LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT);
int diWidth = 320;
int diHeight = 52;
int density = (int) getResources().getDisplayMetrics().density;
adWhirlLayout.setAdWhirlInterface(this);
adWhirlLayout.setMaxWidth((int) (diWidth * density));
adWhirlLayout.setMaxHeight((int) (diHeight * density));
layoutParams.addRule(RelativeLayout.CENTER_HORIZONTAL);
// textView.setText("");
LinearLayout layout = (LinearLayout) findViewById(R.id.layout_main);
layout.setGravity(Gravity.CENTER_HORIZONTAL);
layout.addView(adWhirlLayout, layoutParams);
// layout.addView(textView, layoutParams);
// layout.invalidate();
}
catch (Exception e)
{
Log.e("error", e.toString());
}
EDIT:
me olvidó añadir en la pregunta anterior.
Este es mi archivo manifest.xml
<meta-data
android:name="ADWHIRL_KEY"
android:value="My_KEY" />
No puede haber anuncios en los anuncios Inventario. –
¿Está ejecutando esto en un dispositivo Real o un emulador? –
@Algo ... la misma identificación adhwirl con la misma clave está trabajando en la aplicación Iphone y mostrando los anuncios correctamente. sí lo estoy probando en el dispositivo real buddy – Noman