GoogleMobileAds. Api. AdRequest

An AdRequest contains targeting information used to fetch an ad.

Summary

Ad requests are created using AdRequest.Builder.

Inheritance

Direct Known Subclasses: GoogleMobileAds.Api.AdManager.AdManagerAdRequest

Constructors and Destructors

AdRequest ( AdRequest request)

Properties

static string
Request version string.

Public attributes

CustomTargeting = new Dictionary ()
Dictionary< string, string >
The custom targeting parameters.
Extras = new Dictionary ()
Dictionary< string, string >
Returns extra parameters to be sent in the ad request.
Keywords = new HashSet ()
HashSet< string >
Returns targeting information keywords.
MediationExtras = new List ()
List< MediationExtras >
Returns extra parameters to be sent to a specific ad partner in the ad request.
TestDeviceSimulator = "SIMULATOR"
const string
Test device ID used to load test ads.

Properties

Version

 static 
  
 string 
  
 Version 

Request version string.

Public attributes

CustomTargeting

 Dictionary 
 < 
  
 string 
 , 
  
 string 
  
 > 
  
 CustomTargeting 
  
 = 
  
 new 
  
 Dictionary 
 < 
 string 
 , 
  
 string 
 > 
 () 

The custom targeting parameters.

Extras

 Dictionary 
 < 
  
 string 
 , 
  
 string 
  
 > 
  
 Extras 
  
 = 
  
 new 
  
 Dictionary 
 < 
 string 
 , 
  
 string 
 > 
 () 

Returns extra parameters to be sent in the ad request.

Keywords

 HashSet 
 < 
  
 string 
  
 > 
  
 Keywords 
  
 = 
  
 new 
  
 HashSet 
  () 
 

Returns targeting information keywords.

Returns an empty set if no keywords were added.

MediationExtras

 List 
 < 
  
  MediationExtras 
 
  
 > 
  
 MediationExtras 
  
 = 
  
 new 
  
 List 
  () 
 

Returns extra parameters to be sent to a specific ad partner in the ad request.

TestDeviceSimulator

 const 
  
 string 
  
 TestDeviceSimulator 
  
 = 
  
 "SIMULATOR" 

Test device ID used to load test ads.

.

Public functions

AdRequest

  
 AdRequest 
 () 

AdRequest

  
 AdRequest 
 ( 
  
  AdRequest 
 
  
 request 
 ) 
Create a Mobile Website
View Site in Mobile | Classic
Share by: