Skip to content

Commit

Permalink
Rollback change to BannerAdView.java from 2.0.3 which introduced a bug
Browse files Browse the repository at this point in the history
  • Loading branch information
mharrison-nzme committed Feb 15, 2023
1 parent 64e2dcb commit ef79c73
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 3 additions & 5 deletions android/src/main/java/com/matejdr/admanager/BannerAdView.java
Original file line number Diff line number Diff line change
Expand Up @@ -284,11 +284,9 @@ public void setAdUnitID(String adUnitID) {
// We can only set adUnitID once, so when it was previously set we have
// to recreate the view
this.createAdView();
this.adUnitID = adUnitID;
if(this.adManagerAdView != null) {
this.adManagerAdView.setAdUnitId(adUnitID);
}
}
}
this.adUnitID = adUnitID;
this.adManagerAdView.setAdUnitId(adUnitID);
}

public void setTestDevices(String[] testDevices) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "react-native-ad-manager",
"title": "React Native Ad Manager",
"version": "2.0.4",
"version": "2.0.5",
"description": "A react-native component for Google Ad Manager banners, interstitials and native ads.",
"main": "lib/commonjs/index",
"module": "lib/module/index",
Expand Down

0 comments on commit ef79c73

Please sign in to comment.