Skip to content

Commit 135eb7c

Browse files
Added support for InMobi SDK 11.0.0
1 parent 8451049 commit 135eb7c

36 files changed

+427
-745
lines changed

README.md

Lines changed: 34 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
InMobi SDK for Android
22
======================
33

4-
Modified: 13 November, 2024
4+
Modified: 23 October, 2025
55

6-
SDK Version: 10.8.0
6+
SDK Version: 11.0.0
77

88
Thanks for monetizing with InMobi!
99
If you haven't already, [sign up](https://www.inmobi.com/user/index?locale=en_us#signup) for an account to start monetizing your app!
@@ -20,7 +20,7 @@ repositories {
2020
mavenCentral()
2121
}
2222
dependencies {
23-
implementation 'com.inmobi.monetization:inmobi-ads-kotlin:10.8.0'
23+
implementation 'com.inmobi.monetization:inmobi-ads-kotlin:11.0.0'
2424
}
2525
```
2626

@@ -31,12 +31,41 @@ To download the latest SDK as a AAR, please visit [http://inmobi.com/sdk](https:
3131
**To continue integrating with the InMobi SDK, please see the [Integration Guidelines](https://support.inmobi.com/monetize/android-guidelines/) for Android.**
3232

3333
## New in this version
34-
• Bug Fixes
34+
• Upgraded support for native ads
35+
• Bug Fixes and Enhancements
36+
• APIs Removed
37+
InMobiNative
38+
- public String getAdIconUrl()
39+
- public String getAdLandingPageUrl()
40+
- public boolean isAppDownload()
41+
- public JSONObject getCustomAdContent()
42+
- public View getPrimaryViewOfWidth(Context context, View convertView, ViewGroup parent, int viewWidthInPixels)
43+
- public void reportAdClickAndOpenLandingPage()
44+
NativeAdEventListener
45+
- public void onAdReceived(@NonNull InMobiNative ad)
46+
- public void onAdFullScreenWillDisplay(@NonNull InMobiNative ad)
47+
- public void onAdImpressed(@NonNull InMobiNative ad)
48+
- public void onAdStatusChanged(@NonNull InMobiNative nativeAd)
49+
50+
• APIs Added
51+
New Class Added : InMobiNativeImage
52+
New Class Added : InMobiNativeViewData
53+
New Class Added : MediaView
54+
InMobiNative
55+
- public InMobiNativeImage getAdIcon()
56+
- public String getAdvertiserName()
57+
- public View getAdChoiceIcon()
58+
- public void registerViewForTracking(InMobiNativeViewData viewData)
59+
- public void unTrackViews()
60+
- public MediaView getMediaView()
61+
- public boolean isVideo()
62+
- public String getCreativeId()
63+
- public JSONObject getAdContent()
3564

3665
** Refer to [Release Notes](https://support.inmobi.com/monetize/sdk-documentation/android-guidelines/changelogs-android) for Older Versions.**
3766

3867
## Requirements
39-
- Android 4.1 (API level 16) and higher
68+
- Android 4.4 (API level 19) and higher
4069
- androidx.appcompat (Not a dependency of SDK. Used only in Sample App)
4170

4271
## License

build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ buildscript {
1414

1515

1616
ext {
17-
androidMinSdkVersion = 16
18-
androidTargetSdkVersion = 34
19-
androidCompileSdkVersion = 35
17+
androidMinSdkVersion = 19
18+
androidTargetSdkVersion = 36
19+
androidCompileSdkVersion = 36
2020

2121
appVersionCode = 1
2222
appVersionName = "1.0.0"
2323

24-
inmobiSdkVersion = "10.8.0"
24+
inmobiSdkVersion = "11.0.0"
2525
picasso = "2.8"
2626
browser = "1.3.0"
2727
recyclerview = "1.1.0"

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# Specifies the JVM arguments used for the daemon process.
1111
# The setting is particularly useful for tweaking memory settings.
1212
# Default value: -Xmx10248m -XX:MaxPermSize=256m
13-
# org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
13+
org.gradle.jvmargs=-Xmx4096m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
1414

1515
# When configured, Gradle will run in incubating parallel mode.
1616
# This option should only be used with decoupled projects. More details, visit

samples/bannerSample/src/main/AndroidManifest.xml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,15 @@
3030

3131
<activity
3232
android:name=".BannerAdsActivity"
33-
android:label="@string/app_name">
33+
android:label="@string/app_name"
34+
android:exported="true">
3435
</activity>
3536

3637
<activity
3738
android:name=".BannerXmlActivity"
3839
android:configChanges="keyboardHidden|orientation|keyboard|smallestScreenSize|screenSize|screenLayout"
39-
android:label="@string/app_name">
40+
android:label="@string/app_name"
41+
android:exported="true">
4042
</activity>
4143

4244
</application>

samples/bannerSample/src/main/java/com/inmobi/banner/sample/BannerAdsActivity.java

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
import com.inmobi.ads.InMobiBanner;
2121
import com.inmobi.ads.listeners.BannerAdEventListener;
2222
import com.inmobi.banner.PlacementId;
23+
import com.inmobi.sdk.InMobiSdk;
24+
import com.inmobi.sdk.SdkInitializationListener;
2325
import com.inmobi.banner.utility.Constants;
2426
import com.inmobi.banner.utility.DataFetcher;
2527
import com.inmobi.banner.utility.NewsSnippet;
@@ -65,7 +67,19 @@ protected void onCreate(Bundle savedInstanceState) {
6567

6668
setupListView();
6769
getHeadlines();
68-
setupBannerAd();
70+
71+
// Initialize InMobi SDK
72+
InMobiSdk.init(this, BuildConfig.ACCOUNT_ID, null, new SdkInitializationListener() {
73+
@Override
74+
public void onInitializationComplete(@Nullable Error error) {
75+
if (error == null) {
76+
Log.d(TAG, "InMobi SDK Initialization Success");
77+
setupBannerAd();
78+
} else {
79+
Log.e(TAG, "InMobi SDK Initialization failed: " + error.getMessage());
80+
}
81+
}
82+
});
6983
}
7084

7185
private void setupBannerAd() {

samples/bannerSample/src/main/res/layout/activity_banner_xml.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
android:id="@+id/banner"
2020
android:layout_width="320dp"
2121
android:layout_height="50dp"
22-
ads:placementId="plid-1462507216771"
22+
ads:placementId="plid-1651462467602"
2323
ads:refreshInterval="60"/>
2424

2525
</LinearLayout>

samples/customABSample/build.gradle

Lines changed: 0 additions & 41 deletions
This file was deleted.

samples/customABSample/proguard-rules.pro

Lines changed: 0 additions & 23 deletions
This file was deleted.

samples/customABSample/src/main/AndroidManifest.xml

Lines changed: 0 additions & 24 deletions
This file was deleted.

samples/customABSample/src/main/java/com/inmobi/customabsample/BannerCustomABActivity.java

Lines changed: 0 additions & 81 deletions
This file was deleted.

0 commit comments

Comments
 (0)