コード例 #1
0
 private void downloadCompanionAd() {
   if (mVastCompanionAd != null) {
     try {
       final HttpGet httpGet = initializeHttpGet(mVastCompanionAd.getImageUrl(), getContext());
       final DownloadTask downloadTask = new DownloadTask(this);
       AsyncTasks.safeExecuteOnExecutor(downloadTask, httpGet);
     } catch (Exception e) {
       MoPubLog.d("Failed to download companion ad", e);
     }
   }
 }