Questions tagged [native-ads]

Native ads is a type of advertising, that matches the form and function of the platform upon which it appears. They are similar to banners in that they're rectangular ads that you can drop into a layout and size how you like. The key difference is that you can control the ad's presentation details (things like image sizes, fonts, colors, and so on) by uploading a CSS template for your ad unit.

217 questions
0
votes
0 answers

Required type:UnifiedNativeAd but Provided:NativeAd in play-services-ads:20.1.0

Earlier code was like this, but upgrading to 'com.google.android.gms:play-services-ads:20.1.0' it says UnifiedNativeAd deprecated. AdLoader adLoader = new AdLoader.Builder(this.requireActivity(), "ad unit") .forUnifiedNativeAd(new…
kunal
  • 133
  • 1
  • 1
  • 9
0
votes
1 answer

How to show AdMob Non-Personalized Native Advanced ads in Android?

I tried various different methods but none of them seem to work. This is given by AdMob: Bundle extras = new Bundle(); extras.putString("npa", "1"); AdRequest request = new AdRequest.Builder() .addNetworkExtrasBundle(AdMobAdapter.class,…
neel3sh
  • 1
  • 1
  • 3
0
votes
2 answers

Implementing Admob Native ads in Flutter

What is the best and easiest way to implement Admob Native Ads in Flutter? Is that within the scope of the 'Google Mobile Ads SDK' package or I need to use another package?
Rifat Hossain
  • 77
  • 1
  • 11
0
votes
1 answer

incompatible types: cant compare a class to a native ad

I am new to android studios I am currently changing my FirestoreRecyclerOptions to a regular recycler view because I want to add native ads every 5 posts. The current issue I am facing is that the method getItemViewType what I want it to return is…
mhassan
  • 83
  • 5
0
votes
0 answers

text of the native(Admob) button is under pressure

I implemented the small native ad on the main activity and I do not why the text of the native button is under pressure. In addition, I changed nothing in the Native template. My Problem with Native Button ![My Problem with Native…
0
votes
1 answer

Issue with adding Data to an AnyObject Var so that I could make native ads work

for postdata in postdata { if index < tableViewItems.count { tableViewItems.insert(postdata, at: index) index += adInterval } else { break } } I'll need to add both PostData ads and…
Abu
  • 7
  • 1
  • 6
0
votes
1 answer

Native Ad won't show on Android Studio

My Native Ad can't seem to load and stay white like that : In my XML i have two native ad:
Emma.bk
  • 189
  • 1
  • 1
  • 11
0
votes
1 answer

how can I implement n native ad on exit box dialog?

I am wondering is it possible to show a native ad on the app exit box dialog. Like when user click back to close the application then on the dialog box user will see a native ad.
0
votes
1 answer

AdMob Native Video Ads for ViewPager2?

I am using viewpager2 with RecyclerViewAdapter for displaying list of videos and to monetize my app i wanted to place ads after every 5th element, my question is- Does Admob provides Native Video Ads for this? if yes how we can use/implement it? If…
user13871738
0
votes
1 answer

implement search in recyclerview with embedded native ads

I want to implement a search in the recycler view in which I use Object as Class in List because I embedded native ads within. I used this as a reference to embedded ads in recycler view Reference:- @Override public Filter getFilter() { return…
0
votes
1 answer

Admob native ads destroy() method inside a recyclerview adapter

I'm using admob native ads template. Admob recommends to use the destroy() method on native ads to avoid memory leaks. It recommends to call the method inside the onDestroy() method of an activity. if (isDestroyed()) { ad.destroy(); …
0
votes
1 answer

Problem loading admob native ads into recyclerview

i'm trying to load admob native ads inside a recyclerview. I've used the native ads templates. I've initialized the ads in the main activity(onCreate). MobileAds.initialize(this, "ca-app-pub-3940256099942544~3347511713"); this is my…
0
votes
0 answers

Native Ads overlapped RecyclerView items

I try to implement Native Ads inside RecyclerView. The ad should be placed every 3 items in recycler view. I use a native ads template. Ads are loaded but they have overlapped items in RecyclerView. I try couple of solution but they didn't work.…
sirswistak
  • 59
  • 8
0
votes
1 answer

AdMob shows real ads even when using a test unit id; Android

TLDR: I get real ads even if I use a sample unit id provided by Google for testing. I implemented native ads in my application. I am using the Native Advanced sample ad unit as described…
ubulon
  • 91
  • 8
0
votes
1 answer

Way to know the type of ads being served from Google ad manager while using Google Publisher Tag

Is there a way to know the type of ad(Native/Banner ad) being served in each ad slot from Google ad manager on a website? I am using a code snippet similar to what is provided in the gpt documentation: