Native Android

From POKKT DOCUMENTATION
Jump to: navigation, search

POKKT Native Android SDK v7.3.0 (GDPR Compliance)

Last Update: 27th August, 2018

Download Latest Version Here


Getting Started with Pokkt SDK v7.3.0

1. Add "PokktSDK.aar" to your project.

2. Set Application Id and Security Key in Pokkt SDK. You can get it from Pokkt dashboard from your account. These are unique per app registered.
PokktAds.setPokktConfig("<Pokkt Application ID>", "<Pokkt Security Key>", “<Activity Context>”);
3. Set the following to enable or disable omission of Pokkt logs and other informatory messages. Make sure to set it to false before release.
PokktAds.Debugging.shouldDebug(“<Context Context>”,<true>);

4. Set GDPR consent in Pokkt SDK. This must be called before calling any ad related API. Developers/Publishers must get the consent from user. For more information on GDPR please refer https://www.eugdpr.org/ and https://www.eugdpr.org/gdpr-faqs.html . This API can again be used by publishers to revoke the consent. If this API is not called or invalid data provided then SDK will access the users personal data for ad targeting.

PokktAds.ConsentInfo consentInfo = new PokktAds.ConsentInfo();
consentInfo.setGDPRApplicable(true);
//true if GDPR is applicable.
consentInfo.setGDPRConsentAvailable(true);
//true if user has given consent to use personal details for ad targeting.
PokktAds.setDataAccessConsent(consentInfo);

5. You can check if Ad is cached or not using

PokktAds.VideoAd.isAdCached("<ScreenName>", <true / false>);
PokktAds.Interstitial.isAdCached("<ScreenName>", <true / false>);
6. Show Video Ad with one of the followings:
PokktAds.VideoAd.showRewarded("<ScreenName>");
PokktAds.VideoAd.showNonRewarded("<ScreeName>");
7. Show Interstitial Ad with one of the followings:
PokktAds.Interstitial.showRewarded("<ScreenName>");
PokktAds.Interstitial.showNonRewarded("<ScreenName>");

8. Show Outstream Ad

// scrollview
PokktAds.OSAds.loadAdInContainer(getActivity(), scrollView, screenName,0,
osDelegate);
// listview
PokktAds.OSAds.loadAdInContainer(getActivity(), listView, screenName, 5,
osDelegate);
// webview
PokktAds.OSAds.loadAdInContainer(getActivity(), webView, screenName,0,
osDelegate);//Step 1
//Once page loading is finished then below method should be called.
PokktAds.OSAds.initAgent(getActivity(), screenName); // step 2

9. For Banner Ad

  • Define a container (PokktBannerView) for banner something like following:
<com.pokkt.sdk.banners.PokktBannerView
     android:id="@+id/pokkt_banner_view_top"
     android:layout_width="320dp"
     android:layout_height="50dp"
     android:layout_centerHorizontal="true"/>
  • To load banner, use:
PokktAds.Banner.loadBanner("<screenName>", <pokktBannerView>);
  • Use the following to destroy banner:
PokktAds.Banner.destroy("<screenName>");

10. Implement PokktAds.VideoAd.VideoAdDelegate to listen to video-ad related messages.
11. Implement PokktAds.Interstitial.InterstitialDelegate to listen to interstitial-ad related messages.
12. Implement PokktAds.Banner.BannerAdDelegate to listen to banner-ad related messages.
13. We recommend caching of video-ads for better user experience, you can cache an ad using the followings:

PokktAds.VideoAd.cacheRewarded("<ScreenName>");
PokktAds.VideoAd.cacheNonRewarded("<ScreeName>");

Integration Guide v7.3.0

Overview

Thank you for choosing Pokkt SDK for Android. This document contains all the information required to set up the SDK with your project. We also support mediation for various third party networks. To know the supported third party networks and their integration process go to mediation section .

Before implementing plugins it is mandatory to go through project configuration and implementation steps, as these sections contain mandatory steps for basic SDK integration and are followed by every plugin.

You can download our SDK from pokkt.com.

