(iOS) With AirPlay enabled, ads ‘finish’ playback but do not call the "kIMAAdEvent_COMPLETE" event. Instead, call the "kIMAAdEvent_LOG" event with error code 402.

18 views
Skip to first unread message

JING

unread,
Aug 5, 2024, 3:47:03 AM (2 days ago) Aug 5
to Interactive Media Ads SDK
HI, IMA SDK Support Team, 
// ------------------------------------------------------------------------------------------------ Environment infos
  1. SDK: iOS - pod 'GoogleAds-IMA-iOS-SDK', '3.22.0'
  2. ad tag:  let kVMAPPodsTag = "https://pubads.g.doubleclick.net/gampad/ads?sz=1280x720&iu=/94348418/test_vmap&impl=s&vpa=auto&plcmt=1&gdfp_req=1&env=vp&unviewed_position_start=1&url=[referrer_url]&description_url=[description_url]&ad_rule=1&output=xml_vmap1&cmsid=2674704&vid=83860&vid_d=1450&correlator=1722591216&vpmute=1&cust_params=ott_series_id%3D6548%26ott_content_language%3Dja%26ott_gender%3D0%26ott_cpname%3DTV%20Tokyo%26ott_income%3D0%26ott_lang%3Dzh-hk%26ott_age_group%3D0%26ott_preview_video%3Dfalse%26ott_interests%3D%26ott_product_id%3D83860%26ott_privileges%3DSHOW_ADS%26ott_tags%3D%E7%8D%A8%E5%AE%B6%E8%BF%BD%E6%92%AD%2C%E6%97%A5%E6%9C%AC%E5%8B%95%E7%95%AB%2C%E5%90%88%E5%AE%B6%E6%AD%A1%2C%E6%B5%8B%E8%AF%95productor%E5%90%8D%E7%A7%B0%26ott_user_type%3D0%26ott_isp%3D%26appver%3D2.10.0%26ott_cate%3D"
    1. if using demo's ad tag, also return the error:
      1. ["adData": {

        }, "logData": {

            errorCode = 402;

            errorMessage = "VAST media file loading reached a timeout of 8 seconds.";

            type = adPlayError;

        }]

  3. Are you able to reproduce this issue using your ad tag in the sample app
    1. YES, can reproduce in the "AdvancedSample" demo(Swift), and SDK with same 3.22.0(or 3.15.1 by default)
  4. What steps must we take to reproduce your issue?
    1. open VAMP Pods page
    2. connected with a Apple TV device
// ------------------------------------------------------------------------------------------------  event log: 

func adsManager(_ adsManager: IMAAdsManager!, didReceive event: IMAAdEvent!) {

// event.type = Log(14)

// event.adData = 

"logData": {

    errorCode = 402;

    errorMessage = "VAST media file loading reached a timeout of 8 seconds.";

    type = adPlayError;

}, "adData": {

}]

}


// ------------------------------------------------------------------------------------------------ Print with default vmap ad tag(Demo)

2024-08-05 15:24:53.986390+0800 AdvancedExample[1608:350771] AdsManager event Log (debug:Optional(<IMAAdEvent: 0x2838c7080>))

2024-08-05 15:25:26.950477+0800 AdvancedExample[1608:350771] AdsManager event Log (log:Optional(["logData": {

    errorCode = 402;

    errorMessage = "VAST media file loading reached a timeout of 8 seconds.";

    type = adPlayError;

}, "adData": {

}]))

2024-08-05 15:25:26.955145+0800 AdvancedExample[1608:350771] AdsManager event Pause (debug:Optional(<IMAAdEvent: 0x283839a00>))

2024-08-05 15:25:26.957358+0800 AdvancedExample[1608:350771] AdsManager event Pause (log:nil)


// ------------------------------------------------------------------------------------------------
We have encountered this issue on the iPhone/iPad.

1. AirPlay Enabled: When the VMAP ad finishes playback, an event error with errorCode = 402 appears. Otherwise, ad playback works well.

2. Demo “AdvancedSample”: The same issue occurs.

2.1 I changed some IMAAdsRequest API calls to use contentPlayhead (with the main video using the BitmovinPlayer SDK for playback) instead of using *** avPlayerVideoDisplay, pictureInPictureProxy ***.”



Please help me with this. 
Best regards,
JING


Interactive Media Ads SDK

unread,
Aug 6, 2024, 12:51:02 PM (16 hours ago) Aug 6
to Interactive Media Ads SDK
Hi,

Unfortunately, the IMA SDK for iOS does not currently support Apple AirPlay. I apologize for any confusion associated with this functionality.

Thanks,

Greg Schoppe
IMA SDK Team
Reply all
Reply to author
Forward
0 new messages