我正在开展InMobi广告与示例项目的集成.
我已经更新了project id,PLACEMENT_ID但我正在收到消息onAdLoadFailed
Unable to load interstitial ad (error message: An invalid ad request was sent and was rejected by the Ad Network. Please validate the ad request and try again)
Run Code Online (Sandbox Code Playgroud)
需要帮忙.
这是我正在使用的代码.
String imageURL;
Bitmap bitmap = null;
imageURL = "http://graph.facebook.com/" + fbID + "/picture?type=";
try {
bitmap = BitmapFactory.decodeStream((InputStream) new URL(imageURL)
.getContent());
} catch (Exception e) {
e.printStackTrace();
}
Run Code Online (Sandbox Code Playgroud)
当我在浏览器中使用此URL时,它会显示图像,但是当尝试在位图中获取它时,它会给出null.
我检查了很多问题,但没有任何帮助.