Settings for Adfox
Adfox allows the application owner to directly negotiate with advertisers about ad placement using the same Mobile Ads SDK as for standard monetization through an open auction. More in this article.
Adfox supports multiple ad types:
- Adaptive inline banner
- Adaptive sticky banner
- Interstitial advertising
- Native ads
Adaptive inline banner
To enable an adaptive inline banner, follow the instructions. In addition, use the AdRequest
object to transmit the code received in the Adfox interface (for more information, see Adfox Help).
// Code from the Adfox interface for working with direct campaigns.
val parameters: MutableMap<String, String> = HashMap()
parameters["adf_ownerid"] = "example"
parameters["adf_p1"] = "example"
parameters["adf_p2"] = "example"
parameters["adf_pfc"] = "example"
parameters["adf_pfb"] = "example"
parameters["adf_plp"] = "example"
parameters["adf_pli"] = "example"
parameters["adf_pop"] = "example"
parameters["adf_pt"] = "example"
parameters["adf_pd"] = "example"
parameters["adf_pw"] = "example"
parameters["adf_pv"] = "example"
parameters["adf_prr"] = "example"
parameters["adf_pdw"] = "example"
parameters["adf_pdh"] = "example"
parameters["adf_puid1"] = "example"
val adRequest: AdRequest = AdRequest.builder().withParameters(parameters).build()
// Code from the Adfox interface for working with direct campaigns.
Map<String, String> parameters = new HashMap<String, String>();
parameters.put("adf_ownerid", "example");
parameters.put("adf_p1", "example");
parameters.put("adf_p2", "example");
parameters.put("adf_pfc", "example");
parameters.put("adf_pfb", "example");
parameters.put("adf_plp", "example");
parameters.put("adf_pli", "example");
parameters.put("adf_pop", "example");
parameters.put("adf_pt", "example");
parameters.put("adf_pd", "example");
parameters.put("adf_pw", "example");
parameters.put("adf_pv", "example");
parameters.put("adf_prr", "example");
parameters.put("adf_pdw", "example");
parameters.put("adf_pdh", "example");
parameters.put("adf_puid1", "example");
final AdRequest adRequest = AdRequest.builder().withParameters(parameters).build();
Adaptive sticky banner
To enable an adaptive sticky banner, follow the instructions. In addition, use the AdRequest
object to transmit the code received in the Adfox interface (for more information, see Adfox Help).
// Code from the Adfox interface for working with direct campaigns.
val parameters: MutableMap<String, String> = HashMap()
parameters["adf_ownerid"] = "example"
parameters["adf_p1"] = "example"
parameters["adf_p2"] = "example"
parameters["adf_pfc"] = "example"
parameters["adf_pfb"] = "example"
parameters["adf_plp"] = "example"
parameters["adf_pli"] = "example"
parameters["adf_pop"] = "example"
parameters["adf_pt"] = "example"
parameters["adf_pd"] = "example"
parameters["adf_pw"] = "example"
parameters["adf_pv"] = "example"
parameters["adf_prr"] = "example"
parameters["adf_pdw"] = "example"
parameters["adf_pdh"] = "example"
parameters["adf_puid1"] = "example"
val adRequest: AdRequest = AdRequest.builder().withParameters(parameters).build()
// Code from the Adfox interface for working with direct campaigns.
Map<String, String> parameters = new HashMap<String, String>();
parameters.put("adf_ownerid", "example");
parameters.put("adf_p1", "example");
parameters.put("adf_p2", "example");
parameters.put("adf_pfc", "example");
parameters.put("adf_pfb", "example");
parameters.put("adf_plp", "example");
parameters.put("adf_pli", "example");
parameters.put("adf_pop", "example");
parameters.put("adf_pt", "example");
parameters.put("adf_pd", "example");
parameters.put("adf_pw", "example");
parameters.put("adf_pv", "example");
parameters.put("adf_prr", "example");
parameters.put("adf_pdw", "example");
parameters.put("adf_pdh", "example");
parameters.put("adf_puid1", "example");
final AdRequest adRequest = AdRequest.builder().withParameters(parameters).build();
Interstitial advertising
To enable an interstitial ad, follow the instructions. In addition, use the AdRequestConfiguration
object to transmit the code received in the Adfox interface (for more information, see Adfox Help).
// Code from the Adfox interface for working with direct campaigns.
val parameters: MutableMap<String, String> = HashMap()
parameters["adf_ownerid"] = "example"
parameters["adf_p1"] = "example"
parameters["adf_p2"] = "example"
parameters["adf_pfc"] = "example"
parameters["adf_pfb"] = "example"
parameters["adf_plp"] = "example"
parameters["adf_pli"] = "example"
parameters["adf_pop"] = "example"
parameters["adf_pt"] = "example"
parameters["adf_pd"] = "example"
parameters["adf_pw"] = "example"
parameters["adf_pv"] = "example"
parameters["adf_prr"] = "example"
parameters["adf_pdw"] = "example"
parameters["adf_pdh"] = "example"
parameters["adf_puid1"] = "example"
val adRequest: AdRequestConfiguration = AdRequestConfiguration.Builder("your-ad-unit-id").setParameters(parameters).build()
// Code from the Adfox interface for working with direct campaigns.
Map<String, String> parameters = new HashMap<String, String>();
parameters.put("adf_ownerid", "example");
parameters.put("adf_p1", "example");
parameters.put("adf_p2", "example");
parameters.put("adf_pfc", "example");
parameters.put("adf_pfb", "example");
parameters.put("adf_plp", "example");
parameters.put("adf_pli", "example");
parameters.put("adf_pop", "example");
parameters.put("adf_pt", "example");
parameters.put("adf_pd", "example");
parameters.put("adf_pw", "example");
parameters.put("adf_pv", "example");
parameters.put("adf_prr", "example");
parameters.put("adf_pdw", "example");
parameters.put("adf_pdh", "example");
parameters.put("adf_puid1", "example");
final AdRequestConfiguration adRequestConfiguration = AdRequestConfiguration.Builder("your-ad-unit-id").setParameters(parameters).build();