Downloaded SDK package will contain:

  1. Docs:
    • Contains documentations for step wise step integration for SDK.
  2. PokktSDK_v7.3.0.jar
    • Pokkt SDK in jar format.
  3. PokktSDK_v7.3.0.aar
    • Pokkt SDK in aar format.
  4. Pokktsdk360ext.jar / Pokktsdk360ext.aar
    • Add these if you want to support 360 video ads.
  5. PokktAds Demo
    • Source code for PokktAds Demo(Sample app) which showcase implementation of Pokkt SDK through code for better understanding.
  6. PokktAds Demo.apk
    • Application package of PoktkAds Demo, so that you can directly install this apk on your device and have a look how our SDK works instead of compiling the source code.
  7. Dependency jars:
    • Please add google play services and support-v4 jar.

minSdkVersion supported is 11 .

ScreenName: This one parameter is accepted by almost all API’s of Pokkt SDK. This controls the placement of ads and can be created on Pokkt Dashboard.

We will be referencing PokktAds Demo app provided with SDK during the course of explanation in this document. We suggest you go through the sample app for better understanding.

Project Configuration

Dependencies

  • Add PokktSDK_v7.3.0.jar or PokktSDK_v7.3.0.aar to your project.
  • Add support-v4.jar
  • We expect Google play services integrated in project, although it is optional but we recommend you to integrate it, as it is required to fetch AdvertisingID for device,which is useful to deliver targeted advertising to Android users.
  • Add Pokktsdk360ext.jar/Pokktsdk360ext.aar if you want to support 360 video ads.

Manifest

Permissions Declarations

Add the following permissions to your project manifest

1. Mandatory permissions.

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
  • android.permission.INTERNET = Required for SDK communication with server.
  • android.permission.ACCESS_NETWORK_STATE = Required to detect changes in network, like if WIFI is available or not.

2. Optional permissions.

<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_CALENDAR" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.CALL_PHONE" />
<uses-permission android:name="android.permission.SEND_SMS" />
<uses-permission android:name="android.permission.VIBRATE" />
  • android.permission.WAKE_LOCK = Required to prevent device from going into the sleep mode during video play.
  • android.permission.WRITE_EXTERNAL_STORAGE = Required to store media files related to ads in external SD card, if not provided we will use app cache folder to store media files, which will result in unnecessary increase in application’s size. It is recommended to ask for this permission as low end devices generally have less internally memory available.
  • android.permission.WRITE_CALENDAR = Some Ads create events in calendar.
  • android.permission.ACCESS_FINE_LOCATION = Some Ads show content based on user’s location
  • aandroid.permission.CALL_PHONE = Some Ads are interactive and they provide you a way to call directly from the content.
  • android.permission.SEND_SMS = Some Ads are interactive and they provide you a way to send message.
  • android.permission.VIBRATE = Some Ads provide haptic feedback, so as to maintain their behavior we need this permission
Activity Declaration

Add the following activity in your AndroidManifest for Pokkt SDK integration.

<activity
     android:name="com.pokkt.sdk.PokktAdActivity"
     android:configChanges="keyboard|keyboardHidden|navigation|orientation|screenLayout
     |uiMode|screenSize|smallestScreenSize"
     android:hardwareAccelerated="true"
     android:label="Pokkt"
     android:screenOrientation="landscape"
     android:windowSoftInputMode="stateAlwaysHidden|adjustUnspecified" />

You can change the android:screenOrientation="landscape" to of your choice, the way you want to display the ads.

Service Declaration

Add the following service in your AndroidManifest for receiving InApp notifications. How to set up InApp notifications see “Pokkt Dashboard” document.

<service
   android:name="com.pokkt.sdk.notification.NotificationService"
   android:exported="false"
   android:label="PokktNotificationService" />

Implementation Steps

SDK Configuration

1. Set Application Id and Security key in Pokkt SDK. You can get it from Pokkt dashboard from your account. These are unique per app registered.

PokktAds.setPokktConfig("<Pokkt Application ID>", "<Pokkt Security Key>","<Activity Context>");

2. If you are using server to server integration with Pokkt, you can also set Third Party UserId in PokktAds.

PokktAds.setThirdPartyUserId("<Third party user Id>");

3. When your application is under development and if you want to see Pokkt logs and other informatory messages, you can enable it by setting shouldDebug to true . Make sure to disable debugging before release.

PokktAds.Debugging.shouldDebug(<true>);

4. Set GDPR consent in Pokkt SDK. This must be called before calling any ad related API. Developers/Publishers must get the consent from user. For more information on GDPR please refer https://www.eugdpr.org/ and https://www.eugdpr.org/gdpr-faqs.html . This API can again be used by publishers to revoke the consent. If this API is not called or invalid data provided then SDK will access the users personal data for ad targeting.

PokktAds.ConsentInfo consentInfo = new PokktAds.ConsentInfo();
consentInfo.setGDPRApplicable(true);
//true if GDPR is applicable.
consentInfo.setGDPRConsentAvailable(false);
//false if user has given consent to use personal details for ad targeting.
PokktAds.setDataAccessConsent(consentInfo);

Ad Types

Video
  • Video ad can be rewarded or non-rewarded. You can either cache the ad in advance or directly call show for it.
  • We suggest you to cache the ad in advance so as to give seamless play behaviour, In other case it will stream the video which may lead to unnecessary buffering delays depending on the network connection.

1. To cache rewarded ad call:

PokktAds.VideoAd.cacheRewarded("<ScreenName>");

2. To show rewarded ad call:

PokktAds.VideoAd.showRewarded("<ScreenName>");

3. To cache non-rewarded ad call:

PokktAds.VideoAd.cacheNonRewarded("<ScreeName>");

4. To show non-rewarded ad call:

PokktAds.VideoAd.showNonRewarded("<ScreeName>");

5. You can check if ad is cached or not using

PokktAds.VideoAd.isAdCached("<ScreenName>", <true/false>);
Outstream Ads

A video ad may be served in feed or in between the content list shown on the mobile display. The content will be text, images or web content and may be scrollable or non scrollable. The user will not be watching the video ad on request or an intent to watch the video ad. Normally, video ads are delivered on call to action by user. Out-stream ads eliminate this limitation and show video ads without any user request. Out-stream ads are also non intrusive as they will be automatically paused when ad is out of the view by scrolling.

Developer will supply a placeholder to SDK, which SDK will use to attach its Video Ad Surface. Pausing and playing of video ad on scroll will be controlled by SDK. Placeholder will be a layout defined in developer app layout scrollview. The placeholder will be part of developer application parent components which may be ListView, Layout in ScrollView or WebView.

ScrollView

Developer should call below API with layout instance which will be placeholder for outstream ad.

PokktAds.OSAds.loadAdInContainer(getActivity(), layout, screenName,0, osDelegate);

Developer can either supply PokktAds.OSAds.OSAdsDelegate implementation or set it via PokktAds.OSAds.setDelegate()

Position field has no effect for Scrollview. So any integer value can be passed.

ListView

Developer should call below API with listview instance in use and the item position where outStream ad should be placed.

PokktAds.OSAds.loadAdInContainer(getActivity(), listview, screenName, 5, osDelegate);

Developer can either supply PokktAds.OSAds.OSAdsDelegate implementation or set it via PokktAds.OSAds.setDelegate()

WebView

Developer should call below API with webview instance which will be hold outstream ad. This is a 2 step process.

PokktAds.OSAds.loadAdInContainer(getActivity(), webview, screenName,0, osDelegate);//Step 1
//Once page loading is finished then below method should be called.
PokktAds.OSAds.initAgent(getActivity(), screenName); // step 2

Developer can either supply PokktAds.OSAds.OSAdsDelegate implementation or set it via PokktAds.OSAds.setDelegate()

Position field has no effect for WebView. So any integer value can be passed.

Once the webpage is loaded then PokktAds.OSAds.initAgent() must be called.

Interstitial

1. To cache rewarded ad call:

PokktAds.Interstitial.cacheRewarded("<ScreeName>");

2. To show rewarded ad call:

PokktAds.Interstitial.showRewarded("<ScreeName>");

3. To cache non-rewarded ad call:

PokktAds.Interstitial.cacheNonRewarded("<ScreeName>");

4. To show non-rewarded ad call:

PokktAds.Interstitial.showNonRewarded("<ScreeName>");

5. You can check if ad is cached or not using

PokktAds.Interstitial.isAdCached("<ScreenName>", <true / false>);
  • Add PokktBannerView to your layout, we use it as placeholder to populate banner ad into it.
<com.pokkt.sdk.banners.PokktBannerView
   android:id="@+id/pokkt_banner_view_top"
   android:layout_width="320dp"
   android:layout_height="50dp"
   android:layout_centerHorizontal="true"/>
  • Load banner
PokktAds.Banner.loadBanner(“<screenName>”, <pokktBannerView>);
  • You can remove Banner using:
PokktAds.Banner.destroy(<pokktBannerView>);

Ad Delegates

Ad delegates are optional, but we suggest to implement them as it will help you to keep track of the status of your ad request.

