Skip to content

Commit

Permalink
feat/integrate app lovin max sdk v10.3.0 into the demo apps (#34)
Browse files Browse the repository at this point in the history
* feat/Integrate AppLovin MAX SDK v10.3.0 into the demo apps

https://app.asana.com/0/573104092700345/1200383329316925/f
  • Loading branch information
richashukla23 authored Jun 4, 2021
1 parent d12f9e5 commit ac94d20
Show file tree
Hide file tree
Showing 16 changed files with 88 additions and 32 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ - (void)didLoadAd:(MAAd *)ad
[self logCallback: __PRETTY_FUNCTION__];
}

- (void)didFailToLoadAdForAdUnitIdentifier:(NSString *)adUnitIdentifier withErrorCode:(NSInteger)errorCode
- (void)didFailToLoadAdForAdUnitIdentifier:(NSString *)adUnitIdentifier withError:(MAError *)error
{
[self logCallback: __PRETTY_FUNCTION__];
}
Expand All @@ -69,7 +69,12 @@ - (void)didClickAd:(MAAd *)ad
[self logCallback: __PRETTY_FUNCTION__];
}

- (void)didFailToDisplayAd:(MAAd *)ad withErrorCode:(NSInteger)errorCode
- (void)didFailToDisplayAd:(MAAd *)ad withError:(MAError *)error
{
[self logCallback: __PRETTY_FUNCTION__];
}

- (void)didPayRevenueForAd:(MAAd *)ad
{
[self logCallback: __PRETTY_FUNCTION__];
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ - (void)didLoadAd:(MAAd *)ad
[self logCallback: __PRETTY_FUNCTION__];
}

- (void)didFailToLoadAdForAdUnitIdentifier:(NSString *)adUnitIdentifier withErrorCode:(NSInteger)errorCode
- (void)didFailToLoadAdForAdUnitIdentifier:(NSString *)adUnitIdentifier withError:(MAError *)error
{
[self logCallback: __PRETTY_FUNCTION__];
}
Expand All @@ -68,7 +68,12 @@ - (void)didClickAd:(MAAd *)ad
[self logCallback: __PRETTY_FUNCTION__];
}

- (void)didFailToDisplayAd:(MAAd *)ad withErrorCode:(NSInteger)errorCode
- (void)didFailToDisplayAd:(MAAd *)ad withError:(MAError *)error
{
[self logCallback: __PRETTY_FUNCTION__];
}

- (void)didPayRevenueForAd:(MAAd *)ad
{
[self logCallback: __PRETTY_FUNCTION__];
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ - (void)didLoadAd:(MAAd *)ad
[self logCallback: __PRETTY_FUNCTION__];
}

- (void)didFailToLoadAdForAdUnitIdentifier:(NSString *)adUnitIdentifier withErrorCode:(NSInteger)errorCode
- (void)didFailToLoadAdForAdUnitIdentifier:(NSString *)adUnitIdentifier withError:(MAError *)error
{
[self logCallback: __PRETTY_FUNCTION__];
}
Expand All @@ -57,7 +57,12 @@ - (void)didClickAd:(MAAd *)ad
[self logCallback: __PRETTY_FUNCTION__];
}

- (void)didFailToDisplayAd:(MAAd *)ad withErrorCode:(NSInteger)errorCode
- (void)didFailToDisplayAd:(MAAd *)ad withError:(MAError *)error
{
[self logCallback: __PRETTY_FUNCTION__];
}

- (void)didPayRevenueForAd:(MAAd *)ad
{
[self logCallback: __PRETTY_FUNCTION__];
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ - (void)didLoadAd:(MAAd *)ad
self.retryAttempt = 0;
}

- (void)didFailToLoadAdForAdUnitIdentifier:(NSString *)adUnitIdentifier withErrorCode:(NSInteger)errorCode
- (void)didFailToLoadAdForAdUnitIdentifier:(NSString *)adUnitIdentifier withError:(MAError *)error
{
[self logCallback: __PRETTY_FUNCTION__];

Expand Down Expand Up @@ -83,12 +83,17 @@ - (void)didHideAd:(MAAd *)ad
[self.interstitialAd loadAd];
}

