Need Admob inline adaptive ad sample, with valid ID to test

258 views
Skip to first unread message

Liran Barsisa

unread,
Jun 15, 2023, 12:36:39 PM6/15/23
to Google Mobile Ads SDK Developers

I wanted to try out the inline adaptive ad on a new POC:
https://developers.google.com/admob/android/banner/inline-adaptive

Thing is, I don't see an ad-unit ID on the website for this purpose:
https://developers.google.com/admob/android/test-ads

And even the tutorial shows how to do it for the normal banner and not an adaptive banner :


I know it's not exactly that, because the tutorial shows usage of the function getCurrentOrientationAnchoredAdaptiveBannerAdSize, yet it's not one of the functions used for it:

I don't even think that for adaptive ads the tutorial is up-to-date, as it says to use addTestDevice , but this function doesn't exist...



Please offer a sample for it on Android, and also update the documentation so that it will include ad-units for it, including ones that have videos and not just images.

Lastly, I think there is a weird issue with the function of getInlineAdaptiveBannerAdSize, as it doesn't say the dimension units (and there is no annotation for the functions either). I think it's all in dp, as shown here:
https://developers.google.com/admob/android/banner/anchored-adaptive

The default dimension unit in code is not dp. It's pixels. It should be mentioned in the JavaDocs what to use.

Attached relevant files after I tried collecting from all these places.

activity_main.xml
MainActivity.kt

Liran Barsisa

unread,
Jun 15, 2023, 12:37:29 PM6/15/23
to Google Mobile Ads SDK Developers

Weird that I can't attach the full project. 
Please fix this on the forum. It's not a large POC at all...

Mobile Ads SDK Forum Advisor

unread,
Jun 20, 2023, 4:47:42 AM6/20/23
to lbl...@gmail.com, google-adm...@googlegroups.com
Hi Liran,

We do have the updated adaptive banner sample which you can find below.  
This message is in relation to case "ref:_00D1U1174p._5004Q2mUCsC:ref"

Thanks,
 
Google Logo Mobile Ads SDK Team


Liran Barsisa

unread,
Jun 24, 2023, 3:28:22 AM6/24/23
to Google Mobile Ads SDK Developers
I said "inline adaptive ad". Not "adaptive ad". Check the unit ID and the function being used compared to the documentation/tutorial.
The correct test ad-unit is :
"ca-app-pub-3940256099942544/2435281174"

There is no mention of it anywhere except the IOS sample.
Also, please add a sample of preloading it, meaning to load it in the background (without an instance of Activity) and showing it later (either in Activity/Fragment, or on a floating UI using SAW permission).
Native banner ads can do it. It's time that AdView (with all its variants) would be able to do it too.

Liran Barsisa

unread,
Feb 6, 2024, 3:50:17 AM2/6/24
to Google Mobile Ads SDK Developers
Any news? Why isn't it at least in the list of demo ad-units?

On Tuesday, June 20, 2023 at 11:47:42 AM UTC+3 Mobile Ads SDK Forum Advisor wrote:

Mobile Ads SDK Forum Advisor

unread,
Feb 6, 2024, 8:13:56 AM2/6/24
to lbl...@gmail.com, google-adm...@googlegroups.com

Hi Liran,

Thank you for getting back to us.

The sample project that you have provided is having build issues, the app is not running and it’s showing errors. We have communicated the same in the previous reply and we have requested to share another app without this error. You may also instead modify our sample app, and then provide it to us. We did not receive either of them.  

Any news? Why isn't it at least in the list of demo ad-units?

I have cross-checked and I can confirm that the ad unit ID is not included in the Inline Adaptive banner and also in the sample ad units list. I will check with our team regarding your query and one of my team members will reach out to you once we have an update on this. Meanwhile, your patience is highly appreciated.

Kindly provide the "Sample project reproducing the issue" for further investigation privately as requested earlier.

You can provide the following details via reply privately to the author option or directly provide it to the link below.

If the file(s) you are looking to share are less than 25mb in total you can attach them to this case on your next reply. If you are having trouble attaching your file to this case or if your file(s) are larger than 25mb, you can share your files with me by performing the following steps:

1. Navigate to

https://docs.google.com/forms/d/e/1FAIpQLSfkAiXMeYP-fw1W3Z-tT9uwmATEKO5X6S-th0gR2ezdKaaqfg/viewform?usp=pp_url&entry.400550049=Mobile+Ads+SDK&entry.460850823=5004Q00002mUCsCQAW&entry.80707362=00184480

2. Fill out all fields, and attach your file(s).

3. Please reply back on this thread when you have uploaded your file(s). Please do not share this link. 

This message is in relation to case "ref:!00D1U01174p.!5004Q02mUCsC:ref"


Thanks,
 
Google Logo Mobile Ads SDK Team


Liran Barsisa

unread,
Feb 6, 2024, 8:19:43 AM2/6/24
to Google Mobile Ads SDK Developers
That's incorrect. You didn't write here at all about errors. As I wrote, I can't even provide you full project because this website doesn't allow to upload such a file. So what exactly are you talking about of some error? I've only provided you with the relevant files.

I don't even understand why you need a project. You can see for yourself that this ad-unit doesn't exist on the website, and that there is no sample for it either.
I also explained about missing information of the measurement unit.

What exactly do you want in the sample project to show you?



Muhammed

unread,
Feb 8, 2024, 10:41:34 AM2/8/24
to Google Mobile Ads SDK Developers
Hello Liran,
Could you please review the subject and issue;

https://groups.google.com/g/google-admob-ads-sdk/c/33IkH2Fmd_M

https://github.com/googleads/googleads-mobile-android-examples/issues/646

6 Şubat 2024 Salı tarihinde saat 16:19:43 UTC+3 itibarıyla Liran Barsisa şunları yazdı:

Liran Barsisa

unread,
Feb 11, 2024, 4:04:18 AM2/11/24
to Google Mobile Ads SDK Developers
Sorry but I don't understand what you want, and how those links are related to what I've reported here..
Reply all
Reply to author
Forward
0 new messages