All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.mediamath.terminalone.models.Strategy Maven / Gradle / Ivy

There is a newer version: 1.2.2
Show newest version
/*******************************************************************************
 * Copyright 2016 MediaMath
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *   http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 ******************************************************************************/

package com.mediamath.terminalone.models;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import javax.ws.rs.core.Form;

public class Strategy implements T1Entity {

	private static final String entityName = "Strategy";

	public enum audSegExc {
		AND, OR
	}

	public enum audSegInc {
		AND, OR
	}

	public enum tgtSegExc {
		AND, OR
	}

	public enum tgtSegInc {
		AND, OR
	}

	public enum freqInt {
		hour("hour"), day("day"), week("week"), month("month"), campaign("campaign"), not_applicable("not-applcable");
		String value;

		freqInt(String s) {
			value = s;
		}
	} // should be not-applicable

	public enum freqType {
		even("even"), asap("asap"), no_limit("no-limit");

		String value;

		freqType(String s) {
			value = s;
		}
	} // should be no-limit

	public enum goalType {
		spend("spend"), reach("reach"), cpc("cpc"), cpa("cpa"), roi("roi");

		String value;

		goalType(String s) {
			value = s;
		}
	}

	public enum mediaType {
		DISPLAY, VIDEO
	}

	public enum pacInt {
		hour("hour"), day("day");

		String value;

		pacInt(String s) {
			value = s;
		}
	}

	public enum pacType {
		even("even"), asap("asap");

		String value;

		pacType(String s) {
			value = s;
		}
	}

	public enum siteSelect {
		MATHSELECT_250, EXCLUDE_UGC, ALL, REDUCED
	}

	public enum supplyType {
		RTB, RMX_API, T1_RMX
	}

	public enum type {
		REM, GBO, AUD
	}

	private audSegExc audience_segment_exclude_op;
	private audSegInc audience_segment_include_op;
	private float bid_aggressiveness;
	private boolean bid_price_is_media_only;
	private ArrayList budget = new ArrayList();
	private int campaign_id;
	private String created_on;
	private String currency_code;
	private String description;
	private ArrayList effective_goal_value = new ArrayList();
	private Date end_date;
	private String feature_compatibility;
	private int frequency_amount;
	private freqInt frequency_interval;
	private boolean frequency_optimization;
	private freqType frequency_type;
	private goalType goal_type;
	private ArrayList goal_value = new ArrayList();
	private int id;
	private int impression_cap;
	private freqType impression_cap_type;
	private int impression_pacing_amount;
	private freqType impression_pacing_type;
	private freqInt impression_pacing_interval;
	private ArrayList max_bid = new ArrayList();
	private mediaType media_type;
	private ArrayList min_bid = new ArrayList();
	private String name;
	private ArrayList pacing_amount = new ArrayList();
	private pacInt pacing_interval;
	private pacType pacing_type;
	private ArrayList roi_target = new ArrayList();
	private String pixel_target_expr;
	private ArrayList includePixels = new ArrayList();
	private ArrayList excludePixels = new ArrayList();
	private boolean run_on_all_exchanges;
	private boolean run_on_all_pmp;
	private boolean run_on_display;
	private boolean run_on_mobile;
	private boolean run_on_streaming;
	private boolean site_restriction_transparent_urls;
	private siteSelect site_selectiveness;
	private Date start_date;
	private boolean status;
	private supplyType supply_type;
	private tgtSegExc targeting_segment_exclude_op;
	private tgtSegInc targeting_segment_include_op;
	private type type;
	private String updated_on;
	private boolean use_campaign_end;
	private boolean use_campaign_start;
	private boolean use_mm_freq;
	private boolean use_optimization;
	private int version;
	private String zone_name;
	private Aggregate aggregate;

	private Campaign campaign;

	List strategy_domain_restrictions = new ArrayList();
	List audience_segments = new ArrayList();
	List targeting_segments = new ArrayList();
	List target_values = new ArrayList();
	List concepts = new ArrayList();
	List strategyAudienceSegments = new ArrayList();
	List strategyTargetingSegments = new ArrayList();
	List strategyDayParts = new ArrayList();
	List strategyTarget = new ArrayList();
	List deals = new ArrayList<>();
	List dealIds = new ArrayList<>();

	private List site_lists = new ArrayList();

	public audSegExc getAudienceSegmentExcludeOp() {
		return audience_segment_exclude_op;
	}

	public void setAudienceSegmentExcludeOp(audSegExc audience_segment_exclude_op) {
		this.audience_segment_exclude_op = audience_segment_exclude_op;
	}

