|
7 | 7 | import com.taboola.backstage.model.media.campaigns.items.CampaignItemMassiveCreationOperation; |
8 | 8 | import com.taboola.backstage.model.media.campaigns.items.CampaignItemMassiveOperation; |
9 | 9 | import com.taboola.backstage.model.media.campaigns.items.CampaignItemMassiveUpdateOperation; |
| 10 | +import com.taboola.backstage.model.media.campaigns.items.CampaignPerformanceVideoItem; |
| 11 | +import com.taboola.backstage.model.media.campaigns.items.PerformanceVideoBulkCreateOperation; |
| 12 | +import com.taboola.backstage.model.media.campaigns.items.PerformanceVideoBulkUpdateOperation; |
10 | 13 |
|
11 | 14 | import retrofit2.http.*; |
12 | 15 |
|
@@ -103,4 +106,53 @@ CampaignItem deleteItem(@Header("Authorization") String accessToken, |
103 | 106 | @Path("account_id") String accountId, |
104 | 107 | @Path("campaign_id") String campaignId, |
105 | 108 | @Path("item_id") String itemId) throws BackstageAPIException; |
| 109 | + |
| 110 | + @GET(BackstagePaths.BACKSTAGE_API_PATH_PREFIX + "/{account_id}/campaigns/{campaign_id}/performance-video/items") |
| 111 | + @Headers("Content-Type: application/json") |
| 112 | + Results<CampaignPerformanceVideoItem> getVideoCreatives(@Header("Authorization") String authToken, |
| 113 | + @Path("account_id") String accountId, |
| 114 | + @Path("campaign_id") String campaignId) throws BackstageAPIException; |
| 115 | + |
| 116 | + @GET(BackstagePaths.BACKSTAGE_API_PATH_PREFIX + "/{account_id}/campaigns/{campaign_id}/performance-video/items/{creative_id}") |
| 117 | + @Headers("Content-Type: application/json") |
| 118 | + CampaignPerformanceVideoItem getVideoCreative(@Header("Authorization") String authToken, |
| 119 | + @Path("account_id") String accountId, |
| 120 | + @Path("campaign_id") String campaignId, |
| 121 | + @Path("creative_id") String creativeId) throws BackstageAPIException; |
| 122 | + |
| 123 | + @POST(BackstagePaths.BACKSTAGE_API_PATH_PREFIX + "/{account_id}/campaigns/{campaign_id}/performance-video/items") |
| 124 | + @Headers("Content-Type: application/json") |
| 125 | + CampaignPerformanceVideoItem insertVideoCreative(@Header("Authorization") String accessToken, |
| 126 | + @Path("account_id") String accountId, |
| 127 | + @Path("campaign_id") String campaignId, |
| 128 | + @Body CampaignPerformanceVideoItem newItem) throws BackstageAPIException; |
| 129 | + |
| 130 | + @PUT(BackstagePaths.BACKSTAGE_API_PATH_PREFIX + "/{account_id}/campaigns/{campaign_id}/performance-video/items/{creative_id}") |
| 131 | + @Headers("Content-Type: application/json") |
| 132 | + CampaignPerformanceVideoItem updateVideoCreative(@Header("Authorization") String accessToken, |
| 133 | + @Path("account_id") String accountId, |
| 134 | + @Path("campaign_id") String campaignId, |
| 135 | + @Path("creative_id") String creativeId, |
| 136 | + @Query("bypass_url_response_validation") boolean bypassUrlResponseValidation, |
| 137 | + @Body CampaignPerformanceVideoItem updatePojo) throws BackstageAPIException; |
| 138 | + |
| 139 | + @DELETE(BackstagePaths.BACKSTAGE_API_PATH_PREFIX + "/{account_id}/campaigns/{campaign_id}/performance-video/items/{creative_id}") |
| 140 | + @Headers("Content-Type: application/json") |
| 141 | + CampaignPerformanceVideoItem deleteVideoCreative(@Header("Authorization") String accessToken, |
| 142 | + @Path("account_id") String accountId, |
| 143 | + @Path("campaign_id") String campaignId, |
| 144 | + @Path("creative_id") String creativeId) throws BackstageAPIException; |
| 145 | + |
| 146 | + @PUT(BackstagePaths.BACKSTAGE_API_PATH_PREFIX + "/{account_id}/items/bulk/performance-video") |
| 147 | + @Headers("Content-Type: application/json") |
| 148 | + Results<CampaignPerformanceVideoItem> bulkCreateVideo(@Header("Authorization") String accessToken, |
| 149 | + @Path("account_id") String accountId, |
| 150 | + @Body PerformanceVideoBulkCreateOperation create) throws BackstageAPIException; |
| 151 | + |
| 152 | + @POST(BackstagePaths.BACKSTAGE_API_PATH_PREFIX + "/{account_id}/items/bulk/performance-video") |
| 153 | + @Headers("Content-Type: application/json") |
| 154 | + Results<CampaignPerformanceVideoItem> bulkUpdateVideo(@Header("Authorization") String accessToken, |
| 155 | + @Path("account_id") String accountId, |
| 156 | + @Query("bypass_url_response_validation") boolean bypassUrlResponseValidation, |
| 157 | + @Body PerformanceVideoBulkUpdateOperation update) throws BackstageAPIException; |
106 | 158 | } |
0 commit comments