Skip to content

Commit

Permalink
Play services ads 22.6.0 and UMP 2.2.0
Browse files Browse the repository at this point in the history
Minimum SDK 19.
Deprecate manual orientation for app open ad.
  • Loading branch information
pranavpandey committed Jul 19, 2024
1 parent 3afcc64 commit e11f988
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
6 changes: 3 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@
buildscript {
ext.versions = [
'compileSdk' : 34,
'minSdk' : 16,
'minSdk' : 19,
'targetSdk' : 34,
'buildTools' : '34.0.0',
'gmsAds' : '20.6.0',
'gmsAds' : '22.6.0',
'kotlin' : '1.8.22',
'preferences': '2.3.1',
'support' : '6.3.0',
'ump' : '2.1.0'
'ump' : '2.2.0'
]

repositories {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2022-2023 Pranav Pandey
* Copyright 2022-2024 Pranav Pandey
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -159,7 +159,7 @@ public void onAdCreate() {

try {
AppOpenAd.load(getAdListener().getAdContext(), getAdUnitId(), getAdRequest(),
getAdListener().getAdOrientation(), new AppOpenAd.AppOpenAdLoadCallback() {
new AppOpenAd.AppOpenAdLoadCallback() {
@Override
public void onAdFailedToLoad(@NonNull LoadAdError loadAdError) {
super.onAdFailedToLoad(loadAdError);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2022-2023 Pranav Pandey
* Copyright 2022-2024 Pranav Pandey
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -30,7 +30,11 @@ public interface AppOpenAdListener extends BaseAdListener {
* This method will be called to get the desired ad orientation.
*
* @return The desired ad orientation.
*
* @deprecated The GMS Ads SDK now determines the orientation at request time,
* matching the behavior of other full-screen formats.
*/
@Deprecated
@AppOpenAd.AppOpenAdOrientation int getAdOrientation();

/**
Expand Down

0 comments on commit e11f988

Please sign in to comment.