You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/firebase_admob/README.md
+18-1
Original file line number
Diff line number
Diff line change
@@ -122,6 +122,23 @@ myBanner
122
122
..show(
123
123
// Positions the banner ad 60 pixels from the bottom of the screen
124
124
anchorOffset: 60.0,
125
+
// Positions the banner ad 10 pixels from the center of the screen to the right
126
+
horizontalCenterOffset: 10.0,
127
+
// Banner Position
128
+
anchorType: AnchorType.bottom,
129
+
);
130
+
```
131
+
132
+
Ads must be loaded before they're shown.
133
+
```dart
134
+
myBanner
135
+
// typically this happens well before the ad is shown
136
+
..load()
137
+
..show(
138
+
// Positions the banner ad 60 pixels from the bottom of the screen
139
+
anchorOffset: 60.0,
140
+
// Positions the banner ad 10 pixels from the center of the screen to the left
141
+
horizontalCenterOffset: -10.0,
125
142
// Banner Position
126
143
anchorType: AnchorType.bottom,
127
144
);
@@ -133,6 +150,7 @@ myInterstitial
133
150
..show(
134
151
anchorType: AnchorType.bottom,
135
152
anchorOffset: 0.0,
153
+
horizontalCenterOffset: 0.0,
136
154
);
137
155
```
138
156
@@ -186,7 +204,6 @@ method.
186
204
This is just an initial version of the plugin. There are still some
187
205
limitations:
188
206
189
-
- Banner ads have limited positioning functionality. They can be positioned at the top or the bottom of the screen and at a logical pixel offset from the edge.
190
207
- Banner ads cannot be animated into view.
191
208
- It's not possible to specify a banner ad's size.
0 commit comments