Skip to content

Commit

Permalink
Add CPM_VIDEO_AD support
Browse files Browse the repository at this point in the history
  • Loading branch information
SonicGD committed Jul 24, 2019
1 parent ec8134c commit 7f458e6
Show file tree
Hide file tree
Showing 13 changed files with 169 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/services/adgroups/enum/AdGroupTypesEnum.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ class AdGroupTypesEnum extends Enum
public const MOBILE_APP_AD_GROUP = 'MOBILE_APP_AD_GROUP';
public const DYNAMIC_TEXT_AD_GROUP = 'DYNAMIC_TEXT_AD_GROUP';
public const CPM_BANNER_AD_GROUP = 'CPM_BANNER_AD_GROUP';
public const CPM_VIDEO_AD_GROUP = 'CPM_VIDEO_AD_GROUP';
}
1 change: 1 addition & 0 deletions src/services/ads/enum/AdTypeEnum.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ class AdTypeEnum extends Enum
public const IMAGE_AD = 'IMAGE_AD';
public const CPM_BANNER_AD = 'CPM_BANNER_AD';
public const CPC_VIDEO_AD = 'CPC_VIDEO_AD';
public const CPM_VIDEO_AD = 'CPM_VIDEO_AD';
}
5 changes: 5 additions & 0 deletions src/services/ads/models/AdAddItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@ class AdAddItem extends Model implements ICallbackValidation
*/
public $CpmBannerAdBuilderAd;

/**
* @var CpmVideoAdBuilderAdAdd
*/
public $CpmVideoAdBuilderAd;

/**
* @var int
* @Assert\NotBlank()
Expand Down
5 changes: 5 additions & 0 deletions src/services/ads/models/AdGetItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,11 @@ class AdGetItem extends Model
*/
public $CpmBannerAdBuilderAd;

/**
* @var CpmVideoAdBuilderAdGet
*/
public $CpmVideoAdBuilderAd;

/**
* @var int
*/
Expand Down
5 changes: 5 additions & 0 deletions src/services/ads/models/AdUpdateItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,11 @@ class AdUpdateItem extends Model implements ICallbackValidation
*/
public $CpmBannerAdBuilderAd;

/**
* @var CpmVideoAdBuilderAdUpdate
*/
public $CpmVideoAdBuilderAd;

/**
* @Assert\Callback()
* @param ExecutionContextInterface $context
Expand Down
5 changes: 5 additions & 0 deletions src/services/ads/models/CpmBannerAdBuilderAdAdd.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,9 @@ class CpmBannerAdBuilderAdAdd extends Model
* @var \directapi\common\containers\ArrayOfString
*/
public $TrackingPixels;

/**
* @var int
*/
public $TurboPageId;
}
12 changes: 11 additions & 1 deletion src/services/ads/models/CpmBannerAdBuilderAdGet.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,17 @@ class CpmBannerAdBuilderAdGet extends Model
public $Href;

/**
* @var \directapi\common\containers\ArrayOfString
* @var TrackingPixelGetArray
*/
public $TrackingPixels;

/**
* @var int
*/
public $TurboPageId;

/**
* @var \directapi\common\models\ExtensionModeration
*/
public $TurboPageModeration;
}
6 changes: 6 additions & 0 deletions src/services/ads/models/CpmBannerAdBuilderAdUpdate.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ class CpmBannerAdBuilderAdUpdate extends Model
* @var AdBuilderAdAddItem
*/
public $Creative;

/**
* @var string
*/
Expand All @@ -21,4 +22,9 @@ class CpmBannerAdBuilderAdUpdate extends Model
* @var \directapi\common\containers\ArrayOfString
*/
public $TrackingPixels;

/**
* @var int
*/
public $TurboPageId;
}
30 changes: 30 additions & 0 deletions src/services/ads/models/CpmVideoAdBuilderAdAdd.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?php


namespace directapi\services\ads\models;


use directapi\components\Model;

class CpmVideoAdBuilderAdAdd extends Model
{
/**
* @var AdBuilderAdAddItem
*/
public $Creative;

/**
* @var string
*/
public $Href;

/**
* @var \directapi\common\containers\ArrayOfString
*/
public $TrackingPixels;

/**
* @var int
*/
public $TurboPageId;
}
35 changes: 35 additions & 0 deletions src/services/ads/models/CpmVideoAdBuilderAdGet.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<?php


namespace directapi\services\ads\models;


use directapi\components\Model;

class CpmVideoAdBuilderAdGet extends Model
{
/**
* @var AdBuilderAdGetItem
*/
public $Creative;

/**
* @var string
*/
public $Href;

/**
* @var TrackingPixelGetArray
*/
public $TrackingPixels;

/**
* @var int
*/
public $TurboPageId;

/**
* @var \directapi\common\models\ExtensionModeration
*/
public $TurboPageModeration;
}
30 changes: 30 additions & 0 deletions src/services/ads/models/CpmVideoAdBuilderAdUpdate.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?php


namespace directapi\services\ads\models;


use directapi\components\Model;

class CpmVideoAdBuilderAdUpdate extends Model
{
/**
* @var AdBuilderAdAddItem
*/
public $Creative;

/**
* @var string
*/
public $Href;

/**
* @var \directapi\common\containers\ArrayOfString
*/
public $TrackingPixels;

/**
* @var int
*/
public $TurboPageId;
}
15 changes: 15 additions & 0 deletions src/services/ads/models/TrackingPixelGetArray.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php


namespace directapi\services\ads\models;


use directapi\components\Model;

class TrackingPixelGetArray extends Model
{
/**
* @var TrackingPixelGetItem[]
*/
public $Items = [];
}
20 changes: 20 additions & 0 deletions src/services/ads/models/TrackingPixelGetItem.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?php


namespace directapi\services\ads\models;


use directapi\components\Model;

class TrackingPixelGetItem extends Model
{
/**
* @var string
*/
public $TrackingPixel;

/**
* @var string
*/
public $Provider;
}

0 comments on commit 7f458e6

Please sign in to comment.