In Feed
Scenario
Ad Formats Supported
How to Integrate
CrystalExpress™ SDK provides CEInFeedHelper to simplify in-feed integration of Card Ad and Native Ad. Please follow the step below:
CEInFeedHelper to simplify in-feed integration of Card Ad and Native Ad. Please follow the step below:Step 1: Copy the adsource, component under infeed folder.
adsource, component under infeed folder.Step 2: Prepare placement
Step 4: Initial and Add ad source to CEInFeedHelper
Step 5 (Optional) : Set ad event listener if you want to receive ad event status.
Step 6
Case 1 (Recommend): Put your adapter and CEInFeedHelper into CEIFAdapter()/CEIFRecyclerViewAdapter()
Case 2: Get the Ad View from CEInFeedHelper each time in onBindViewHolder to make sure the ad can insert into your dataset in order.
Step 7 : Implement the RecyclerView.OnScrollListener to notify InFeedHelper the scroll and scroll state.
Step 8: Add helper.onDestroy() and adapter.onDestroy()in the Activity.onDestroy() for memory release
Last updated