应用程序不显示 adwhirl 广告

发布于 2024-10-03 02:38:30 字数 9603 浏览 3 评论 0原文

我创建了一个简单的应用程序,显示使用广告旋转添加。它不显示任何广告 我添加了 logcat 文件,

提前致谢

11-18 15:08:55.940: ERROR/AdWhirl SDK(619): Caught IOException in fetchConfig()
11-18 15:08:55.940: ERROR/AdWhirl SDK(619): java.net.UnknownHostException: mob.adwhirl.com
11-18 15:08:55.940: ERROR/AdWhirl SDK(619):     at java.net.InetAddress.lookupHostByName(InetAddress.java:513)
11-18 15:08:55.940: ERROR/AdWhirl SDK(619):     at java.net.InetAddress.getAllByNameImpl(InetAddress.java:278)
11-18 15:08:55.940: ERROR/AdWhirl SDK(619):     at java.net.InetAddress.getAllByName(InetAddress.java:242)
11-18 15:08:55.940: ERROR/AdWhirl SDK(619):     at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:136)
11-18 15:08:55.940: ERROR/AdWhirl SDK(619):     at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:164)
11-18 15:08:55.940: ERROR/AdWhirl SDK(619):     at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:119)
11-18 15:08:55.940: ERROR/AdWhirl SDK(619):     at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:348)
11-18 15:08:55.940: ERROR/AdWhirl SDK(619):     at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:555)
11-18 15:08:55.940: ERROR/AdWhirl SDK(619):     at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:487)
11-18 15:08:55.940: ERROR/AdWhirl SDK(619):     at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:465)
11-18 15:08:55.940: ERROR/AdWhirl SDK(619):     at com.adwhirl.AdWhirlManager.fetchConfig(AdWhirlManager.java:221)
11-18 15:08:55.940: ERROR/AdWhirl SDK(619):     at com.adwhirl.AdWhirlLayout$InitRunnable.run(AdWhirlLayout.java:293)
11-18 15:08:55.940: ERROR/AdWhirl SDK(619):     at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
11-18 15:08:55.940: ERROR/AdWhirl SDK(619):     at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
11-18 15:08:55.940: ERROR/AdWhirl SDK(619):     at java.util.concurrent.FutureTask.run(FutureTask.java:137)
11-18 15:08:55.940: ERROR/AdWhirl SDK(619):     at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:114)
11-18 15:08:55.940: ERROR/AdWhirl SDK(619):     at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:229)
11-18 15:08:55.940: ERROR/AdWhirl SDK(619):     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1068)
11-18 15:08:55.940: ERROR/AdWhirl SDK(619):     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:561)
11-18 15:08:55.940: ERROR/AdWhirl SDK(619):     at java.lang.Thread.run(Thread.java:1096)
11-18 15:08:55.970: ERROR/AdWhirl SDK(619): Unable to parse response from JSON. This may or may not be fatal.
11-18 15:08:55.970: ERROR/AdWhirl SDK(619): java.lang.NullPointerException
11-18 15:08:55.970: ERROR/AdWhirl SDK(619):     at org.json.JSONTokener.nextCleanInternal(JSONTokener.java:112)
11-18 15:08:55.970: ERROR/AdWhirl SDK(619):     at org.json.JSONTokener.nextValue(JSONTokener.java:90)
11-18 15:08:55.970: ERROR/AdWhirl SDK(619):     at org.json.JSONObject.<init>(JSONObject.java:154)
11-18 15:08:55.970: ERROR/AdWhirl SDK(619):     at org.json.JSONObject.<init>(JSONObject.java:171)
11-18 15:08:55.970: ERROR/AdWhirl SDK(619):     at com.adwhirl.AdWhirlManager.parseConfigurationString(AdWhirlManager.java:279)
11-18 15:08:55.970: ERROR/AdWhirl SDK(619):     at com.adwhirl.AdWhirlManager.fetchConfig(AdWhirlManager.java:246)
11-18 15:08:55.970: ERROR/AdWhirl SDK(619):     at com.adwhirl.AdWhirlLayout$InitRunnable.run(AdWhirlLayout.java:293)
11-18 15:08:55.970: ERROR/AdWhirl SDK(619):     at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
11-18 15:08:55.970: ERROR/AdWhirl SDK(619):     at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
11-18 15:08:55.970: ERROR/AdWhirl SDK(619):     at java.util.concurrent.FutureTask.run(FutureTask.java:137)
11-18 15:08:55.970: ERROR/AdWhirl SDK(619):     at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:114)
11-18 15:08:55.970: ERROR/AdWhirl SDK(619):     at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:229)
11-18 15:08:55.970: ERROR/AdWhirl SDK(619):     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1068)
11-18 15:08:55.970: ERROR/AdWhirl SDK(619):     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:561)
11-18 15:08:55.970: ERROR/AdWhirl SDK(619):     at java.lang.Thread.run(Thread.java:1096)
11-18 15:09:26.019: ERROR/AdWhirl SDK(619): Caught IOException in fetchConfig()
11-18 15:09:26.019: ERROR/AdWhirl SDK(619): java.net.UnknownHostException: mob.adwhirl.com
11-18 15:09:26.019: ERROR/AdWhirl SDK(619):     at java.net.InetAddress.lookupHostByName(InetAddress.java:513)
11-18 15:09:26.019: ERROR/AdWhirl SDK(619):     at java.net.InetAddress.getAllByNameImpl(InetAddress.java:278)
11-18 15:09:26.019: ERROR/AdWhirl SDK(619):     at java.net.InetAddress.getAllByName(InetAddress.java:242)
11-18 15:09:26.019: ERROR/AdWhirl SDK(619):     at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:136)
11-18 15:09:26.019: ERROR/AdWhirl SDK(619):     at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:164)
11-18 15:09:26.019: ERROR/AdWhirl SDK(619):     at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:119)
11-18 15:09:26.019: ERROR/AdWhirl SDK(619):     at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:348)
11-18 15:09:26.019: ERROR/AdWhirl SDK(619):     at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:555)
11-18 15:09:26.019: ERROR/AdWhirl SDK(619):     at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:487)
11-18 15:09:26.019: ERROR/AdWhirl SDK(619):     at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:465)
11-18 15:09:26.019: ERROR/AdWhirl SDK(619):     at com.adwhirl.AdWhirlManager.fetchConfig(AdWhirlManager.java:221)
11-18 15:09:26.019: ERROR/AdWhirl SDK(619):     at com.adwhirl.AdWhirlLayout$InitRunnable.run(AdWhirlLayout.java:293)
11-18 15:09:26.019: ERROR/AdWhirl SDK(619):     at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
11-18 15:09:26.019: ERROR/AdWhirl SDK(619):     at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
11-18 15:09:26.019: ERROR/AdWhirl SDK(619):     at java.util.concurrent.FutureTask.run(FutureTask.java:137)
11-18 15:09:26.019: ERROR/AdWhirl SDK(619):     at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:114)
11-18 15:09:26.019: ERROR/AdWhirl SDK(619):     at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:229)
11-18 15:09:26.019: ERROR/AdWhirl SDK(619):     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1068)
11-18 15:09:26.019: ERROR/AdWhirl SDK(619):     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:561)
11-18 15:09:26.019: ERROR/AdWhirl SDK(619):     at java.lang.Thread.run(Thread.java:1096)
11-18 15:09:26.029: ERROR/AdWhirl SDK(619): Unable to parse response from JSON. This may or may not be fatal.
11-18 15:09:26.029: ERROR/AdWhirl SDK(619): java.lang.NullPointerException
11-18 15:09:26.029: ERROR/AdWhirl SDK(619):     at org.json.JSONTokener.nextCleanInternal(JSONTokener.java:112)
11-18 15:09:26.029: ERROR/AdWhirl SDK(619):     at org.json.JSONTokener.nextValue(JSONTokener.java:90)
11-18 15:09:26.029: ERROR/AdWhirl SDK(619):     at org.json.JSONObject.<init>(JSONObject.java:154)
11-18 15:09:26.029: ERROR/AdWhirl SDK(619):     at org.json.JSONObject.<init>(JSONObject.java:171)
11-18 15:09:26.029: ERROR/AdWhirl SDK(619):     at com.adwhirl.AdWhirlManager.parseConfigurationString(AdWhirlManager.java:279)
11-18 15:09:26.029: ERROR/AdWhirl SDK(619):     at com.adwhirl.AdWhirlManager.fetchConfig(AdWhirlManager.java:246)
11-18 15:09:26.029: ERROR/AdWhirl SDK(619):     at com.adwhirl.AdWhirlLayout$InitRunnable.run(AdWhirlLayout.java:293)
11-18 15:09:26.029: ERROR/AdWhirl SDK(619):     at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
11-18 15:09:26.029: ERROR/AdWhirl SDK(619):     at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
11-18 15:09:26.029: ERROR/AdWhirl SDK(619):     at java.util.concurrent.FutureTask.run(FutureTask.java:137)
11-18 15:09:26.029: ERROR/AdWhirl SDK(619):     at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:114)
11-18 15:09:26.029: ERROR/AdWhirl SDK(619):     at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:229)
11-18 15:09:26.029: ERROR/AdWhirl SDK(619):     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1068)
11-18 15:09:26.029: ERROR/AdWhirl SDK(619):     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:561)
11-18 15:09:26.029: ERROR/AdWhirl SDK(619):     at java.lang.Thread.run(Thread.java:1096)

