How to ad skippable button to video ads? iOS SDK

1,852 views
Skip to first unread message

Miguel Lugo

unread,
Jul 14, 2014, 1:57:06 PM7/14/14
to ima...@googlegroups.com
I'm using the iOS SDK.

Do I have to program my own skip ad button or is there a simple flag I can set so that video ads are allowed to be skipped after a few seconds?

In the documentation I see a lot of stuff referencing skipping ads such as a flag in AdsManager that let's me set isSkippable, a function in AdsManager called skip(), as well as a kIMAAdEvent_SKIPPED.  However in my code none of these things can be found.  They don't show up using autocomplete and are called errors when I try to call these.  Please help!  Thanks

Shawn Busolits (IMA SDK Team)

unread,
Jul 14, 2014, 2:18:02 PM7/14/14
to ima...@googlegroups.com
Hey Miguel,

The skippable state of an ad is actually set up by the ad server - the VAST response will tell the SDK if an ad is skippable or not. If you're using DoubleClick to serve your ads, you can find information on serving skippable ads here. If you're using another ad server, I'd recommend following up with them to find out how their skippable support works.

Thanks,
Shawn Busolits
IMA SDK Team

Don Huff

unread,
Aug 11, 2014, 3:56:26 PM8/11/14
to ima...@googlegroups.com
Shawn,

I am seeing what appears to be lack of skippable video support in iOS SDK 3.0.beta.6. All I can find in the SDK headers is the skippable property on the IMAAd class. It looks like the iOS SDK does not support skippable content. Is this correct?

Thanks,

Don Huff

Marc R

unread,
Aug 13, 2014, 4:55:05 AM8/13/14
to ima...@googlegroups.com
+1

Bret McGowen

unread,
Aug 13, 2014, 12:43:29 PM8/13/14
to ima...@googlegroups.com
Hi Don,

The IMA iOS SDK does support skippable ads. Are you testing on a specific device? I'm running our IMA iOS SDK sample app using the below ad tag and it renders the Skip Ad button; tapping the button I'm able to skip the ad both in the emulator and on an iPad running iOS 7. What problems are you seeing? And what ad tag are you using? Bear in mind Shawn's previous comment that the VAST XML returned has to indicate the ad is skippable in order for the SDK to render the skip button.


Thanks,
Bret McGowen
IMA SDK Team

Bret McGowen

unread,
Aug 13, 2014, 12:47:30 PM8/13/14
to ima...@googlegroups.com
Hey Don,

One other thing I meant to clarify in my previous post: the SDK automatically shows the skip button for ads that are skippable and hides the button for ads that are not skippable (based on the VAST XML). There's no way for you to tell the SDK to make an ad skippable or not; it all happens automatically based on the skippable property in the returned VAST XML. This is required by the IAB spec; ads aren't supposed to be skippable unless the ad server says they are. http://www.iab.net/media/file/VASTv3.0.pdf

Cheers,

Don Huff

unread,
Aug 13, 2014, 6:23:16 PM8/13/14
to ima...@googlegroups.com
Bret,

Thanks for the information and sample VAST document. I set @skipoffset in my Linear element and get the skip prompt. Awesome!

One additional question...the skip button seems to always display a 5 second countdown, even though the @skipoffset in the sample document is 7 seconds. The IMAAd class just has a skippable Boolean property; there is no facility for a time interval. Is the SDK hard-coded to a 5-second skip countdown?

Thanks again,

Don Huff
iOS Development Consultant
Shoutz, Inc.


--
You received this message because you are subscribed to a topic in the Google Groups "Interactive Media Ads SDK" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ima-sdk/2eiF-KAkygg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ima-sdk+u...@googlegroups.com.
To post to this group, send email to ima...@googlegroups.com.
Visit this group at http://groups.google.com/group/ima-sdk.
For more options, visit https://groups.google.com/d/optout.

Message has been deleted

Bret McGowen

unread,
Aug 13, 2014, 6:42:44 PM8/13/14
to ima...@googlegroups.com
Hey Don,

Glad you got it working. The linear offset is a VAST 3 property and the ad tag I send you returns a VAST 2 document (declared in the <VAST> node). Try this one, it returns the same tag but as VAST 3 and the SDK should listen to the specified 7 second offset:

TON LI

unread,
Aug 27, 2014, 9:09:43 AM8/27/14
to ima...@googlegroups.com
Hey Bret,

Somehow if the skipoffset is not define, the iOS SDK will default to 5 seconds?
I have tried your provided vast 3.0 link, and remove the skipoffset attribute.


Thanks,

Tony

Bret McGowen

unread,
Aug 27, 2014, 1:05:38 PM8/27/14
to ima...@googlegroups.com
Hi Tony,

Yep, you're correct -- if you don't specify a skippable offset it'll default to 5 seconds if it's a skippable ad. Note though that since skippable wasn't officially introduced until VAST 3, the ad tag I posted designates an ad as skippable based on a custom DFP extension in the VAST XML. For VAST 3 it will look for the skipoffset="00:00:07" attribute on the <Linear> element.

Cheers,
Bret McGowen
IMA SDK Team
Reply all
Reply to author
Forward
0 new messages