-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added campaign item focus, cta, policy review
Added campaign browser targeting
- Loading branch information
1 parent
89e5c4a
commit fcf1ccc
Showing
10 changed files
with
293 additions
and
29 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
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
41 changes: 41 additions & 0 deletions
41
src/main/java/com/taboola/backstage/model/media/campaigns/items/CampaignItemCTA.java
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,41 @@ | ||
package com.taboola.backstage.model.media.campaigns.items; | ||
|
||
import java.util.Objects; | ||
|
||
/** | ||
* Created by vladi.m | ||
* Date 11/11/2020 | ||
* Time 9:52 | ||
* Copyright Taboola | ||
*/ | ||
public class CampaignItemCTA { | ||
private CtaType ctaType; | ||
|
||
public CtaType getCtaType() { | ||
return ctaType; | ||
} | ||
|
||
public void setCtaType(CtaType ctaType) { | ||
this.ctaType = ctaType; | ||
} | ||
|
||
@Override | ||
public boolean equals(Object o) { | ||
if (this == o) return true; | ||
if (o == null || getClass() != o.getClass()) return false; | ||
CampaignItemCTA that = (CampaignItemCTA) o; | ||
return Objects.equals(ctaType, that.ctaType); | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
return Objects.hash(ctaType); | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "CampaignItemCTA{" + | ||
"ctaType=" + ctaType + | ||
'}'; | ||
} | ||
} |
52 changes: 52 additions & 0 deletions
52
...ain/java/com/taboola/backstage/model/media/campaigns/items/CampaignItemCreativeFocus.java
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,52 @@ | ||
package com.taboola.backstage.model.media.campaigns.items; | ||
|
||
import java.util.Objects; | ||
|
||
/** | ||
* Created by vladi.m | ||
* Date 11/11/2020 | ||
* Time 9:53 | ||
* Copyright Taboola | ||
*/ | ||
public class CampaignItemCreativeFocus { | ||
private FocusType type; | ||
private FocusCoordinates coordinates; | ||
|
||
public FocusType getType() { | ||
return type; | ||
} | ||
|
||
public void setType(FocusType type) { | ||
this.type = type; | ||
} | ||
|
||
public FocusCoordinates getCoordinates() { | ||
return coordinates; | ||
} | ||
|
||
public void setCoordinates(FocusCoordinates coordinates) { | ||
this.coordinates = coordinates; | ||
} | ||
|
||
@Override | ||
public boolean equals(Object o) { | ||
if (this == o) return true; | ||
if (o == null || getClass() != o.getClass()) return false; | ||
CampaignItemCreativeFocus that = (CampaignItemCreativeFocus) o; | ||
return type == that.type && | ||
Objects.equals(coordinates, that.coordinates); | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
return Objects.hash(type, coordinates); | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "CampaignItemCreativeFocus{" + | ||
"type=" + type + | ||
", coordinates=" + coordinates + | ||
'}'; | ||
} | ||
} |
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
45 changes: 45 additions & 0 deletions
45
...main/java/com/taboola/backstage/model/media/campaigns/items/CampaignItemPolicyReview.java
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,45 @@ | ||
package com.taboola.backstage.model.media.campaigns.items; | ||
|
||
import java.util.Objects; | ||
|
||
import com.taboola.backstage.annotations.ReadOnly; | ||
|
||
/** | ||
* Created by vladi.m | ||
* Date 11/11/2020 | ||
* Time 9:50 | ||
* Copyright Taboola | ||
*/ | ||
public class CampaignItemPolicyReview { | ||
|
||
@ReadOnly | ||
private String rejectReason; | ||
|
||
public String getRejectReason() { | ||
return rejectReason; | ||
} | ||
|
||
public void setRejectReason(String rejectReason) { | ||
this.rejectReason = rejectReason; | ||
} | ||
|
||
@Override | ||
public boolean equals(Object o) { | ||
if (this == o) return true; | ||
if (o == null || getClass() != o.getClass()) return false; | ||
CampaignItemPolicyReview that = (CampaignItemPolicyReview) o; | ||
return Objects.equals(rejectReason, that.rejectReason); | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
return Objects.hash(rejectReason); | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "CampaignItemPolicyReview{" + | ||
"rejectReason='" + rejectReason + '\'' + | ||
'}'; | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
src/main/java/com/taboola/backstage/model/media/campaigns/items/CtaType.java
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,22 @@ | ||
package com.taboola.backstage.model.media.campaigns.items; | ||
|
||
/** | ||
* Created by vladi.m | ||
* Date 11/11/2020 | ||
* Time 9:52 | ||
* Copyright Taboola | ||
*/ | ||
public enum CtaType { | ||
DOWNLOAD, | ||
INSTALL_NOW, | ||
LEARN_MORE, | ||
SHOP_NOW, | ||
CLICK_HERE, | ||
SIGN_UP, | ||
PLAY_NOW, | ||
READ_MORE, | ||
GET_QUOTE, | ||
GET_OFFER, | ||
TRY_NOW, | ||
NONE | ||
} |
52 changes: 52 additions & 0 deletions
52
src/main/java/com/taboola/backstage/model/media/campaigns/items/FocusCoordinates.java
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,52 @@ | ||
package com.taboola.backstage.model.media.campaigns.items; | ||
|
||
import java.util.Objects; | ||
|
||
/** | ||
* Created by vladi.m | ||
* Date 11/11/2020 | ||
* Time 9:54 | ||
* Copyright Taboola | ||
*/ | ||
public class FocusCoordinates { | ||
private int x; | ||
private int y; | ||
|
||
public int getX() { | ||
return x; | ||
} | ||
|
||
public void setX(int x) { | ||
this.x = x; | ||
} | ||
|
||
public int getY() { | ||
return y; | ||
} | ||
|
||
public void setY(int y) { | ||
this.y = y; | ||
} | ||
|
||
@Override | ||
public boolean equals(Object o) { | ||
if (this == o) return true; | ||
if (o == null || getClass() != o.getClass()) return false; | ||
FocusCoordinates that = (FocusCoordinates) o; | ||
return x == that.x && | ||
y == that.y; | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
return Objects.hash(x, y); | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "FocusCoordinates{" + | ||
"x=" + x + | ||
", y=" + y + | ||
'}'; | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
src/main/java/com/taboola/backstage/model/media/campaigns/items/FocusType.java
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,12 @@ | ||
package com.taboola.backstage.model.media.campaigns.items; | ||
|
||
/** | ||
* Created by vladi.m | ||
* Date 11/11/2020 | ||
* Time 9:54 | ||
* Copyright Taboola | ||
*/ | ||
public enum FocusType { | ||
AUTOMATIC, | ||
COORDINATES | ||
} |