I created a simple application that shows add using ad whirl .it does not show any ad
i added logcat file

thanks in advance

11-18 15:08:55.940: ERROR/AdWhirl SDK(619): Caught IOException in fetchConfig()
11-18 15:08:55.940: ERROR/AdWhirl SDK(619): java.net.UnknownHostException: mob.adwhirl.com
11-18 15:08:55.940: ERROR/AdWhirl SDK(619):     at java.net.InetAddress.lookupHostByName(InetAddress.java:513)
11-18 15:08:55.940: ERROR/AdWhirl SDK(619):     at java.net.InetAddress.getAllByNameImpl(InetAddress.java:278)
11-18 15:08:55.940: ERROR/AdWhirl SDK(619):     at java.net.InetAddress.getAllByName(InetAddress.java:242)
11-18 15:08:55.940: ERROR/AdWhirl SDK(619):     at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:136)
11-18 15:08:55.940: ERROR/AdWhirl SDK(619):     at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:164)
11-18 15:08:55.940: ERROR/AdWhirl SDK(619):     at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:119)
11-18 15:08:55.940: ERROR/AdWhirl SDK(619):     at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:348)
11-18 15:08:55.940: ERROR/AdWhirl SDK(619):     at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:555)
11-18 15:08:55.940: ERROR/AdWhirl SDK(619):     at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:487)
11-18 15:08:55.940: ERROR/AdWhirl SDK(619):     at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:465)
11-18 15:08:55.940: ERROR/AdWhirl SDK(619):     at com.adwhirl.AdWhirlManager.fetchConfig(AdWhirlManager.java:221)
11-18 15:08:55.940: ERROR/AdWhirl SDK(619):     at com.adwhirl.AdWhirlLayout$InitRunnable.run(AdWhirlLayout.java:293)
11-18 15:08:55.940: ERROR/AdWhirl SDK(619):     at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
11-18 15:08:55.940: ERROR/AdWhirl SDK(619):     at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
11-18 15:08:55.940: ERROR/AdWhirl SDK(619):     at java.util.concurrent.FutureTask.run(FutureTask.java:137)
11-18 15:08:55.940: ERROR/AdWhirl SDK(619):     at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:114)
11-18 15:08:55.940: ERROR/AdWhirl SDK(619):     at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:229)
11-18 15:08:55.940: ERROR/AdWhirl SDK(619):     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1068)
11-18 15:08:55.940: ERROR/AdWhirl SDK(619):     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:561)
11-18 15:08:55.940: ERROR/AdWhirl SDK(619):     at java.lang.Thread.run(Thread.java:1096)
11-18 15:08:55.970: ERROR/AdWhirl SDK(619): Unable to parse response from JSON. This may or may not be fatal.
11-18 15:08:55.970: ERROR/AdWhirl SDK(619): java.lang.NullPointerException
11-18 15:08:55.970: ERROR/AdWhirl SDK(619):     at org.json.JSONTokener.nextCleanInternal(JSONTokener.java:112)
11-18 15:08:55.970: ERROR/AdWhirl SDK(619):     at org.json.JSONTokener.nextValue(JSONTokener.java:90)
11-18 15:08:55.970: ERROR/AdWhirl SDK(619):     at org.json.JSONObject.<init>(JSONObject.java:154)
11-18 15:08:55.970: ERROR/AdWhirl SDK(619):     at org.json.JSONObject.<init>(JSONObject.java:171)
11-18 15:08:55.970: ERROR/AdWhirl SDK(619):     at com.adwhirl.AdWhirlManager.parseConfigurationString(AdWhirlManager.java:279)
11-18 15:08:55.970: ERROR/AdWhirl SDK(619):     at com.adwhirl.AdWhirlManager.fetchConfig(AdWhirlManager.java:246)
11-18 15:08:55.970: ERROR/AdWhirl SDK(619):     at com.adwhirl.AdWhirlLayout$InitRunnable.run(AdWhirlLayout.java:293)
11-18 15:08:55.970: ERROR/AdWhirl SDK(619):     at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
11-18 15:08:55.970: ERROR/AdWhirl SDK(619):     at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
11-18 15:08:55.970: ERROR/AdWhirl SDK(619):     at java.util.concurrent.FutureTask.run(FutureTask.java:137)
11-18 15:08:55.970: ERROR/AdWhirl SDK(619):     at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:114)
11-18 15:08:55.970: ERROR/AdWhirl SDK(619):     at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:229)
11-18 15:08:55.970: ERROR/AdWhirl SDK(619):     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1068)
11-18 15:08:55.970: ERROR/AdWhirl SDK(619):     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:561)
11-18 15:08:55.970: ERROR/AdWhirl SDK(619):     at java.lang.Thread.run(Thread.java:1096)
11-18 15:09:26.019: ERROR/AdWhirl SDK(619): Caught IOException in fetchConfig()
11-18 15:09:26.019: ERROR/AdWhirl SDK(619): java.net.UnknownHostException: mob.adwhirl.com
11-18 15:09:26.019: ERROR/AdWhirl SDK(619):     at java.net.InetAddress.lookupHostByName(InetAddress.java:513)
11-18 15:09:26.019: ERROR/AdWhirl SDK(619):     at java.net.InetAddress.getAllByNameImpl(InetAddress.java:278)
11-18 15:09:26.019: ERROR/AdWhirl SDK(619):     at java.net.InetAddress.getAllByName(InetAddress.java:242)
11-18 15:09:26.019: ERROR/AdWhirl SDK(619):     at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:136)
11-18 15:09:26.019: ERROR/AdWhirl SDK(619):     at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:164)
11-18 15:09:26.019: ERROR/AdWhirl SDK(619):     at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:119)
11-18 15:09:26.019: ERROR/AdWhirl SDK(619):     at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:348)
11-18 15:09:26.019: ERROR/AdWhirl SDK(619):     at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:555)
11-18 15:09:26.019: ERROR/AdWhirl SDK(619):     at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:487)
11-18 15:09:26.019: ERROR/AdWhirl SDK(619):     at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:465)
11-18 15:09:26.019: ERROR/AdWhirl SDK(619):     at com.adwhirl.AdWhirlManager.fetchConfig(AdWhirlManager.java:221)
11-18 15:09:26.019: ERROR/AdWhirl SDK(619):     at com.adwhirl.AdWhirlLayout$InitRunnable.run(AdWhirlLayout.java:293)
11-18 15:09:26.019: ERROR/AdWhirl SDK(619):     at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
11-18 15:09:26.019: ERROR/AdWhirl SDK(619):     at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
11-18 15:09:26.019: ERROR/AdWhirl SDK(619):     at java.util.concurrent.FutureTask.run(FutureTask.java:137)
11-18 15:09:26.019: ERROR/AdWhirl SDK(619):     at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:114)
11-18 15:09:26.019: ERROR/AdWhirl SDK(619):     at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:229)
11-18 15:09:26.019: ERROR/AdWhirl SDK(619):     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1068)
11-18 15:09:26.019: ERROR/AdWhirl SDK(619):     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:561)
11-18 15:09:26.019: ERROR/AdWhirl SDK(619):     at java.lang.Thread.run(Thread.java:1096)
11-18 15:09:26.029: ERROR/AdWhirl SDK(619): Unable to parse response from JSON. This may or may not be fatal.
11-18 15:09:26.029: ERROR/AdWhirl SDK(619): java.lang.NullPointerException
11-18 15:09:26.029: ERROR/AdWhirl SDK(619):     at org.json.JSONTokener.nextCleanInternal(JSONTokener.java:112)
11-18 15:09:26.029: ERROR/AdWhirl SDK(619):     at org.json.JSONTokener.nextValue(JSONTokener.java:90)
11-18 15:09:26.029: ERROR/AdWhirl SDK(619):     at org.json.JSONObject.<init>(JSONObject.java:154)
11-18 15:09:26.029: ERROR/AdWhirl SDK(619):     at org.json.JSONObject.<init>(JSONObject.java:171)
11-18 15:09:26.029: ERROR/AdWhirl SDK(619):     at com.adwhirl.AdWhirlManager.parseConfigurationString(AdWhirlManager.java:279)
11-18 15:09:26.029: ERROR/AdWhirl SDK(619):     at com.adwhirl.AdWhirlManager.fetchConfig(AdWhirlManager.java:246)
11-18 15:09:26.029: ERROR/AdWhirl SDK(619):     at com.adwhirl.AdWhirlLayout$InitRunnable.run(AdWhirlLayout.java:293)
11-18 15:09:26.029: ERROR/AdWhirl SDK(619):     at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
11-18 15:09:26.029: ERROR/AdWhirl SDK(619):     at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
11-18 15:09:26.029: ERROR/AdWhirl SDK(619):     at java.util.concurrent.FutureTask.run(FutureTask.java:137)
11-18 15:09:26.029: ERROR/AdWhirl SDK(619):     at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:114)
11-18 15:09:26.029: ERROR/AdWhirl SDK(619):     at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:229)
11-18 15:09:26.029: ERROR/AdWhirl SDK(619):     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1068)
11-18 15:09:26.029: ERROR/AdWhirl SDK(619):     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:561)
11-18 15:09:26.029: ERROR/AdWhirl SDK(619):     at java.lang.Thread.run(Thread.java:1096)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

