Smart Delivery supports two integration methods: native AAR and component-based (Portal & Bundle).
Prerequisites
Your baseline version must be 10.1.60-beta or later, because mPaaS fully supports Smart Delivery starting from this version. Before adding the software development kit (SDK), confirm your baseline version. You can find the version information under Current mPaaS SDK Version in the mPaaS > Baseline Upgrade menu of your project.
If you use the native AAR integration method, first add mPaaS to your projectadd mPaaS to your project.
If you use the component-based integration method, first complete the integration processcomponent-based integration process.
Add the SDK
Native AAR method
In your project, install the Smart Delivery component using Component Management (AAR). For more information, see Manage component dependencies (Native AAR)AAR component management.
Component-based (Portal&Bundle) method
In your Portal and Bundle projects, install the Smart Delivery component using Component Management. For more information, see Integration processAdd component dependencies.
Initialize mPaaS
If you use the native AAR integration method, initialize mPaaS.
public class MyApplication extends Application {
@Override
public void onCreate() {
super.onCreate();
// Initialize mPaaS
MP.init(this);
}
}For more information, see Initialize mPaaS.
Add the configuration
Starting from version 10.1.68.18, the Smart Delivery component does not automatically initialize to pull ad slots and activities when a process starts. Add the following configuration to the AndroidManifest file to enable automatic initialization:
<meta-data android:name="com.mpaas.cdp.autoInit" android:value="true" />After you upgrade from an earlier baseline version to 10.1.68.18, add the preceding configuration to the AndroidManifest file to ensure that the feature works as expected.
What to do next
After you add the SDK, you can configure preset ad slots or create dynamically configured ad slots as needed.