本文整理汇总了Java中com.google.ads.Ad类的典型用法代码示例。如果您正苦于以下问题:Java Ad类的具体用法?Java Ad怎么用?Java Ad使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Ad类属于com.google.ads包,在下文中一共展示了Ad类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: onReceiveAd
import com.google.ads.Ad; //导入依赖的package包/类
@Override
public void onReceiveAd(Ad arg0) {
if (interstitialAd.isReady()) {
interstitialAd.show();
Tools.updateInterstitialAdTime(this);
}
}
开发者ID:goodev,项目名称:android-discourse,代码行数:8,代码来源:PhotosActivity.java
示例2: onReceiveAd
import com.google.ads.Ad; //导入依赖的package包/类
@Override
public void onReceiveAd(Ad ad) {
if (ad == interstitial) {
Log.d("godot", "AdMob: onReceiveAd");
interstitial.show();
adReceived = true;
}
}
开发者ID:punto-,项目名称:godot_modules,代码行数:9,代码来源:GodotAdMob.java
示例3: onReceiveAd
import com.google.ads.Ad; //导入依赖的package包/类
@Override
public void onReceiveAd(Ad ad) {
if (ad == intertitial) {
intertitial.show();
}
webView.loadUrl("javascript:cordova.fireDocumentEvent('onReceiveAd');");
}
开发者ID:rafinskipg,项目名称:BombTouch,代码行数:8,代码来源:AdMobPlugin.java
示例4: onFailedToReceiveAd
import com.google.ads.Ad; //导入依赖的package包/类
@Override
public void onFailedToReceiveAd(Ad ad, AdRequest.ErrorCode errorCode) {
Log.v(TAG, "FAILED TO RECEIVE AD");
if(mViewToHide!=null) {
if(mContainer.getChildCount()>0) mContainer.removeAllViews();
this.mContainer.addView(mViewToHide);
}
}
开发者ID:MagicMicky,项目名称:FreemiumLibrary,代码行数:10,代码来源:AdsInstantiator.java
示例5: onReceiveAd
import com.google.ads.Ad; //导入依赖的package包/类
@Override
public void onReceiveAd(Ad ad) {
printToClog("onReceiveAd: " + ad);
if (mediatedAdViewController != null) {
mediatedAdViewController.onAdLoaded();
}
}
开发者ID:appnexus,项目名称:mobile-sdk-android,代码行数:8,代码来源:AdMobAdListener.java
示例6: onFailedToReceiveAd
import com.google.ads.Ad; //导入依赖的package包/类
@Override
public void onFailedToReceiveAd(Ad ad, AdRequest.ErrorCode errorCode) {
printToClog("onFailedToReceiveAd: " + ad + " error code: " + errorCode);
ResultCode code = ResultCode.INTERNAL_ERROR;
switch (errorCode) {
case INTERNAL_ERROR:
code = ResultCode.INTERNAL_ERROR;
break;
case INVALID_REQUEST:
code = ResultCode.INVALID_REQUEST;
break;
case NETWORK_ERROR:
code = ResultCode.NETWORK_ERROR;
break;
case NO_FILL:
code = ResultCode.UNABLE_TO_FILL;
break;
default:
break;
}
if (mediatedAdViewController != null) {
mediatedAdViewController.onAdFailed(code);
}
}
开发者ID:appnexus,项目名称:mobile-sdk-android,代码行数:28,代码来源:AdMobAdListener.java
示例7: onPresentScreen
import com.google.ads.Ad; //导入依赖的package包/类
@Override
public void onPresentScreen(Ad ad) {
printToClog("onPresentScreen: " + ad);
// interstitials get this callback when show is called, so ignore that
if ((mediatedAdViewController != null)
&& (mediatedAdViewController instanceof MediatedBannerAdViewController)) {
mediatedAdViewController.onAdExpanded();
}
}
开发者ID:appnexus,项目名称:mobile-sdk-android,代码行数:10,代码来源:AdMobAdListener.java
示例8: onDismissScreen
import com.google.ads.Ad; //导入依赖的package包/类
@Override
public void onDismissScreen(Ad ad) {
printToClog("onDismissScreen: " + ad);
// interstitials get this callback when the ad is closed, so ignore that
if ((mediatedAdViewController != null)
&& (mediatedAdViewController instanceof MediatedBannerAdViewController)) {
mediatedAdViewController.onAdCollapsed();
}
}
开发者ID:appnexus,项目名称:mobile-sdk-android,代码行数:10,代码来源:AdMobAdListener.java
示例9: onLeaveApplication
import com.google.ads.Ad; //导入依赖的package包/类
@Override
public void onLeaveApplication(Ad ad) {
printToClog("onLeaveApplication: " + ad);
if (mediatedAdViewController != null) {
mediatedAdViewController.onAdClicked();
}
}
开发者ID:appnexus,项目名称:mobile-sdk-android,代码行数:8,代码来源:AdMobAdListener.java
示例10: onReceiveAd
import com.google.ads.Ad; //导入依赖的package包/类
@Override
public void onReceiveAd(Ad ad) {
if (CallerFlashlight.LOG) Log.d("OK", "Received ad");
if (ad == interstitialAdMob) {
interstitialAdMob.show();
}
}
开发者ID:spirosbond,项目名称:CallerFlashlight,代码行数:9,代码来源:Donate.java
示例11: onFailedToReceiveAd
import com.google.ads.Ad; //导入依赖的package包/类
@Override
public void onFailedToReceiveAd(Ad arg0, ErrorCode arg1) {
mCloseAdView.setVisibility(View.GONE);
mAdView.setVisibility(View.GONE);
}
开发者ID:goodev,项目名称:android-discourse,代码行数:6,代码来源:PhotoFragment.java
示例12: onReceiveAd
import com.google.ads.Ad; //导入依赖的package包/类
@Override
public void onReceiveAd(Ad arg0) {
mAdView.setVisibility(View.VISIBLE);
}
开发者ID:goodev,项目名称:android-discourse,代码行数:5,代码来源:PhotoFragment.java
示例13: onFailedToReceiveAd
import com.google.ads.Ad; //导入依赖的package包/类
@Override
public void onFailedToReceiveAd(Ad arg0, ErrorCode arg1) {
hideAdView();
}
开发者ID:goodev,项目名称:android-discourse,代码行数:5,代码来源:TopicFragment.java
示例14: onDismissScreen
import com.google.ads.Ad; //导入依赖的package包/类
@Override
public void onDismissScreen(Ad arg0) {
Log.d("godot", "AdMob: onDismissScreen");
screenDismissed = true;
}
开发者ID:punto-,项目名称:godot_modules,代码行数:6,代码来源:GodotAdMob.java
示例15: onFailedToReceiveAd
import com.google.ads.Ad; //导入依赖的package包/类
@Override
public void onFailedToReceiveAd(Ad arg0, ErrorCode arg1) {
Log.w("godot", "AdMob: onFailedToReceiveAd-> " + arg1.toString());
failedToReceiveAd = true;
}
开发者ID:punto-,项目名称:godot_modules,代码行数:6,代码来源:GodotAdMob.java
示例16: onLeaveApplication
import com.google.ads.Ad; //导入依赖的package包/类
@Override
public void onLeaveApplication(Ad arg0) {
Log.d("godot", "AdMob: onLeaveApplication");
applicationLeaved = true;
}
开发者ID:punto-,项目名称:godot_modules,代码行数:6,代码来源:GodotAdMob.java
示例17: onPresentScreen
import com.google.ads.Ad; //导入依赖的package包/类
@Override
public void onPresentScreen(Ad arg0) {
Log.d("godot", "AdMob: onPresentScreen");
presentScreen = true;
}
开发者ID:punto-,项目名称:godot_modules,代码行数:6,代码来源:GodotAdMob.java
示例18: onFailedToReceiveAd
import com.google.ads.Ad; //导入依赖的package包/类
@Override
public void onFailedToReceiveAd(final Ad arg0, final ErrorCode arg1) {
Log.d("error loading ad", arg1.name());
// adLayout.setVisibility(View.GONE);
}
开发者ID:razielsarafan,项目名称:lastfm-for-android,代码行数:6,代码来源:BaseListActivity.java
示例19: onReceiveAd
import com.google.ads.Ad; //导入依赖的package包/类
@Override
public void onReceiveAd(Ad ad) {
webView.loadUrl("javascript:cordova.fireDocumentEvent('onReceiveAd');");
}
开发者ID:psydrake,项目名称:litecoinEasyCheck,代码行数:5,代码来源:AdMob.java
示例20: onFailedToReceiveAd
import com.google.ads.Ad; //导入依赖的package包/类
@Override
public void onFailedToReceiveAd(Ad ad, ErrorCode errorCode) {
webView.loadUrl(String.format(
"javascript:cordova.fireDocumentEvent('onFailedToReceiveAd', { 'error': '%s' });",
errorCode));
}
开发者ID:psydrake,项目名称:litecoinEasyCheck,代码行数:7,代码来源:AdMob.java
注:本文中的com.google.ads.Ad类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论