VMAP and scheduler in jwplayer android sdk
Does JwPlayer sdk for Android suport Video Multiple Ad Playlist (VMAP)?
Does JwPlayer sdk for Android suport Video Multiple Ad Playlist (VMAP)?
Yes it does. It could look something like this:
Advertising advertising = new Advertising(); advertising.setClient(Advertising.IMA_CLIENT); advertising.setUrlIMATag(“http://pubads.g.doubleclick.net/gampad/ads?sz=640×480&iu=/124319096/external/ad_rule_samples&ciu_szs=300×250&ad_rule=1&impl=s&gdfp_req=1&env=vp&output=vmap&unviewed_position_start=1&cust_params=deployment%3Ddevsite%26sample_ar%3Dpremidpost&cmsid=496&vid=short_onecue&correlator=”); video.setAdvertising(advertising);It gives me the following error:
java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/ads/identifier/AdvertisingIdClient;
Have you purchased the SDK package from JW Player?
Yes, I have,I have read both iOS and Android documents, for iOS there is JWAdconfig which can be set to VMAP but no such option for Android.
Do I need to use google play services or not?
I just have problem with VMAP, other types of vast ads are executing without problem like preroll or midroll and postroll.
any help would be appreciated,
tnx in advance
Make sure you imported the google-play-ads in your dependencies and then you use the code I had provided. You will have to use the Google IMA parser for it. Same code as I mentioned earlier. Please email support so we can exchange source code and see the issue.