oas_copy: Copy an Item in API Database

Description Usage Arguments Value Note Examples

Description

This function copies items in Xaxis for Publishers.

Usage

1
2
3
4
oas_copy(credentials, 
                    request_type='Campaign',
                     copy_attributes = NULL,
                     copy_data, verbose = FALSE)

Arguments

credentials

a character string as returned by oas_build_credentials

request_type

a character string in one of the supported object types for the API database list action

copy_attributes

a named character vector of attributes to add to the Copy node. The only acceptable parameter is "recurring".

copy_data

an XML document specifying the data to copy when creating the request_type

verbose

a boolean indicating whether messages should be printed while making the request

Value

A logical being TRUE if the copy was successful

Note

See the documentation about creating recurring copies

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
## Not run: 
my_credentials <- oas_build_credentials('myaccount', 
                                        'myusername', 
                                        'mypassword')
                                    
campgn_copy <- oas_copy(credentials=credentials, 
                        request_type='Campaign', 
                        copy_data=list(newXMLNode('Id', 'oldCampaignId'), 
                                         newXMLNode('NewId', 'newCampaignId'), 
                                         newXMLNode('CopyCreatives', 'Y'), 
                                         newXMLNode('CopyNotifications', 'Y'), 
                                         newXMLNode('CopyScheduling', 'Y'), 
                                         newXMLNode('CopyTargeting', 'Y'),
                                         newXMLNode('CopyBilling', 'Y'), 
                                         newXMLNode('CopyPages', 'Y'), 
                                         newXMLNode('CopySiteTiers', 'Y'), 
                                         newXMLNode('CopyConversionProcesses', 'Y')))

## End(Not run)

ReportMort/roas documentation built on May 9, 2019, 9:45 a.m.