Video
PokktAds.VideoAd.setDelegate(new PokktAds.VideoAd.VideoAdDelegate() {
   @Override
   public void videoAdCachingCompleted(String screenName, boolean isRewarded, double reward) {
   }
   @Override
   public void videoAdCachingFailed(String screenName, boolean isRewarded, String errorMessage) {
   }
   @Override
   public void videoAdDisplayed(String screenName, boolean isRewarded) {
   }
   @Override
   public void videoAdFailedToShow(String screenName, boolean isRewarded, String errorMessage) {
   }
   @Override
   public void videoAdClosed(String screenName, boolean isRewarded) {
   }
   @Override
   public void videoAdClicked(String screenName, boolean isRewarded){
   }
   @Override
   public void videoAdSkipped(String screenName, boolean isRewarded) {
   }
   @Override
   public void videoAdCompleted(String screenName, boolean isRewarded) {
   }
   @Override
   public void videoAdGratified(String screenName, boolean isRewarded, double reward) {
   }
});
Outstream

Developer can implement SDK OutStream Ad delegates and supply to POKKT SDK before calling loadAdInContainer().

PokktAds.OSAds.setDelegate(new PokktAds.OSAds.OSAdsDelegate() {
   @Override
   public void adReady(String screenName) {
   }
   @Override
   public void adDisplayed(String screenName) {
   }
   @Override
   public void adClicked(String screenName){
   }
   @Override
   public void adFailedToShow(String screenName, String errorMessage) {
   }
   @Override
   public void adCompleted(String screenName) {
   }
});

Developer will have to do cleanup of outStream ad in onDestroy of activity life cycle.

public static void destroyAdInContainer(String screenName) {
AdManager.getInstance().destroyAdInContainer(screenName);
}
Interstitial
PokktAds.Interstitial.setDelegate(new PokktAds.Interstitial.InterstitialDelegate() {
   @Override
   public void interstitialCachingCompleted(String screenName, boolean isRewarded, double reward) {
   }
   @Override
   public void interstitialCachingFailed(String screenName, boolean isRewarded, String errorMessage) {
   }
   @Override
   public void interstitialDisplayed(String screenName, boolean isRewarded) {
   }
   @Override
   public void interstitialFailedToShow(String screenName, boolean isRewarded, String errorMessage) {
   }
   @Override
   public void interstitialClosed(String screenName, boolean isRewarded) {
   }
   @Override
   public void interstitialSkipped(String screenName, boolean isRewarded) {
   }
   @Override
   public void interstitialClicked(String screenName, boolean isRewarded){
   }
   @Override
   public void interstitialCompleted(String screenName, boolean isRewarded) {
   }
   @Override
   public void interstitialGratified(String screenName, boolean isRewarded, double reward) {
   }
});
PokktAds.Banner.setDelegate(new PokktAds.Banner.BannerAdDelegate() {
   @Override
   public void bannerLoaded(String screenName) {
   }
   @Override
   public void bannerClicked(String screenName){
   }
   @Override
   public void bannerLoadFailed(String screenName, String errorMessage) {
   }
});

Pokkt ad player configuration

Pokkt Ad player works the way App is configured at Pokkt dashboard, but we provide a way to override those settings using PokktAdViewConfig.

Application should prefer configuration provided through code by developer or what’s configured for the app in dashboard, can be controlled any time through the dashboard itself. If you want to make changes to this configuration after your app distribution, you can contact Pokkt Team to do the same for your app through admin console.

PokktAdViewConfig adViewConfig = new PokktAdViewConfig ();
// set properties values to adViewConfig
PokktAds.setAdPlayerViewConfig(adViewConfig );

Various setters for the properties that can be managed through this are:

1. Back button
Defines if user is allowed to close the Advertisement by clicking on back button or not.
Setter Name: setBackButtonDisabled(boolean backButtonDisabled)
Values:
True = Back button is disabled and user cannot close the Ad.
False = Back button is not disabled and user can close the Ad.

2. Default skip time
Defines the time after which user can skip the Ad.
Setter name: setDefaultSkipTime(int defaultSkipTime)
Values:
Any Integer value.
Default value is 10 seconds.

3. Should allow skip
Defines if user is allowed to skip the Ad or not.
Setter name: setShouldAllowSkip(boolean shouldAllowSkip)
Values:
True = User can skip Ad.
False = User can’t skip Ad.

