GithubHelp home page GithubHelp logo

admob-native-advanced-feed's People

Contributors

ericleich avatar rampara avatar samthor avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

admob-native-advanced-feed's Issues

Incorrect reference to NativeAd

In MainActivity insertAdsInMenuItems() method, the code shown specifies adding NativeAd instead UnifiedNativeAd:
for (NativeAd ad : mNativeAds) { must be for (UnifiedNativeAd ad : mNativeAds) {

UI slow down With Pagination

I ran this code and the native ads in the list are sometimes working fine.
I want to achieve this with Pagination. Whenever i call below function for next page, it stuck UI (Recycleview) because may be i am calling it on Main thread.

// Load the Native ads.
 adLoader.loadAds(new AdRequest.Builder().build(), 5); 

I also used below method and it is giving good performance as compare to above.

    // Load the Native ads.
  adLoader.loadAd(new AdRequest.Builder().build()); 

I also tried with Handler, runOnUithread, Asynchtask but No success.

On Official site mention below note: [https://developers.google.com/admob/android/native/start]
Build an AdLoader
Note: Make all calls to the Mobile Ads SDK on the main thread.

Any suggestion how to solve this issue?

Error when fetching GADUnifiedNativeAd using GADAdLoader

Running the sample app NativeAdvancedTableViewExample, I get the following error upon submitting the adLoader.load(GADRequest()) line.

In the adLoader(_,didFailToReceiveAdWithError),

Google:HTML undefined is not an object (evaluating 'a.tracking_urls_and_actions')
<GADAdLoader: 0x6000000b98c0> failed with error: Request Error: Received invalid response.

Minor typo #1

In step 9 , when is written twice .
"The onCreateViewHandler method of the RecyclerView adapter is called when when RecyclerView needs a new RecyclerView.ViewHolder of the given view type to represent an item. "

Please update libraries to AndroidX and latest Google GMS versions

In writing time this is now at least:

app gradle:

androidx.appcompat:appcompat:1.1.0
androidx.cardview:cardview:1.0.0
androidx.recyclerview:recyclerview:1.1.0
androidx.legacy:legacy-support-v4:1.0.0
com.google.firebase:firebase-ads:18.3.0

This implies also changes to AndroidManifest.xml

in project gradle:

classpath 'com.google.gms:google-services:4.3.3'

a little mistake in google code labs tutorial

On step number 12,

<resources>
   ...
   <string name="admob_app_id">ca-app-pub-3940256099942544/8135179316</string>
   ...
</resources>

"admob_app_id" should be "ad_unit_id" because it's ad id and app ID has already been defined in previous step.

This may save some time of beginners.

iOS version is too old

As the title states. For beginners it could be hard to update it to latest versions hard.

How to build an ad like this?

Trying to understand if I can build full image ads like this with admob, or do native ads all need to have the text / logo/ etc?

Screen Shot 2020-09-29 at 5 40 19 PM

GADUnifiedNativeAdView not showing any outlets

There is a problem when assiging the GADUnifiedNativeAdView class to the ad view and trying to connect the different suviews to the GADUnifiedNativeAdView outlets. GADUnifiedNativeAdView doesn't present any outlets in the interface builder. that was working before with GoogleMobileAds.framework but now with GoogleMobileAds.xcframework we are unable to associate ad views with the assets in GADUnifiedNativeAdView class.

Ads repeating on running the demo code.

I ran this code and the native ads in the list are sometimes working fine but most of the time they are like the bottom two screenshots.
Can you please check whats wrong in this demo code?
Tried on different devices but no luck :(

I just changed the layout of the ad for the demonstration of the issue, so I could show that multiple ads are showing on same page together.

image
image

Minor typo #2

In step 9 title, it is writter onCreateViewHandler instead of onCreateViewHolder
'9. Update RecyclerView adapter onCreateViewHandler method'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.