@@ -27,9 +27,9 @@ myuuid <- paste(
27
27
)
28
28
29
29
options(rdfp.network_code = rdfp_options $ test_network_code )
30
- request_data <- data.frame (name = paste0(' Shift - ' , myuuid ),
31
- description = ' The shift that this user usually works .' ,
32
- entityType = ' USER ' ,
30
+ request_data <- data.frame (name = paste0(' Timing - ' , myuuid ),
31
+ description = ' The time of that this creative usually runs .' ,
32
+ entityType = ' CREATIVE ' ,
33
33
dataType = ' DROP_DOWN' ,
34
34
visibility = ' FULL' )
35
35
dfp_createCustomFields_result <- dfp_createCustomFields(request_data )
@@ -62,7 +62,7 @@ test_that("dfp_getCustomFieldOption", {
62
62
test_that(" dfp_getCustomFieldsByStatement" , {
63
63
64
64
options(rdfp.network_code = rdfp_options $ test_network_code )
65
- request_data <- list (' filterStatement' = list (' query' = paste0(" WHERE name='Shift - " , myuuid , " '" )))
65
+ request_data <- list (' filterStatement' = list (' query' = paste0(" WHERE name='Timing - " , myuuid , " '" )))
66
66
67
67
dfp_getCustomFieldsByStatement_result <- dfp_getCustomFieldsByStatement(request_data )
68
68
@@ -89,9 +89,9 @@ test_that("dfp_updateCustomFields", {
89
89
90
90
options(rdfp.network_code = rdfp_options $ test_network_code )
91
91
request_data <- data.frame (id = dfp_createCustomFields_result $ id ,
92
- name = paste0(' Shift - ' , myuuid , ' 2' ),
93
- description = ' The shift that this user usually works .' ,
94
- entityType = ' USER ' ,
92
+ name = paste0(' Timing - ' , myuuid , ' 2' ),
93
+ description = ' The time of that this creative usually runs .' ,
94
+ entityType = ' CREATIVE ' ,
95
95
dataType = ' DROP_DOWN' ,
96
96
visibility = ' FULL' )
97
97
dfp_updateCustomFields_result <- dfp_updateCustomFields(request_data )
@@ -103,10 +103,9 @@ test_that("dfp_performCustomFieldAction", {
103
103
104
104
options(rdfp.network_code = rdfp_options $ test_network_code )
105
105
request_data <- list (customFieldAction = ' DeactivateCustomFields' ,
106
- filterStatement = list (' query' = paste0(" WHERE name = 'Shift - " , myuuid , " 2'" )))
106
+ filterStatement = list (' query' = paste0(" WHERE name = 'Timing - " , myuuid , " 2'" )))
107
107
108
108
dfp_performCustomFieldAction_result <- dfp_performCustomFieldAction(request_data )
109
-
110
109
expect_is(dfp_performCustomFieldAction_result , " data.frame" )
111
110
expect_true(all(c(' numChanges' ) %in% names(dfp_performCustomFieldAction_result )))
112
111
expect_equal(dfp_performCustomFieldAction_result $ numChanges , 1 )
0 commit comments