Android IMA SDK v3-3.b11.4 - Timer and Learn More are absent.

349 views
Skip to first unread message

Chernyshov Yuriy

unread,
Jul 9, 2015, 1:59:26 PM7/9/15
to ima...@googlegroups.com
Dear Google IMA developers.

I just switched from ima-android-v3-3.b10.3 to ima-android-v3-3.b11.4, thats it, nothing more gas been changed, but there are missing items on the video view of the Ad - Countdown timer and Learn More button.

Is this familiar issue?

Tyler Sidell (IMA SDK Team)

unread,
Jul 9, 2015, 4:48:22 PM7/9/15
to ima...@googlegroups.com
Hi,

Thank you for reaching out.  I was not able to reproduce the issue using a sample skippable VAST tag in our Basic Example with v.3.b11.4.

Can you please try to use the Basic Example with your ad tag to see if you are still missing the UI elements?  If you are still missing those elements, please supply us with your ad tag so that we can take a further look.

Cheers,
Tyler Sidell
IMA SDK Team

Juan Carlos Ospina Gonzalez

unread,
Oct 27, 2015, 12:50:16 PM10/27/15
to Interactive Media Ads SDK
I had the same issue. My project had code from another developer that probably copied it over from an earlier version of the IMA examples. If anyone has this problem, check the LayourParams of the 'adUiContainer'. That's where my problem was.

Tyler Sidell (IMA SDK Team)

unread,
Oct 27, 2015, 1:54:58 PM10/27/15
to Interactive Media Ads SDK
Hi Juan Carlos,

Thank you for sharing your solution with the rest of the forum.

Cheers,
Tyler Sidell
IMA SDK Team

Juan Carlos Ospina Gonzalez

unread,
Nov 4, 2015, 4:08:19 AM11/4/15
to Interactive Media Ads SDK
Another not so well documented cave beat is that the "time left" label (aka the countdown) is not shown automatically in Android although it is on iOS. If i understand correctly from the previous developer in my project, this used to be automatic for Android too (?). There is a timid reference to it in the release notes:

https://developers.google.com/interactive-media-ads/docs/sdks/android/v3/history 


Allows the user to customize ad UI elements via AdsRenderingSettings.setUiElements.


Which is phrased as a feature, but it feels like it should have been mentioned a bit more prominent if the opposite used to be default behavior (?). If you dig deeper in the SDK documentation you will find:


https://developers.google.com/interactive-media-ads/docs/sdks/android/v3/api/reference/com/google/ads/interactivemedia/v3/api/AdsRenderingSettings#setUiElements(java.util.Set<com.google.ads.interactivemedia.v3.api.UiElement>)


Which references code that hints at what you have to do to make the counter label show. The code referenced there doesn't actually work because there is a typo (UiElements should be UiElement) and because the class ImmutableSet is not a symbol that i can find after including the IMA SDK (seems to be guava?). 


To make the label appear you have to do something like this:


         mAdsRenderingSettings = mSdkFactory.createAdsRenderingSettings();
    Set<UiElement> set = new HashSet<UiElement>();
    set.add(UiElement.AD_ATTRIBUTION);
    set.add(UiElement.COUNTDOWN);
    mAdsRenderingSettings.setUiElements(set);


The code that makes and populates the Set can probably be improved. 






On Thursday, July 9, 2015 at 7:59:26 PM UTC+2, Chernyshov Yuriy wrote:

Tyler Sidell (IMA SDK Team)

unread,
Nov 4, 2015, 12:39:52 PM11/4/15
to Interactive Media Ads SDK
Hi Juan Carlos,

Thank you for providing your sample code for the rest of the forum.

As for the COUNTDOWN not displayed automatically in Android, that is correct as outlined in our documentation.  We provided the user with more control over the UI elements in the release that you pointed to.  I will also let the rest of my team now about the typo that you pointed out.

Cheers,
Tyler Sidell
AdWords Scripts Team
Reply all
Reply to author
Forward
0 new messages