我尝试在VPN上也未显示我的AdMob奖励视频,但它仅在美国或加拿大的VPN上显示,而在英国,荷兰或主要国家(乔治亚州)没有显示。这也是我的代码,我认为一切正确,对吗? :/
代码:
MobileAds.initialize(getApplicationContext(), "ca-app-pub-4280838209894831~8907955720");
// Use an activity context to get the rewarded video instance.
mRewardedVideoAd = MobileAds.getRewardedVideoAdInstance(this);
mRewardedVideoAd.setRewardedVideoAdListener(this);
loadRewardedVideoAd();
reward.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
mRewardedVideoAd.show();
}
});
// LoadScore
SharedPreferences myScore = this.getSharedPreferences("MyScoresAmount", Context.MODE_PRIVATE);
score = myScore.getInt("crystals", 0);
txtScore.setText(String.valueOf(score));
}
@Override
public void onResume() {
mRewardedVideoAd.resume(this);
super.onResume();
}
@Override
public void onPause() {
mRewardedVideoAd.pause(this);
super.onPause();
}
@Override
public void onDestroy() {
mRewardedVideoAd.destroy(this);
super.onDestroy();
}
@Override
public void onRewarded(RewardItem reward) {
Toast.makeText(this, "თქვენ მიიღეთ " + reward.getAmount() + " " + reward.getType() + "!", Toast.LENGTH_SHORT).show();
// Reward the user.
score += 1;
txtScore.setText(String.valueOf(score));
// Save Score
SharedPreferences myScore = getSharedPreferences("MyScoresAmount", Context.MODE_PRIVATE);
SharedPreferences.Editor editor = myScore.edit();
editor.putInt("crystals", score);
editor.commit();
}
private void loadRewardedVideoAd() {
mRewardedVideoAd.loadAd("ca-app-pub-4280838209894831/6352587335",
new AdRequest.Builder().build());
}
是欧盟禁令还是类似的禁令?