0

在我第一次在 Android 上快速集成时遇到了困难。这是我用来连接文档状态的代码:

FlurryAgent.setLogEnabled(true); 
FlurryAgent.setLogLevel(Log.VERBOSE);
FlurryAgent.onStartSession(this,"GJTCVGM4XG7PSHSZZTDM");
FlurryAgent.initializeAds(this);
FlurryAgent.enableTestAds(true);


// The following method call will asynchronously
// render a banner in the provided ViewGroup:
FrameLayout fViewGroup= (FrameLayout)findViewById(R.id.bannerframe) ;
FlurryAgent.getAd(this, "Bottom Banner", fViewGroup,
                                FlurryAdSize.BANNER_BOTTOM, 0);

这将产生以下日志:

11-15 21:14:22.380: D/FlurryAgent(2473): Initializing Flurry session
11-15 21:14:22.380: D/FlurryAgent(2473): New session
11-15 21:14:22.390: D/FlurryAgent(2473): Initializing Flurry Ads
11-15 21:14:22.390: D/FlurryAgent(2473): Flurry Ads initialized
11-15 21:14:22.400: I/FlurryAgent(2473): Init'ing ads.
11-15 21:14:22.400: W/FlurryAgent(2473): Cannot identify UDID.
11-15 21:14:22.400: W/Settings(2473): Setting android_id has moved from     android.provider.Settings.System to android.provider.Settings.Secure, returning read-only value.
11-15 21:14:22.400: I/FlurryAgent(2473): loading persistent data: /data/data   /com.fosfore.flurryintegration/files/.flurryagent.45cf4771
11-15 21:14:22.400: D/FlurryAgent(2473): Loading API key: ****************ZTDM
11-15 21:14:22.400: D/FlurryAgent(2473): Loading session reports
11-15 21:14:22.400: D/FlurryAgent(2473): Persistent file loaded
11-15 21:14:22.400: D/FlurryAgent(2473): generating report
11-15 21:14:22.400: D/FlurryAgent(2473): Sending report to: http://data.flurry.com/aap.do
11-15 21:14:22.910: D/FlurryAgent(2473): Report successful
11-15 21:14:22.960: I/FlurryAgent(2473): Request successful
11-15 21:14:22.980: E/FlurryAgent(2473): Ad request returned errors: 
11-15 21:14:22.980: E/FlurryAgent(2473): Internal Error: java.lang.RuntimeException: Database access disabled
11-15 21:14:24.440: I/FlurryAgent(2473): Request successful
11-15 21:14:24.440: W/FlurryAgent(2473): Ad request successful but server delivered no ad units.

有人能猜到发生了什么吗?我有一个名称正确的广告空间设置。

PD 使用 FlurryAgent.isAdAvailable 它总是说没有任何广告可用。我的广告空间处于活动状态,我还需要做些什么才能开始接收广告吗?我目前没有使用任何中介。

提前致谢。

4

0 回答 0