Layout Encourages Accidental Clicks - Unexpected Launch Interstitials, Copyrighted material:

384 views
Skip to first unread message

nihal saleem

unread,
Jun 5, 2019, 11:50:02 PM6/5/19
to Google Mobile Ads SDK Developers
Please any one help me..

Layout Encourages Accidental Click Unexpected Launch Interstitials, Copyrighted material: Unauthorized Filesharing

what to do? Please some one correct me...

here is my source code....


import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;

import com.google.android.gms.ads.AdListener;
import com.google.android.gms.ads.AdRequest;
import com.google.android.gms.ads.InterstitialAd;

import java.util.List;


public class Channel_Activity extends AppCompatActivity {

    private TextView tvtitle,tvdescription,tvcategory;
    private ImageView img;
    private Button Btn_CHTW;
    String channelID;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_channel);

        final InterstitialAd mInterstitialAd = new InterstitialAd(this);
        mInterstitialAd.setAdUnitId("My Ad Unit Id");

        mInterstitialAd.loadAd(new AdRequest.Builder().build());

        mInterstitialAd.setAdListener(new AdListener(){

            @Override
            public void onAdLoaded() {

                if (mInterstitialAd.isLoaded()){

                    mInterstitialAd.show();
                }
                else {
                    finish();
                }

            }
        });

Mobile Ads SDK Forum Advisor Prod

unread,
Jun 6, 2019, 1:26:32 AM6/6/19
to nihalsa...@gmail.com, google-adm...@googlegroups.com
Hi Nihal,

Thank you for reaching out to us.

The particular activity you've posted loads and shows interstitial ads every time it gets created during normal app usage. This leads to undesirable scenarios, such as getting an ad every time you rotate the device (with the activity as the current one), or when you open a new instance of that activity. In the end, this behavior encourages accidental clicks since an ad appears when the user is intending to do something with the newly opened activity.

You may visit this page to learn more about properly implementing interstitial ads. In particular, you may check out our recommended interstitial implementations to help in promoting better user experience with your app.

For further policy-related concerns, you may visit the AdMob Help Center for further assistance. You may also visit our policy pages for further information.

Regards,
Ziv Yves Sanchez
Mobile Ads SDK Team

ref:_00D1U1174p._5001UBlmT7:ref
Reply all
Reply to author
Forward
0 new messages