-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add FXIOS-10715 [sponsored tiles] Get unified ads data with a POST re…
…quest (#23455) * Get unified ads data with a POST request * Fix context id + clean up * Revert disconnect file change * Fix words
- Loading branch information
Showing
6 changed files
with
395 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 0 additions & 30 deletions
30
firefox-ios/Client/Frontend/Home/TopSites/DataManagement/UnifiedAds/UnifiedAdsNetwork.swift
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
firefox-ios/Client/Frontend/Home/TopSites/DataManagement/UnifiedAds/UnifiedTile.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// This Source Code Form is subject to the terms of the Mozilla Public | ||
// License, v. 2.0. If a copy of the MPL was not distributed with this | ||
// file, You can obtain one at http://mozilla.org/MPL/2.0/ | ||
|
||
/// Unified tiles are a type of tiles belonging in the Top sites section on the Firefox home page. | ||
/// See UnifiedAdsProvider and the resource endpoint there for context. | ||
struct UnifiedTile: Decodable { | ||
let format: String | ||
let url: String | ||
let callbacks: UnifiedTileCallback | ||
let imageUrl: String | ||
let name: String | ||
let blockKey: String | ||
} | ||
|
||
// Callbacks for telemetry events | ||
struct UnifiedTileCallback: Decodable { | ||
let click: String | ||
let impression: String | ||
} |
Oops, something went wrong.