Repository navigation
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 untilshutdown().Bytes.setAdAdapter(_:)is no longer available; calls to it fail to compile, with a message that points to the newinitialize. Before, the parameters of the startup config request depended on whethersetAdAdapterran before the request went out, so the Media.net account ID could be missing from it. A repeatedinitializeis 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
initializestill exists and runs the feed without ads, so make sure to addadapter:when you remove thesetAdAdaptercall. Objective-C callers keep the four-argument method (the adapter protocol is Swift only).
Feed
- Share button. When the server config's
bytesConfig.shareUrlgives 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'svideoPlaybackViewUIConfig.shareicon when one is sent, and a curved arrow on a dark circle otherwise. It's hidden on ad cards, like the other buttons. WithoutshareUrlthe column is unchanged. - Open Article button. When the server config's
articleCta.enabledis on and a video has an article link (ctau), its card shows an Open Article button. Its label, colours, size and alignment come fromarticleCta. A tap sends the newBytesEvent.Kind.openArticleevent, withBytesEvent.articleInfo(articleURL,vmid,videoIndex,sdkOpensArticle). The SDK opens the article in its in-app browser unlessarticleCta.openWvis off. In that casesdkOpensArticleisfalseand the app opensarticleURLitself, pausing an embedded feed while it's covered.
Ads
- In-feed card slots request only 360x640, in place of 300x600, 300x250 and 320x480.
BytesAdSize.bytesStandardSlideis now[360x640]. Bottom banner sizes are unchanged.
Analytics
- New share beacons:
shrbtncwhen share is tapped,shrurlcpywhen the sheet's Copy copied the link,shric(withshrit, the item's system identifier) for any other item used on the sheet. - New
ctascbeacon when Open Article is tapped. - Every beacon now carries
sdkv(the SDK version) andissdk=1.plnm(avplayer) andplv(the iOS version, since AVFoundation ships with the OS) are on every beacon exceptlog_conf_incomplete. - The
log_conf_incompletebeacon sendspprfunder the same rule as other events.
Media.net ad source
BytesAdSourceMediaNetnow 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 intoMediaNetRendererCore, 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.