4. Should allow mute
Defines if user is allowed to mute the Video Ad or not.
Setter name: setShouldAllowMute(boolean shouldAllowMute)
Values:
True = User can mute video Ad.
False = User can’t mute video Ad.

5. Should confirm skip
Defines if confirmation dialog is to be shown before skipping the Ad.
Setter name: ShouldConfirmSkip
Values:
True = Confirmation dialog will be shown before skipping the video.
False = Confirmation dialog will not be shown before skipping the video.

6. Skip confirmation message
Defines what confirmation message to be shown in skip dialog.
Setter name: setShouldSkipConfirm(boolean shouldSkipConfirm)
Values:
Any String message.
Default value is “Skipping this video will earn you NO rewards. Are you sure?”.

7. Affirmative label for skip dialog
Defines what should be the label for affirmative button in skip dialog.
Setter name: setSkipConfirmYesLabel(String skipConfirmYesLabel)
Values:
Any String message.
Default value is “Yes”.

8. Negative label for skip dialog
Defines what should be the label for affirmative button in skip dialog.
Setter name: setSkipConfirmNoLabel(String skipConfirmNoLabel)
Values:
Any String message.
Default value is “No”.

9. Skip timer message
Defines message to be shown before enabling skip button. Don’t forget to add placeholder “ ## ” in your custom message. This placeholder is replaced by property “Default skip time” assigned above.
Setter name: setSkipTimerMessage(String skipTimerMessage)
Values:
Any String message.
Default value is “You can skip video in ## seconds”

10. Incentive message
Defines message to be shown during video progress, that after what time user will be incentivised.
Setter name: setIncentiveMessage(String incentiveMessage)
Values:
Any String message
Default value is “more seconds only for your reward !”

11. Should collect feedback
Defines message to be shown during video progress, that after what time user will be incentivised.
Property name setShouldCollectFeedback
Values:
True = If you want to collect feedback from the user for the Ad.
False = If you don’t want to collect feedback from the user for the Ad.

12. Audio Enabled
Provides a medium to disable audio for video ad without user interaction.
Property name setAudioEnabled
Values:
True = If you want to play audio for video ad.
False = If you don’t want to play audio for video ad.

User Details

For better targeting of ads you can also provide user details to our SDK using.

PokktUserDetails pokktUserDetails = new PokktUserDetails();
pokktUserDetails.setName(" ");
pokktUserDetails.setAge(" ");
pokktUserDetails.setSex(" ");
pokktUserDetails.setMobileNumber(" ");
pokktUserDetails.setEmailAddress(" ");
pokktUserDetails.setLocation(" ");
pokktUserDetails.setBirthday(" ");
pokktUserDetails.setMaritalStatus(" ");
pokktUserDetails.setFacebookId(" ");
pokktUserDetails.setTwitterHandle(" ");
pokktUserDetails.setEducation(" ");
pokktUserDetails.setNationality(" ");
pokktUserDetails.setEmployment(" ");
pokktUserDetails.setMaturityRating(" ");
PokktAds.setUserDetails(pokktUserDetails);

Pokkt Server Callback Params

Developer can set some values in POKKT SDK that they need to be sent to their server via POKKT Server callbacks.

Map<String, String> params = new HashMap<>();
params.put("testdata","{\"adnetwork\": \"pokkt\"}");
PokktAds.setCallbackExtraParams(params);

Debugging

Other than enabling debugging for Pokkt SDK, it can also be used to:

1. Export log
Export your log to your desired location, we generally have it in root directory of SD card, if permission for external storage is provided and in cache folder otherwise.

PokktAds.Debugging.exportLog(getActivity());

2. Export log to cloud You can also export log to cloud.

PokktAds.Debugging.exportLog(getActivity());

Analytics

We support various analytics in Pokkt SDK.

Below is mentioned how to enable various analytics with Pokkt SDK.

Google Analytics

Google analytics Id can be obtained from Google dashboard.

AnalyticsDetails analyticsDetail = new AnalyticsDetails();
analyticsDetail.setSelectedAnalyticsType( AnalyticsType.GOOGLE_ANALYTICS);
analyticsDetail.setGoogleAnalyticsID( "<Google Analytics Id>");
PokktAds.Analytics.setAnalyticsDetails(analyticsDetail);
Flurry Analytics

Flurry application key can be obtained from Flurry dashboard.

