मैंने अपनी परियोजना में AdWhirl एकीकृत किया है और मैं अभी केवल Admob प्रदर्शित करना चाहता हूं।
लेकिन केवल एक विज्ञापन दिखाया गया है ... कोई अन्य विज्ञापन नहीं आ रहा है .... लॉगकैट में यह 30 सेकंड के बाद रीफ्रेशिंग विज्ञापन है लेकिन वे स्क्रीन पर नहीं दिखाए जाते हैं।
मैं एडवाहिल की आधिकारिक वेबसाइट के समान कोडिंग का उपयोग कर रहा हूं।
कृपया मुझे बताएं कि मैं यह कैसे कर सकता हूं ... मुझे इसकी बहुत जरुरत है।AdWhirl 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>
और ये मेरे मुख्य वर्ग में है:
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());
}
संपादित करें:
मैं सवाल पहले में जोड़ने के लिए भूल गया था।
यह मेरा Manifest.xml फ़ाइल
<meta-data
android:name="ADWHIRL_KEY"
android:value="My_KEY" />
विज्ञापन सूची में कोई विज्ञापन नहीं हो सकता है। –
क्या आप इसे रियल डिवाइस या एमुलेटर पर चला रहे हैं? –
@Algo ... एक ही कुंजी के साथ एक ही adhwirl आईडी आईफोन एप्लिकेशन पर काम कर रहा है और विज्ञापनों को ठीक से दिखा रहा है। हाँ मैं इसे वास्तविक डिवाइस दोस्त – Noman