- (void)didFailToDisplayAd:(MAAd *)ad withErrorCode:(NSInteger)errorCode
- (void)didFailToDisplayAd:(MAAd *)ad withError:(MAError *)error
{
[self logCallback: __PRETTY_FUNCTION__];

// Interstitial ad failed to display. We recommend loading the next ad
[self.interstitialAd loadAd];
}

- (void)didPayRevenueForAd:(MAAd *)ad
{
[self logCallback: __PRETTY_FUNCTION__];
}

@end
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ - (void)didLoadAd:(MAAd *)ad
[self logCallback: __PRETTY_FUNCTION__];
}

- (void)didFailToLoadAdForAdUnitIdentifier:(NSString *)adUnitIdentifier withErrorCode:(NSInteger)errorCode
- (void)didFailToLoadAdForAdUnitIdentifier:(NSString *)adUnitIdentifier withError:(MAError *)error
{
[self logCallback: __PRETTY_FUNCTION__];
}
Expand All @@ -68,7 +68,12 @@ - (void)didClickAd:(MAAd *)ad
[self logCallback: __PRETTY_FUNCTION__];
}

- (void)didFailToDisplayAd:(MAAd *)ad withErrorCode:(NSInteger)errorCode
- (void)didFailToDisplayAd:(MAAd *)ad withError:(MAError *)error
{
[self logCallback: __PRETTY_FUNCTION__];
}

- (void)didPayRevenueForAd:(MAAd *)ad
{
[self logCallback: __PRETTY_FUNCTION__];
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ - (void)didLoadAd:(MAAd *)ad
[self logCallback: __PRETTY_FUNCTION__];
}

- (void)didFailToLoadAdForAdUnitIdentifier:(NSString *)adUnitIdentifier withErrorCode:(NSInteger)errorCode
- (void)didFailToLoadAdForAdUnitIdentifier:(NSString *)adUnitIdentifier withError:(MAError *)error
{
[self logCallback: __PRETTY_FUNCTION__];
}
Expand All @@ -68,7 +68,12 @@ - (void)didClickAd:(MAAd *)ad
[self logCallback: __PRETTY_FUNCTION__];
}

- (void)didFailToDisplayAd:(MAAd *)ad withErrorCode:(NSInteger)errorCode
- (void)didFailToDisplayAd:(MAAd *)ad withError:(MAError *)error
{
[self logCallback: __PRETTY_FUNCTION__];
}

- (void)didPayRevenueForAd:(MAAd *)ad
{
[self logCallback: __PRETTY_FUNCTION__];
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ - (void)didLoadAd:(MAAd *)ad
[self logCallback: __PRETTY_FUNCTION__];
}

- (void)didFailToLoadAdForAdUnitIdentifier:(NSString *)adUnitIdentifier withErrorCode:(NSInteger)errorCode
- (void)didFailToLoadAdForAdUnitIdentifier:(NSString *)adUnitIdentifier withError:(MAError *)error
{
[self logCallback: __PRETTY_FUNCTION__];
}
Expand All @@ -57,7 +57,12 @@ - (void)didClickAd:(MAAd *)ad
[self logCallback: __PRETTY_FUNCTION__];
}

- (void)didFailToDisplayAd:(MAAd *)ad withErrorCode:(NSInteger)errorCode
- (void)didFailToDisplayAd:(MAAd *)ad withError:(MAError *)error
{
[self logCallback: __PRETTY_FUNCTION__];
}

- (void)didPayRevenueForAd:(MAAd *)ad
{
[self logCallback: __PRETTY_FUNCTION__];
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ - (void)didLoadAd:(MAAd *)ad
self.retryAttempt = 0;
}

- (void)didFailToLoadAdForAdUnitIdentifier:(NSString *)adUnitIdentifier withErrorCode:(NSInteger)errorCode
- (void)didFailToLoadAdForAdUnitIdentifier:(NSString *)adUnitIdentifier withError:(MAError *)error
{
[self logCallback: __PRETTY_FUNCTION__];

Expand Down Expand Up @@ -82,14 +82,19 @@ - (void)didHideAd:(MAAd *)ad
[self.rewardedAd loadAd];
}