你是我的挚爱i 2024-10-10 02:38:30

请仔细查看代码。用于 Android 平台中 AdWhirl 与 AdMob 的集成。

在 AndroidManifest.xml

<activity android:name="com.google.ads.AdActivity"
    android:configChanges="orientation|keyboard|keyboardHidden" />
<meta-data android:value="719308a6f08e4d68bf3158161fb45f99"
    android:name="ADWHIRL_KEY" />

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />

的 Layout 中放置一个 LinearLayout 来显示 AdWhirl 广告。

<LinearLayout android:orientation="horizontal"
       android:layout_width="fill_parent" 
       android:layout_height="wrap_content"
       android:id="@+id/AdLayout">
</LinearLayout>

现在在 Java 文件中:

private LineaLayout mAdLayout;

@Override
public void onCreate(Bundle savedInstanceState) 
{
      mAdLayout = (LinearLayout) findViewById(R.id.AdLayout);
      AdWhirlManager.setConfigExpireTimeout(1000 * 60 * 5);
      RelativeLayout.LayoutParams adWhirlLayoutParams = 
      new RelativeLayout.LayoutParams(LayoutParams.WRAP_CONTENT, 
      LayoutParams.WRAP_CONTENT);
      int mAdWidth = 320;
      int mAdHeight = 75;
      AdWhirlTargeting.setAge(23);
      AdWhirlTargeting.setGender(AdWhirlTargeting.Gender.MALE);
      AdWhirlTargeting.setKeywords("ketan patel android");
      AdWhirlTargeting.setPostalCode("94123");
      AdWhirlTargeting.setTestMode(false);
      DisplayMetrics mDisplayMetrics = new DisplayMetrics(); 
      getWindowManager().getDefaultDisplay().getMetrics(mDisplayMetrics);
      mAdHeight = mDisplayMetrics.heightPixels;
      float mDensity = mDisplayMetrics.density;
      mAdWidth = mDisplayMetrics.widthPixels;
      mAdHeight = (int) (mAdHeight * mDensity);
      AdWhirlLayout adWhirlLayout = new AdWhirlLayout(Usage.this,
      "719308a6f08e4d68bf3158161fb45f99");
      adWhirlLayout.setAdWhirlInterface(Usage.this);
      adWhirlLayout.setMaxWidth(mAdWidth);
      adWhirlLayout.setMaxHeight(mAdHeight);
      adWhirlLayoutParams.addRule(RelativeLayout.CENTER_HORIZONTAL);
      mAdLayout.setGravity(Gravity.CENTER_HORIZONTAL);
      mAdLayout.addView(adWhirlLayout, adWhirlLayoutParams);
      mAdLayout.invalidate();
}

