In our app we do client-side header bidding with Prebid Mobile (Amazon TAM + a couple others) to fetch bids, then pass the targeting keywords (hb_pb, hb_bidder, etc.) into the GAM AdRequest so line items can pick them up server-side. This has been working great with native GMA views, but basic-ads builds the AdRequest internally without any way to inject those extras.
Would love an optional way to supply custom targeting, something like:
rememberBannerAd(
adUnitId = adUnitId,
adSize = BasicAdSize(size.width, size.height)
customTargeting: adParameters.customTargeting // passed in to the GAD request
)
)
And then it gets added via addCustomTargeting on Android and customTargeting on iOS before loading.
Interested to know your thoughts. Also would be happy to open a PR and implement.
In our app we do client-side header bidding with Prebid Mobile (Amazon TAM + a couple others) to fetch bids, then pass the targeting keywords (hb_pb, hb_bidder, etc.) into the GAM AdRequest so line items can pick them up server-side. This has been working great with native GMA views, but basic-ads builds the AdRequest internally without any way to inject those extras.
Would love an optional way to supply custom targeting, something like:
rememberBannerAd( adUnitId = adUnitId, adSize = BasicAdSize(size.width, size.height) customTargeting: adParameters.customTargeting // passed in to the GAD request ) )And then it gets added via addCustomTargeting on Android and customTargeting on iOS before loading.
Interested to know your thoughts. Also would be happy to open a PR and implement.