Is it possible to use AdRequest custom targeting to select between house ads in AdMob

374 views
Skip to first unread message

Jeff Creswell

unread,
Apr 17, 2017, 5:56:39 PM4/17/17
to Google Mobile Ads SDK Developers
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?  

Ivan Bautista (Mobile Ads SDK Team)

unread,
Apr 18, 2017, 6:32:43 AM4/18/17
to Google Mobile Ads SDK Developers
Hi Jeff,

Do note that Mobile Ads SDK doesn't have a way to specify and guarantee which particular Ad will be displayed in a particular Ad Unit. 

Below are my answers to your questions:
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?
This forum only caters to Mobile Ads SDK related concerns. I'd suggest that you double check with the AdMob Product Support Team regarding your concerns about configurations available for house ad campaigns. You may also refer to this Help Center article for more relevant information about setting up house ad campaigns.
 
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?  
As per this documentation, addKeyword can be use to add keyword for targeting purposes when building your AdRequest. However, our team has no visibility on how the addKeyword value is being handled by the Ad Networks on their end. For reference, here are the supported targeting information you can provide to your AdRequest.

Regards,
Ivan Bautista
Mobile Ads SDK  
Reply all
Reply to author
Forward
0 new messages