**Here 719308a6f08e4d68bf3158161fb45f99 is the SDK Key from AdWhirl Account.
**Put AdWhirlSDK_Android_3.0.0.jar and GoogleAdMobAdsSdk-4.1.0.jar 
files into libs folder and reference those using 
Java BuildPath from the properties.

谢谢。

我希望这可以帮助你。

Please have a close look at the code. For AdWhirl integration with AdMob in Android Platform.

in AndroidManifest.xml

<activity android:name="com.google.ads.AdActivity"
    android:configChanges="orientation|keyboard|keyboardHidden" />
<meta-data android:value="719308a6f08e4d68bf3158161fb45f99"
    android:name="ADWHIRL_KEY" />

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />

In Layout put a LinearLayout where you want to show the AdWhirl ads.

<LinearLayout android:orientation="horizontal"
       android:layout_width="fill_parent" 
       android:layout_height="wrap_content"
       android:id="@+id/AdLayout">
</LinearLayout>

Now in Java File:

private LineaLayout mAdLayout;

@Override
public void onCreate(Bundle savedInstanceState) 
{
      mAdLayout = (LinearLayout) findViewById(R.id.AdLayout);
      AdWhirlManager.setConfigExpireTimeout(1000 * 60 * 5);
      RelativeLayout.LayoutParams adWhirlLayoutParams = 
      new RelativeLayout.LayoutParams(LayoutParams.WRAP_CONTENT, 
      LayoutParams.WRAP_CONTENT);
      int mAdWidth = 320;
      int mAdHeight = 75;
      AdWhirlTargeting.setAge(23);
      AdWhirlTargeting.setGender(AdWhirlTargeting.Gender.MALE);
      AdWhirlTargeting.setKeywords("ketan patel android");
      AdWhirlTargeting.setPostalCode("94123");
      AdWhirlTargeting.setTestMode(false);
      DisplayMetrics mDisplayMetrics = new DisplayMetrics(); 
      getWindowManager().getDefaultDisplay().getMetrics(mDisplayMetrics);
      mAdHeight = mDisplayMetrics.heightPixels;
      float mDensity = mDisplayMetrics.density;
      mAdWidth = mDisplayMetrics.widthPixels;
      mAdHeight = (int) (mAdHeight * mDensity);
      AdWhirlLayout adWhirlLayout = new AdWhirlLayout(Usage.this,
      "719308a6f08e4d68bf3158161fb45f99");
      adWhirlLayout.setAdWhirlInterface(Usage.this);
      adWhirlLayout.setMaxWidth(mAdWidth);
      adWhirlLayout.setMaxHeight(mAdHeight);
      adWhirlLayoutParams.addRule(RelativeLayout.CENTER_HORIZONTAL);
      mAdLayout.setGravity(Gravity.CENTER_HORIZONTAL);
      mAdLayout.addView(adWhirlLayout, adWhirlLayoutParams);
      mAdLayout.invalidate();
}

**Here 719308a6f08e4d68bf3158161fb45f99 is the SDK Key from AdWhirl Account.
**Put AdWhirlSDK_Android_3.0.0.jar and GoogleAdMobAdsSdk-4.1.0.jar 
files into libs folder and reference those using 
Java BuildPath from the properties.

Thanks.

I hope this can help you.

忱杏 2024-10-10 02:38:30
java.net.UnknownHostException: mob.adwhirl.com

这意味着该 url 不存在或者返回 404。尝试用浏览器打开它,您会看到 404 错误页面。

java.net.UnknownHostException: mob.adwhirl.com

That means that the url doesn't exist or that it returns 404. Try to open it with a browser and you see the 404 error page.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文