Android
Last updated
Last updated
The CrystalExpress DFP Custom Event allows DFP publishers to add CrystalExpress as a Custom Ad Network within the DFP platform.
CrystalExpress provides two ad formats for DFP mediation. The relationship between DFP ad unit and ad format in CrystalExpress is as following:
DFP ad unit
AD format from CrystalExpress
Banner
Card AD
Interstitial
Splash AD
NOTICE: The aspect ratio for CrystalExpress ad is 16:9, 4:3 or 1:1.
Before adding CrystalExpress as Custom network, you have to integrate DFP SDK by following the instructions on the .
NECESSARY STEPS:
Get CrystalExpress SDK and Crystal ID.
Integrate the CrystalExpress SDK.
For SDK 3.32 and above, there is no need for moat-x.jar anymore. If there was one in libs folder, please remove it. (For previous SDK version, please still copy moat-x.jar to the libs folder of your app project.
Add CrystalExpress DFP Custom Event into project.
Configure DFP dash board to mediate CrystalExpress.
Please contact your Intowow account manager. We will provide the right version of SDK and Crystal ID according to your needs.
Contact Intowow account manager for CrystalExpress DFP Custom Event and sample code.
Unzip ce-[premium|lite]-global-custom-event-SDKversion.zip
.
For Banner
Add file CECustomEventCard.java
from /CustomEvents/DFP/Banner
to your app's project folder
Size of AdView could be assigned in two ways.
Set the size defined by DFP API
e.g. adView.setAdSize(AdSize.BANNER);
Custom size
e.g. adView.setAdSize(new AdSize(300, 169));
For Interstitial AD
Add file CECustomEventInterstitial.java
from /CustomEvents/DFP/Interstitial/
to your app's project folder.
For further integration issues, please check the sample code within download folder.
In DFP Custom Event, our SDK will keep the aspect ratio of creatives and try to fit the ad view that you bind to DFP.
If the aspect ratio for the ad view to be bound and the creative are inconsistent, the return ad will be filled with black background to match the aspect ratio.
Please refer to the document in Android SDK.
If you are using Proguard to obfuscate your code, please refer to the document in Android SDK.