AdsLoader.getSettings(), AUTO_SCALE and AdsManager.getCuePoints()

119 views
Skip to first unread message

Sebastian

unread,
Aug 3, 2016, 4:19:10 AM8/3/16
to Interactive Media Ads SDK
Hi there,
  1. Is there any difference between google.ima.AdsLoader.getSettings() and google.ima.settings? From my understanding the first one uses the provided options only for the life-cycle of the AdsLoader, while the the last one will share the same options across all AdsLoader instances.
  2. AdsRenderingSettings.AUTO_SCALE. What does it really do? What is the default value / behavior? What type of ads does it really affect?
  3. I'm using AdsManager.getCuePoints() to determine if a playlist has really loaded (vs. a single VAST) once the ads manager has loaded. Is this a reliable way? Are there other options to check if we have a playlist inside ADS_MANAGER_LOADED listener.
  4. I'm trying to prevent the ad from starting inside LOADED listener (on timeout), using AdsManager.destroy(). Sometimes it works, but sometimes the ad will run invisible in the background (only the sound). Is there any way to prevent ad from starting when LOADED is fired?
Thanks,
Sebi

Binny Patel (IMA SDK Team)

unread,
Aug 3, 2016, 2:50:50 PM8/3/16
to Interactive Media Ads SDK
Hi Sebi,
1) Yes, your understanding is right for the google.ima.AdsLoader.getSettings() and google.ima.ImaSdksettings.  
2) The AdsRenderingSettings.AUTO_SCALE settings will cause the ad to fill 100% of the ad containing div. The default dimension for the adContainer div is 640*360 for the linear ads. This setting affects only the linear ads.
3) The getCuePoints() method is used to check the timing for the ad breaks. If you have a single VAST, you'll get an empty array. But if you have a playlist (preroll, midroll and postroll), you will get 0 for the preroll, -1 for the postroll that will indicate it's a playlist. 
4) The Ad has to start once the LOADED event is fired. Basically, the LOADED event will just load the ad and the START event will indicate that the ad is going to play. So the ads have to play in the order. We discourage attempts that cause the ad not to play in the regular workflow.
Thanks,
Binny Patel
IMA SDK Team

Sebastian

unread,
Aug 4, 2016, 3:44:57 AM8/4/16
to Interactive Media Ads SDK
Thank you for the answers.

Few more questions on AUTO_SCALE:
  1. What is the default value for AdsRenderingSettings.AUTO_SCALE: true or false? Lets say my player is in fullscreen mode and AUTO_SCALE is false. Any ad will be rendered only within 640*360 bounds, won't it?
  2. What is the recommended value: true or false? I'm inclined to set it 'true', to have the ad consuming the whole area.

Binny Patel (IMA SDK Team)

unread,
Aug 4, 2016, 2:31:34 PM8/4/16
to Interactive Media Ads SDK
Hi Sebi,

I have talked with the rest of my team and we concluded that AUTO_SCALE is only for Internal use. Therefore, we have decided to obfuscate this property. 

Let us know if you have other questions.

Thanks,
Binny Patel
IMA SDK Team

Sebastian

unread,
Aug 5, 2016, 3:31:47 AM8/5/16
to Interactive Media Ads SDK
Thanks Binny.
Reply all
Reply to author
Forward
0 new messages