Mobile SDK end-of-life has been announced and scheduled for the end of 2023, in favor of updated and more streamlined app personalization using server-side APIs.
Dynamic Content campaigns allow you to replace static components and turn them into dynamic experiences by controlling them directly from the Dynamic Yield Admin. The primary use case is to optimize and personalize banners and images in your mobile application.
Creating a New Dynamic Content Campaign
Mobile campaigns require configuration in the Dynamic Yield admin and in your mobile application.
In Dynamic Yield Admin
- Go to App Personalization › Dynamic Content and click Add New.
- Enter a name, add notes and labels (optional), and click Next.
- Configure the targeting settings of the experience to determine when, where, and for whom the experience is displayed. When defining the target locations, specify the name of the screens as you define them in the page context.
- Create variations using templates, based on other experiences, or by using a data feed. If you are using a template, either use the custom HTML template or the Dynamic Yield Mobile Image templates.
- Save the experience and click Save and Publish.
- In the Dynamic Content list page, click the embed code button and copy the source code to your mobile app.
There are two version of the code depending on whether you used a custom html template or the mobile image template.
- Create additional experiences in your campaign as desired.
In Your Mobile Application
Note: If you want to request a variation from Dynamic Yield and receive the data without rendering the experience, you can use the getSmartObjectData API instead of this procedure. If you use this API, track impressions and clicks using the trackSmartObjectClick and trackSmartObjectImpression APIs. For details, see the API references for iOS and Android.
- Select or create a native view of type Image or Web depending on your embed code that will contain the Dynamic Yield content.
- During the relevant pageload, paste the embed code to tell Dynamic Yield to load your campaign into the desired view.
- Modify the embed code by completing the following parameters:
- Change IMAGE_VIEW/WEB_VIEW to point to the desired view
- Change OPTIONAL_FALLBACK_URL to NULL or enter the URL of the alternative content to load if your campaign cannot be loaded for any reason.
For more information, see the API references for iOS and Android.
Dynamic Content List Page
The Dynamic Content List Page is the main page that displays all of your accounts’ active and archived Dynamic Content campaigns in a list, and is accessed by clicking App Personalization › Dynamic Contentfrom the Sidebar navigation menu.
The List Page includes high-level metrics (Impressions and Clicks) per each of the campaigns, providing immediate insight into the level of exposure and engagement that each Dynamic Content campaign generates or receives:
The two tabs above the list allow you to choose between your active and archived campaigns, while the options to the right of each campaign enable you to edit, view the report, generate the in-line implementation get-code for each campaign (if inline implementation is required), preview the objects onsite, as well as to Duplicate, Export to CSV, Archive and Delete any one of the objects by clicking on the three-dotted menu on the right, which reveals additional options.
You can archive, export to CSV, and delete in bulk by using the checkboxes to select more than one experience.