AnalyticsDetails analyticsDetail = new AnalyticsDetails();
analyticsDetail.setSelectedAnalyticsType( AnalyticsType.FLURRY);
analyticsDetail.setFlurryApplicationKey("<Flurry Application Key>");
PokktAds.Analytics.setAnalyticsDetails(analyticsDetail);
MixPanel Analytics

MixPanel project token can be obtained from MixPanel dashboard.

AnalyticsDetails analyticsDetail = new AnalyticsDetails();
analyticsDetail.setSelectedAnalyticsType(AnalyticsType.MIXPANEL);
analyticsDetail.setMixPanelProjectToken( "<MixPanel Project Token>");
PokktAds.Analytics.setAnalyticsDetails(analyticsDetail);
Fabric Analytics

Analytics Id is not required in case of Fabric.

AnalyticsDetails analyticsDetail = new AnalyticsDetails();
analyticsDetail.setSelectedAnalyticsType(AnalyticsType.FABRIC);
PokktAds.Analytics.setAnalyticsDetails(analyticsDetail);

IAP(In App Purchase)

Call trackIAP to send any In App purchase information to Pokkt.

InAppPurchaseDetails inAppPurchaseDetails = new InAppPurchaseDetails();
inAppPurchaseDetails.setProductId("<productId>");
inAppPurchaseDetails.setPurchaseData("<purchaseData>");
inAppPurchaseDetails.setPurchaseSignature("<purchaseSignature>");
inAppPurchaseDetails.setPurchaseStore(IAPStoreType.GOOGLE);
inAppPurchaseDetails.setPrice(<100.00>);
PokktAds.Analytics.trackIAP(inAppPurchaseDetails);

Proguard

If you are using proguard in your app, add following rules to your proguard file.

# Pokkt SDK
-keep class com.pokkt.** { public *; }
-dontwarn com.pokkt.**
# comscore
-keep class com.comscore.** { *; }
-dontwarn com.comscore.**
-dontnote com.comscore.**
#facebook
-dontwarn com.facebook.**
# fabric
-dontwarn com.crashlytics.**
-dontwarn io.fabric.**
# flurry
-dontwarn com.flurry.**
# MixPanel
-dontwarn com.mixpanel.**
# 360 if Pokktsdk360ext.jar or Pokktsdk360ext.aar is added
-keep class com.pokkt.sdkmd360ext.** { *; }

Pokkt Dashboard

InApp Notifications

Open developer dashboard -> Manage App -> Notifications

Create notifications

1. Basic notification information required.

Basic-filters.jpg

  • Name: A friendly name for notification. It will help you to distinguish between different notifications.
  • App: Select your app for which you want to assign notifications.
  • Platform: Select OS platform for which you want to target notifications.
  • Countries: Select countries where this notifications will be shown to users. Let’s say if you have users in multiple countries, you can selectively target notifications to them.
  • App version: Enter your app version for which you want to show notifications. Let’s say you have multiple version installed among users and you want to send different notifications to different users based on their versions.
  • Last seen: Set minimum and maximum limit in days for which user can remain away from the app.

Let’s say if min = 2 and max = 4, and user hasn’t open your app for atleast 2 days, you can remind by showing notification, but if 4 days have passed app will not show any more notifications to user.

  • Message: Message you want to show in notifications bar.
  • Title: Title for the notification to be shown in notification bar.

Message.jpg

2. Schedule notification Daily
Daily.jpg

Weekly
Weekly.jpg

Monthly
Monthly.jpg

Migration Note Guide v7.3.0

Note

  • In case of any query regarding integration, refer POKKT_SDK_Integration_Guide(_v7.3.0_Native_Android) for this version provided inside PokktSDK_v7.3.0.

1. Removed callbacks
videoAdAvailabilityStatus and interstitialAvailabilityStatus are removed from the Video and Interstitial ads respectively and so are the checkAdAvailability API.

2. PokktAdPlayerViewConfig
PokktAdPlayerViewConfig is renamed to PokktAdViewConfig.

3. Activity context required in setPokktConfig.
PokktAds.setPokktConfig("<Pokkt Application ID>", "<Pokkt Security Key>");
is now
PokktAds.setPokktConfig("<Pokkt Application ID>", "<Pokkt Security Key>",
“<Activity Context>”);
4. Context required in shouldDebug.
PokktAds.Debugging.shouldDebug(<true>);
is now
PokktAds.Debugging.shouldDebug(“<Context Context>”,<true>);