-
-
Notifications
You must be signed in to change notification settings - Fork 151
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ios)!: Google Mobile Ads SDK 8 w/new testDeviceIdentifiers vs te…
…stDevices (#30) * refactor: smart banner deprecation in favor of adaptive banner * make banner ads work in v8 * refactor: interstitial ads implementation * refactor: rewarded ads v8 * refactor: set testdevices for all ads, instead of per request * docs: add test devices example * lint(ios): `yarn lint:ios:fix` * build(patch-package): remove spurious done from script holdover from living in a monorepo where it was in a loop... Co-authored-by: Mike Hardy <[email protected]> BREAKING CHANGE: "testDevices" property no longer exists. You must use "testDeviceIdentifiers". The testDeviceIdentifiers property applies to all ad requests, while the old testDevices property was set per-request.
- Loading branch information
Showing
16 changed files
with
210 additions
and
332 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
/** | ||
* Copyright (c) 2016-present Invertase Limited & Contributors | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this library except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* | ||
*/ | ||
|
||
#import "RNGoogleAdsFullScreenContentDelegate.h" | ||
|
||
@implementation RNGoogleAdsFullScreenContentDelegate | ||
|
||
#pragma mark - | ||
#pragma mark GADFullScreenContentDelegate Methods | ||
|
||
/// Tells the delegate that the ad presented full screen content. | ||
- (void)adDidPresentFullScreenContent:(nonnull id<GADFullScreenPresentingAd>)ad { | ||
[RNGoogleAdsCommon sendAdEvent:_sendAdEvent | ||
requestId:_requestId | ||
type:GOOGLE_ADS_EVENT_OPENED | ||
adUnitId:_adUnitId | ||
error:nil | ||
data:nil]; | ||
} | ||
|
||
/// Tells the delegate that the ad failed to present full screen content. | ||
- (void)ad:(nonnull id<GADFullScreenPresentingAd>)ad | ||
didFailToPresentFullScreenContentWithError:(nonnull NSError *)error { | ||
NSDictionary *codeAndMessage = [RNGoogleAdsCommon getCodeAndMessageFromAdError:error]; | ||
[RNGoogleAdsCommon sendAdEvent:_sendAdEvent | ||
requestId:_requestId | ||
type:GOOGLE_ADS_EVENT_ERROR | ||
adUnitId:_adUnitId | ||
error:codeAndMessage | ||
data:nil]; | ||
} | ||
|
||
/// Tells the delegate that the ad dismissed full screen content. | ||
- (void)adDidDismissFullScreenContent:(nonnull id<GADFullScreenPresentingAd>)ad { | ||
[RNGoogleAdsCommon sendAdEvent:_sendAdEvent | ||
requestId:_requestId | ||
type:GOOGLE_ADS_EVENT_CLOSED | ||
adUnitId:_adUnitId | ||
error:nil | ||
data:nil]; | ||
} | ||
|
||
@end |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.