	public audSegInc getAudienceSegmentIncludeOp() {
		return audience_segment_include_op;
	}

	public void setAudienceSegmentIncludeOp(audSegInc audience_segment_include_op) {
		this.audience_segment_include_op = audience_segment_include_op;
	}

	public float getBidAggresiveness() {
		return bid_aggressiveness;
	}

	public void setBidAggresiveness(float bid_aggresiveness) {
		this.bid_aggressiveness = bid_aggresiveness;
	}

	public boolean isBidPriceIsMediaOnly() {
		return bid_price_is_media_only;
	}

	public void setBidPriceIsMediaOnly(boolean bid_price_is_media_only) {
		this.bid_price_is_media_only = bid_price_is_media_only;
	}

	public int getCampaignId() {
		return campaign_id;
	}

	public void setCampaignId(int campaign_id) {
		this.campaign_id = campaign_id;
	}

	public String getCreatedOn() {
		return created_on;
	}

	public void setCreatedOn(String created_on) {
		this.created_on = created_on;
	}

	public String getCurrencyCode() {
		return currency_code;
	}

	public void setCurrencyCode(String currency_code) {
		this.currency_code = currency_code;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getFeatureCompatibility() {
		return feature_compatibility;
	}

	public void setFeatureCompatibility(String feature_compatibility) {
		this.feature_compatibility = feature_compatibility;
	}

	public freqInt getFrequencyInterval() {
		return frequency_interval;
	}

	public void setFrequencyInterval(freqInt frequency_interval) {
		this.frequency_interval = frequency_interval;
	}

	public boolean isFrequencyOptimization() {
		return frequency_optimization;
	}

	public void setFrequencyOptimization(boolean frequency_optimization) {
		this.frequency_optimization = frequency_optimization;
	}

	public freqType getFrequencyType() {
		return frequency_type;
	}

	public void setFrequencyType(freqType frequency_type) {
		this.frequency_type = frequency_type;
	}

	public goalType getGoalType() {
		return goal_type;
	}

	public void setGoalType(goalType goal_type) {
		this.goal_type = goal_type;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getImpressionCap() {
		return impression_cap;
	}

	public void setImpressionCap(int impression_cap) {
		this.impression_cap = impression_cap;
	}

	public freqType getImpressionCapType() {
		return impression_cap_type;
	}

	public void setImpressionCapType(freqType impression_cap_type) {
		this.impression_cap_type = impression_cap_type;
	}

	public int getImpressionPacingAmount() {
		return impression_pacing_amount;
	}

	public void setImpressionPacingAmount(int impression_pacing_amount) {
		this.impression_pacing_amount = impression_pacing_amount;
	}

	public freqType getImpressionPacingType() {
		return impression_pacing_type;
	}

	public void setImpressionPacingType(freqType impression_pacing_type) {
		this.impression_pacing_type = impression_pacing_type;
	}

	public freqInt getImpressionPacingInterval() {
		return impression_pacing_interval;
	}

	public void setImpressionPacingInterval(freqInt impression_pacing_interval) {
		this.impression_pacing_interval = impression_pacing_interval;
	}

	public mediaType getMediaType() {
		return media_type;
	}

	public void setMediaType(mediaType media_type) {
		this.media_type = media_type;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public pacInt getPacingInterval() {
		return pacing_interval;
	}

	public void setPacingInterval(pacInt pacing_interval) {
		this.pacing_interval = pacing_interval;
	}

	public pacType getPacingType() {
		return pacing_type;
	}

	public void setPacingType(pacType pacing_type) {
		this.pacing_type = pacing_type;
	}

	public String getPixelTargetExpr() {
		return pixel_target_expr;
	}

	public void setPixelTargetExpr(String pixel_target_expr) {
		this.pixel_target_expr = pixel_target_expr;
	}

	public boolean isRunOnAllExchanges() {
		return run_on_all_exchanges;
	}

	public void setRunOnAllExchanges(boolean run_on_all_exchanges) {
		this.run_on_all_exchanges = run_on_all_exchanges;
	}

	public boolean isRunOnAllPmp() {
		return run_on_all_pmp;
	}

	public void setRunOnAllPmp(boolean run_on_all_pmp) {
		this.run_on_all_pmp = run_on_all_pmp;
	}

	public boolean isRunOnDisplay() {
		return run_on_display;
	}

	public void setRunOnDisplay(boolean run_on_display) {
		this.run_on_display = run_on_display;
	}

	public boolean isRunOnMobile() {
		return run_on_mobile;
	}

	public void setRunOnMobile(boolean run_on_mobile) {
		this.run_on_mobile = run_on_mobile;
	}

	public boolean isRunOnStreaming() {
		return run_on_streaming;
	}

	public void setRunOnStreaming(boolean run_on_streaming) {
		this.run_on_streaming = run_on_streaming;
	}

	public boolean isSiteRestrictionTransparentUrls() {
		return site_restriction_transparent_urls;
	}

	public void setSiteRestrictionTransparentUrls(boolean site_restriction_transparent_urls) {
		this.site_restriction_transparent_urls = site_restriction_transparent_urls;
	}

	public siteSelect getSiteSelectiveness() {
		return site_selectiveness;
	}

	public void setSiteSelectiveness(siteSelect site_selectiveness) {
		this.site_selectiveness = site_selectiveness;
	}

	public boolean isStatus() {
		return status;
	}

	public void setStatus(boolean status) {
		this.status = status;
	}

	public supplyType getSupplyType() {
		return supply_type;
	}

	public void setSupplyType(supplyType supply_type) {
		this.supply_type = supply_type;
	}

	public tgtSegExc getTargetingSegmentExcludeOp() {
		return targeting_segment_exclude_op;
	}

	public void setTargetingSegmentExcludeOp(tgtSegExc targeting_segment_exclude_op) {
		this.targeting_segment_exclude_op = targeting_segment_exclude_op;
	}

	public tgtSegInc getTargetingSegmentIncludeOp() {
		return targeting_segment_include_op;
	}

	public void setTargetingSegmentIncludeOp(tgtSegInc targeting_segment_include_op) {
		this.targeting_segment_include_op = targeting_segment_include_op;
	}

	public type getType() {
		return type;
	}

	public void setType(type type) {
		this.type = type;
	}

	public String getUpdatedOn() {
		return updated_on;
	}

	public void setUpdatedOn(String updated_on) {
		this.updated_on = updated_on;
	}

	public boolean isUseCampaignEnd() {
		return use_campaign_end;
	}

	public void setUseCampaignEnd(boolean use_campaign_end) {
		this.use_campaign_end = use_campaign_end;
	}

	public boolean isUseCampaignStart() {
		return use_campaign_start;
	}

	public void setUseCampaignStart(boolean use_campaign_start) {
		this.use_campaign_start = use_campaign_start;
	}

	public boolean isUseMmFreq() {
		return use_mm_freq;
	}

	public void setUseMmFreq(boolean use_mm_freq) {
		this.use_mm_freq = use_mm_freq;
	}

	public boolean isUseOptimization() {
		return use_optimization;
	}

	public void setUseOptimization(boolean use_optimization) {
		this.use_optimization = use_optimization;
	}

	public int getVersion() {
		return version;
	}

	public void setVersion(int version) {
		this.version = version;
	}

	@Override
	public String getEntityname() {
		return entityName;
	}

	public String getZoneName() {
		return zone_name;
	}

	public void setZoneName(String zone_name) {
		this.zone_name = zone_name;
	}

	public List getStrategyDomainRestrictions() {
		return strategy_domain_restrictions;
	}

	public void setStrategyDomainRestrictions(List strategy_domain_restrictions) {
		this.strategy_domain_restrictions = strategy_domain_restrictions;
	}

	public List getAudienceSegments() {
		return audience_segments;
	}

	public void setAudienceSegments(List audience_segments) {
		this.audience_segments = audience_segments;
	}

	public List getTargetValues() {
		return target_values;
	}

	public void setTargetValues(List target_values) {
		this.target_values = target_values;
	}

	public Campaign getCampaign() {
		return campaign;
	}

	public void setCampaign(Campaign campaign) {
		this.campaign = campaign;
	}

	public List getConcepts() {
		return concepts;
	}

	public void setConcepts(List concepts) {
		this.concepts = concepts;
	}

	public Date getEndDate() {
		return end_date;
	}

	public void setEndDate(Date end_date) {
		this.end_date = end_date;
	}

	public Date getStartDate() {
		return start_date;
	}

	public void setStartDate(Date start_date) {
		this.start_date = start_date;
	}

	public int getFrequencyAmount() {
		return frequency_amount;
	}

	public void setFrequencyAmount(int frequency_amount) {
		this.frequency_amount = frequency_amount;
	}

	public ArrayList getBudget() {
		return budget;
	}

	public void setBudget(ArrayList budget) {
		this.budget = budget;
	}

	public void setBudget(float budget) {
		Currency currency = new Currency();
		currency.setValue(budget);
		this.budget.add(currency);
	}

	public ArrayList getEffectiveGoalValue() {
		return effective_goal_value;
	}

	public void setEffectiveGoalValue(ArrayList effective_goal_value) {
		this.effective_goal_value = effective_goal_value;
	}

	public void setEffectiveGoalValue(float effective_goal_value) {
		Currency currency = new Currency();
		currency.setValue(effective_goal_value);
		this.effective_goal_value.add(currency);
	}

	public ArrayList getGoalValue() {
		return goal_value;
	}

	public void setGoalValue(ArrayList goal_value) {
		this.goal_value = goal_value;
	}

	public void setGoalValue(float goal_value) {
		Currency currency = new Currency();
		currency.setValue(goal_value);
		this.goal_value.add(currency);
	}

	public void setGoalValue(String goal_value) {
		Currency currency = new Currency();
		currency.setValue(Float.valueOf(goal_value));
		this.goal_value.add(currency);
	}

	public ArrayList getMaxBid() {
		return max_bid;
	}

	public void setMaxBid(ArrayList max_bid) {
		this.max_bid = max_bid;
	}

	public void setMaxBid(float max_bid) {
		Currency currency = new Currency();
		currency.setValue(max_bid);
		this.max_bid.add(currency);
	}

	public ArrayList getMinBid() {
		return min_bid;
	}

	public void setMinBid(ArrayList min_bid) {
		this.min_bid = min_bid;
	}

	public void setMinBid(float min_bid) {
		Currency currency = new Currency();
		currency.setValue(min_bid);
		this.min_bid.add(currency);
	}

	public ArrayList getPacingAmount() {
		return pacing_amount;
	}

	public void setPacingAmount(ArrayList pacing_amount) {
		this.pacing_amount = pacing_amount;
	}

	public void setPacingAmount(float pacing_amount) {
		Currency currency = new Currency();
		currency.setValue(pacing_amount);
		this.pacing_amount.add(currency);
	}

	public ArrayList getRoiTarget() {
		return roi_target;
	}

	public void setRoiTarget(ArrayList roi_target) {
		this.roi_target = roi_target;
	}

	public void setRoiTarget(float roi_target) {
		Currency currency = new Currency();
		currency.setValue(roi_target);
		this.roi_target.add(currency);
	}

	public Aggregate getAggregate() {
		return aggregate;
	}

	public void setAggregate(Aggregate aggregate) {
		this.aggregate = aggregate;
	}

	public List getSiteLists() {
		return site_lists;
	}

	public void setSiteLists(List siteLists) {
		this.site_lists = siteLists;
	}

	public ArrayList getIncludePixels() {
		return includePixels;
	}

	public void setIncludePixels(ArrayList includePixels) {
		this.includePixels = includePixels;
	}

	public void setIncludePixels(Integer pixelId) {
		this.includePixels.add(pixelId);
	}

	public ArrayList getExcludePixels() {
		return excludePixels;
	}

	public void setExcludePixels(ArrayList excludePixels) {
		this.excludePixels = excludePixels;
	}

	public void setExcludePixels(Integer pixelId) {
		this.excludePixels.add(pixelId);
	}

	public List getStrategyAudienceSegments() {
		return strategyAudienceSegments;
	}

	public void setStrategyAudienceSegments(List strategyAudienceSegments) {
		this.strategyAudienceSegments = strategyAudienceSegments;
	}

	public List getDeals() {
		return deals;
	}

	public void setDeals(List deals) {
		this.deals = deals;
	}

	public List getDealIds() {
		return dealIds;
	}

	public void setDealIds(List dealIds) {
		this.dealIds = dealIds;
	}

	public List getTargetingSegments() {
		return targeting_segments;
	}

	public void setTargetingSegments(List targeting_segments) {
		this.targeting_segments = targeting_segments;
	}

	public List getStrategyTargetingSegments() {
		return strategyTargetingSegments;
	}

	public void setStrategyTargetingSegments(List strategyTargetingSegments) {
		this.strategyTargetingSegments = strategyTargetingSegments;
	}

	public List getStrategyDayParts() {
		return strategyDayParts;
	}

	public void setStrategyDayParts(List strategyDayParts) {
		this.strategyDayParts = strategyDayParts;
	}

	public List getStrategyTarget() {
		return strategyTarget;
	}

	public void setStrategyTarget(List strategyTarget) {
		this.strategyTarget = strategyTarget;
	}

	@Override
	public Form getForm() {
		return null;
	}

	@Override
	public String getUri() {
		return null;
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy