admob

Unable to initialize native ad inside recyclerview in androidX

爷,独闯天下 提交于 2020-08-10 19:21:32
问题 I was trying to implement Admob native ads inside my recyclerView, And i ended with below error & i have also attached my code. i even followed Google Code Lab. Still i ended with multiple error. How do i add native ad's between <Arraylist> . FYI: i have minimized code to be readable. MainActivity: public class MainActivity extends AppCompatActivity { public static final int NUMBER_OF_ADS = 5; AdLoader adLoader; @BindView(R.id.recyclerView) RecyclerView recyclerView; ArrayList<VideoModel>

Android Google AdMob: Could not parse Event FE preflight response BUT I have correctly indicated the Publisher ID

笑着哭i 提交于 2020-07-23 08:51:10
问题 ConsentInformation consentInformation = ConsentInformation.getInstance(that); String[] publisherIds = {"pub-XYZYXYZYXYZYXYZXY"}; consentInformation.requestConsentInfoUpdate(publisherIds, new ConsentInfoUpdateListener() { @Override public void onConsentInfoUpdated(ConsentStatus consentStatus) { Consent consent = new Consent(); if(!ConsentInformation.getInstance(that).isRequestLocationInEeaOrUnknown()) { consentCallback(that, new AdRequest.Builder().build()); } else { if(consentStatus ==

Android Google AdMob: Could not parse Event FE preflight response BUT I have correctly indicated the Publisher ID

孤人 提交于 2020-07-23 08:49:28
问题 ConsentInformation consentInformation = ConsentInformation.getInstance(that); String[] publisherIds = {"pub-XYZYXYZYXYZYXYZXY"}; consentInformation.requestConsentInfoUpdate(publisherIds, new ConsentInfoUpdateListener() { @Override public void onConsentInfoUpdated(ConsentStatus consentStatus) { Consent consent = new Consent(); if(!ConsentInformation.getInstance(that).isRequestLocationInEeaOrUnknown()) { consentCallback(that, new AdRequest.Builder().build()); } else { if(consentStatus ==