Class AdPlacement
An ad placement represents an exact location to serve an ad unit in your app.
Inheritance
System.Object
EasyMobile.AdLocation
AdPlacement
Assembly: cs.temp.dll.dll
Syntax
[Serializable]
public class AdPlacement : AdLocation
Constructors
AdPlacement()
Declaration
Fields
Achievements
A placement with the name "Achievements".
Declaration
public static readonly AdPlacement Achievements
Field Value
Default
A placement with an empty name. Whenever you attempt to create a new
placement with a null or empty name, this one will be returned.
Declaration
public static readonly AdPlacement Default
Field Value
GameOver
A placement with the name "Game_Over".
Declaration
public static readonly AdPlacement GameOver
Field Value
GameScreen
A placement with the name "Game_Screen".
Declaration
public static readonly AdPlacement GameScreen
Field Value
HomeScreen
A placement with the name "Home_Screen".
Declaration
public static readonly AdPlacement HomeScreen
Field Value
IAPStore
A placement with the name "IAP_Store".
Declaration
public static readonly AdPlacement IAPStore
Field Value
ItemStore
A placement with the name "Item_Store".
Declaration
public static readonly AdPlacement ItemStore
Field Value
Leaderboard
A placement with the name "Leaderboard".
Declaration
public static readonly AdPlacement Leaderboard
Field Value
LevelComplete
A placement with the name "Level_Complete".
Declaration
public static readonly AdPlacement LevelComplete
Field Value
LevelStart
A placement with the name "Level_Start".
Declaration
public static readonly AdPlacement LevelStart
Field Value
MainMenu
A placement with the name "Main_Menu".
Declaration
public static readonly AdPlacement MainMenu
Field Value
mName
Declaration
Field Value
Type |
Description |
System.String |
|
Pause
A placement with the name "Pause".
Declaration
public static readonly AdPlacement Pause
Field Value
Quests
A placement with the name "Quests".
Declaration
public static readonly AdPlacement Quests
Field Value
Quit
A placement with the name "Quit".
Declaration
public static readonly AdPlacement Quit
Field Value
Settings
A placement with the name "Settings".
Declaration
public static readonly AdPlacement Settings
Field Value
Startup
A placement with the name "Startup".
Declaration
public static readonly AdPlacement Startup
Field Value
TurnComplete
A placement with the name "Turn_Complete".
Declaration
public static readonly AdPlacement TurnComplete
Field Value
Properties
Name
The name of the placement.
Declaration
public string Name { get; }
Property Value
Type |
Description |
System.String |
The name.
|
Methods
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
System.Object.Equals(System.Object)
GetAllPlacements()
Gets all existing placements including AdPlacement.Default
.
Declaration
public static AdPlacement[] GetAllPlacements()
Returns
GetCustomPlacements()
Gets all existing placements excluding AdPlacement.Default
.
Declaration
public static AdPlacement[] GetCustomPlacements()
Returns
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Overrides
System.Object.GetHashCode()
GetPrintableName(AdPlacement)
Declaration
public static string GetPrintableName(AdPlacement placement)
Parameters
Returns
Type |
Description |
System.String |
|
PlacementWithName(String)
Returns a new placement with the given name, or an
existing placement with that name if one exists.
If a null or empty name is given, the AdPlacement.Default
placement will be returned.
Declaration
public static AdPlacement PlacementWithName(string name)
Parameters
Type |
Name |
Description |
System.String |
name |
Name.
|
Returns
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
EasyMobile.AdLocation.ToString()
Operators
Equality(AdPlacement, AdPlacement)
Declaration
public static bool operator ==(AdPlacement placementA, AdPlacement placementB)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Inequality(AdPlacement, AdPlacement)
Declaration
public static bool operator !=(AdPlacement placementA, AdPlacement placementB)
Parameters
Returns
Type |
Description |
System.Boolean |
|