syntax = "proto2";

package maps_adv.adv_store.proto.error;

message Error {
    enum Type {
        SYSTEM = 0;
        SHOWING_PERIOD_START_LATER_THAN_END = 1;
        TARGETING_DOES_NOT_MATCH_SCHEMA = 2;
        INVALID_WEEK_SCHEDULE = 3;
        WRONG_SET_OF_CREATIVES_FOR_THE_CAMPAIGN_TYPE = 4;
        MONEY_QUANTITY_NOT_POSITIVE = 5;
        INVALID_TIMEZONE_NAME = 6;

        INVALID_CAMPAIGN_NAME = 7;
        PUBLICATION_ENVS_ARE_EMPTY = 8;
        PLATFORMS_ARE_EMPTY = 9;
        OBSOLETE__MULTIPLE_PLATFORMS = 22;

        PLACING_PERMALINKS_ARE_EMPTY = 10;
        PLACING_AREAS_ARE_EMPTY = 11;
        PLACING_AREA_POLYGON_IS_EMPTY = 12;

        CREATIVE_IMAGES_ARE_EMPTY = 13;
        CAMPAIGN_CREATIVES_ARE_EMPTY = 14;
        ACTION_SEARCH_ORGANIZATIONS_ARE_EMPTY = 15;

        INVALID_PLACING = 16;
        CAMPAIGN_NOT_FOUND = 17;

        INVALID_INPUT_DATA = 18;

        CAMPAIGN_NOT_IN_REVIEW = 19;
        REVIEW_COMMENT_EMPTY = 20;
        NO_ORDERS_SPECIFIED = 21;

        INVALID_BILLING = 23;
        INVALID_CAMPAIGN_TYPE_FOR_PLATFORM = 24;
        INVALID_PLACING_FOR_CAMPAIGN_TYPE = 25;

        DISCOUNTS_WITH_INTERSECTING_DATES = 26;
        BILLING_TYPED_CHANGED = 27;
        ORDER_ID_CHANGED = 28;

        CAMPAIGN_BUDGET_IS_TOO_LOW = 29;
        SHOWING_PERIOD_ENDS_IN_THE_PAST = 30;
        MULTIPLE_MAIN_ACTIONS = 31;
        INVALID_CUSTOM_PAGE_ID = 32;

        PAID_TILL_IS_TOO_SMALL = 33;
        INCONSISTENT_CREATIVES = 34;
    }
    required Type code = 1;
    optional string description = 2;
}
