Skip to content

COMPASS SDK for Android FAQ (EN)

kamata edited this page Apr 14, 2017 · 3 revisions

Troubleshooting

Q. 'W/Ads: There was a problem getting an ad response. ErrorCode: 1' is printed in the console.

A. You are passing your publisher's ID as an AdUnitID when calling the AdMob API. Please check the AdMob Manual for further details.

Q. An exception occurred and printed on the console was 'You must define "CompassSDKSpotID" by meta-data in AndroidManifest.xml'

A. It means that CompassSDKSpotID is not defined or missing from your application's manifest file. If you are using COMPASS inline or COMPASS interstitial, please set CompassSDKInlineSpotID or CompassSDKInterstitialSpotID, respectively, with COMPASS-generated spot ID.

Q. 'Context does not implement CompassCallback' is printed in the console.

A. When using COMPASS inline or COMPASS interstitial, it is necessary to implement CompassInlineViewCallback or CompassInterstitialViewCallback, respectively. Please see the manual for reference.

Q. How will I know the version of the COMPASS SDK I'm using?

A. Please import jp.microad.compass.smartphone.sdk.android.BuildConfig and call BuildConfig.VERSION_NAME.

E.g.

Log.i(TAG, "COMPASS SDK Version: " + BuildConfig.VERSION_NAME);
Clone this wiki locally