native-ads

AdMob Native Ads Express not receiving test ads

元气小坏坏 提交于 2019-12-04 12:41:24
I am familiar with AdMob and with banner and interstials. I'm adding native ads functionality and something weird is happening because even if using the same AdRequest as for insterstitials/banners, for banners/interstitials I am getting test ads but for native ads, I get the live ones. adRequest = new AdRequest.Builder().addTestDevice(AdRequest.DEVICE_ID_EMULATOR).addTestDevice("mydeviceIdFromLogcat").build(); So my question is, native ads do not have test ads? No. Native ads do not provide test ads the way we are used to (via addTestDevice() on AdRequest ). From the Google Mobile Ads SDK

NativeAdsExpress forces RecyclerView to Scroll to have the NativeAd fully visible when first loaded

落爺英雄遲暮 提交于 2019-12-04 05:50:17
I have a weird "problem" or may be it's a "feature" and I just don't know, whenever a NativeAdExpress is loaded in my RecyclerView if only part of the NativeAd is visible, it forces the RecyclerView to scroll until the Native ad becomes fully visible, this behavior causes the list to keep jumping as I scroll. My Layout is mainly: Activity > AppBar with Tabs and ViewPager > each Page in the Pager contains PullToRefresh and inside it there's a RecyclerView, The RecyclerView has 2 types of items (Article and NativeAdExpress). UPDATE: My guess on why this is happening is mainly because native ads

NativeAdAdvanced - Incorrect native ad response. Click actions were not properly specified

夙愿已清 提交于 2019-12-04 05:21:57
问题 I'm trying to implement NativeAd in my app. Everything worked fine until yesterday, it's now printing these error logs. I/Ads: WebView loading for native ads. I/Ads: Javascript has loaded for native ads. I/Ads: Received log message: <Google:HTML> Incorrect native ad response. Click actions were not properly specified onAdFailedToLoad errorCode = 0 So I can't show native ads anymore. Here's how I do the requests. private AdRequest adRequest = new AdRequest.Builder() .build(); private

Google Ads MediaView not correctly resizing height to wrap_content when displaying image

可紊 提交于 2019-12-03 12:48:27
I got an email from AdMob today saying: Change to native ads policy: Native ads will require MediaView to render the video or main image asset. In an effort to help you deliver a better ad experience more easily, beginning October 29th, native ads will require MediaView to render the video or main image asset. Ad units not compliant by this date will stop serving ads, which could impact your ad revenue. I tried this out in my Android app, removing the separate handling of images with ImageView and video with MediaView , but I have found that the MediaView is not resizing the view's height

Error “Incompatible types” while adding NativeAds in recyclerView

坚强是说给别人听的谎言 提交于 2019-12-02 07:01:53
问题 I am trying to add Native ads in my recyclerView. For that I am following this tutorial. But looks like my RecyclerViewAdapter is a little bit different than what they have with them. package com.comp.app.adapters; public class RecyclerViewAdapter extends RecyclerView.Adapter<RecyclerViewAdapter.RecyclerViewHolder> { private Context context; private Constants constants; private String androidId; private String id; private ArrayList<CardSetterGetter> arrayList = new ArrayList<CardSetterGetter>

NativeAdAdvanced - Incorrect native ad response. Click actions were not properly specified

≡放荡痞女 提交于 2019-12-02 05:25:23
I'm trying to implement NativeAd in my app. Everything worked fine until yesterday, it's now printing these error logs. I/Ads: WebView loading for native ads. I/Ads: Javascript has loaded for native ads. I/Ads: Received log message: <Google:HTML> Incorrect native ad response. Click actions were not properly specified onAdFailedToLoad errorCode = 0 So I can't show native ads anymore. Here's how I do the requests. private AdRequest adRequest = new AdRequest.Builder() .build(); private NativeAdOptions nativeAdOptions = new NativeAdOptions.Builder() .setAdChoicesPlacement(ADCHOICES_TOP_RIGHT)

Error “Incompatible types” while adding NativeAds in recyclerView

ε祈祈猫儿з 提交于 2019-12-02 03:38:14
I am trying to add Native ads in my recyclerView. For that I am following this tutorial . But looks like my RecyclerViewAdapter is a little bit different than what they have with them. package com.comp.app.adapters; public class RecyclerViewAdapter extends RecyclerView.Adapter<RecyclerViewAdapter.RecyclerViewHolder> { private Context context; private Constants constants; private String androidId; private String id; private ArrayList<CardSetterGetter> arrayList = new ArrayList<CardSetterGetter>(); private ArrayList<String> favouriteItemList = new ArrayList<String>(); private int totalCount;