Skip to content

Release 9.0.2#51

Merged
SwagatoMondal merged 7 commits intoInMobi:masterfrom
lakshya21:release-9.0.2
Feb 10, 2020
Merged

Release 9.0.2#51
SwagatoMondal merged 7 commits intoInMobi:masterfrom
lakshya21:release-9.0.2

Conversation

@lakshya21
Copy link
Contributor

No description provided.

super.onAdLoadSucceeded(inMobiBanner);
Log.d(TAG, "onAdLoadSucceeded");
}
try {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

try/catch block is not necessary for SdkNotInitializedException as the intention is to throw exception only for wrong integration. Publishers following the guidelines need not even handle this exception as it will never occur.

break;
case InitializationStatus.INVALID_ACCOUNT_ID:
case InitializationStatus.UNKNOWN_ERROR:
Log.d(TAG, "InMobi SDK Initialization Failed. Check logs for more information");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should use Log.e(...);

break;
case InitializationStatus.INVALID_ACCOUNT_ID:
case InitializationStatus.UNKNOWN_ERROR:
Log.d(TAG, "InMobi SDK Initialization Failed. Check logs for more information");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should use Log.e(...);

if (inMobiInterstitial.isReady()) {
if (mShowAdButton != null) {
mShowAdButton.setVisibility(View.VISIBLE);
try {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

try/catch block is not necessary for SdkNotInitializedException as the intention is to throw exception only for wrong integration. Publishers following the guidelines need not even handle this exception as it will never occur.


mStrands.add(nativeStrand);
mStrands.add(nativeStrand);
} catch (SdkNotInitializedException e) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

try/catch block is not necessary for SdkNotInitializedException as the intention is to throw exception only for wrong integration. Publishers following the guidelines need not even handle this exception as it will never occur.

final InMobiNative nativeStrand = new InMobiNative(getActivity(),
PlacementId.YOUR_PLACEMENT_ID_HERE, new StrandAdListener(position));
mStrands.add(nativeStrand);
} catch (SdkNotInitializedException e) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

try/catch block is not necessary for SdkNotInitializedException as the intention is to throw exception only for wrong integration. Publishers following the guidelines need not even handle this exception as it will never occur.

Log.d(TAG, "Audio state changed");
}
});
} catch (SdkNotInitializedException e) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

try/catch block is not necessary for SdkNotInitializedException as the intention is to throw exception only for wrong integration. Publishers following the guidelines need not even handle this exception as it will never occur.

break;
case InitializationStatus.INVALID_ACCOUNT_ID:
case InitializationStatus.UNKNOWN_ERROR:
Log.d(TAG, "InMobi SDK Initialization Failed. Check logs for more information");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should use Log.e(...);


import com.inmobi.ads.InMobiAdRequestStatus;
import com.inmobi.ads.InMobiNative;
import com.inmobi.ads.exceptions.SdkNotInitializedException;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove unused imports


import com.inmobi.ads.InMobiAdRequestStatus;
import com.inmobi.ads.InMobiNative;
import com.inmobi.ads.exceptions.SdkNotInitializedException;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove unused imports


import com.inmobi.ads.InMobiAdRequestStatus;
import com.inmobi.ads.InMobiInterstitial;
import com.inmobi.ads.exceptions.SdkNotInitializedException;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove unused imports

@SwagatoMondal SwagatoMondal merged commit 569675f into InMobi:master Feb 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants