FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Bit of cleanup · devhttps/frontend@473bf20 · GitHub

Commit 473bf20

Browse files
authored andcommitted
Bit of cleanup
1 parent 6f09d71 commit 473bf20

3 files changed

Lines changed: 8 additions & 3 deletions

File tree

‎admin/app/dfp/ApiHelper.scala‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ private[dfp] object ApiHelper extends Logging {
1717
}
1818
}
1919

20-
dfpLineItem.getRoadblockingType == RoadblockingType.CREATIVE_SET &&
20+
( dfpLineItem.getRoadblockingType == RoadblockingType.CREATIVE_SET ) &&
2121
hasA1x1Pixel(dfpLineItem.getCreativePlaceholders)
2222
}
2323

‎admin/app/dfp/DfpDataExtractor.scala‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ case class DfpDataExtractor(
77
lineItems: Seq[GuLineItem],
88
invalidLineItems: Seq[GuLineItem]) {
99

10-
val hasValidLineItems = lineItems.nonEmpty
10+
val hasValidLineItems: Boolean = lineItems.nonEmpty
1111

1212
val inlineMerchandisingTargetedTags: InlineMerchandisingTagSet = {
1313
lineItems.foldLeft(InlineMerchandisingTagSet()) { (soFar, lineItem) =>

‎common/app/common/dfp/PageSkinSponsorship.scala‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,17 @@ package common.dfp
33
import common.{Edition, Logging}
44
import play.api.libs.json._
55

6+
/** A PageSkinSponsorship
7+
* is a special decoration of a DFP LineItem that we need to scan for ourselves,
8+
* because DFP doesn't have this concept.
9+
*/
610
case class PageSkinSponsorship(lineItemName: String,
711
lineItemId: Long,
812
adUnits: Seq[String],
13+
// Targeting properties
914
editions: Seq[Edition],
1015
countries: Seq[String],
11-
isR2Only: Boolean,
16+
isR2Only: Boolean, // Legacy platform.
1217
targetsAdTest: Boolean,
1318
adTestValue: Option[String],
1419
keywords: Seq[String])

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL