Ads host server needs authorization

44 views
Skip to first unread message

c wei

unread,
Jun 22, 2021, 9:59:15 PM6/22/21
to Interactive Media Ads SDK
Hi IMA SDK team:

If the server which host vast tag need authorization in Http request header,  how we handle such case in IMA sdk?

Beside call AdsRequest.setAdTagUrl ()to set adTagUrl,  is there any  IMA api available to set extra header for authorization purpose? 

Thanks!

IMA SDK

unread,
Jun 23, 2021, 4:04:19 AM6/23/21
to mot...@gmail.com, ima...@googlegroups.com

Hi there,

 

Thank you for reaching out to us.

 

With regards to your concern, I assume you are referring to authenticating video stream request. In that case, you can use the streamRequest.authToken to set the token for Android and iOS. You may also find this document helpful.

Regards,

Google Logo
Michael Angelo Legaspi
IMA SDK Team
 


ref:_00D1U1174p._5004Q2IxxAG:ref

c wei

unread,
Jun 23, 2021, 9:36:36 AM6/23/21
to Interactive Media Ads SDK
Thanks Michael:

In my project, we have a service to provide VAST or VMAP content.   This service may not be public, need authorization in header to access.

IMA provided two methods to handle VAST/VMAP,   1 is via AdsRequest.setAdTagUrl ()  2 is via AdsRequest.setAdsResponse().

For method 2,  if using VAST, it's straightforward, we make our own call to fetch VAST content and set to IMA. 

While for VMAP,  after we set VMAP's xml to IMA,   on each adBreak, it's IMA to call each AdTagURI to fetch the VAST content ?  Seems there is no api to intercept the IMA's internal call for the VAST?

Or is it mandatory,  if using setAdTagUrl() , we need to make  AdTagURI be public?

Thanks.

IMA SDK

unread,
Jun 23, 2021, 4:54:20 PM6/23/21
to mot...@gmail.com, ima...@googlegroups.com
Hi C,

Thank you for the response back. In looking over this, I would definitely suggest to make the service public as it would appear that you are only able to get them to a certain degree. And as you have stated there is no way to really get the ad break unless you have a scheduler setup for them. and know exactly at what point in the video they are. And then can try to inject the item in before or during the ad break.

Regards,
Google Logo
William Pescherine
IMA SDK Team
 


ref:_00D1U1174p._5004Q2IxxAG:ref

c wei

unread,
Jun 28, 2021, 10:33:23 AM6/28/21
to Interactive Media Ads SDK
Thanks William:

May I understand this way,  if using VMAP,   we have no way to customize each VAST 's loading , the ad loading during each ad break is pure IMA internal function

If using VAST, we can customize the ad loading via making our own http call then setResponse the xml to IMA,  but we need to manage cue points in app by ourselves?

Thanks.

IMA SDK

unread,
Jun 28, 2021, 1:23:33 PM6/28/21
to mot...@gmail.com, ima...@googlegroups.com
Hi there,

I work with William and will assist you. We currently don't have an API that offers control over returned VAST's. Could you state your business use case and for this functionality? Could you tell us more about the market for protected ads? Are you also looking for a way to serve the mediafile only with headers?

Regards,

Google Logo
Aryeh Baker
IMA SDK Team
 


ref:_00D1U1174p._5004Q2IxxAG:ref

c wei

unread,
Jun 28, 2021, 1:29:40 PM6/28/21
to Interactive Media Ads SDK
Thanks Aryeh:

I am just double checking with you guys current IMA 's capacity.

Ideally, when using VMAP,  if there is interface for external inception for each VAST fetching, it will be more scalable.  Because for our current solution , we don't rely on Ad server , we are using restful api to deliver vast/vmap.

But that is fine, if IMA don't have an API for vast 's control, we will use VAST through customized adsLoader instead of VMAP, and manage cue points ourselves. 

Does our solution make sense? 

Thanks!

IMA SDK

unread,
Jun 28, 2021, 5:54:13 PM6/28/21
to mot...@gmail.com, ima...@googlegroups.com
Hi there,

You can use the IMA SDK in the way you proscribed if you are using the REST point that require security headers. You will have to manage cue points by yourself and this is supported by the SDK.
Reply all
Reply to author
Forward
0 new messages