Groups
Groups
Sign in
Groups
Groups
Google Mobile Ads SDK Developers
Conversations
Labels
About
Send feedback
Help
Request: put all test ad unit ids into the SDK, inside a constant class for them
44 views
Skip to first unread message
Liran Barsisa
unread,
Aug 12, 2024, 8:12:47 AM
8/12/24
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google Mobile Ads SDK Developers
Today we have this:
https://developers.google.com/admob/android/test-ads#demo_ad_units
But some items there are missing and exist inside the samples, such as:
1. full screen ads:
"ca-app-pub-3940256099942544/
7342230711
"
https://github.com/googleads/googleads-mobile-android-examples/blob/7829ae98c4925d547c149c6aa71a25930adb79d2/java/admob/FullScreenNativeExample/app/src/main/java/com/google/example/gms/fullscreennativeexample/NativeAdsPool.java#L48
2. inline adaptive banner: "ca-app-pub-3940256099942544/2435281174"
https://github.com/googleads/googleads-mobile-ios-examples/blob/6def5ddd3f4b0b92b9fc8fec3e88e011c21f36b5/Swift/admob/AdaptiveBannerExample/AdaptiveBannerExample/ViewController.swift#LL28C28-L28C66
Maybe more...
Please put them all into a nice class we can use, and/or in some strings resources.
If not, at least update the website. It's hard to find the correct test ad ids when they don't exist in the normal website...
Liran Barsisa
unread,
Aug 12, 2024, 8:24:52 AM
8/12/24
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google Mobile Ads SDK Developers
Another one that's not documented on the list:
3. collapsible banner ad:
"ca-app-pub-3940256099942544/
2014213617
"
https://developers.google.com/admob/android/banner/collapsible
Liran Barsisa
unread,
Aug 12, 2024, 8:33:46 AM
8/12/24
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google Mobile Ads SDK Developers
Here's a suggestion of such a class, but again, I don't know if there are more examples that I've missed:
//
https://developers.google.com/admob/android/test-ads
object
AdmobTestAdUnitIds
{
/**
https://developers.google.com/admob/android/app-open#always_test_with_test_ads*/
const val
APP_OPEN
=
"ca-app-pub-3940256099942544/
9257395921
"
/**
https://developers.google.com/admob/android/banner#always_test_with_test_ads*/
const val
BANNER_ADAPTIVE
=
"ca-app-pub-3940256099942544/9214589741"
/**
https://developers.google.com/admob/android/banner/fixed-size#add-adview*/
const val
BANNER
=
"ca-app-pub-3940256099942544/6300978111"
/**
https://developers.google.com/admob/android/banner/inline-adaptive
https://github.com/googleads/googleads-mobile-ios-examples/blob/6def5ddd3f4b0b92b9fc8fec3e88e011c21f36b5/Swift/admob/AdaptiveBannerExample/AdaptiveBannerExample/ViewController.swift#LL28C28-L28C66
https://groups.google.com/g/google-admob-ads-sdk/c/sENzJ0kycfE
*/
const val
BANNER_INLINE_ADAPTIVE_
=
"ca-app-pub-3940256099942544/2435281174"
/**
https://developers.google.com/admob/android/interstitial#always_test_with_test_ads*/
const val
INTERSTITIAL
=
"ca-app-pub-3940256099942544/1033173712"
const val
INTERSTITIAL_VIDEO
=
"ca-app-pub-3940256099942544/8691691433"
/**
https://developers.google.com/admob/android/rewarded-interstitial#load_an_ad_2*/
const val
INTERSTITIAL_REWARDED
=
"ca-app-pub-3940256099942544/5354046379"
/**
https://developers.google.com/admob/android/rewarded#always_test_with_test_ads*/
const val
REWARDED
=
"ca-app-pub-3940256099942544/
5224354917
"
/**
https://developers.google.com/admob/android/native#always_test_with_test_ads_2*/
const val
NATIVE_IMAGE
=
"ca-app-pub-3940256099942544/
2247696110
"
/**
https://developers.google.com/admob/android/native/video-ads*/
const val
NATIVE_IMAGE_AND_VIDEO
=
"ca-app-pub-3940256099942544/1044960115"
/**
https://developers.google.com/admob/android/native/full-screen
https://groups.google.com/g/google-admob-ads-sdk/c/sREXDkNNYuU
https://www.google.com/url?sa=j&url=https%3A%2F%2Fgithub.com%2Fgoogleads%2Fgoogleads-mobile-android-examples%2Fblob%2F7829ae98c4925d547c149c6aa71a25930adb79d2%2Fjava%2Fadmob%2FFullScreenNativeExample%2Fapp%2Fsrc%2Fmain%2Fjava%2Fcom%2Fgoogle%2Fexample%2Fgms%2Ffullscreennativeexample%2FNativeAdsPool.java%23L48&uct=1705091050&usg=lxSuTFHWRfv6H28_h5mIwMe5WT8.&opi=112976253*/
const val
NATIVE_FULL_SCREEN
=
"ca-app-pub-3940256099942544/
7342230711
"
}
Reply all
Reply to author
Forward
0 new messages