Page Summary
-
The Google Mobile Ads C++ SDK is deprecated as of June 17, 2024 and should not be adopted in new projects.
-
Instead of the Google Mobile Ads C++ SDK, consider using the iOS and Android SDKs from AdMob.
-
The Google Mobile Ads SDK provides an API to specify a creative type for test queries using the
ft_ctypeparameter. -
The
ft_ctypeparameter only works in Test Mode and impacts only Google ads, not ads from third-party sources through mediation. -
The
ft_ctypeparameter can be added to anAdRequestusing theadd_extramethod with a specifiedadapter_class_name,extra_keyof "ft_ctype", and a validextra_valuefrom the provided table.
provides an API that lets you specify a creative type for test queries. When the parameter is set, only creatives of the specified type are retrieved and rendered.
Usage
To specify a creative type, include the ft_ctype parameter in an extras object
and pass it to the ad request. This may restrict which ads are available and
result in no fill.
Android
AdRequest ad_request;
ad_request.add_extra(
/*adapter_class_name=*/"com.google.ads.mediation.admob.AdMobAdapter",
/*extra_key=*/"ft_ctype",
/*extra_value=*/"video_app_install");