There is an activity in which in the onCreate method I display interstitial advertising. Everything was like a good app in the market for half a year. But a couple of hours ago, a letter came from Google that the type of interstitial advertising should not be shown while viewing content. What can this mean? Notifications are also created in activations, and if you click on the notification, the advertisement opens again and the interstitial advertisement appears again. Maybe it meant?
Here is the text of the letter
РАЗМЕЩЕНИЕ МЕЖСТРАНИЧНЫХ ОБЪЯВЛЕНИЙ, ПРОВОЦИРУЮЩЕЕ СЛУЧАЙНЫЕ КЛИКИ Издателям не разрешается создавать ситуации, в которых пользователи могут непреднамеренно нажать на межстраничные объявления AdMob. Межстраничные объявления не должны: загружаться, когда пользователь просматривает контент. In which place is it better to display interstitial advertising? In all onCreate methods, I display
Intent PlayerIntent; private InterstitialAd adMob; public void displayAdMob() { if (adMob.isLoaded()) { adMob.show(); } } @Override protected void onResume() { super.onResume(); list.setOnItemClickListener(new AdapterView.OnItemClickListener() { @Override public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) { PlayerIntent = new Intent(MainActivity.this, Player.class); PlayerIntent.putExtra("stream", stream); displayAdMob(); } }); adMob = new InterstitialAd(this); adMob.setAdUnitId("ID"); // Создаём запрос к AdMob AdRequest adRequesti = new AdRequest.Builder().build(); // Начинаем загружать объявление adMob.loadAd(adRequesti); adMob.setAdListener(new AdListener() { @Override public void onAdClosed() { startActivity(PlayerIntent); } }); }