English 中文(简体)
我在安康使用Adwhirl + AdMob时发现“绝缘”。
原标题:I get "nextRation is null!" error trying to use Adwhirl + AdMob in Android

我几个星期来一直在努力解决这一问题。 StackOverflow也有一些类似的问题,AdWhirl文件网站(one ),但这一错误仍然有待改进。

AdWhirl文件相当不完整,混淆不清。 下面的步骤:

  • I created an AdMob account and I got the AdMob ID。
  • I created an AdWhirl account, I put there the AdMob ID and I got the AdWhirl ID。
  • I added in my Java Build Path the AdMob SDK Jar 4。3。1 and the AdWhirl SDK Jar 3。1。1
  • In my Manifest file I added the following lines:

<manifest>
[。。。]
<application>
    [。。。]
    <activity android:name="com。google。ads。AdActivity"
        android:configChanges="orientation|keyboard|keyboardHidden|screenLayout|uiMode|screenSize|smallestScreenSize" />
    <meta-data android:value="[AdWhirl ID]" android:name="ADWHIRL_KEY"/>
</application>

<uses-permission android:name="android。permission。INTERNET"></uses-permission>
<uses-permission android:name="android。permission。ACCESS_FINE_LOCATION" /> 
<uses-permission android:name="android。permission。ACCESS_COARSE_LOCATION" /> 
<uses-permission android:name="android。permission。READ_PHONE_STATE" />
</manifest>
  • In all the layouts I want ads I added the following lines:

<com。adwhirl。AdWhirlLayout
    android:id="@+id/adwhirl_layout"
    android:layout_width="fill_parent"
    android:layout_height="72dip" />
  • In all the activities related to those layouts I added the following lines:

public class XXX extends ListActivity implements AdWhirlInterface {
[。。。]
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super。onCreate(savedInstanceState);
        setContentView(R。layout。YYY);
        initAds();
        [。。。]
    }

[。。。]
    private void initAds() {
        AdWhirlManager。setConfigExpireTimeout(1000 * 60 * 5);
        AdWhirlTargeting。setTestMode(false);
        AdWhirlLayout adWhirlLayout = (AdWhirlLayout)findViewById(R。id。adwhirl_layout);
        adWhirlLayout。setAdWhirlInterface(this);
    }

    public void adWhirlGeneric() {
        Log。e(AdWhirlUtil。ADWHIRL, "In adWhirlGeneric()");
    }
}

Project Build Target: Google API Android 4。0 Emulator: Google APIs 2。1 (API 7)

我做了什么错误?

I see no ads and all the time I get the "nextRation is null!" error。

问题回答

这与执行“AdWhirl”方案的情况极差。 页: 1

下面几种理由可能无效。

  1. The AdWhirl servers may have been down during the time you had this issue, or that you misconfigured some settings in the AdWhirl UI. These errors are unlikely.
  2. AdWhirl tried to request an AdMob ad, and it failed for whatever reason (my money is on lack of inventory), and AdWhirl had no next ration, meaning there are no more ad networks to try to request an ad from (and it will try again on next refresh).

NOTE: A Ration in AdWhirl is an ad web context, as web name and it spond web id.

重新核对原木输出结果,看得出下级计算结果的是什么错误。 难道这真是真的听觉吗? 如果是的话,就是指你签发第1号。 日志是否说你发现有“AdMob”,然后AdMob以<条码>回复 “,然后由您接手,无效? 然后,你签发第2号。

I had the same issue and found a solution following this post: http://code.google.com/p/adwhirl/issues/detail?id=27

也可以帮助你。





相关问题
Android - ListView fling gesture triggers context menu

I m relatively new to Android development. I m developing an app with a ListView. I ve followed the info in #1338475 and have my app recognizing the fling gesture, but after the gesture is complete, ...

AsyncTask and error handling on Android

I m converting my code from using Handler to AsyncTask. The latter is great at what it does - asynchronous updates and handling of results in the main UI thread. What s unclear to me is how to handle ...

Android intent filter for a particular file extension?

I want to be able to download a file with a particular extension from the net, and have it passed to my application to deal with it, but I haven t been able to figure out the intent filter. The ...

Android & Web: What is the equivalent style for the web?

I am quite impressed by the workflow I follow when developing Android applications: Define a layout in an xml file and then write all the code in a code-behind style. Is there an equivalent style for ...

TiledLayer equivalent in Android [duplicate]

To draw landscapes, backgrounds with patterns etc, we used TiledLayer in J2ME. Is there an android counterpart for that. Does android provide an option to set such tiled patterns in the layout XML?

Using Repo with Msysgit

When following the Android Open Source Project instructions on installing repo for use with Git, after running the repo init command, I run into this error: /c/Users/Andrew Rabon/bin/repo: line ...

Android "single top" launch mode and onNewIntent method

I read in the Android documentation that by setting my Activity s launchMode property to singleTop OR by adding the FLAG_ACTIVITY_SINGLE_TOP flag to my Intent, that calling startActivity(intent) would ...

From Web Development to Android Development

I have pretty good skills in PHP , Mysql and Javascript for a junior developer. If I wanted to try my hand as Android Development do you think I might find it tough ? Also what new languages would I ...

热门标签