Skip to content

v1.1.1

Latest

Choose a tag to compare

@AhmedRagabIssa AhmedRagabIssa released this 25 Nov 09:08

1.1.1

Changes since 1.1.0.

Breaking changes

  • The ad adapter is passed to initialize. Bytes.initialize(cid:crid:appBundleId:containerView:adapter:) takes the adapter, which serves every ad slot until shutdown(). Bytes.setAdAdapter(_:) is no longer available; calls to it fail to compile, with a message that points to the new initialize. Before, the parameters of the startup config request depended on whether setAdAdapter ran before the request went out, so the Media.net account ID could be missing from it. A repeated initialize is ignored, adapter included.

    let adapter = MediaNetAdAdapter(
        accountID: "<Media.net account ID>",
        card: MediaNetPlacementConfig(configID: "<card config ID>", adUnitID: "<card ad unit path>"),
        bottom: MediaNetPlacementConfig(configID: "<bottom config ID>", adUnitID: "<bottom ad unit path>")
    )
    
    // 1.1.0
    Bytes.initialize(cid: cid, crid: crid, appBundleId: bundleId, containerView: nil)
    Bytes.setAdAdapter(adapter)
    
    // 1.1.1
    Bytes.initialize(cid: cid, crid: crid, appBundleId: bundleId, containerView: nil, adapter: adapter)

    The four-argument initialize still exists and runs the feed without ads, so make sure to add adapter: when you remove the setAdAdapter call. Objective-C callers keep the four-argument method (the adapter protocol is Swift only).

Feed

  • Share button. When the server config's bytesConfig.shareUrl gives a link (its {vmid} macro is filled with the video's id), the feed shows a share button at the top of the action column, above like and mute. A tap opens the system share sheet with the active video's link; the video pauses while the sheet is up and plays again when it closes. The button uses the config's videoPlaybackViewUIConfig.share icon when one is sent, and a curved arrow on a dark circle otherwise. It's hidden on ad cards, like the other buttons. Without shareUrl the column is unchanged.
  • Open Article button. When the server config's articleCta.enabled is on and a video has an article link (ctau), its card shows an Open Article button. Its label, colours, size and alignment come from articleCta. A tap sends the new BytesEvent.Kind.openArticle event, with BytesEvent.articleInfo (articleURL, vmid, videoIndex, sdkOpensArticle). The SDK opens the article in its in-app browser unless articleCta.openWv is off. In that case sdkOpensArticle is false and the app opens articleURL itself, pausing an embedded feed while it's covered.

Ads

  • In-feed card slots request only 360x640, in place of 300x600, 300x250 and 320x480. BytesAdSize.bytesStandardSlide is now [360x640]. Bottom banner sizes are unchanged.

Analytics

  • New share beacons: shrbtnc when share is tapped, shrurlcpy when the sheet's Copy copied the link, shric (with shrit, the item's system identifier) for any other item used on the sheet.
  • New ctasc beacon when Open Article is tapped.
  • Every beacon now carries sdkv (the SDK version) and issdk=1. plnm (avplayer) and plv (the iOS version, since AVFoundation ships with the OS) are on every beacon except log_conf_incomplete.
  • The log_conf_incomplete beacon sends pprf under the same rule as other events.

Media.net ad source

  • BytesAdSourceMediaNet now requires the Media.net renderer 1.1.1 (was 1.1.0). It fixes Open Measurement for apps that integrate through SPM or embed the xcframeworks: the OMID scripts are now compiled into MediaNetRendererCore, where before only CocoaPods copied them into the app and other integrations sent verification vendors no events. Apps that added the two scripts by hand as a workaround can remove them. The CocoaPods Podfile in the README points at the 1.1.1 renderer podspecs. The Media.net Ad SDK stays at 1.1.0.