- (void)didFailToDisplayAd:(MAAd *)ad withErrorCode:(NSInteger)errorCode
- (void)didFailToDisplayAd:(MAAd *)ad withError:(MAError *)error
{
[self logCallback: __PRETTY_FUNCTION__];

// Rewarded ad failed to display. We recommend loading the next ad
[self.rewardedAd loadAd];
}

- (void)didPayRevenueForAd:(MAAd *)ad
{
[self logCallback: __PRETTY_FUNCTION__];
}

#pragma mark - MARewardedAdDelegate Protocol

- (void)didStartRewardedVideoForAd:(MAAd *)ad
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,17 @@ class ALMAXAutoLayoutBannerAdViewController: ALBaseAdViewController, MAAdViewAdD

func didLoad(_ ad: MAAd) { logCallback() }

func didFailToLoadAd(forAdUnitIdentifier adUnitIdentifier: String, withErrorCode errorCode: Int) { logCallback() }
func didFailToLoadAd(forAdUnitIdentifier adUnitIdentifier: String, withError error: MAError) { logCallback() }

func didDisplay(_ ad: MAAd) { logCallback() }

func didHide(_ ad: MAAd) { logCallback() }

func didClick(_ ad: MAAd) { logCallback() }

func didFail(toDisplay ad: MAAd, withErrorCode errorCode: Int) { logCallback() }
func didFail(toDisplay ad: MAAd, withError error: MAError) { logCallback() }

func didPayRevenue(for ad: MAAd) { logCallback() }

// MARK: MAAdViewAdDelegate Protocol

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,17 @@ class ALMAXFrameLayoutBannerAdViewController: ALBaseAdViewController, MAAdViewAd

func didLoad(_ ad: MAAd) { logCallback() }

func didFailToLoadAd(forAdUnitIdentifier adUnitIdentifier: String, withErrorCode errorCode: Int) { logCallback() }
func didFailToLoadAd(forAdUnitIdentifier adUnitIdentifier: String, withError error: MAError) { logCallback() }

func didDisplay(_ ad: MAAd) { logCallback() }

func didHide(_ ad: MAAd) { logCallback() }

func didClick(_ ad: MAAd) { logCallback() }

func didFail(toDisplay ad: MAAd, withErrorCode errorCode: Int) { logCallback() }
func didFail(toDisplay ad: MAAd, withError error: MAError) { logCallback() }

func didPayRevenue(for ad: MAAd) { logCallback() }

// MARK: MAAdViewAdDelegate Protocol

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,17 @@ class ALMAXInterfaceBuilderBannerAdViewController: ALBaseAdViewController, MAAdV

func didLoad(_ ad: MAAd) { logCallback() }

func didFailToLoadAd(forAdUnitIdentifier adUnitIdentifier: String, withErrorCode errorCode: Int) { logCallback() }
func didFailToLoadAd(forAdUnitIdentifier adUnitIdentifier: String, withError error: MAError) { logCallback() }

func didDisplay(_ ad: MAAd) { logCallback() }

func didHide(_ ad: MAAd) { logCallback() }

func didClick(_ ad: MAAd) { logCallback() }

func didFail(toDisplay ad: MAAd, withErrorCode errorCode: Int) { logCallback() }
func didFail(toDisplay ad: MAAd, withError error: MAError) { logCallback() }

func didPayRevenue(for ad: MAAd) { logCallback() }

// MARK: MAAdViewAdDelegate Protocol

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class ALMAXInterstitialAdViewController: ALBaseAdViewController, MAAdViewAdDeleg
retryAttempt = 0
}

func didFailToLoadAd(forAdUnitIdentifier adUnitIdentifier: String, withErrorCode errorCode: Int)
func didFailToLoadAd(forAdUnitIdentifier adUnitIdentifier: String, withError error: MAError)
{
logCallback()

Expand Down Expand Up @@ -74,11 +74,13 @@ class ALMAXInterstitialAdViewController: ALBaseAdViewController, MAAdViewAdDeleg
interstitialAd.load()
}

