I have a house ads campaign with a set of house ads that ideally would be sent selectively based on the user's actions within the app, as in the following pseudocode example:
House Ads Campaign{
-ad #1, about bicycles
-ad #2, about aquariums
-targets a single ad unit
}
MyActivity{
-myBicycleButton.onClick{
...
myAdRequest.addKeyword("bicycle")
myAdView.loadAd(myAdRequest)
}
-myAquariumButton.onClick{
...
myAdRequest.addKeyword("aquarium")
myAdView.loadAd(myAdRequest)
}
}
After the user clicks the bicycle button and the new AdRequest with keyword "bicycle" is made, the ad unit should fill with ad #1, and after the user clicks the aquarium button and the new AdRequest with
keyword "aquarium" is made, the ad unit should fill with ad #2. My questions are:
1. How would I configure my house ads campaign server-side to recognize and respond (by sending ad #1 or ad #2 as appropriate to the request) to these custom keywords?
2. I've read
elsewhere on this forum that AdRequest.addKeyword's back-end handling is not well-defined -- is there any other way to set custom targeting attributes in AdMob?