googleads-mobile-android-examples icon indicating copy to clipboard operation
googleads-mobile-android-examples copied to clipboard

Jetpack Compose Native Ad Example: Missing `setNativeAd()` call and AdMob Policy Compliance Concern

Open KhunHtetzNaing opened this issue 4 months ago • 0 comments

Affected Files:


Description

I noticed that setNativeAd() is not being called in the affected files, and I'm concerned this might violate AdMob policies.

As someone new to Compose but experienced with Android Views, I understand that we typically need to:

  1. Call setNativeAd() on the NativeAdView
  2. Populate each child view within the NativeAdView

However, I don't see this implementation in the current code.

Questions:

  • Is this a bug that needs to be addressed?
  • Or can you confirm that this implementation is compliant with AdMob policies?

I want to ensure the code follows best practices and doesn't risk policy violations.

Expected Behavior

The native ad implementation should properly call setNativeAd() and register child views as per AdMob guidelines.

Current Behavior

The setNativeAd() method call appears to be missing from the implementation.

KhunHtetzNaing avatar Jun 27 '25 11:06 KhunHtetzNaing