func didFail(toDisplay ad: MAAd, withErrorCode errorCode: Int)
func didFail(toDisplay ad: MAAd, withError error: MAError)
{
logCallback()

// Interstitial ad failed to display. We recommend loading the next ad
interstitialAd.load()
}

func didPayRevenue(for ad: MAAd) { logCallback() }
}
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,17 @@ class ALMAXAutoLayoutMRecAdViewController: ALBaseAdViewController, MAAdViewAdDel

func didLoad(_ ad: MAAd) { logCallback() }

func didFailToLoadAd(forAdUnitIdentifier adUnitIdentifier: String, withErrorCode errorCode: Int) { logCallback() }
func didFailToLoadAd(forAdUnitIdentifier adUnitIdentifier: String, withError error: MAError) { logCallback() }

func didDisplay(_ ad: MAAd) { logCallback() }

func didHide(_ ad: MAAd) { logCallback() }

func didClick(_ ad: MAAd) { logCallback() }

func didFail(toDisplay ad: MAAd, withErrorCode errorCode: Int) { logCallback() }
func didFail(toDisplay ad: MAAd, withError error: MAError) { logCallback() }

func didPayRevenue(for ad: MAAd) { logCallback() }

// MARK: MAAdViewAdDelegate Protocol

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,17 @@ class ALMAXFrameLayoutMRecAdViewController: ALBaseAdViewController, MAAdViewAdDe

func didLoad(_ ad: MAAd) { logCallback() }

func didFailToLoadAd(forAdUnitIdentifier adUnitIdentifier: String, withErrorCode errorCode: Int) { logCallback() }
func didFailToLoadAd(forAdUnitIdentifier adUnitIdentifier: String, withError error: MAError) { logCallback() }

func didDisplay(_ ad: MAAd) { logCallback() }

func didHide(_ ad: MAAd) { logCallback() }

func didClick(_ ad: MAAd) { logCallback() }

func didFail(toDisplay ad: MAAd, withErrorCode errorCode: Int) { logCallback() }
func didFail(toDisplay ad: MAAd, withError error: MAError) { logCallback() }

func didPayRevenue(for ad: MAAd) { logCallback() }

// MARK: MAAdViewAdDelegate Protocol

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,17 @@ class ALMAXInterfaceBuilderMRecAdViewController: ALBaseAdViewController, MAAdVie

func didLoad(_ ad: MAAd) { logCallback() }

func didFailToLoadAd(forAdUnitIdentifier adUnitIdentifier: String, withErrorCode errorCode: Int) { logCallback() }
func didFailToLoadAd(forAdUnitIdentifier adUnitIdentifier: String, withError error: MAError) { logCallback() }

func didDisplay(_ ad: MAAd) { logCallback() }

func didHide(_ ad: MAAd) { logCallback() }

func didClick(_ ad: MAAd) { logCallback() }

func didFail(toDisplay ad: MAAd, withErrorCode errorCode: Int) { logCallback() }
func didFail(toDisplay ad: MAAd, withError error: MAError) { logCallback() }

func didPayRevenue(for ad: MAAd) { logCallback() }

// MARK: MAAdViewAdDelegate Protocol

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class ALMAXRewardedAdViewController: ALBaseAdViewController, MARewardedAdDelegat
retryAttempt = 0
}

func didFailToLoadAd(forAdUnitIdentifier adUnitIdentifier: String, withErrorCode errorCode: Int)
func didFailToLoadAd(forAdUnitIdentifier adUnitIdentifier: String, withError error: MAError)
{
logCallback()

Expand All @@ -70,14 +70,16 @@ class ALMAXRewardedAdViewController: ALBaseAdViewController, MARewardedAdDelegat
rewardedAd.load()
}

func didFail(toDisplay ad: MAAd, withErrorCode errorCode: Int)
func didFail(toDisplay ad: MAAd, withError error: MAError)
{
logCallback()

// Rewarded ad failed to display. We recommend loading the next ad
rewardedAd.load()
}

func didPayRevenue(for ad: MAAd) { logCallback() }

// MARK: MARewardedAdDelegate Protocol

func didStartRewardedVideo(for ad: MAAd) { logCallback() }
Expand Down

0 comments on commit ac94d20

Please sign in to comment.