Skip to content

Commit

Permalink
Merge pull request #40 from KMETb/priority-goals-peration
Browse files Browse the repository at this point in the history
Priority goals peration
  • Loading branch information
pogromistik authored Oct 21, 2019
2 parents 70e4e67 + f1d8e1a commit 8aa0cab
Show file tree
Hide file tree
Showing 9 changed files with 75 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/services/bidmodifiers/enum/BidModifierTypeEnum.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

class BidModifierTypeEnum extends Enum
{
public const MOBILE_ADJUSTMENT = 'MOBILE_ADJUSTMENT';
public const DEMOGRAPHICS_ADJUSTMENT = 'DEMOGRAPHICS_ADJUSTMENT';
public const RETARGETING_ADJUSTMENT = 'RETARGETING_ADJUSTMENT';
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@
class MobileAdjustmentFieldEnum extends Enum
{
public const BID_MODIFIER = 'BidModifier';
public const OPERATING_SYSTEM_TYPE = 'OperatingSystemType';
}
12 changes: 12 additions & 0 deletions src/services/bidmodifiers/enum/OperatingSystemTypeEnum.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php

namespace directapi\services\bidmodifiers\enum;


use directapi\components\Enum;

class OperatingSystemTypeEnum extends Enum
{
public const IOS = 'IOS';
public const ANDROID = 'ANDROID';
}
6 changes: 6 additions & 0 deletions src/services/bidmodifiers/models/MobileAdjustmentAdd.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace directapi\services\bidmodifiers\models;

use directapi\components\Model;
use directapi\services\bidmodifiers\enum\OperatingSystemTypeEnum;
use Symfony\Component\Validator\Constraints as Assert;

class MobileAdjustmentAdd extends Model
Expand All @@ -16,4 +17,9 @@ class MobileAdjustmentAdd extends Model
* )
*/
public $BidModifier;

/**
* @var OperatingSystemTypeEnum
*/
public $OperatingSystemType;
}
6 changes: 6 additions & 0 deletions src/services/bidmodifiers/models/MobileAdjustmentGet.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,17 @@


use directapi\components\Model;
use directapi\services\bidmodifiers\enum\OperatingSystemTypeEnum;

class MobileAdjustmentGet extends Model
{
/**
* @var int
*/
public $BidModifier;

/**
* @var OperatingSystemTypeEnum
*/
public $OperatingSystemType;
}
4 changes: 2 additions & 2 deletions src/services/campaigns/models/CampaignUpdateItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,9 @@ class CampaignUpdateItem extends Model
public $Notification;

/**
* @var TextCampaignItem
* @var TextCampaignUpdateItem
* @Assert\Valid()
* @Assert\Type(type="directapi\services\campaigns\models\TextCampaignItem")
* @Assert\Type(type="directapi\services\campaigns\models\TextCampaignUpdateItem")
*/
public $TextCampaign;

Expand Down
15 changes: 15 additions & 0 deletions src/services/campaigns/models/PriorityGoalsUpdateItem.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php

namespace directapi\services\campaigns\models;

use directapi\components\Model;
use directapi\services\campaigns\models\PriorityGoalsItem;

class PriorityGoalsUpdateItem extends PriorityGoalsItem
{
/**
* @var string
*/
public $Operation = 'SET';

}
14 changes: 14 additions & 0 deletions src/services/campaigns/models/PriorityGoalsUpdateSetting.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?php

namespace directapi\services\campaigns\models;

use directapi\components\Model;

class PriorityGoalsUpdateSetting extends Model
{

/**
* @var PriorityGoalsUpdateItem[]
*/
public $Items = [];
}
18 changes: 18 additions & 0 deletions src/services/campaigns/models/TextCampaignUpdateItem.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?php

namespace directapi\services\campaigns\models;

use directapi\components\constraints as DirectApiAssert;
use directapi\components\Model;
use Symfony\Component\Validator\Constraints as Assert;
use directapi\services\campaigns\models\TextCampaignItem;

class TextCampaignUpdateItem extends TextCampaignItem
{
/**
* @var PriorityGoalsUpdateSetting
* @Assert\Valid()
* @Assert\Type(type="directapi\services\campaigns\models\PriorityGoalsUpdateSetting")
*/
public $PriorityGoals;
}

0 comments on commit 8aa0cab

Please sign in to comment.