Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to show direct ad campaign image with FLUID #515

Closed
1 task
MicahDavid opened this issue Jan 2, 2024 · 1 comment
Closed
1 task

How to show direct ad campaign image with FLUID #515

MicahDavid opened this issue Jan 2, 2024 · 1 comment
Labels
help wanted Extra attention is needed stale

Comments

@MicahDavid
Copy link

What happened?

My goal is to have an ad mob campaign that shows an image that is FLUID (scaled to the user's screen width). For example, have a 320x100 image that is scaled appropriately. If the user screen is 375px, then the banner will be scaled to 375x118.

I have not been able to figure out how to accomplish this, but wanted to see if anyone else has found a solution.

I've tried this:

<BannerAd
    unitId={headerAdUnit}
    sizes={['FLUID']}
    requestOptions={{
        requestNonPersonalizedAdsOnly: false,
        keywords: ['sports','surfing']
    }}
/>

The test banner will work with the above, but the 320x100 image in AdMob will not match the request, so nothing will show.

The following will show my ad campaign, but not the desired full width effect I'm hoping for:

<BannerAd
    unitId={headerAdUnit}
    size={BannerAdSize.LARGE_BANNER}
    requestOptions={{
        requestNonPersonalizedAdsOnly: false,
        keywords: ['sports','surfing']
    }}
/>

What I'm looking for may not be possible, but figured I'd check to see if anyone else found a solution.

Platforms

iOS, but have not tested behavior on Android

React Native Info

not relevant

Are your using Typescript?

  • My project is using Typescript

package.json

not relevant

app.json

not relevant

ios/Podfile

No response

android/build.gradle

No response

android/app/build.gradle

No response

android/settings.gradle

No response

AndroidManifest.xml

No response

@MicahDavid MicahDavid added the help wanted Extra attention is needed label Jan 2, 2024
evelant pushed a commit to evelant/react-native-google-mobile-ads that referenced this issue Jan 9, 2024
evelant pushed a commit to evelant/react-native-google-mobile-ads that referenced this issue Jan 9, 2024
### [8.2.3](invertase/react-native-google-mobile-ads@v8.2.2...v8.2.3) (2023-01-10)

### Bug Fixes

* **ios:** adaptive banner should take safe areas into account ([c34fe1a](invertase@c34fe1a))
* **type:** fixed mobileAds initialize response status type [invertase#515](invertase#515) ([e0a7d29](invertase@e0a7d29))
Copy link

Hello 👋, to help manage issues we automatically close stale issues.

This issue has been automatically marked as stale because it has not had activity for quite some time.Has this issue been fixed, or does it still require attention?

This issue will be closed in 15 days if no further activity occurs.

Thank you for your contributions.

@github-actions github-actions bot added the stale label Jan 30, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Feb 14, 2024
Star-dev325 added a commit to Star-dev325/react-native-google-mobile-ads that referenced this issue Jun 7, 2024
### [8.2.3](invertase/react-native-google-mobile-ads@v8.2.2...v8.2.3) (2023-01-10)

### Bug Fixes

* **ios:** adaptive banner should take safe areas into account ([c34fe1a](invertase/react-native-google-mobile-ads@c34fe1a))
* **type:** fixed mobileAds initialize response status type [#515](invertase/react-native-google-mobile-ads#515) ([e0a7d29](invertase/react-native-google-mobile-ads@e0a7d29))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed stale
Projects
None yet
Development

No branches or pull requests

1 participant