MREC
Mrec is a 300x250 banner. This type can be useful if the application has a large free area for placing a banner in the interface.
Display
Mrec ads are refreshed every 15 seconds automatically by default.
- UPM Distribution
- Manual Distribution
To display mrec, use the following method:
Appodeal.ShowMrecView(yPosition, xPosition, "placementName");
Use int value or one of the constants below for yPosition:
AppodealViewPosition.VerticalTop— to align a mrec to the top of the screen.AppodealViewPosition.VerticalBottom— to align a mrec to the bottom of the screen.
Use int value or one of the constants below for xPosition:
AppodealViewPosition.HorizontalSmart— to use the full-screen width.AppodealViewPosition.HorizontalCenter— to center a mrec horizontally.AppodealViewPosition.HorizontalRight— to align a mrec to the right.AppodealViewPosition.HorizontalLeft— to align a mrec to the left.
To display mrec, use the following method:
Appodeal.showMrecView(yPosition, xPosition, "placementName");
Use int value or one of the constants below for yPosition:
Appodeal.BANNER_TOP— to align a mrec to the top of the screen.Appodeal.BANNER_BOTTOM— to align a mrec to the bottom of the screen.
Use int value or one of the constants below for xPosition:
Appodeal.BANNER_HORIZONTAL_SMART— to use the full-screen width.Appodeal.BANNER_HORIZONTAL_CENTER— to center a mrec horizontally.Appodeal.BANNER_HORIZONTAL_RIGHT— to align a mrec to the right.Appodeal.BANNER_HORIZONTAL_LEFT— to align a mrec to the left.
Mrec positioning is relative to the top left corner of the screen.
Hide Mrec
To hide a mrec ad use the following method:
- UPM Distribution
- Manual Distribution
Appodeal.HideMrecView();
Appodeal.hideMrecView();
You can use our demo app as a reference project.
Demo App
If you want to use advanced MREC integration, you can find detailed documentation here