Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

VMAP and scheduler in jwplayer android sdk


Does JwPlayer sdk for Android suport Video Multiple Ad Playlist (VMAP)?

5 Community Answers

George

JW Player Support Agent  
0 rated :

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);

behnoud.sherafati

User  
0 rated :

It gives me the following error:


java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/ads/identifier/AdvertisingIdClient;

George

JW Player Support Agent  
0 rated :

Have you purchased the SDK package from JW Player?

behnoud.sherafati

User  
0 rated :

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

George

JW Player Support Agent  
0 rated :

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.

This question has received the maximum number of answers.