Description Usage Arguments Details Value See Also Examples
Provides methods for creating, updating and retrieving Order objects.
1 | dfp_createOrders(request_data, as_df = TRUE, verbose = FALSE)
|
request_data |
a |
as_df |
a boolean indicating whether to attempt to parse the result into
a |
verbose |
a boolean indicating whether to print the service URL and POSTed XML |
An order is a grouping of LineItem objects. Line items have a many-to-one relationship with orders, meaning each line item can belong to only one order, but orders can have multiple line items. An order can be used to manage the line items it contains.
createOrders
Creates new Order objects.
a data.frame
or list
containing all the elements of a createOrdersResponse
Google Documentation for createOrders
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | ## Not run:
request_data <- list('filterStatement'=list('query'="WHERE name = 'TestCompany1'"))
dfp_getCompaniesByStatement_result <- dfp_getCompaniesByStatement(request_data)
request_data <- list(list(name='TestOrder',
startDateTime=list(date=list(year=2018, month=12, day=1),
hour=0,
minute=0,
second=0,
timeZoneID='America/New_York'),
endDateTime=list(date=list(year=2018, month=12, day=31),
hour=23,
minute=59,
second=59,
timeZoneID='America/New_York'),
notes='API Test Order',
externalOrderId=99999,
advertiserId=dfp_getCompaniesByStatement_result$id,
traffickerId=dfp_getCurrentUser()$id))
dfp_createOrders_result <- dfp_createOrders(request_data)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.