Title: | An Implementation of the 'DoubleClick for Publishers' API |
---|---|
Description: | Functions to interact with the 'Google DoubleClick for Publishers (DFP)' API <https://developers.google.com/ad-manager/api/start> (recently renamed to 'Google Ad Manager'). This package is automatically compiled from the API WSDL (Web Service Description Language) files to dictate how the API is structured. Theoretically, all API actions are possible using this package; however, care must be taken to format the inputs correctly and parse the outputs correctly. Please see the 'Google Ad Manager' API reference <https://developers.google.com/ad-manager/api/rel_notes> and this package's website <https://stevenmmortimer.github.io/rdfp/> for more information, documentation, and examples. |
Authors: | Steven M. Mortimer [aut, cre], Jennifer Bryan [ctb], Joanna Zhao [ctb] |
Maintainer: | Steven M. Mortimer <[email protected]> |
License: | MIT + file LICENSE |
Version: | 0.1.4.9000 |
Built: | 2024-11-01 03:38:54 UTC |
Source: | https://github.com/stevenmmortimer/rdfp |
rdfp
Authorize rdfp
to access your Google user data. You will be
directed to a web browser, asked to sign in to your Google account, and to
grant rdfp
access to user data for Double Click for Publishers.
These user credentials are cached in a file named .httr-oauth
in
the current working directory, from where they can be automatically refreshed,
as necessary.
dfp_auth(token = NULL, new_user = FALSE, addtl_scopes = c("https://spreadsheets.google.com/feeds", "https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/spreadsheets", "https://www.googleapis.com/auth/presentations", "https://www.googleapis.com/auth/analytics", "https://www.googleapis.com/auth/yt-analytics.readonly", "https://www.googleapis.com/auth/gmail.readonly", "https://www.googleapis.com/auth/gmail.compose", "https://www.googleapis.com/auth/gmail.send"), key = getOption("rdfp.client_id"), secret = getOption("rdfp.client_secret"), cache = getOption("rdfp.httr_oauth_cache"), verbose = TRUE)
dfp_auth(token = NULL, new_user = FALSE, addtl_scopes = c("https://spreadsheets.google.com/feeds", "https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/spreadsheets", "https://www.googleapis.com/auth/presentations", "https://www.googleapis.com/auth/analytics", "https://www.googleapis.com/auth/yt-analytics.readonly", "https://www.googleapis.com/auth/gmail.readonly", "https://www.googleapis.com/auth/gmail.compose", "https://www.googleapis.com/auth/gmail.send"), key = getOption("rdfp.client_id"), secret = getOption("rdfp.client_secret"), cache = getOption("rdfp.httr_oauth_cache"), verbose = TRUE)
token |
an actual token object or the path to a valid token stored as an
|
new_user |
logical, defaults to |
addtl_scopes |
character, strings that indicate additional Google services the client should authorize. Use this when trying to generate a token that will work to authenticate to other packages using Google services, such as the googlesheets package or RGoogleAnalytics package. |
key , secret
|
the "Client ID" and "Client secret" for the application |
cache |
logical indicating if |
verbose |
a logical indicating if messages should be printed |
Most users, most of the time, do not need to call this function explicitly – it will be triggered by the first action that requires authorization. Even when called, the default arguments will often suffice. However, when necessary, this function allows the user to
store a token – the token is invisibly returned and can be assigned
to an object or written to an .rds
file
read the token from an .rds
file or pre-existing object in the
workspace
provide your own app key and secret – this requires setting up a new project in Google Developers Console
prevent caching of credentials in .httr-oauth-rdfp
In a call to dfp_auth
, the user can provide the token, app key and
secret explicitly and can dictate whether credentials will be cached in
.httr-oauth-rdfp
. They must be specified.
To set options in a more persistent way, predefine one or more of
them with lines like this in a .Rprofile
file:
options(rdfp.network_code = "12345678", rdfp.application_name = "MyApp", rdfp.client_id = "012345678901-99thisisatest99.apps.googleusercontent.com", rdfp.client_secret = "Th1s1sMyC1ientS3cr3t", rdfp.httr_oauth_cache = FALSE)
See Startup
for possible locations for this file and the
implications thereof.
More detail is available from Using OAuth 2.0 to Access Google APIs.
an OAuth token object, specifically a
Token2.0
, invisibly
Provides methods for creating, updating and retrieving Activity objects.
dfp_createActivities(request_data, as_df = TRUE, verbose = FALSE)
dfp_createActivities(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 activity group contains Activity objects. Activities have a many-to-one relationship with activity groups, meaning each activity can belong to only one activity group, but activity groups can have multiple activities. An activity group can be used to manage the activities it contains.
createActivities
Creates a new Activity objects.
a data.frame
or list
containing all the elements of a createActivitiesResponse
Google Documentation for createActivities
## Not run: res <- dfp_createActivities(request_data) ## End(Not run)
## Not run: res <- dfp_createActivities(request_data) ## End(Not run)
Provides methods for creating, updating and retrieving ActivityGroup objects. An activity group contains Activity objects. Activities have a many-to-one relationship with activity groups, meaning each activity can belong to only one activity group, but activity groups can have multiple activities. An activity group can be used to manage the activities it contains.
dfp_createActivityGroups(request_data, as_df = TRUE, verbose = FALSE)
dfp_createActivityGroups(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 |
createActivityGroups
Creates a new ActivityGroup objects.
a data.frame
or list
containing all the elements of a createActivityGroupsResponse
Google Documentation for createActivityGroups
## Not run: res <- dfp_createActivityGroups(request_data) ## End(Not run)
## Not run: res <- dfp_createActivityGroups(request_data) ## End(Not run)
Provides methods for creating, updating and retrieving AdExclusionRule objects. An AdExclusionRule provides a way to block specified ads from showing on portions of your site. Each rule specifies the inventory on which the rule is in effect, and the labels to block on that inventory.
dfp_createAdExclusionRules(request_data, as_df = TRUE, verbose = FALSE)
dfp_createAdExclusionRules(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 |
createAdExclusionRules
Creates new AdExclusionRule objects.
a data.frame
or list
containing all the elements of a createAdExclusionRulesResponse
Google Documentation for createAdExclusionRules
## Not run: res <- dfp_createAdExclusionRules(request_data) ## End(Not run)
## Not run: res <- dfp_createAdExclusionRules(request_data) ## End(Not run)
Provides methods for creating, updating and retrieving AdRule objects.
dfp_createAdRules(request_data, as_df = TRUE, verbose = FALSE)
dfp_createAdRules(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 |
Ad rules contain data that the ad server uses to generate a playlist of video ads.
createAdRules
Creates new AdRule objects.
a data.frame
or list
containing all the elements of a createAdRulesResponse
Google Documentation for createAdRules
## Not run: res <- dfp_createAdRules(request_data) ## End(Not run)
## Not run: res <- dfp_createAdRules(request_data) ## End(Not run)
Provides operations for creating, updating and retrieving AdUnit objects.
dfp_createAdUnits(request_data, as_df = TRUE, verbose = FALSE)
dfp_createAdUnits(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 |
Line items connect a creative with its associated ad unit through targeting. An ad unit represents a piece of inventory within a publisher. It contains all the settings that need to be associated with the inventory in order to serve ads. For example, the ad unit contains creative size restrictions and AdSense settings.
createAdUnits
Creates new AdUnit objects.
a data.frame
or list
containing all the elements of a createAdUnitsResponse
Google Documentation for createAdUnits
## Not run: res <- dfp_createAdUnits(request_data) ## End(Not run)
## Not run: res <- dfp_createAdUnits(request_data) ## End(Not run)
Provides operations for creating, updating and retrieving AudienceSegment objects.
dfp_createAudienceSegments(request_data, as_df = TRUE, verbose = FALSE)
dfp_createAudienceSegments(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 |
createAudienceSegments
Creates new RuleBasedFirstPartyAudienceSegment objects.
a data.frame
or list
containing all the elements of a createAudienceSegmentsResponse
Google Documentation for createAudienceSegments
## Not run: res <- dfp_createAudienceSegments(request_data) ## End(Not run)
## Not run: res <- dfp_createAudienceSegments(request_data) ## End(Not run)
Provides methods for managing BaseRate objects. To use this service, you need to have the new sales management solution enabled on your network. If you do not see a "Sales" tab in <a href="https://www.google.com/dfp">DoubleClick for Publishers (DFP)</a>, you will not be able to use this service.
dfp_createBaseRates(request_data, as_df = TRUE, verbose = FALSE)
dfp_createBaseRates(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 |
createBaseRates
Creates a list of new BaseRate objects.
a data.frame
or list
containing all the elements of a createBaseRatesResponse
Google Documentation for createBaseRates
## Not run: res <- dfp_createBaseRates(request_data) ## End(Not run)
## Not run: res <- dfp_createBaseRates(request_data) ## End(Not run)
Provides methods for creating, updating and retrieving CdnConfiguration objects.
dfp_createCdnConfigurations(request_data, as_df = TRUE, verbose = FALSE)
dfp_createCdnConfigurations(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 |
createCdnConfigurations
Creates new CdnConfiguration objects. Creates new CdnConfiguration objects. Creates new CdnConfiguration objects.
a data.frame
or list
containing all the elements of a createCdnConfigurationsResponse
Google Documentation for createCdnConfigurations
## Not run: res <- dfp_createCdnConfigurations(request_data) ## End(Not run)
## Not run: res <- dfp_createCdnConfigurations(request_data) ## End(Not run)
Provides operations for creating, updating and retrieving Company objects.
dfp_createCompanies(request_data, as_df = TRUE, verbose = FALSE)
dfp_createCompanies(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 |
createCompanies
Creates new Company objects.
a data.frame
or list
containing all the elements of a createCompaniesResponse
Google Documentation for createCompanies
## Not run: request_data <- list(companies=list(name="TestCompany1", type='HOUSE_ADVERTISER', address='123 Main St Hometown, FL USA', email='[email protected]', comment='API Test')) result <- dfp_createCompanies(request_data) ## End(Not run)
## Not run: request_data <- list(companies=list(name="TestCompany1", type='HOUSE_ADVERTISER', address='123 Main St Hometown, FL USA', email='[email protected]', comment='API Test')) result <- dfp_createCompanies(request_data) ## End(Not run)
Provides methods for creating, updating and retrieving Contact objects.
dfp_createContacts(request_data, as_df = TRUE, verbose = FALSE)
dfp_createContacts(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 |
createContacts
Creates new Contact objects.
a data.frame
or list
containing all the elements of a createContactsResponse
Google Documentation for createContacts
## Not run: request_data <- list(contacts=list(name="TestContact1", companyId=dfp_createCompanies_result$id, status='UNINVITED', cellPhone='(888) 999-7777', comment='API Test', email='[email protected]')) result <- dfp_createContacts(request_data) ## End(Not run)
## Not run: request_data <- list(contacts=list(name="TestContact1", companyId=dfp_createCompanies_result$id, status='UNINVITED', cellPhone='(888) 999-7777', comment='API Test', email='[email protected]')) result <- dfp_createContacts(request_data) ## End(Not run)
Provides methods for creating, updating and retrieving ContentBundle objects. A ContentBundle is a grouping of Content that match filter rules as well as taking into account explicitly included or excluded Content.
dfp_createContentBundles(request_data, as_df = TRUE, verbose = FALSE)
dfp_createContentBundles(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 |
createContentBundles
Creates new ContentBundle objects.
a data.frame
or list
containing all the elements of a createContentBundlesResponse
Google Documentation for createContentBundles
## Not run: res <- dfp_createContentBundles(request_data) ## End(Not run)
## Not run: res <- dfp_createContentBundles(request_data) ## End(Not run)
Provides methods for adding, updating and retrieving Creative objects.
dfp_createCreatives(request_data, as_df = TRUE, verbose = FALSE)
dfp_createCreatives(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 |
For a creative to run, it must be associated with a LineItem managed by the LineItemCreativeAssociationService.#' Read more about creatives on the <a href="https://support.google.com/dfp_premium/answer/3185155">DFP Help Center</a>.
createCreatives
Creates new Creative objects.
a data.frame
or list
containing all the elements of a createCreativesResponse
Google Documentation for createCreatives
## Not run: res <- dfp_createCreatives(request_data) ## End(Not run)
## Not run: res <- dfp_createCreatives(request_data) ## End(Not run)
Provides methods for adding, updating and retrieving CreativeSet objects.
dfp_createCreativeSet(request_data, as_df = TRUE, verbose = FALSE)
dfp_createCreativeSet(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 |
createCreativeSet
Creates a new CreativeSet.
a data.frame
or list
containing all the elements of a createCreativeSetResponse
Google Documentation for createCreativeSet
## Not run: res <- dfp_createCreativeSet(request_data) ## End(Not run)
## Not run: res <- dfp_createCreativeSet(request_data) ## End(Not run)
Provides methods for the creation and management of creative wrappers. CreativeWrapper CreativeWrappers allow HTML snippets to be served along with creatives. Creative wrappers must be associated with a LabelType#CREATIVE_WRAPPER label and applied to ad units by AdUnit#appliedLabels.
dfp_createCreativeWrappers(request_data, as_df = TRUE, verbose = FALSE)
dfp_createCreativeWrappers(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 |
createCreativeWrappers
Creates a new CreativeWrapper objects. The following fields are required:
CreativeWrapper labelId
CreativeWrapper ordering
CreativeWrapper header or CreativeWrapper footer
a data.frame
or list
containing all the elements of a createCreativeWrappersResponse
Google Documentation for createCreativeWrappers
## Not run: res <- dfp_createCreativeWrappers(request_data) ## End(Not run)
## Not run: res <- dfp_createCreativeWrappers(request_data) ## End(Not run)
Provides methods for the creation and management of CustomField objects.
dfp_createCustomFieldOptions(request_data, as_df = TRUE, verbose = FALSE)
dfp_createCustomFieldOptions(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 |
createCustomFieldOptions
Creates new CustomFieldOption objects. The following fields are required:
CustomFieldOption displayName
CustomFieldOption customFieldId
a data.frame
or list
containing all the elements of a createCustomFieldOptionsResponse
Google Documentation for createCustomFieldOptions
## Not run: request_data <- data.frame(customFieldId=rep(dfp_createCustomFields_result$id, 3), displayName=c('Morning', 'Afternoon', 'Evening')) result <- dfp_createCustomFieldOptions(request_data) ## End(Not run)
## Not run: request_data <- data.frame(customFieldId=rep(dfp_createCustomFields_result$id, 3), displayName=c('Morning', 'Afternoon', 'Evening')) result <- dfp_createCustomFieldOptions(request_data) ## End(Not run)
Creates new CustomField objects. The following fields are required:
CustomField name
CustomField entityType
CustomField dataType
CustomField visibility
dfp_createCustomFields(request_data, as_df = TRUE, verbose = FALSE)
dfp_createCustomFields(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 |
a data.frame
or list
containing all the elements of a createCustomFieldsResponse
Google Documentation for createCustomFields
## Not run: request_data <- data.frame(name='Timing', description='The time that this creative runs.', entityType='CREATIVE', dataType='DROP_DOWN', visibility='FULL') result <- dfp_createCustomFields(request_data) ## End(Not run)
## Not run: request_data <- data.frame(name='Timing', description='The time that this creative runs.', entityType='CREATIVE', dataType='DROP_DOWN', visibility='FULL') result <- dfp_createCustomFields(request_data) ## End(Not run)
Provides operations for creating, updating and retrieving CustomTargetingKey and CustomTargetingValue objects.
dfp_createCustomTargetingKeys(request_data, as_df = TRUE, verbose = FALSE)
dfp_createCustomTargetingKeys(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 |
createCustomTargetingKeys
Creates new CustomTargetingKey objects. The following fields are required:
CustomTargetingKey name
CustomTargetingKey type
a data.frame
or list
containing all the elements of a createCustomTargetingKeysResponse
Google Documentation for createCustomTargetingKeys
## Not run: request_data <- list(keys=list(name="Test1", displayName="TestKey1", type='FREEFORM')) result <- dfp_createCustomTargetingKeys(request_data) ## End(Not run)
## Not run: request_data <- list(keys=list(name="Test1", displayName="TestKey1", type='FREEFORM')) result <- dfp_createCustomTargetingKeys(request_data) ## End(Not run)
Creates new CustomTargetingValue objects. The following fields are required:
CustomTargetingValue customTargetingKeyId
CustomTargetingValue name
dfp_createCustomTargetingValues(request_data, as_df = TRUE, verbose = FALSE)
dfp_createCustomTargetingValues(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 |
a data.frame
or list
containing all the elements of a createCustomTargetingValuesResponse
Google Documentation for createCustomTargetingValues
## Not run: request_data <- data.frame(customTargetingKeyId=rep(created_targeting_key$id,2), name=c('TestValue1','TestValue2'), displayName=c('TestValue1','TestValue2'), matchType=rep('EXACT', 2)) result <- dfp_createCustomTargetingValues(request_data) ## End(Not run)
## Not run: request_data <- data.frame(customTargetingKeyId=rep(created_targeting_key$id,2), name=c('TestValue1','TestValue2'), displayName=c('TestValue1','TestValue2'), matchType=rep('EXACT', 2)) result <- dfp_createCustomTargetingValues(request_data) ## End(Not run)
Provides methods for creating, updating and retrieving DaiAuthenticationKey objects.
dfp_createDaiAuthenticationKeys(request_data, as_df = TRUE, verbose = FALSE)
dfp_createDaiAuthenticationKeys(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 |
createDaiAuthenticationKeys
Creates new DaiAuthenticationKey objects. The following fields are required:
DaiAuthenticationKey name
a data.frame
or list
containing all the elements of a createDaiAuthenticationKeysResponse
Google Documentation for createDaiAuthenticationKeys
## Not run: res <- dfp_createDaiAuthenticationKeys(request_data) ## End(Not run)
## Not run: res <- dfp_createDaiAuthenticationKeys(request_data) ## End(Not run)
Provides methods for adding, updating and retrieving ExchangeRate objects.
dfp_createExchangeRates(request_data, as_df = TRUE, verbose = FALSE)
dfp_createExchangeRates(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 |
createExchangeRates
Creates new ExchangeRate objects. For each exchange rate, the following fields are required:
ExchangeRate currencyCode
ExchangeRate exchangeRate when ExchangeRate refreshRate is ExchangeRateRefreshRate FIXED
a data.frame
or list
containing all the elements of a createExchangeRatesResponse
Google Documentation for createExchangeRates
## Not run: res <- dfp_createExchangeRates(request_data) ## End(Not run)
## Not run: res <- dfp_createExchangeRates(request_data) ## End(Not run)
Provides methods for the creation and management of Labels.
dfp_createLabels(request_data, as_df = TRUE, verbose = FALSE)
dfp_createLabels(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 |
createLabels
Creates new Label objects.
a data.frame
or list
containing all the elements of a createLabelsResponse
Google Documentation for createLabels
## Not run: request_data <- data.frame(name="Auto - Competitive Exclusion", description=paste0("A label to prevent two different car ", "companies from showing ads together"), types='COMPETITIVE_EXCLUSION') request_data <- list('labels'=hypothetical_label) result <- dfp_createLabels(request_data) ## End(Not run)
## Not run: request_data <- data.frame(name="Auto - Competitive Exclusion", description=paste0("A label to prevent two different car ", "companies from showing ads together"), types='COMPETITIVE_EXCLUSION') request_data <- list('labels'=hypothetical_label) result <- dfp_createLabels(request_data) ## End(Not run)
Provides operations for creating, updating and retrieving LineItemCreativeAssociation objects. A line item creative association (LICA) associates a Creative with a LineItem. When a line item is selected to serve, the LICAs specify which creatives can appear for the ad units that are targeted by the line item. In order to be associated with a line item, the creative must have a size that exists within the attribute LineItem#creativeSizes.#' Each LICA has a start and end date and time that defines when the creative should be displayed.#' To read more about associating creatives with line items, see this <a href="https://support.google.com/dfp_premium/answer/3187916">DFP Help Center</a> article.
dfp_createLineItemCreativeAssociations(request_data, as_df = TRUE, verbose = FALSE)
dfp_createLineItemCreativeAssociations(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 |
createLineItemCreativeAssociations
Creates new LineItemCreativeAssociation objects
a data.frame
or list
containing all the elements of a createLineItemCreativeAssociationsResponse
Google Documentation for createLineItemCreativeAssociations
## Not run: res <- dfp_createLineItemCreativeAssociations(request_data) ## End(Not run)
## Not run: res <- dfp_createLineItemCreativeAssociations(request_data) ## End(Not run)
#' Provides methods for creating, updating and retrieving LineItem objects.
dfp_createLineItems(request_data, as_df = TRUE, verbose = FALSE)
dfp_createLineItems(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 |
Line items define the campaign. For example, line items define:
a budget
a span of time to run
ad unit targeting
In short, line items connect all of the elements of an ad campaign. Line items and creatives can be associated with each other through LineItemCreativeAssociation objects. An ad unit will host a creative through both this association and the LineItem#targeting to it.
createLineItems
Creates new LineItem objects.
a data.frame
or list
containing all the elements of a createLineItemsResponse
Google Documentation for createLineItems
## Not run: res <- dfp_createLineItems(request_data) ## End(Not run)
## Not run: res <- dfp_createLineItems(request_data) ## End(Not run)
Provides methods for creating, updating and retrieving LiveStreamEvent objects. This feature is not yet openly available for DFP Video publishers. Publishers will need to apply for access for this feature through their account managers.
dfp_createLiveStreamEvents(request_data, as_df = TRUE, verbose = FALSE)
dfp_createLiveStreamEvents(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 |
createLiveStreamEvents
Creates new LiveStreamEvent objects. The following fields are required:
LiveStreamEvent name
LiveStreamEvent startDateTime
LiveStreamEvent endDateTime
LiveStreamEvent contentUrls
LiveStreamEvent adTags
a data.frame
or list
containing all the elements of a createLiveStreamEventsResponse
Google Documentation for createLiveStreamEvents
## Not run: res <- dfp_createLiveStreamEvents(request_data) ## End(Not run)
## Not run: res <- dfp_createLiveStreamEvents(request_data) ## End(Not run)
Provides methods for retrieving MobileApplication objects.
dfp_createMobileApplications(request_data, as_df = TRUE, verbose = FALSE)
dfp_createMobileApplications(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 |
createMobileApplications
Creates and claims MobileApplication mobile applications to be used for targeting in the network.
a data.frame
or list
containing all the elements of a createMobileApplicationsResponse
Google Documentation for createMobileApplications
## Not run: res <- dfp_createMobileApplications(request_data) ## End(Not run)
## Not run: res <- dfp_createMobileApplications(request_data) ## End(Not run)
Provides methods for creating and retrieving NativeStyle objects.
dfp_createNativeStyles(request_data, as_df = TRUE, verbose = FALSE)
dfp_createNativeStyles(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 |
createNativeStyles
Creates new NativeStyle objects.
a data.frame
or list
containing all the elements of a createNativeStylesResponse
Google Documentation for createNativeStyles
## Not run: res <- dfp_createNativeStyles(request_data) ## End(Not run)
## Not run: res <- dfp_createNativeStyles(request_data) ## End(Not run)
Provides methods for creating, updating and retrieving Order objects.
dfp_createOrders(request_data, as_df = TRUE, verbose = FALSE)
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
## 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)
## 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)
Provides methods for creating, updating and retrieving Package objects.
dfp_createPackages(request_data, as_df = TRUE, verbose = FALSE)
dfp_createPackages(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 |
To use this service, you need to have the new sales management solution enabled on your network. If you do not see a "Sales" tab in <a href="https://www.google.com/dfp">DoubleClick for Publishers (DFP)</a>, you will not be able to use this service.
createPackages
Creates new Package objects. For each package, the following fields are required:
Package proposalId
Package productPackageId
Package name
a data.frame
or list
containing all the elements of a createPackagesResponse
Google Documentation for createPackages
## Not run: res <- dfp_createPackages(request_data) ## End(Not run)
## Not run: res <- dfp_createPackages(request_data) ## End(Not run)
Provides methods for creating, updating and retrieving Placement objects.
dfp_createPlacements(request_data, as_df = TRUE, verbose = FALSE)
dfp_createPlacements(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 |
You can use a placement to group ad units. For example, you might have a placement that focuses on sports sites, which may be spread across different branches of your inventory. You might also have a "fire sale" placement that includes ad units that have not been selling and are consequently priced very attractively.
createPlacements
Creates new Placement objects.
a data.frame
or list
containing all the elements of a createPlacementsResponse
Google Documentation for createPlacements
## Not run: res <- dfp_createPlacements(request_data) ## End(Not run)
## Not run: res <- dfp_createPlacements(request_data) ## End(Not run)
Provides methods for managing PremiumRate objects. To use this service, you need to have the new sales management solution enabled on your network. If you do not see a "Sales" tab in <a href="https://www.google.com/dfp">DoubleClick for Publishers (DFP)</a>, you will not be able to use this service.
dfp_createPremiumRates(request_data, as_df = TRUE, verbose = FALSE)
dfp_createPremiumRates(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 |
createPremiumRates
Creates a list of new PremiumRate objects.
a data.frame
or list
containing all the elements of a createPremiumRatesResponse
Google Documentation for createPremiumRates
## Not run: res <- dfp_createPremiumRates(request_data) ## End(Not run)
## Not run: res <- dfp_createPremiumRates(request_data) ## End(Not run)
Provides methods for creating and retrieving ProductPackageItem objects.
dfp_createProductPackageItems(request_data, as_df = TRUE, verbose = FALSE)
dfp_createProductPackageItems(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 |
A ProductPackageItem represents a product which will be associated with a ProductPackage. To use this service, you need to have the new sales management solution enabled on your network. If you do not see a "Sales" tab in <a href="https://www.google.com/dfp">DoubleClick for Publishers (DFP)</a>, you will not be able to use this service.
createProductPackageItems
Creates new ProductPackageItem objects.
a data.frame
or list
containing all the elements of a createProductPackageItemsResponse
Google Documentation for createProductPackageItems
## Not run: res <- dfp_createProductPackageItems(request_data) ## End(Not run)
## Not run: res <- dfp_createProductPackageItems(request_data) ## End(Not run)
Provides methods for updating and retrieving ProductPackage objects. A ProductPackage represents a group of products which will be sold together.
dfp_createProductPackages(request_data, as_df = TRUE, verbose = FALSE)
dfp_createProductPackages(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 |
To use this service, you need to have the new sales management solution enabled on your network. If you do not see a "Sales" tab in <a href="https://www.google.com/dfp">DoubleClick for Publishers (DFP)</a>, you will not be able to use this service.
createProductPackages
Creates new ProductPackage objects.
a data.frame
or list
containing all the elements of a createProductPackagesResponse
Google Documentation for createProductPackages
## Not run: res <- dfp_createProductPackages(request_data) ## End(Not run)
## Not run: res <- dfp_createProductPackages(request_data) ## End(Not run)
Provides methods for creating, updating and retrieving ProductTemplate objects. A product template is used to generate a set of products. Products allow inventory managers to control what salespeople can sell.
dfp_createProductTemplates(request_data, as_df = TRUE, verbose = FALSE)
dfp_createProductTemplates(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 |
To use this service, you need to have the new sales management solution enabled on your network. If you do not see a "Sales" tab in <a href="https://www.google.com/dfp">DoubleClick for Publishers (DFP)</a>, you will not be able to use this service.
createProductTemplates
Creates new ProductTemplate objects.
a data.frame
or list
containing all the elements of a createProductTemplatesResponse
Google Documentation for createProductTemplates
## Not run: res <- dfp_createProductTemplates(request_data) ## End(Not run)
## Not run: res <- dfp_createProductTemplates(request_data) ## End(Not run)
Provides methods for creating, updating and retrieving ProposalLineItem objects. To use this service, you need to have the new sales management solution enabled on your network. If you do not see a "Sales" tab in <a href="https://www.google.com/dfp">DoubleClick for Publishers (DFP)</a>, you will not be able to use this service.
dfp_createProposalLineItems(request_data, as_df = TRUE, verbose = FALSE)
dfp_createProposalLineItems(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 |
createProposalLineItems
Creates new ProposalLineItem objects.
a data.frame
or list
containing all the elements of a createProposalLineItemsResponse
Google Documentation for createProposalLineItems
## Not run: res <- dfp_createProposalLineItems(request_data) ## End(Not run)
## Not run: res <- dfp_createProposalLineItems(request_data) ## End(Not run)
Provides methods for adding, updating and retrieving Proposal objects.
dfp_createProposals(request_data, as_df = TRUE, verbose = FALSE)
dfp_createProposals(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 |
createProposals
Creates new Proposal objects. For each proposal, the following fields are required:
Proposal name
a data.frame
or list
containing all the elements of a createProposalsResponse
Google Documentation for createProposals
## Not run: res <- dfp_createProposals(request_data) ## End(Not run)
## Not run: res <- dfp_createProposals(request_data) ## End(Not run)
Provides methods for managing RateCard objects. To use this service, you need to have the new sales management solution enabled on your network. If you do not see a "Sales" tab in <a href="https://www.google.com/dfp">DoubleClick for Publishers (DFP)</a>, you will not be able to use this service.
dfp_createRateCards(request_data, as_df = TRUE, verbose = FALSE)
dfp_createRateCards(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 |
createRateCards
Creates a list of RateCard objects. Rate cards must be activated before being associated with proposal line items and products.
a data.frame
or list
containing all the elements of a createRateCardsResponse
Google Documentation for createRateCards
## Not run: res <- dfp_createRateCards(request_data) ## End(Not run)
## Not run: res <- dfp_createRateCards(request_data) ## End(Not run)
Provides methods for creating, updating, and retrieving Team objects.
dfp_createTeams(request_data, as_df = TRUE, verbose = FALSE)
dfp_createTeams(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 |
Teams are used to group users in order to define access to entities such as companies, inventory and orders.
createTeams
Creates new Team objects. The following fields are required:
Team name
a data.frame
or list
containing all the elements of a createTeamsResponse
Google Documentation for createTeams
## Not run: request_data <- list(teams=list(name="TestTeam1", description='API Test Team 1', hasAllCompanies='true', hasAllInventory='true', teamAccessType='READ_WRITE')) result <- dfp_createTeams(request_data) ## End(Not run)
## Not run: request_data <- list(teams=list(name="TestTeam1", description='API Test Team 1', hasAllCompanies='true', hasAllInventory='true', teamAccessType='READ_WRITE')) result <- dfp_createTeams(request_data) ## End(Not run)
Provides operations for creating, updating and retrieving User objects.
dfp_createUsers(request_data, as_df = TRUE, verbose = FALSE)
dfp_createUsers(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 |
A user is assigned one of several different roles. Each Role type has a unique ID that is used to identify that role in an organization. Role types and their IDs can be retrieved by invoking #getAllRoles.
createUsers
Creates new User objects.
a data.frame
or list
containing all the elements of a createUsersResponse
Google Documentation for createUsers
## Not run: request_data <- data.frame(name = paste0("TestUser", 1:3), email = paste0('testuser', 1:3, '@gmail.com'), roleId = rep(-1, 3)) result <- dfp_createUsers(request_data) ## End(Not run)
## Not run: request_data <- data.frame(name = paste0("TestUser", 1:3), email = paste0('testuser', 1:3, '@gmail.com'), roleId = rep(-1, 3)) result <- dfp_createUsers(request_data) ## End(Not run)
Provides methods for creating, updating, and retrieving UserTeamAssociation objects. UserTeamAssociation objects are used to add users to teams in order to define access to entities such as companies, inventory and orders and to override the team's access type to orders for a user.
dfp_createUserTeamAssociations(request_data, as_df = TRUE, verbose = FALSE)
dfp_createUserTeamAssociations(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 |
createUserTeamAssociations
Creates new UserTeamAssociation objects.
a data.frame
or list
containing all the elements of a createUserTeamAssociationsResponse
Google Documentation for createUserTeamAssociations
## Not run: request_data <- data.frame(teamid=rep(dfp_createTeams_result$id, 3), userid=dfp_createUsers_result$id) result <- dfp_createUserTeamAssociations(request_data) ## End(Not run)
## Not run: request_data <- data.frame(teamid=rep(dfp_createTeams_result$id, 3), userid=dfp_createUsers_result$id) result <- dfp_createUserTeamAssociations(request_data) ## End(Not run)
Take a datetime representation in R and convert it to the list required by DFP to indicate a datetime
dfp_date_to_list(this_date, daytime = c("beginning", "end"), timeZoneId = Sys.timezone(), ensure_today_works = TRUE)
dfp_date_to_list(this_date, daytime = c("beginning", "end"), timeZoneId = Sys.timezone(), ensure_today_works = TRUE)
this_date |
Date; formatted as Date, POSIXct, or POSIXlt |
daytime |
character; either "beginning" or "end" so that the function knows which hours to set if needed |
timeZoneId |
character; a string indicating the timezone that should be used. The timezone ID must be in Time_Zone database |
ensure_today_works |
logical; an indicator that will automatically offset the current time by 1 hour so that forecasts will actually work. If you try to forecast from a timestamp of now, then by the time you submit it to the ForecastService it will already be too late to be in the future. |
a list
formatted to the spec required for StartDateTime or EndDateTime
dfp_date_to_list(Sys.Date()+1)
dfp_date_to_list(Sys.Date()+1)
Take a report request and manage all aspects for user until returning a data.frame or error
dfp_full_report_wrapper(request_data, check_interval=3, max_tries=20, verbose=FALSE)
dfp_full_report_wrapper(request_data, check_interval=3, max_tries=20, verbose=FALSE)
request_data |
a |
check_interval |
a numeric specifying seconds to wait between report status requests to check if complete |
max_tries |
a numeric specifying the maximum number of times to check whether the report is complete before the function essentially times out |
verbose |
a logical indicating whether to print the report URL |
a data.frame
of report results as specified by the request_data
## Not run: request_data <- list(reportJob = list(reportQuery = list(dimensions = 'MONTH_AND_YEAR', dimensions = 'AD_UNIT_ID', dimensions = 'AD_UNIT_NAME', dimensions = 'ADVERTISER_NAME', dimensions = 'ORDER_NAME', dimensions = 'LINE_ITEM_NAME', adUnitView = 'FLAT', columns = 'AD_SERVER_IMPRESSIONS', columns = 'AD_SERVER_CLICKS', dateRangeType = 'LAST_WEEK'))) report_data <- dfp_full_report_wrapper(request_data) ## End(Not run)
## Not run: request_data <- list(reportJob = list(reportQuery = list(dimensions = 'MONTH_AND_YEAR', dimensions = 'AD_UNIT_ID', dimensions = 'AD_UNIT_NAME', dimensions = 'ADVERTISER_NAME', dimensions = 'ORDER_NAME', dimensions = 'LINE_ITEM_NAME', adUnitView = 'FLAT', columns = 'AD_SERVER_IMPRESSIONS', columns = 'AD_SERVER_CLICKS', dateRangeType = 'LAST_WEEK'))) report_data <- dfp_full_report_wrapper(request_data) ## End(Not run)
Gets an ActivityPage of Activity objects that satisfy the given Statement query. The following fields are supported for filtering:
id
name
expectedURL
status
activityGroupId
dfp_getActivitiesByStatement(request_data, as_df = TRUE, verbose = FALSE)
dfp_getActivitiesByStatement(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 |
a data.frame
or list
containing all the elements of a getActivitiesByStatementResponse
Google Documentation for getActivitiesByStatement
## Not run: dat <- list(filterStatement=list('query'="WHERE status='ACTIVE'")) res <- dfp_getActivitiesByStatement(dat) ## End(Not run)
## Not run: dat <- list(filterStatement=list('query'="WHERE status='ACTIVE'")) res <- dfp_getActivitiesByStatement(dat) ## End(Not run)
Gets an ActivityGroupPage of ActivityGroup objects that satisfy the given Statement query. The following fields are supported for filtering:
id
name
impressionsLookback
clicksLookback
status
dfp_getActivityGroupsByStatement(request_data, as_df = TRUE, verbose = FALSE)
dfp_getActivityGroupsByStatement(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 |
a data.frame
or list
containing all the elements of a getActivityGroupsByStatementResponse
Google Documentation for getActivityGroupsByStatement
## Not run: dat <- list(filterStatement=list('query'="WHERE status='ACTIVE'")) res <- dfp_getActivityGroupsByStatement(dat) ## End(Not run)
## Not run: dat <- list(filterStatement=list('query'="WHERE status='ACTIVE'")) res <- dfp_getActivityGroupsByStatement(dat) ## End(Not run)
Gets a AdExclusionRulePage of AdExclusionRule objects that satisfy the given Statement query. The following fields are supported for filtering:
id
name
status
dfp_getAdExclusionRulesByStatement(request_data, as_df = TRUE, verbose = FALSE)
dfp_getAdExclusionRulesByStatement(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 |
a data.frame
or list
containing all the elements of a getAdExclusionRulesByStatementResponse
Google Documentation for getAdExclusionRulesByStatement
## Not run: dat <- list(filterStatement=list('query'="WHERE status='ACTIVE'")) res <- dfp_getAdExclusionRulesByStatement(dat) ## End(Not run)
## Not run: dat <- list(filterStatement=list('query'="WHERE status='ACTIVE'")) res <- dfp_getAdExclusionRulesByStatement(dat) ## End(Not run)
Gets an AdRulePage of AdRule objects that satisfy the given {@link Statement query}. The following fields are supported for filtering:
id
name
priority
status
dfp_getAdRulesByStatement(request_data, as_df = TRUE, verbose = FALSE)
dfp_getAdRulesByStatement(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 |
a data.frame
or list
containing all the elements of a getAdRulesByStatementResponse
Google Documentation for getAdRulesByStatement
## Not run: dat <- list(filterStatement=list('query'="WHERE status='ACTIVE'")) res <- dfp_getAdRulesByStatement(dat) ## End(Not run)
## Not run: dat <- list(filterStatement=list('query'="WHERE status='ACTIVE'")) res <- dfp_getAdRulesByStatement(dat) ## End(Not run)
Gets a AdSpotPage of AdSpot objects that satisfy the given {@link Statement query}.
dfp_getAdSpotsByStatement(request_data, as_df = TRUE, verbose = FALSE)
dfp_getAdSpotsByStatement(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 |
a data.frame
or list
containing all the elements of a getAdSpotsByStatementResponse
Google Documentation for getAdSpotsByStatement
## Not run: dat <- list(filterStatement=list('query'="WHERE status='ACTIVE'")) res <- dfp_getAdSpotsByStatement(dat) ## End(Not run)
## Not run: dat <- list(filterStatement=list('query'="WHERE status='ACTIVE'")) res <- dfp_getAdSpotsByStatement(dat) ## End(Not run)
Gets a AdUnitPage of AdUnit objects that satisfy the given Statement query. The following fields are supported for filtering:
adUnitCode
id
name
parentId
status
lastModifiedDateTime
dfp_getAdUnitsByStatement(request_data, as_df = FALSE, verbose = FALSE)
dfp_getAdUnitsByStatement(request_data, as_df = FALSE, 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 |
a data.frame
or list
containing all the elements of a getAdUnitsByStatementResponse
Google Documentation for getAdUnitsByStatement
## Not run: dat <- list(filterStatement=list('query'="WHERE status='ACTIVE'")) res <- dfp_getAdUnitsByStatement(dat) ## End(Not run)
## Not run: dat <- list(filterStatement=list('query'="WHERE status='ACTIVE'")) res <- dfp_getAdUnitsByStatement(dat) ## End(Not run)
Gets a set of AdUnitSize objects that satisfy the given Statement query. The following fields are supported for filtering:
targetPlatform
dfp_getAdUnitSizesByStatement(request_data, as_df = TRUE, verbose = FALSE)
dfp_getAdUnitSizesByStatement(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 |
a data.frame
or list
containing all the elements of a getAdUnitSizesByStatementResponse
Google Documentation for getAdUnitSizesByStatement
## Not run: dat <- list(filterStatement=list('query'="WHERE status='ACTIVE'")) res <- dfp_getAdUnitSizesByStatement(dat) ## End(Not run)
## Not run: dat <- list(filterStatement=list('query'="WHERE status='ACTIVE'")) res <- dfp_getAdUnitSizesByStatement(dat) ## End(Not run)
Provides operations for retrieving information related to the publisher's networks. This service can be used to obtain the list of all networks that the current login has access to, or to obtain information about a specific network.
dfp_getAllNetworks(as_df = TRUE, verbose = FALSE)
dfp_getAllNetworks(as_df = TRUE, verbose = FALSE)
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 |
getAllNetworks
Returns the list of Network objects to which the current login has access. Intended to be used without a network code in the SOAP header when the login may have more than one network associated with it.Returns the list of Network objects to which the current login has access. Intended to be used without a network code in the SOAP header when the login may have more than one network associated with it.@return the networks to which the current login has access Returns the list of Network objects to which the current login has access. Intended to be used without a network code in the SOAP header when the login may have more than one network associated with it.@return the networks to which the current login has access
a data.frame
or list
containing all the elements of a getAllNetworksResponse
Google Documentation for getAllNetworks
## Not run: res <- dfp_getAllNetworks() ## End(Not run)
## Not run: res <- dfp_getAllNetworks() ## End(Not run)
Returns the Role objects that are defined for the users of the network. Returns the Role objects that are defined for the users of the network. @return the roles defined for the user's network Returns the Role objects that are defined for the users of the network. @return the roles defined for the user's network
dfp_getAllRoles(as_df = TRUE, verbose = FALSE)
dfp_getAllRoles(as_df = TRUE, verbose = FALSE)
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 |
a data.frame
or list
containing all the elements of a getAllRolesResponse
Google Documentation for getAllRoles
## Not run: res <- dfp_getAllRoles() ## End(Not run)
## Not run: res <- dfp_getAllRoles() ## End(Not run)
Gets an AudienceSegmentPage of AudienceSegment objects that satisfy the given Statement query. The following fields are supported for filtering:
id
name
status
type
size
dataProviderName
approvalStatus
cost
startDateTime
endDateTime
dfp_getAudienceSegmentsByStatement(request_data, as_df = TRUE, verbose = FALSE)
dfp_getAudienceSegmentsByStatement(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 |
a data.frame
or list
containing all the elements of a getAudienceSegmentsByStatementResponse
Google Documentation for getAudienceSegmentsByStatement
## Not run: dat <- list(filterStatement=list('query'="WHERE status='ACTIVE'")) res <- dfp_getAudienceSegmentsByStatement(dat) ## End(Not run)
## Not run: dat <- list(filterStatement=list('query'="WHERE status='ACTIVE'")) res <- dfp_getAudienceSegmentsByStatement(dat) ## End(Not run)
Provides methods for estimating traffic (clicks/impressions) for line items. Forecasts can be provided for LineItem objects that exist in the system or which have not had an ID set yet.
dfp_getAvailabilityForecast(request_data, as_df = TRUE, verbose = FALSE)
dfp_getAvailabilityForecast(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 |
Test Network Behavior
Test networks are unable to provide forecasts that would be comparable to the production environment because forecasts require traffic history. Visit the See Also section below to proceed to Google and review the details.'
getAvailabilityForecast
Gets the availability forecast for a ProspectiveLineItem. An availability forecast reports the maximum number of available units that the line item can book, and the total number of units matching the line item's targeting.
a data.frame
or list
containing all the elements of a getAvailabilityForecastResponse
Google Documentation for getAvailabilityForecast
## Not run: filter <- "WHERE Status='DELIVERING' LIMIT 1" one_li <- dfp_getLineItemsByStatement(list(filterStatement=list(query=filter)))[[1]] hypothetical_line_item <- list(lineItem= list(id=one_li$id, startDateTime=one_li$startDateTime, endDateTime=dfp_date_to_list(Sys.Date()+100), lineItemType=one_li$lineItemType, costType=one_li$costType, primaryGoal=one_li$primaryGoal, targeting=one_li$targeting)) request_data <- list(lineItem=hypothetical_line_item, forecastOptions=list(includeTargetingCriteriaBreakdown='true', includeContendingLineItems='true')) dfp_getAvailabilityForecast_result <- dfp_getAvailabilityForecast(request_data) ## End(Not run)
## Not run: filter <- "WHERE Status='DELIVERING' LIMIT 1" one_li <- dfp_getLineItemsByStatement(list(filterStatement=list(query=filter)))[[1]] hypothetical_line_item <- list(lineItem= list(id=one_li$id, startDateTime=one_li$startDateTime, endDateTime=dfp_date_to_list(Sys.Date()+100), lineItemType=one_li$lineItemType, costType=one_li$costType, primaryGoal=one_li$primaryGoal, targeting=one_li$targeting)) request_data <- list(lineItem=hypothetical_line_item, forecastOptions=list(includeTargetingCriteriaBreakdown='true', includeContendingLineItems='true')) dfp_getAvailabilityForecast_result <- dfp_getAvailabilityForecast(request_data) ## End(Not run)
Gets an AvailabilityForecast for an existing LineItem object. An availability forecast reports the maximum number of available units that the line item can be booked with, and also the total number of units matching the line item's targeting. Only line items having type LineItemType SPONSORSHIP or {@link LineItemType STANDARD} are valid. Other types will result in {@link ReservationDetailsError.Reason LINE_ITEM_TYPE_NOT_ALLOWED}. Gets an AvailabilityForecast for an existing LineItem object. An availability forecast reports the maximum number of available units that the line item can be booked with, and also the total number of units matching the line item's targeting. Only line items having type LineItemType SPONSORSHIP or LineItemType STANDARD are valid. Other types will result in ReservationDetailsError.Reason LINE_ITEM_TYPE_NOT_ALLOWED. @param lineItemId the ID of a LineItem to run the forecast on. @param forecastOptions options controlling the forecast Gets an AvailabilityForecast for an existing LineItem object. An availability forecast reports the maximum number of available units that the line item can be booked with, and also the total number of units matching the line item's targeting. Only line items having type LineItemType SPONSORSHIP or LineItemType STANDARD are valid. Other types will result in ReservationDetailsError.Reason LINE_ITEM_TYPE_NOT_ALLOWED. @param lineItemId the ID of a LineItem to run the forecast on. @param forecastOptions options controlling the forecast
dfp_getAvailabilityForecastById(request_data, as_df = TRUE, verbose = FALSE)
dfp_getAvailabilityForecastById(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 |
a data.frame
or list
containing all the elements of a getAvailabilityForecastByIdResponse
Google Documentation for getAvailabilityForecastById
## Not run: filter <- "WHERE Status='DELIVERING' LIMIT 1" one_li <- dfp_getLineItemsByStatement(list(filterStatement=list(query=filter)))[[1]] request_data <- list(lineItemId=one_li$id, forecastOptions=list(includeTargetingCriteriaBreakdown='true', includeContendingLineItems='true')) result <- dfp_getAvailabilityForecastById(request_data) ## End(Not run)
## Not run: filter <- "WHERE Status='DELIVERING' LIMIT 1" one_li <- dfp_getLineItemsByStatement(list(filterStatement=list(query=filter)))[[1]] request_data <- list(lineItemId=one_li$id, forecastOptions=list(includeTargetingCriteriaBreakdown='true', includeContendingLineItems='true')) result <- dfp_getAvailabilityForecastById(request_data) ## End(Not run)
Gets a BaseRatePage of BaseRate objects that satisfy the given Statement query. The following fields are supported for filtering:
rateCardId
id
productTemplateId
dfp_getBaseRatesByStatement(request_data, as_df = TRUE, verbose = FALSE)
dfp_getBaseRatesByStatement(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 |
a data.frame
or list
containing all the elements of a getBaseRatesByStatementResponse
Google Documentation for getBaseRatesByStatement
## Not run: dat <- list(filterStatement=list('query'="WHERE status='ACTIVE'")) res <- dfp_getBaseRatesByStatement(dat) ## End(Not run)
## Not run: dat <- list(filterStatement=list('query'="WHERE status='ACTIVE'")) res <- dfp_getBaseRatesByStatement(dat) ## End(Not run)
Gets a CdnConfigurationPage of CdnConfiguration objects that satisfy the given Statement query. Currently only CDN Configurations of type {@link CdnConfigurationType LIVE_STREAM_SOURCE_CONTENT} will be returned. The following fields are supported for filtering:
id
name
dfp_getCdnConfigurationsByStatement(request_data, as_df = TRUE, verbose = FALSE)
dfp_getCdnConfigurationsByStatement(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 |
a data.frame
or list
containing all the elements of a getCdnConfigurationsByStatementResponse
Google Documentation for getCdnConfigurationsByStatement
## Not run: dat <- list(filterStatement=list('query'="WHERE status='ACTIVE'")) res <- dfp_getCdnConfigurationsByStatement(dat) ## End(Not run)
## Not run: dat <- list(filterStatement=list('query'="WHERE status='ACTIVE'")) res <- dfp_getCdnConfigurationsByStatement(dat) ## End(Not run)
Provides methods for querying CMS metadata keys and values. A CMS metadata value corresponds to one key value pair ingested from a publisher's CMS and is used to target all the content with which it is associated in the CMS.
dfp_getCmsMetadataKeysByStatement(request_data, as_df = TRUE, verbose = FALSE)
dfp_getCmsMetadataKeysByStatement(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 |
getCmsMetadataKeysByStatement
Returns a page of CmsMetadataKeys matching the specified Statement. The following fields are supported for filtering:
id
cmsKey
a data.frame
or list
containing all the elements of a getCmsMetadataKeysByStatementResponse
Google Documentation for getCmsMetadataKeysByStatement
## Not run: dat <- list(filterStatement=list('query'="WHERE status='ACTIVE'")) res <- dfp_getCmsMetadataKeysByStatement(dat) ## End(Not run)
## Not run: dat <- list(filterStatement=list('query'="WHERE status='ACTIVE'")) res <- dfp_getCmsMetadataKeysByStatement(dat) ## End(Not run)
Returns a page of CmsMetadataValues matching the specified Statement. The following fields are supported for filtering:
id
cmsValue
cmsKey
keyValueMemberContent
dfp_getCmsMetadataValuesByStatement(request_data, as_df = TRUE, verbose = FALSE)
dfp_getCmsMetadataValuesByStatement(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 |
a data.frame
or list
containing all the elements of a getCmsMetadataValuesByStatementResponse
Google Documentation for getCmsMetadataValuesByStatement
## Not run: dat <- list(filterStatement=list('query'="WHERE status='ACTIVE'")) res <- dfp_getCmsMetadataValuesByStatement(dat) ## End(Not run)
## Not run: dat <- list(filterStatement=list('query'="WHERE status='ACTIVE'")) res <- dfp_getCmsMetadataValuesByStatement(dat) ## End(Not run)
Gets a CompanyPage of Company objects that satisfy the given Statement query. The following fields are supported for filtering:
id
name
type
lastModifiedDateTime
dfp_getCompaniesByStatement(request_data, as_df = TRUE, verbose = FALSE)
dfp_getCompaniesByStatement(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 |
a data.frame
or list
containing all the elements of a getCompaniesByStatementResponse
Google Documentation for getCompaniesByStatement
## Not run: dat <- list(filterStatement=list('query'="WHERE status='ACTIVE'")) res <- dfp_getCompaniesByStatement(dat) ## End(Not run)
## Not run: dat <- list(filterStatement=list('query'="WHERE status='ACTIVE'")) res <- dfp_getCompaniesByStatement(dat) ## End(Not run)
Gets a ContactPage of Contact objects that satisfy the given Statement query. The following fields are supported for filtering:
name
id
comment
companyId
title
cellPhone
workPhone
faxPhone
status
dfp_getContactsByStatement(request_data, as_df = TRUE, verbose = FALSE)
dfp_getContactsByStatement(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 |
a data.frame
or list
containing all the elements of a getContactsByStatementResponse
Google Documentation for getContactsByStatement
## Not run: dat <- list(filterStatement=list('query'="WHERE status='ACTIVE'")) res <- dfp_getContactsByStatement(dat) ## End(Not run)
## Not run: dat <- list(filterStatement=list('query'="WHERE status='ACTIVE'")) res <- dfp_getContactsByStatement(dat) ## End(Not run)
Gets a ContentBundlePage of ContentBundle objects that satisfy the given Statement query. The following fields are supported for filtering:
id
name
status
dfp_getContentBundlesByStatement(request_data, as_df = TRUE, verbose = FALSE)
dfp_getContentBundlesByStatement(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 |
a data.frame
or list
containing all the elements of a getContentBundlesByStatementResponse
Google Documentation for getContentBundlesByStatement
## Not run: dat <- list(filterStatement=list('query'="WHERE status='ACTIVE'")) res <- dfp_getContentBundlesByStatement(dat) ## End(Not run)
## Not run: dat <- list(filterStatement=list('query'="WHERE status='ACTIVE'")) res <- dfp_getContentBundlesByStatement(dat) ## End(Not run)
Service for retrieving Content. Content entities can be targeted in video LineItems. You can query for content that belongs to a particular category or has assigned metadata. Categories and metadata for Content are stored in DFP as CustomCriteria. For example, to find all Content that is "genre=comedy", you would:
Retrieve the custom targeting key corresponding to "genre" using CustomTargetingService#getCustomTargetingKeysByStatement
Using the CustomTargetingService#getCustomTargetingValuesByStatement method and a filter like "WHERE customTargetingKeyId = :genreKeyId and name = 'comedy'", retrieve the ID for the "comedy" custom targeting value.
Call #getContentByStatementAndCustomTargetingValue with a filter like "WHERE status = 'ACTIVE'" and the ID of the custom targeting value from step 2.
dfp_getContentByStatement(request_data, as_df = TRUE, verbose = FALSE)
dfp_getContentByStatement(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 |
getContentByStatement
Gets a ContentPage of Content objects that satisfy the given {@link Statement query}. The following fields are supported for filtering:
id
status
name
lastModifiedDateTime
lastDaiIngestDateTime
daiIngestStatus
a data.frame
or list
containing all the elements of a getContentByStatementResponse
Google Documentation for getContentByStatement
## Not run: dat <- list(filterStatement=list('query'="WHERE status='ACTIVE'")) res <- dfp_getContentByStatement(dat) ## End(Not run)
## Not run: dat <- list(filterStatement=list('query'="WHERE status='ACTIVE'")) res <- dfp_getContentByStatement(dat) ## End(Not run)
Gets a ContentPage of Content objects that satisfy the given Statement query. Additionally, filters on the given value ID and key ID that the value belongs to. The following fields are supported for filtering:
id
status
name
lastModifiedDateTime
dfp_getContentByStatementAndCustomTargetingValue(as_df = TRUE, verbose = FALSE)
dfp_getContentByStatementAndCustomTargetingValue(as_df = TRUE, verbose = FALSE)
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 |
a data.frame
or list
containing all the elements of a getContentByStatementAndCustomTargetingValueResponse
Google Documentation for getContentByStatementAndCustomTargetingValue
## Not run: res <- dfp_getContentByStatementAndCustomTargetingValue() ## End(Not run)
## Not run: res <- dfp_getContentByStatementAndCustomTargetingValue() ## End(Not run)
Gets a CreativePage of Creative objects that satisfy the given Statement query. The following fields are supported for filtering:
id
name
advertiserId
width
height
lastModifiedDateTime
dfp_getCreativesByStatement(request_data, as_df = TRUE, verbose = FALSE)
dfp_getCreativesByStatement(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 |
a data.frame
or list
containing all the elements of a getCreativesByStatementResponse
Google Documentation for getCreativesByStatement
## Not run: dat <- list(filterStatement=list('query'="WHERE status='ACTIVE'")) res <- dfp_getCreativesByStatement(dat) ## End(Not run)
## Not run: dat <- list(filterStatement=list('query'="WHERE status='ACTIVE'")) res <- dfp_getCreativesByStatement(dat) ## End(Not run)
Gets a CreativeSetPage of CreativeSet objects that satisfy the given Statement query. The following fields are supported for filtering:
id
name
masterCreativeId
lastModifiedDateTime
dfp_getCreativeSetsByStatement(request_data, as_df = TRUE, verbose = FALSE)
dfp_getCreativeSetsByStatement(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 |
a data.frame
or list
containing all the elements of a getCreativeSetsByStatementResponse
Google Documentation for getCreativeSetsByStatement
## Not run: dat <- list(filterStatement=list('query'="WHERE status='ACTIVE'")) res <- dfp_getCreativeSetsByStatement(dat) ## End(Not run)
## Not run: dat <- list(filterStatement=list('query'="WHERE status='ACTIVE'")) res <- dfp_getCreativeSetsByStatement(dat) ## End(Not run)
Provides methods for retrieving CreativeTemplate objects.
dfp_getCreativeTemplatesByStatement(request_data, as_df = FALSE, verbose = FALSE)
dfp_getCreativeTemplatesByStatement(request_data, as_df = FALSE, 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 |
getCreativeTemplatesByStatement
Gets a CreativeTemplatePage of CreativeTemplate objects that satisfy the given Statement query. The following fields are supported for filtering:
id
name
type
status
a data.frame
or list
containing all the elements of a getCreativeTemplatesByStatementResponse
Google Documentation for getCreativeTemplatesByStatement
## Not run: dat <- list(filterStatement=list('query'="WHERE status='ACTIVE'")) res <- dfp_getCreativeTemplatesByStatement(dat) ## End(Not run)
## Not run: dat <- list(filterStatement=list('query'="WHERE status='ACTIVE'")) res <- dfp_getCreativeTemplatesByStatement(dat) ## End(Not run)
Gets a CreativeWrapperPage of CreativeWrapper objects that satisfy the given Statement query. The following fields are supported for filtering:
id
labelId
status
ordering
dfp_getCreativeWrappersByStatement(request_data, as_df = TRUE, verbose = FALSE)
dfp_getCreativeWrappersByStatement(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 |
a data.frame
or list
containing all the elements of a getCreativeWrappersByStatementResponse
Google Documentation for getCreativeWrappersByStatement
## Not run: dat <- list(filterStatement=list('query'="WHERE status='ACTIVE'")) res <- dfp_getCreativeWrappersByStatement(dat) ## End(Not run)
## Not run: dat <- list(filterStatement=list('query'="WHERE status='ACTIVE'")) res <- dfp_getCreativeWrappersByStatement(dat) ## End(Not run)
Returns the current network for which requests are being made. Returns the current network for which requests are being made. @return the network for which the user is currently making the request Returns the current network for which requests are being made. @return the network for which the user is currently making the request
dfp_getCurrentNetwork(as_df = TRUE, verbose = FALSE)
dfp_getCurrentNetwork(as_df = TRUE, verbose = FALSE)
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 |
a data.frame
or list
containing all the elements of a getCurrentNetworkResponse
Google Documentation for getCurrentNetwork
## Not run: res <- dfp_getCurrentNetwork() ## End(Not run)
## Not run: res <- dfp_getCurrentNetwork() ## End(Not run)
Returns the current User. Returns the current User. @return the current user Returns the current User. @return the current user
dfp_getCurrentUser(as_df = TRUE, verbose = FALSE)
dfp_getCurrentUser(as_df = TRUE, verbose = FALSE)
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 |
a data.frame
or list
containing all the elements of a getCurrentUserResponse
Google Documentation for getCurrentUser
## Not run: res <- dfp_getCurrentUser() ## End(Not run)
## Not run: res <- dfp_getCurrentUser() ## End(Not run)
Returns the CustomFieldOption uniquely identified by the given ID.
dfp_getCustomFieldOption(request_data, as_df = TRUE, verbose = FALSE)
dfp_getCustomFieldOption(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 |
a data.frame
or list
containing all the elements of a getCustomFieldOptionResponse
Google Documentation for getCustomFieldOption
## Not run: res <- dfp_getCustomFieldOption(request_data) ## End(Not run)
## Not run: res <- dfp_getCustomFieldOption(request_data) ## End(Not run)
Gets a CustomFieldPage of CustomField objects that satisfy the given Statement query. The following fields are supported for filtering:
id
entityType
name
isActive
visibility
dfp_getCustomFieldsByStatement(request_data, as_df = TRUE, verbose = FALSE)
dfp_getCustomFieldsByStatement(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 |
a data.frame
or list
containing all the elements of a getCustomFieldsByStatementResponse
Google Documentation for getCustomFieldsByStatement
## Not run: dat <- list(filterStatement=list('query'="WHERE status='ACTIVE'")) res <- dfp_getCustomFieldsByStatement(dat) ## End(Not run)
## Not run: dat <- list(filterStatement=list('query'="WHERE status='ACTIVE'")) res <- dfp_getCustomFieldsByStatement(dat) ## End(Not run)
Gets a CustomTargetingKeyPage of CustomTargetingKey objects that satisfy the given Statement query. The following fields are supported for filtering:
NA
id
name
displayName
type
dfp_getCustomTargetingKeysByStatement(request_data, as_df = TRUE, verbose = FALSE)
dfp_getCustomTargetingKeysByStatement(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 |
a data.frame
or list
containing all the elements of a getCustomTargetingKeysByStatementResponse
Google Documentation for getCustomTargetingKeysByStatement
## Not run: dat <- list(filterStatement=list('query'="WHERE status='ACTIVE'")) res <- dfp_getCustomTargetingKeysByStatement(dat) ## End(Not run)
## Not run: dat <- list(filterStatement=list('query'="WHERE status='ACTIVE'")) res <- dfp_getCustomTargetingKeysByStatement(dat) ## End(Not run)
Gets a CustomTargetingValuePage of CustomTargetingValue objects that satisfy the given Statement query. The WHERE clause in the Statement query must always contain CustomTargetingValue customTargetingKeyId as one of its columns in a way that it is AND'ed with the rest of the query. So, if you want to retrieve values for a known set of key ids, valid Statement query would look like: "WHERE customTargetingKeyId IN ('17','18','19')" retrieves all values that are associated with keys having ids 17, 18, 19. "WHERE customTargetingKeyId = '17' AND name = 'red'" retrieves values that are associated with keys having id 17 and value name is 'red'. The following fields are supported for filtering:
id
customTargetingKeyId
name
displayName
matchType
dfp_getCustomTargetingValuesByStatement(request_data, as_df = TRUE, verbose = FALSE)
dfp_getCustomTargetingValuesByStatement(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 |
a data.frame
or list
containing all the elements of a getCustomTargetingValuesByStatementResponse
Google Documentation for getCustomTargetingValuesByStatement
## Not run: dat <- list(filterStatement=list('query'="WHERE status='ACTIVE'")) res <- dfp_getCustomTargetingValuesByStatement(dat) ## End(Not run)
## Not run: dat <- list(filterStatement=list('query'="WHERE status='ACTIVE'")) res <- dfp_getCustomTargetingValuesByStatement(dat) ## End(Not run)
Gets a DaiAuthenticationKeyPage of DaiAuthenticationKey objects that satisfy the given Statement query. The following fields are supported for filtering:
id
status
name
dfp_getDaiAuthenticationKeysByStatement(request_data, as_df = TRUE, verbose = FALSE)
dfp_getDaiAuthenticationKeysByStatement(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 |
a data.frame
or list
containing all the elements of a getDaiAuthenticationKeysByStatementResponse
Google Documentation for getDaiAuthenticationKeysByStatement
## Not run: dat <- list(filterStatement=list('query'="WHERE status='ACTIVE'")) res <- dfp_getDaiAuthenticationKeysByStatement(dat) ## End(Not run)
## Not run: dat <- list(filterStatement=list('query'="WHERE status='ACTIVE'")) res <- dfp_getDaiAuthenticationKeysByStatement(dat) ## End(Not run)
Gets the delivery forecast for a list of ProspectiveLineItem objects in a single delivery simulation with line items potentially contending with each other. A delivery forecast reports the number of units that will be delivered to each line item given the line item goals and contentions from other line items. Gets the delivery forecast for a list of ProspectiveLineItem objects in a single delivery simulation with line items potentially contending with each other. A delivery forecast reports the number of units that will be delivered to each line item given the line item goals and contentions from other line items. @param lineItems line items to be forecasted for delivery @param forecastOptions options controlling the forecast Gets the delivery forecast for a list of ProspectiveLineItem objects in a single delivery simulation with line items potentially contending with each other. A delivery forecast reports the number of units that will be delivered to each line item given the line item goals and contentions from other line items. @param lineItems line items to be forecasted for delivery @param forecastOptions options controlling the forecast
dfp_getDeliveryForecast(request_data, as_df = TRUE, verbose = FALSE)
dfp_getDeliveryForecast(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 |
a data.frame
or list
containing all the elements of a getDeliveryForecastResponse
Google Documentation for getDeliveryForecast
## Not run: filter <- "WHERE Status='DELIVERING' LIMIT 1" one_li <- dfp_getLineItemsByStatement(list(filterStatement=list(query=filter)))[[1]] hypothetical_line_item <- list(lineItem= list(id=one_li$id, startDateTime=one_li$startDateTime, endDateTime=dfp_date_to_list(Sys.Date()+100), lineItemType=one_li$lineItemType, costType=one_li$costType, primaryGoal=one_li$primaryGoal, targeting=one_li$targeting)) request_data <- list(lineItems=hypothetical_line_item, forecastOptions=list(ignoredLineItemIds=NULL)) dfp_getDeliveryForecast_result <- dfp_getDeliveryForecast(request_data) ## End(Not run)
## Not run: filter <- "WHERE Status='DELIVERING' LIMIT 1" one_li <- dfp_getLineItemsByStatement(list(filterStatement=list(query=filter)))[[1]] hypothetical_line_item <- list(lineItem= list(id=one_li$id, startDateTime=one_li$startDateTime, endDateTime=dfp_date_to_list(Sys.Date()+100), lineItemType=one_li$lineItemType, costType=one_li$costType, primaryGoal=one_li$primaryGoal, targeting=one_li$targeting)) request_data <- list(lineItems=hypothetical_line_item, forecastOptions=list(ignoredLineItemIds=NULL)) dfp_getDeliveryForecast_result <- dfp_getDeliveryForecast(request_data) ## End(Not run)
Gets the delivery forecast for a list of existing LineItem objects in a single delivery simulation. A delivery forecast reports the number of units that will be delivered to each line item given the line item goals and contentions from other line items. Gets the delivery forecast for a list of existing LineItem objects in a single delivery simulation. A delivery forecast reports the number of units that will be delivered to each line item given the line item goals and contentions from other line items. @param lineItemIds the IDs of line items to be forecasted for delivery @param forecastOptions options controlling the forecast Gets the delivery forecast for a list of existing LineItem objects in a single delivery simulation. A delivery forecast reports the number of units that will be delivered to each line item given the line item goals and contentions from other line items. @param lineItemIds the IDs of line items to be forecasted for delivery @param forecastOptions options controlling the forecast
dfp_getDeliveryForecastByIds(request_data, as_df = TRUE, verbose = FALSE)
dfp_getDeliveryForecastByIds(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 |
a data.frame
or list
containing all the elements of a getDeliveryForecastByIdsResponse
Google Documentation for getDeliveryForecastByIds
## Not run: filter <- "WHERE Status='DELIVERING' LIMIT 1" one_li <- dfp_getLineItemsByStatement(list(filterStatement=list(query=filter)))[[1]] # not specifying forecastOptions brings up NotNullError.ARG2_NULL, so send, but keep null request_data <- list(lineItemIds=one_li$id, forecastOptions=list(ignoredLineItemIds=NULL)) result <- dfp_getDeliveryForecastByIds(request_data) ## End(Not run)
## Not run: filter <- "WHERE Status='DELIVERING' LIMIT 1" one_li <- dfp_getLineItemsByStatement(list(filterStatement=list(query=filter)))[[1]] # not specifying forecastOptions brings up NotNullError.ARG2_NULL, so send, but keep null request_data <- list(lineItemIds=one_li$id, forecastOptions=list(ignoredLineItemIds=NULL)) result <- dfp_getDeliveryForecastByIds(request_data) ## End(Not run)
Gets a ExchangeRatePage of ExchangeRate objects that satisfy the given Statement query. The following fields are supported for filtering:
id
currencyCode
refreshRate
direction
exchangeRate
dfp_getExchangeRatesByStatement(request_data, as_df = TRUE, verbose = FALSE)
dfp_getExchangeRatesByStatement(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 |
a data.frame
or list
containing all the elements of a getExchangeRatesByStatementResponse
Google Documentation for getExchangeRatesByStatement
## Not run: dat <- list(filterStatement=list('query'="WHERE status='ACTIVE'")) res <- dfp_getExchangeRatesByStatement(dat) ## End(Not run)
## Not run: dat <- list(filterStatement=list('query'="WHERE status='ACTIVE'")) res <- dfp_getExchangeRatesByStatement(dat) ## End(Not run)
Gets a LabelPage of Label objects that satisfy the given Statement query. The following fields are supported for filtering:
id
type
name
description
isActive
dfp_getLabelsByStatement(request_data, as_df = TRUE, verbose = FALSE)
dfp_getLabelsByStatement(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 |
a data.frame
or list
containing all the elements of a getLabelsByStatementResponse
Google Documentation for getLabelsByStatement
## Not run: dat <- list(filterStatement=list('query'="WHERE status='ACTIVE'")) res <- dfp_getLabelsByStatement(dat) ## End(Not run)
## Not run: dat <- list(filterStatement=list('query'="WHERE status='ACTIVE'")) res <- dfp_getLabelsByStatement(dat) ## End(Not run)
Gets a LineItemCreativeAssociationPage of LineItemCreativeAssociation objects that satisfy the given Statement query. The following fields are supported for filtering:
creativeId
manualCreativeRotationWeight
destinationUrl
lineItemId
status
lastModifiedDateTime
dfp_getLineItemCreativeAssociationsByStatement(request_data, as_df = TRUE, verbose = FALSE)
dfp_getLineItemCreativeAssociationsByStatement(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 |
a data.frame
or list
containing all the elements of a getLineItemCreativeAssociationsByStatementResponse
Google Documentation for getLineItemCreativeAssociationsByStatement
## Not run: dat <- list(filterStatement=list('query'="WHERE status='ACTIVE'")) res <- dfp_getLineItemCreativeAssociationsByStatement(dat) ## End(Not run)
## Not run: dat <- list(filterStatement=list('query'="WHERE status='ACTIVE'")) res <- dfp_getLineItemCreativeAssociationsByStatement(dat) ## End(Not run)
Gets a LineItemPage of LineItem objects that satisfy the given Statement query. The following fields are supported for filtering:
CostType
CreationDateTime
DeliveryRateType
EndDateTime
ExternalId
Id
IsMissingCreatives
IsSetTopBoxEnabled
LastModifiedDateTime
LineItemType
Name
OrderId
StartDateTime
Status
Targeting
UnitsBought
dfp_getLineItemsByStatement(request_data, as_df = FALSE, verbose = FALSE)
dfp_getLineItemsByStatement(request_data, as_df = FALSE, 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 |
a data.frame
or list
containing all the elements of a getLineItemsByStatementResponse
Google Documentation for getLineItemsByStatement
## Not run: filter <- "WHERE LineItemType='STANDARD' and Status='DELIVERING' LIMIT 10" result <- dfp_getLineItemsByStatement(list(filterStatement=list(query=filter))) ## End(Not run)
## Not run: filter <- "WHERE LineItemType='STANDARD' and Status='DELIVERING' LIMIT 10" result <- dfp_getLineItemsByStatement(list(filterStatement=list(query=filter))) ## End(Not run)
Provides methods for creating, updating and retrieving LineItemTemplate objects.
dfp_getLineItemTemplatesByStatement(request_data, as_df = TRUE, verbose = FALSE)
dfp_getLineItemTemplatesByStatement(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 |
getLineItemTemplatesByStatement
Gets a LineItemTemplatePage of LineItemTemplate objects that satisfy the given Statement query. The following fields are supported for filtering:
id
a data.frame
or list
containing all the elements of a getLineItemTemplatesByStatementResponse
Google Documentation for getLineItemTemplatesByStatement
## Not run: dat <- list(filterStatement=list('query'="WHERE status='ACTIVE'")) res <- dfp_getLineItemTemplatesByStatement(dat) ## End(Not run)
## Not run: dat <- list(filterStatement=list('query'="WHERE status='ACTIVE'")) res <- dfp_getLineItemTemplatesByStatement(dat) ## End(Not run)
Gets a LiveStreamEventPage of LiveStreamEvent objects that satisfy the given Statement query. The following fields are supported for filtering:
id
dfp_getLiveStreamEventsByStatement(request_data, as_df = TRUE, verbose = FALSE)
dfp_getLiveStreamEventsByStatement(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 |
a data.frame
or list
containing all the elements of a getLiveStreamEventsByStatementResponse
Google Documentation for getLiveStreamEventsByStatement
## Not run: dat <- list(filterStatement=list('query'="WHERE status='ACTIVE'")) res <- dfp_getLiveStreamEventsByStatement(dat) ## End(Not run)
## Not run: dat <- list(filterStatement=list('query'="WHERE status='ACTIVE'")) res <- dfp_getLiveStreamEventsByStatement(dat) ## End(Not run)
Gets a MarketplaceCommentPage of MarketplaceComment objects that satisfy the given Statement query. This method only returns comments already sent to Marketplace, local draft ProposalMarketplaceInfo marketplaceComment are not included. The following fields are supported for filtering:
proposalId
dfp_getMarketplaceCommentsByStatement(request_data, as_df = TRUE, verbose = FALSE)
dfp_getMarketplaceCommentsByStatement(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 |
a data.frame
or list
containing all the elements of a getMarketplaceCommentsByStatementResponse
Google Documentation for getMarketplaceCommentsByStatement
## Not run: dat <- list(filterStatement=list('query'="WHERE status='ACTIVE'")) res <- dfp_getMarketplaceCommentsByStatement(dat) ## End(Not run)
## Not run: dat <- list(filterStatement=list('query'="WHERE status='ACTIVE'")) res <- dfp_getMarketplaceCommentsByStatement(dat) ## End(Not run)
Gets a MobileApplicationPage mobileApplicationPage of MobileApplication mobile applications that satisfy the given Statement. The following fields are supported for filtering:
id
displayName
appStore
appStoreId
NA
isArchived
dfp_getMobileApplicationsByStatement(request_data, as_df = TRUE, verbose = FALSE)
dfp_getMobileApplicationsByStatement(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 |
a data.frame
or list
containing all the elements of a getMobileApplicationsByStatementResponse
Google Documentation for getMobileApplicationsByStatement
## Not run: dat <- list(filterStatement=list('query'="WHERE status='ACTIVE'")) res <- dfp_getMobileApplicationsByStatement(dat) ## End(Not run)
## Not run: dat <- list(filterStatement=list('query'="WHERE status='ACTIVE'")) res <- dfp_getMobileApplicationsByStatement(dat) ## End(Not run)
Gets a NativeStylePage NativeStylePage of NativeStyle objects that satisfy the given Statement. The following fields are supported for filtering:
id
name
dfp_getNativeStylesByStatement(request_data, as_df = TRUE, verbose = FALSE)
dfp_getNativeStylesByStatement(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 |
a data.frame
or list
containing all the elements of a getNativeStylesByStatementResponse
Google Documentation for getNativeStylesByStatement
## Not run: dat <- list(filterStatement=list('query'="WHERE status='ACTIVE'")) res <- dfp_getNativeStylesByStatement(dat) ## End(Not run)
## Not run: dat <- list(filterStatement=list('query'="WHERE status='ACTIVE'")) res <- dfp_getNativeStylesByStatement(dat) ## End(Not run)
Gets an OrderPage of Order objects that satisfy the given Statement query. The following fields are supported for filtering:
advertiserId
endDateTime
id
name
salespersonId
startDateTime
status
traffickerId
lastModifiedDateTime
dfp_getOrdersByStatement(request_data, as_df = TRUE, verbose = FALSE)
dfp_getOrdersByStatement(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 |
a data.frame
or list
containing all the elements of a getOrdersByStatementResponse
Google Documentation for getOrdersByStatement
## Not run: dat <- list(filterStatement=list('query'="WHERE status='ACTIVE'")) res <- dfp_getOrdersByStatement(dat) ## End(Not run)
## Not run: dat <- list(filterStatement=list('query'="WHERE status='ACTIVE'")) res <- dfp_getOrdersByStatement(dat) ## End(Not run)
Gets a PackagePage of Package objects that satisfy the given Statement query. The following fields are supported for filtering:
id
name
proposalId
productPackageId
isArchived
lastModifiedDateTime
dfp_getPackagesByStatement(request_data, as_df = TRUE, verbose = FALSE)
dfp_getPackagesByStatement(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 |
a data.frame
or list
containing all the elements of a getPackagesByStatementResponse
Google Documentation for getPackagesByStatement
## Not run: dat <- list(filterStatement=list('query'="WHERE status='ACTIVE'")) res <- dfp_getPackagesByStatement(dat) ## End(Not run)
## Not run: dat <- list(filterStatement=list('query'="WHERE status='ACTIVE'")) res <- dfp_getPackagesByStatement(dat) ## End(Not run)
Gets a PlacementPage of Placement objects that satisfy the given Statement query. The following fields are supported for filtering:
description
id
name
placementCode
status
lastModifiedDateTime
dfp_getPlacementsByStatement(request_data, as_df = TRUE, verbose = FALSE)
dfp_getPlacementsByStatement(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 |
a data.frame
or list
containing all the elements of a getPlacementsByStatementResponse
Google Documentation for getPlacementsByStatement
## Not run: dat <- list(filterStatement=list('query'="WHERE status='ACTIVE'")) res <- dfp_getPlacementsByStatement(dat) ## End(Not run)
## Not run: dat <- list(filterStatement=list('query'="WHERE status='ACTIVE'")) res <- dfp_getPlacementsByStatement(dat) ## End(Not run)
Gets a PremiumRatePage of PremiumRate objects that satisfy the given Statement query. The following fields are supported for filtering:
id
rateCardId
pricingMethod
dfp_getPremiumRatesByStatement(request_data, as_df = TRUE, verbose = FALSE)
dfp_getPremiumRatesByStatement(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 |
a data.frame
or list
containing all the elements of a getPremiumRatesByStatementResponse
Google Documentation for getPremiumRatesByStatement
## Not run: dat <- list(filterStatement=list('query'="WHERE status='ACTIVE'")) res <- dfp_getPremiumRatesByStatement(dat) ## End(Not run)
## Not run: dat <- list(filterStatement=list('query'="WHERE status='ACTIVE'")) res <- dfp_getPremiumRatesByStatement(dat) ## End(Not run)
Returns an insite preview URL that references the specified site URL with the specified creative from the association served to it. For Creative Set previewing you may specify the master creative Id.
dfp_getPreviewUrl(as_df = TRUE, verbose = FALSE)
dfp_getPreviewUrl(as_df = TRUE, verbose = FALSE)
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 |
a data.frame
or list
containing all the elements of a getPreviewUrlResponse
Google Documentation for getPreviewUrl
## Not run: res <- dfp_getPreviewUrl() ## End(Not run)
## Not run: res <- dfp_getPreviewUrl() ## End(Not run)
Returns a list of URLs that reference the specified site URL with the specified creative from the association served to it. For Creative Set previewing you may specify the master creative Id. Each URL corresponds to one available native style for previewing the specified creative. creative
dfp_getPreviewUrlsForNativeStyles(as_df = TRUE, verbose = FALSE)
dfp_getPreviewUrlsForNativeStyles(as_df = TRUE, verbose = FALSE)
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 |
a data.frame
or list
containing all the elements of a getPreviewUrlsForNativeStylesResponse
Google Documentation for getPreviewUrlsForNativeStyles
## Not run: res <- dfp_getPreviewUrlsForNativeStyles() ## End(Not run)
## Not run: res <- dfp_getPreviewUrlsForNativeStyles() ## End(Not run)
Gets a ProductPackageItemPage of ProductPackageItem objects that satisfy the filtering criteria specified by given Statement query. The following fields are supported for filtering:
id
productPackageId
productId
productTemplateId
mandatory
archived
dfp_getProductPackageItemsByStatement(request_data, as_df = TRUE, verbose = FALSE)
dfp_getProductPackageItemsByStatement(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 |
a data.frame
or list
containing all the elements of a getProductPackageItemsByStatementResponse
Google Documentation for getProductPackageItemsByStatement
## Not run: dat <- list(filterStatement=list('query'="WHERE status='ACTIVE'")) res <- dfp_getProductPackageItemsByStatement(dat) ## End(Not run)
## Not run: dat <- list(filterStatement=list('query'="WHERE status='ACTIVE'")) res <- dfp_getProductPackageItemsByStatement(dat) ## End(Not run)
Gets a ProductPackagePage of ProductPackage objects that satisfy the filtering criteria specified by given Statement query. The following fields are supported for filtering:
id
name
notes
status
isArchived
lastModifiedDateTime
dfp_getProductPackagesByStatement(request_data, as_df = TRUE, verbose = FALSE)
dfp_getProductPackagesByStatement(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 |
a data.frame
or list
containing all the elements of a getProductPackagesByStatementResponse
Google Documentation for getProductPackagesByStatement
## Not run: dat <- list(filterStatement=list('query'="WHERE status='ACTIVE'")) res <- dfp_getProductPackagesByStatement(dat) ## End(Not run)
## Not run: dat <- list(filterStatement=list('query'="WHERE status='ACTIVE'")) res <- dfp_getProductPackagesByStatement(dat) ## End(Not run)
Provides methods for updating and retrieving Product objects. A Product represents a line item proposal. Products are generated from ProductTemplate product templates on a periodic basis using the product template's attributes. Products are typically used by inventory managers to restrict what salespeople can sell. To use this service, you need to have the new sales management solution enabled on your network. If you do not see a "Sales" tab in <a href="https://www.google.com/dfp">DoubleClick for Publishers (DFP)</a>, you will not be able to use this service.
dfp_getProductsByStatement(request_data, as_df = TRUE, verbose = FALSE)
dfp_getProductsByStatement(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 |
getProductsByStatement
Gets a ProductPage of Product objects that satisfy the criteria specified by given Statement query. When using sales management, the following fields are supported for filtering and/or sorting.
rateCardId
status
lineItemType
productType
rateType
productTemplateId
name
description
id
lastModifiedDateTime
a data.frame
or list
containing all the elements of a getProductsByStatementResponse
Google Documentation for getProductsByStatement
## Not run: dat <- list(filterStatement=list('query'="WHERE status='ACTIVE'")) res <- dfp_getProductsByStatement(dat) ## End(Not run)
## Not run: dat <- list(filterStatement=list('query'="WHERE status='ACTIVE'")) res <- dfp_getProductsByStatement(dat) ## End(Not run)
Gets a ProductTemplatePage of ProductTemplate objects that satisfy the filtering criteria specified by given Statement query. The following fields are supported for filtering:
id
name
nameMacro
description
status
lastModifiedDateTime
lineItemType
productType
rateType
dfp_getProductTemplatesByStatement(request_data, as_df = TRUE, verbose = FALSE)
dfp_getProductTemplatesByStatement(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 |
a data.frame
or list
containing all the elements of a getProductTemplatesByStatementResponse
Google Documentation for getProductTemplatesByStatement
## Not run: dat <- list(filterStatement=list('query'="WHERE status='ACTIVE'")) res <- dfp_getProductTemplatesByStatement(dat) ## End(Not run)
## Not run: dat <- list(filterStatement=list('query'="WHERE status='ACTIVE'")) res <- dfp_getProductTemplatesByStatement(dat) ## End(Not run)
Gets a ProposalLineItemPage of ProposalLineItem objects that satisfy the given Statement query. The following fields are supported for filtering:
id
name
proposalId
startDateTime
endDateTime
isArchived
lastModifiedDateTime
useThirdPartyAdServerFromProposal Only applicable for non-programmatic proposal line items using sales management
thirdPartyAdServerId Only applicable for non-programmatic proposal line items using sales management
customThirdPartyAdServerName Only applicable for non-programmatic proposal line items using sales management
isProgrammatic
dfp_getProposalLineItemsByStatement(request_data, as_df = TRUE, verbose = FALSE)
dfp_getProposalLineItemsByStatement(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 |
a data.frame
or list
containing all the elements of a getProposalLineItemsByStatementResponse
Google Documentation for getProposalLineItemsByStatement
## Not run: dat <- list(filterStatement=list('query'="WHERE status='ACTIVE'")) res <- dfp_getProposalLineItemsByStatement(dat) ## End(Not run)
## Not run: dat <- list(filterStatement=list('query'="WHERE status='ACTIVE'")) res <- dfp_getProposalLineItemsByStatement(dat) ## End(Not run)
Gets a ProposalPage of Proposal objects that satisfy the given Statement query. The following fields are supported for filtering:
id
dfpOrderId
name
status
isArchived
approvalStatus Only applicable for proposals using sales management
lastModifiedDateTime
thirdPartyAdServerId Only applicable for non-programmatic proposals using sales management
customThirdPartyAdServerName Only applicable for non-programmatic proposals using sales management
hasOfflineErrors
isProgrammatic
negotiationStatus Only applicable for programmatic proposals
dfp_getProposalsByStatement(request_data, as_df = TRUE, verbose = FALSE)
dfp_getProposalsByStatement(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 |
a data.frame
or list
containing all the elements of a getProposalsByStatementResponse
Google Documentation for getProposalsByStatement
## Not run: dat <- list(filterStatement=list('query'="WHERE status='ACTIVE'")) res <- dfp_getProposalsByStatement(dat) ## End(Not run)
## Not run: dat <- list(filterStatement=list('query'="WHERE status='ACTIVE'")) res <- dfp_getProposalsByStatement(dat) ## End(Not run)
Gets a RateCardPage of RateCard objects that satisfy the given Statement query. The following fields are supported for filtering:
ForMarketplace
Id
LastModifiedDateTime
Name
Status
dfp_getRateCardsByStatement(request_data, as_df = TRUE, verbose = FALSE)
dfp_getRateCardsByStatement(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 |
a data.frame
or list
containing all the elements of a getRateCardsByStatementResponse
Google Documentation for getRateCardsByStatement
## Not run: dat <- list(filterStatement=list('query'="WHERE status='ACTIVE'")) res <- dfp_getRateCardsByStatement(dat) ## End(Not run)
## Not run: dat <- list(filterStatement=list('query'="WHERE status='ACTIVE'")) res <- dfp_getRateCardsByStatement(dat) ## End(Not run)
Provides methods for retrieving and updating ReconciliationLineItemReport objects.
dfp_getReconciliationLineItemReportsByStatement(request_data, as_df = TRUE, verbose = FALSE)
dfp_getReconciliationLineItemReportsByStatement(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 |
getReconciliationLineItemReportsByStatement
Gets a ReconciliationLineItemReportPage of ReconciliationLineItemReport objects that satisfy the given Statement query. The following fields are supported for filtering:
id
reconciliationReportId
orderId
proposalId
lineItemId
proposalLineItemId
a data.frame
or list
containing all the elements of a getReconciliationLineItemReportsByStatementResponse
Google Documentation for getReconciliationLineItemReportsByStatement
## Not run: dat <- list(filterStatement=list('query'="WHERE status='ACTIVE'")) res <- dfp_getReconciliationLineItemReportsByStatement(dat) ## End(Not run)
## Not run: dat <- list(filterStatement=list('query'="WHERE status='ACTIVE'")) res <- dfp_getReconciliationLineItemReportsByStatement(dat) ## End(Not run)
Provides methods for retrieving, reconciling, and reverting ReconciliationOrderReport objects.
dfp_getReconciliationOrderReportsByStatement(request_data, as_df = TRUE, verbose = FALSE)
dfp_getReconciliationOrderReportsByStatement(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 |
getReconciliationOrderReportsByStatement
Gets an ReconciliationOrderReportPage of ReconciliationOrderReport objects that satisfy the given Statement query. The following fields are supported for filtering:
reconciliationReportId
id
orderId
proposalId
status
submissionDateTime
submitterId
a data.frame
or list
containing all the elements of a getReconciliationOrderReportsByStatementResponse
Google Documentation for getReconciliationOrderReportsByStatement
## Not run: dat <- list(filterStatement=list('query'="WHERE status='ACTIVE'")) res <- dfp_getReconciliationOrderReportsByStatement(dat) ## End(Not run)
## Not run: dat <- list(filterStatement=list('query'="WHERE status='ACTIVE'")) res <- dfp_getReconciliationOrderReportsByStatement(dat) ## End(Not run)
Provides methods for retrieving and updating the ReconciliationReportRow objects.
dfp_getReconciliationReportRowsByStatement(request_data, as_df = TRUE, verbose = FALSE)
dfp_getReconciliationReportRowsByStatement(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 |
getReconciliationReportRowsByStatement
Gets a ReconciliationReportRowPage of ReconciliationReportRow objects that satisfy the given Statement query. The following fields are supported for filtering:
reconciliationReportId
advertiserId
orderId
lineItemId
proposalLineItemId
creativeId
lineItemCostType
dfpClicks
dfpImpressions
dfpLineItemDays
thirdPartyClicks
thirdPartyImpressions
thirdPartyLineItemDays
manualClicks
manualImpressions
manualLineItemDays
reconciledClicks
reconciledImpressions
reconciledLineItemDays
a data.frame
or list
containing all the elements of a getReconciliationReportRowsByStatementResponse
Google Documentation for getReconciliationReportRowsByStatement
## Not run: dat <- list(filterStatement=list('query'="WHERE status='ACTIVE'")) res <- dfp_getReconciliationReportRowsByStatement(dat) ## End(Not run)
## Not run: dat <- list(filterStatement=list('query'="WHERE status='ACTIVE'")) res <- dfp_getReconciliationReportRowsByStatement(dat) ## End(Not run)
Provides methods for retrieving, submitting and reverting the ReconciliationReport objects. A ReconciliationReport is a group of ReconciliationReportRow objects.
dfp_getReconciliationReportsByStatement(request_data, as_df = TRUE, verbose = FALSE)
dfp_getReconciliationReportsByStatement(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 |
getReconciliationReportsByStatement
Gets an ReconciliationReportPage of ReconciliationReport objects that satisfy the given Statement query. The following fields are supported for filtering.
id
status
startDate
a data.frame
or list
containing all the elements of a getReconciliationReportsByStatementResponse
Google Documentation for getReconciliationReportsByStatement
## Not run: dat <- list(filterStatement=list('query'="WHERE status='ACTIVE'")) res <- dfp_getReconciliationReportsByStatement(dat) ## End(Not run)
## Not run: dat <- list(filterStatement=list('query'="WHERE status='ACTIVE'")) res <- dfp_getReconciliationReportsByStatement(dat) ## End(Not run)
Provides methods for executing a ReportJob and retrieving performance and statistics about ad campaigns, networks, inventory and sales. Follow the steps outlined below:
Create the ReportJob object by invoking ReportService#runReportJob.
Poll the ReportJob object using ReportService#getReportJob.
Continue to poll the ReportJob object until the ReportJob#reportJobStatus field is equal to ReportJobStatus#COMPLETED or ReportJobStatus#FAILED.
If successful, fetch the URL for downloading the report by invoking ReportService#getReportDownloadURL.
<h4>Test network behavior</h4> The networks created using NetworkService#makeTestNetwork are unable to provide reports that would be comparable to the production environment because reports require traffic history. In the test networks, reports will consistently return no data for all reports.
dfp_getReportDownloadURL(request_data, as_df = FALSE, verbose = FALSE)
dfp_getReportDownloadURL(request_data, as_df = FALSE, 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 |
getReportDownloadURL
Returns the URL at which the report file can be downloaded. The report will be generated as a gzip archive, containing the report file itself.
a data.frame
or list
containing all the elements of a getReportDownloadURLResponse
Google Documentation for getReportDownloadURL
## Not run: request_data <- list(reportJob= list(reportQuery= list(dimensions='MONTH_AND_YEAR', dimensions='AD_UNIT_ID', adUnitView='FLAT', columns='AD_SERVER_CLICKS', dateRangeType='LAST_WEEK'))) # the result is a list and most importantly the ID is included for checking its status dfp_runReportJob_result <- dfp_runReportJob(request_data) # only run after the status is "COMPLETED" request_data <- list(reportJobId=dfp_runReportJob_result$id, exportFormat='CSV_DUMP') dfp_getReportDownloadURL_result <- dfp_getReportDownloadURL(request_data) ## End(Not run)
## Not run: request_data <- list(reportJob= list(reportQuery= list(dimensions='MONTH_AND_YEAR', dimensions='AD_UNIT_ID', adUnitView='FLAT', columns='AD_SERVER_CLICKS', dateRangeType='LAST_WEEK'))) # the result is a list and most importantly the ID is included for checking its status dfp_runReportJob_result <- dfp_runReportJob(request_data) # only run after the status is "COMPLETED" request_data <- list(reportJobId=dfp_runReportJob_result$id, exportFormat='CSV_DUMP') dfp_getReportDownloadURL_result <- dfp_getReportDownloadURL(request_data) ## End(Not run)
Returns the URL at which the report file can be downloaded, and allows for customization of the downloaded report. By default, the report will be generated as a gzip archive, containing the report file itself. This can be changed by setting ReportDownloadOptions useGzipCompression to false.
dfp_getReportDownloadUrlWithOptions(request_data, as_df = FALSE, verbose = FALSE)
dfp_getReportDownloadUrlWithOptions(request_data, as_df = FALSE, 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 |
a data.frame
or list
containing all the elements of a getReportDownloadUrlWithOptionsResponse
Google Documentation for getReportDownloadUrlWithOptions
## Not run: res <- dfp_getReportDownloadUrlWithOptions(request_data) ## End(Not run)
## Not run: res <- dfp_getReportDownloadUrlWithOptions(request_data) ## End(Not run)
Returns the ReportJobStatus of the report job with the specified ID. Returns the ReportJobStatus of the report job with the specified ID. Returns the ReportJobStatus of the report job with the specified ID.
dfp_getReportJobStatus(request_data, as_df = FALSE, verbose = FALSE)
dfp_getReportJobStatus(request_data, as_df = FALSE, 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 |
a data.frame
or list
containing all the elements of a getReportJobStatusResponse
Google Documentation for getReportJobStatus
## Not run: request_data <- list(reportJob= list(reportQuery= list(dimensions='MONTH_AND_YEAR', dimensions='AD_UNIT_ID', adUnitView='FLAT', columns='AD_SERVER_CLICKS', dateRangeType='LAST_WEEK'))) # the result is a list and most importantly the ID is included for checking its status dfp_runReportJob_result <- dfp_runReportJob(request_data) request_data <- list(reportJobId=dfp_runReportJob_result$id) dfp_getReportJobStatus_result <- dfp_getReportJobStatus(request_data) dfp_getReportJobStatus_result # a simple while loop can keep checking a long running request until ready counter <- 0 while(dfp_getReportJobStatus_result != 'COMPLETED' & counter < 10){ dfp_getReportJobStatus_result <- dfp_getReportJobStatus(request_data) Sys.sleep(3) counter <- counter + 1 } ## End(Not run)
## Not run: request_data <- list(reportJob= list(reportQuery= list(dimensions='MONTH_AND_YEAR', dimensions='AD_UNIT_ID', adUnitView='FLAT', columns='AD_SERVER_CLICKS', dateRangeType='LAST_WEEK'))) # the result is a list and most importantly the ID is included for checking its status dfp_runReportJob_result <- dfp_runReportJob(request_data) request_data <- list(reportJobId=dfp_runReportJob_result$id) dfp_getReportJobStatus_result <- dfp_getReportJobStatus(request_data) dfp_getReportJobStatus_result # a simple while loop can keep checking a long running request until ready counter <- 0 while(dfp_getReportJobStatus_result != 'COMPLETED' & counter < 10){ dfp_getReportJobStatus_result <- dfp_getReportJobStatus(request_data) Sys.sleep(3) counter <- counter + 1 } ## End(Not run)
Retrieves a page of the saved queries either created by or shared with the current user. Each SavedQuery in the page, if it is compatible with the current API version, will contain a ReportQuery object which can be optionally modified and used to create a ReportJob. This can then be passed to ReportService runReportJob. The following fields are supported for filtering:
id
name
dfp_getSavedQueriesByStatement(request_data, as_df = FALSE, verbose = FALSE)
dfp_getSavedQueriesByStatement(request_data, as_df = FALSE, 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 |
a data.frame
or list
containing all the elements of a getSavedQueriesByStatementResponse
Google Documentation for getSavedQueriesByStatement
## Not run: request_data <- list(filterStatement=list(query="WHERE id = 936165016")) this_result <- dfp_getSavedQueriesByStatement(request_data) this_report_query <- this_result$reportQuery # resubmit the report job with the saved query report_data <- list(reportJob=list(reportQuery = this_report_query)) report_data <- dfp_full_report_wrapper(report_data) ## End(Not run)
## Not run: request_data <- list(filterStatement=list(query="WHERE id = 936165016")) this_result <- dfp_getSavedQueriesByStatement(request_data) this_report_query <- this_result$reportQuery # resubmit the report job with the saved query report_data <- list(reportJob=list(reportQuery = this_report_query)) report_data <- dfp_full_report_wrapper(report_data) ## End(Not run)
This service provides operations for retrieving and approving SuggestedAdUnit objects. Publishers may create ad tags that lack a corresponding ad unit defined in DFP, in order to gather information about potential ads without needing to create dummy ad units and make them available for targeting in line items. Any undefined ad unit to receive more than ten serving requests in the past week is treated as a 'suggested ad unit'. These can be queried by the client and selectively approved. Approval causes a new ad unit to be created based on the suggested ad unit. Unapproved suggested ad units cease to exist whenever their corresponding ad tag has been served fewer than ten times in the past seven days. This service is only available to Premium publishers. Before use, suggested ad units must be enabled for the client's network. This can be done in the UI: in the Inventory tab, click "Network settings" in the left-hand panel, then enable the checkbox "Get suggestions for new ad units." If suggested ad units are not enabled, then #getSuggestedAdUnitsByStatement will always return an empty page.
dfp_getSuggestedAdUnitsByStatement(request_data, as_df = TRUE, verbose = FALSE)
dfp_getSuggestedAdUnitsByStatement(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 |
getSuggestedAdUnitsByStatement
Gets a SuggestedAdUnitPage of SuggestedAdUnit objects that satisfy the filter query. There is a system-enforced limit of 1000 on the number of suggested ad units that are suggested at any one time. <strong>Note:</strong> After API version 201311, the id field will only be numerical.
id
numRequests
a data.frame
or list
containing all the elements of a getSuggestedAdUnitsByStatementResponse
Google Documentation for getSuggestedAdUnitsByStatement
## Not run: dat <- list(filterStatement=list('query'="WHERE status='ACTIVE'")) res <- dfp_getSuggestedAdUnitsByStatement(dat) ## End(Not run)
## Not run: dat <- list(filterStatement=list('query'="WHERE status='ACTIVE'")) res <- dfp_getSuggestedAdUnitsByStatement(dat) ## End(Not run)
Service for interacting with Targeting Presets.
dfp_getTargetingPresetsByStatement(request_data, as_df = TRUE, verbose = FALSE)
dfp_getTargetingPresetsByStatement(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 |
getTargetingPresetsByStatement
Gets a TargetingPresetPage of TargetingPreset objects that satisfy the given Statement query. The following fields are supported for filtering:
id
name
a data.frame
or list
containing all the elements of a getTargetingPresetsByStatementResponse
Google Documentation for getTargetingPresetsByStatement
## Not run: dat <- list(filterStatement=list('query'="WHERE status='ACTIVE'")) res <- dfp_getTargetingPresetsByStatement(dat) ## End(Not run)
## Not run: dat <- list(filterStatement=list('query'="WHERE status='ACTIVE'")) res <- dfp_getTargetingPresetsByStatement(dat) ## End(Not run)
Gets a TeamPage of Team objects that satisfy the given Statement query. The following fields are supported for filtering:
id
name
description
dfp_getTeamsByStatement(request_data, as_df = TRUE, verbose = FALSE)
dfp_getTeamsByStatement(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 |
a data.frame
or list
containing all the elements of a getTeamsByStatementResponse
Google Documentation for getTeamsByStatement
## Not run: dat <- list(filterStatement=list('query'="WHERE status='ACTIVE'")) res <- dfp_getTeamsByStatement(dat) ## End(Not run)
## Not run: dat <- list(filterStatement=list('query'="WHERE status='ACTIVE'")) res <- dfp_getTeamsByStatement(dat) ## End(Not run)
Provides methods for creating, updating and retrieving Adjustment objects.
dfp_getTrafficAdjustmentsByStatement(request_data, as_df = TRUE, verbose = FALSE)
dfp_getTrafficAdjustmentsByStatement(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 |
Adjustments are used to adjust a particular ad unit for forecasting. For, example you might have a manual adjustment for an inventory unit that will be seeing a spike for a movie premiere coming up. Or you may have a historical adjustment to tell forecasting that you have a seasonal trend coming up and you want Christmas this year to look like Christmas last year plus five percent.
getTrafficAdjustmentsByStatement
Returns a TrafficForecastAdjustmentPage of all TrafficForecastAdjustments that satisfy the given Statement query. The following fields are supported for filtering:
id
lastModifiedDateTime
a data.frame
or list
containing all the elements of a getTrafficAdjustmentsByStatementResponse
Google Documentation for getTrafficAdjustmentsByStatement
## Not run: dat <- list(filterStatement=list('query'="WHERE status='ACTIVE'")) res <- dfp_getTrafficAdjustmentsByStatement(dat) ## End(Not run)
## Not run: dat <- list(filterStatement=list('query'="WHERE status='ACTIVE'")) res <- dfp_getTrafficAdjustmentsByStatement(dat) ## End(Not run)
Gets a UserPage of User objects that satisfy the given Statement query. The following fields are supported for filtering:
id
name
roleId
rolename
status
dfp_getUsersByStatement(request_data, as_df = TRUE, verbose = FALSE)
dfp_getUsersByStatement(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 |
a data.frame
or list
containing all the elements of a getUsersByStatementResponse
Google Documentation for getUsersByStatement
## Not run: dat <- list(filterStatement=list('query'="WHERE status='ACTIVE'")) res <- dfp_getUsersByStatement(dat) ## End(Not run)
## Not run: dat <- list(filterStatement=list('query'="WHERE status='ACTIVE'")) res <- dfp_getUsersByStatement(dat) ## End(Not run)
Gets a UserTeamAssociationPage of UserTeamAssociation objects that satisfy the given Statement query. The following fields are supported for filtering:
userId
teamId
dfp_getUserTeamAssociationsByStatement(request_data, as_df = TRUE, verbose = FALSE)
dfp_getUserTeamAssociationsByStatement(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 |
a data.frame
or list
containing all the elements of a getUserTeamAssociationsByStatementResponse
Google Documentation for getUserTeamAssociationsByStatement
## Not run: dat <- list(filterStatement=list('query'="WHERE status='ACTIVE'")) res <- dfp_getUserTeamAssociationsByStatement(dat) ## End(Not run)
## Not run: dat <- list(filterStatement=list('query'="WHERE status='ACTIVE'")) res <- dfp_getUserTeamAssociationsByStatement(dat) ## End(Not run)
Provides methods to retrieve and perform actions on WorkflowRequest objects
dfp_getWorkflowRequestsByStatement(request_data, as_df = TRUE, verbose = FALSE)
dfp_getWorkflowRequestsByStatement(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 |
To use this service, you need to have the new sales management solution enabled on your network. If you do not see a "Sales" tab in <a href="https://www.google.com/dfp">DoubleClick for Publishers (DFP)</a>, you will not be able to use this service.
getWorkflowRequestsByStatement
Gets a list of WorkflowRequest objects that satisfy the given Statement query. The following fields are supported for filtering:
id
workflowRuleName
entityType
entityId
approvalStatus
conditionStatus
type
a data.frame
or list
containing all the elements of a getWorkflowRequestsByStatementResponse
Google Documentation for getWorkflowRequestsByStatement
## Not run: dat <- list(filterStatement=list('query'="WHERE status='ACTIVE'")) res <- dfp_getWorkflowRequestsByStatement(dat) ## End(Not run)
## Not run: dat <- list(filterStatement=list('query'="WHERE status='ACTIVE'")) res <- dfp_getWorkflowRequestsByStatement(dat) ## End(Not run)
Returns whether a custom pacing curve has been uploaded to Google Cloud Storage for a line item. Returns whether a custom pacing curve has been uploaded to Google Cloud Storage for a line item. @param lineItemId the ID of the line item Returns whether a custom pacing curve has been uploaded to Google Cloud Storage for a line item. @param lineItemId the ID of the line item
dfp_hasCustomPacingCurve(as_df = TRUE, verbose = FALSE)
dfp_hasCustomPacingCurve(as_df = TRUE, verbose = FALSE)
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 |
a data.frame
or list
containing all the elements of a hasCustomPacingCurveResponse
Google Documentation for hasCustomPacingCurve
## Not run: res <- dfp_hasCustomPacingCurve() ## End(Not run)
## Not run: res <- dfp_hasCustomPacingCurve() ## End(Not run)
Creates a new blank network for testing purposes using the current login. Each login(i.e. email address) can only have one test network. Data from any of your existing networks will not be transferred to the new test network. Once the test network is created, the test network can be used in the API by supplying the Network networkCode in the SOAP header or by logging into the Ad Manager UI. Test networks are limited in the following ways:
Test networks cannot serve ads.
Because test networks cannot serve ads, reports will always come back without data.
Since forecasting requires serving history, forecast service results will be faked. See ForecastService for more info.
Test networks are, by default, Ad Manager networks and don't have any features from Ad Manager 360. To have additional features turned on, please contact your account manager.
Test networks are limited to 10,000 objects per entity type.
Creates a new blank network for testing purposes using the current login. Each login(i.e. email address) can only have one test network. Data from any of your existing networks will not be transferred to the new test network. Once the test network is created, the test network can be used in the API by supplying the Network networkCode in the SOAP header or by logging into the Ad Manager UI. Test networks are limited in the following ways:
Test networks cannot serve ads.
Because test networks cannot serve ads, reports will always come back without data.
Since forecasting requires serving history, forecast service results will be faked. See ForecastService for more info.
Test networks are, by default, Ad Manager networks and don't have any features from Ad Manager 360. To have additional features turned on, please contact your account manager.
Test networks are limited to 10,000 objects per entity type.
Creates a new blank network for testing purposes using the current login. Each login(i.e. email address) can only have one test network. Data from any of your existing networks will not be transferred to the new test network. Once the test network is created, the test network can be used in the API by supplying the Network networkCode in the SOAP header or by logging into the Ad Manager UI. Test networks are limited in the following ways:
Test networks cannot serve ads.
Because test networks cannot serve ads, reports will always come back without data.
Since forecasting requires serving history, forecast service results will be faked. See ForecastService for more info.
Test networks are, by default, Ad Manager networks and don't have any features from Ad Manager 360. To have additional features turned on, please contact your account manager.
Test networks are limited to 10,000 objects per entity type.
dfp_makeTestNetwork(as_df = TRUE, verbose = FALSE)
dfp_makeTestNetwork(as_df = TRUE, verbose = FALSE)
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 |
a data.frame
or list
containing all the elements of a makeTestNetworkResponse
Google Documentation for makeTestNetwork
## Not run: res <- dfp_makeTestNetwork() ## End(Not run)
## Not run: res <- dfp_makeTestNetwork() ## End(Not run)
Performs action on AdExclusionRule objects that satisfy the given Statement query.
dfp_performAdExclusionRuleAction(request_data, as_df = TRUE, verbose = FALSE)
dfp_performAdExclusionRuleAction(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 |
a data.frame
or list
containing all the elements of a performAdExclusionRuleActionResponse
Google Documentation for performAdExclusionRuleAction
## Not run: res <- dfp_performAdExclusionRuleAction(request_data) ## End(Not run)
## Not run: res <- dfp_performAdExclusionRuleAction(request_data) ## End(Not run)
Performs actions on AdRule objects that match the given Statement query.
dfp_performAdRuleAction(request_data, as_df = TRUE, verbose = FALSE)
dfp_performAdRuleAction(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 |
a data.frame
or list
containing all the elements of a performAdRuleActionResponse
Google Documentation for performAdRuleAction
## Not run: res <- dfp_performAdRuleAction(request_data) ## End(Not run)
## Not run: res <- dfp_performAdRuleAction(request_data) ## End(Not run)
Performs actions on AdUnit objects that match the given Statement query.
dfp_performAdUnitAction(request_data, as_df = TRUE, verbose = FALSE)
dfp_performAdUnitAction(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 |
a data.frame
or list
containing all the elements of a performAdUnitActionResponse
Google Documentation for performAdUnitAction
## Not run: res <- dfp_performAdUnitAction(request_data) ## End(Not run)
## Not run: res <- dfp_performAdUnitAction(request_data) ## End(Not run)
Performs the given AudienceSegmentAction on the set of segments identified by the given statement.
dfp_performAudienceSegmentAction(request_data, as_df = TRUE, verbose = FALSE)
dfp_performAudienceSegmentAction(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 |
a data.frame
or list
containing all the elements of a performAudienceSegmentActionResponse
Google Documentation for performAudienceSegmentAction
## Not run: res <- dfp_performAudienceSegmentAction(request_data) ## End(Not run)
## Not run: res <- dfp_performAudienceSegmentAction(request_data) ## End(Not run)
Performs actions on BaseRate objects that satisfy the given Statement query.
dfp_performBaseRateAction(request_data, as_df = TRUE, verbose = FALSE)
dfp_performBaseRateAction(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 |
a data.frame
or list
containing all the elements of a performBaseRateActionResponse
Google Documentation for performBaseRateAction
## Not run: res <- dfp_performBaseRateAction(request_data) ## End(Not run)
## Not run: res <- dfp_performBaseRateAction(request_data) ## End(Not run)
Performs actions on CdnConfiguration objects that match the given {@link Statement query}.
dfp_performCdnConfigurationAction(request_data, as_df = TRUE, verbose = FALSE)
dfp_performCdnConfigurationAction(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 |
a data.frame
or list
containing all the elements of a performCdnConfigurationActionResponse
Google Documentation for performCdnConfigurationAction
## Not run: res <- dfp_performCdnConfigurationAction(request_data) ## End(Not run)
## Not run: res <- dfp_performCdnConfigurationAction(request_data) ## End(Not run)
Performs actions on ContentBundle objects that match the given Statement query.
dfp_performContentBundleAction(request_data, as_df = TRUE, verbose = FALSE)
dfp_performContentBundleAction(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 |
a data.frame
or list
containing all the elements of a performContentBundleActionResponse
Google Documentation for performContentBundleAction
## Not run: res <- dfp_performContentBundleAction(request_data) ## End(Not run)
## Not run: res <- dfp_performContentBundleAction(request_data) ## End(Not run)
Performs actions on CreativeWrapper objects that match the given Statement query.
dfp_performCreativeWrapperAction(request_data, as_df = TRUE, verbose = FALSE)
dfp_performCreativeWrapperAction(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 |
a data.frame
or list
containing all the elements of a performCreativeWrapperActionResponse
Google Documentation for performCreativeWrapperAction
## Not run: res <- dfp_performCreativeWrapperAction(request_data) ## End(Not run)
## Not run: res <- dfp_performCreativeWrapperAction(request_data) ## End(Not run)
Performs actions on CustomField objects that match the given Statement query.
dfp_performCustomFieldAction(request_data, as_df = TRUE, verbose = FALSE)
dfp_performCustomFieldAction(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 |
a data.frame
or list
containing all the elements of a performCustomFieldActionResponse
Google Documentation for performCustomFieldAction
## Not run: res <- dfp_performCustomFieldAction(request_data) ## End(Not run)
## Not run: res <- dfp_performCustomFieldAction(request_data) ## End(Not run)
Performs actions on CustomTargetingKey objects that match the given Statement query.
dfp_performCustomTargetingKeyAction(request_data, as_df = TRUE, verbose = FALSE)
dfp_performCustomTargetingKeyAction(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 |
a data.frame
or list
containing all the elements of a performCustomTargetingKeyActionResponse
Google Documentation for performCustomTargetingKeyAction
## Not run: res <- dfp_performCustomTargetingKeyAction(request_data) ## End(Not run)
## Not run: res <- dfp_performCustomTargetingKeyAction(request_data) ## End(Not run)
Performs actions on CustomTargetingValue objects that match the given Statement query.
dfp_performCustomTargetingValueAction(request_data, as_df = TRUE, verbose = FALSE)
dfp_performCustomTargetingValueAction(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 |
a data.frame
or list
containing all the elements of a performCustomTargetingValueActionResponse
Google Documentation for performCustomTargetingValueAction
## Not run: res <- dfp_performCustomTargetingValueAction(request_data) ## End(Not run)
## Not run: res <- dfp_performCustomTargetingValueAction(request_data) ## End(Not run)
Performs actions on DaiAuthenticationKey objects that match the given {@link Statement query}. DAI authentication keys cannot be deactivated if there are active LiveStreamEvents or Content Sources that are using them.
dfp_performDaiAuthenticationKeyAction(request_data, as_df = TRUE, verbose = FALSE)
dfp_performDaiAuthenticationKeyAction(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 |
a data.frame
or list
containing all the elements of a performDaiAuthenticationKeyActionResponse
Google Documentation for performDaiAuthenticationKeyAction
## Not run: res <- dfp_performDaiAuthenticationKeyAction(request_data) ## End(Not run)
## Not run: res <- dfp_performDaiAuthenticationKeyAction(request_data) ## End(Not run)
Performs an action on ExchangeRate objects that satisfy the given Statement query. The following fields are supported for filtering:
id
currencyCode
refreshRate
direction
exchangeRate
dfp_performExchangeRateAction(request_data, as_df = TRUE, verbose = FALSE)
dfp_performExchangeRateAction(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 |
a data.frame
or list
containing all the elements of a performExchangeRateActionResponse
Google Documentation for performExchangeRateAction
## Not run: res <- dfp_performExchangeRateAction(request_data) ## End(Not run)
## Not run: res <- dfp_performExchangeRateAction(request_data) ## End(Not run)
Performs actions on Label objects that match the given Statement query.
dfp_performLabelAction(request_data, as_df = TRUE, verbose = FALSE)
dfp_performLabelAction(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 |
a data.frame
or list
containing all the elements of a performLabelActionResponse
Google Documentation for performLabelAction
## Not run: res <- dfp_performLabelAction(request_data) ## End(Not run)
## Not run: res <- dfp_performLabelAction(request_data) ## End(Not run)
Performs actions on LineItem objects that match the given Statement query.
dfp_performLineItemAction(request_data, as_df = TRUE, verbose = FALSE)
dfp_performLineItemAction(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 |
a data.frame
or list
containing all the elements of a performLineItemActionResponse
Google Documentation for performLineItemAction
## Not run: res <- dfp_performLineItemAction(request_data) ## End(Not run)
## Not run: res <- dfp_performLineItemAction(request_data) ## End(Not run)
Performs actions on LineItemCreativeAssociation objects that match the given Statement query.
dfp_performLineItemCreativeAssociationAction(request_data, as_df = TRUE, verbose = FALSE)
dfp_performLineItemCreativeAssociationAction(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 |
a data.frame
or list
containing all the elements of a performLineItemCreativeAssociationActionResponse
Google Documentation for performLineItemCreativeAssociationAction
## Not run: res <- dfp_performLineItemCreativeAssociationAction(request_data) ## End(Not run)
## Not run: res <- dfp_performLineItemCreativeAssociationAction(request_data) ## End(Not run)
Performs actions on LiveStreamEvent objects that match the given Statement query.
dfp_performLiveStreamEventAction(request_data, as_df = TRUE, verbose = FALSE)
dfp_performLiveStreamEventAction(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 |
a data.frame
or list
containing all the elements of a performLiveStreamEventActionResponse
Google Documentation for performLiveStreamEventAction
## Not run: res <- dfp_performLiveStreamEventAction(request_data) ## End(Not run)
## Not run: res <- dfp_performLiveStreamEventAction(request_data) ## End(Not run)
Performs an action on MobileApplication mobile applications.
dfp_performMobileApplicationAction(request_data, as_df = TRUE, verbose = FALSE)
dfp_performMobileApplicationAction(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 |
a data.frame
or list
containing all the elements of a performMobileApplicationActionResponse
Google Documentation for performMobileApplicationAction
## Not run: res <- dfp_performMobileApplicationAction(request_data) ## End(Not run)
## Not run: res <- dfp_performMobileApplicationAction(request_data) ## End(Not run)
Performs actions on NativeStyle native styles that match the given Statement.
dfp_performNativeStyleAction(request_data, as_df = TRUE, verbose = FALSE)
dfp_performNativeStyleAction(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 |
a data.frame
or list
containing all the elements of a performNativeStyleActionResponse
Google Documentation for performNativeStyleAction
## Not run: res <- dfp_performNativeStyleAction(request_data) ## End(Not run)
## Not run: res <- dfp_performNativeStyleAction(request_data) ## End(Not run)
Performs actions on Order objects that match the given Statement query.
dfp_performOrderAction(request_data, as_df = TRUE, verbose = FALSE)
dfp_performOrderAction(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 |
a data.frame
or list
containing all the elements of a performOrderActionResponse
Google Documentation for performOrderAction
## Not run: res <- dfp_performOrderAction(request_data) ## End(Not run)
## Not run: res <- dfp_performOrderAction(request_data) ## End(Not run)
Performs actions on Package objects that match the given Statement.
dfp_performPackageAction(request_data, as_df = TRUE, verbose = FALSE)
dfp_performPackageAction(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 |
a data.frame
or list
containing all the elements of a performPackageActionResponse
Google Documentation for performPackageAction
## Not run: res <- dfp_performPackageAction(request_data) ## End(Not run)
## Not run: res <- dfp_performPackageAction(request_data) ## End(Not run)
Performs actions on Placement objects that match the given Statement query.
dfp_performPlacementAction(request_data, as_df = TRUE, verbose = FALSE)
dfp_performPlacementAction(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 |
a data.frame
or list
containing all the elements of a performPlacementActionResponse
Google Documentation for performPlacementAction
## Not run: res <- dfp_performPlacementAction(request_data) ## End(Not run)
## Not run: res <- dfp_performPlacementAction(request_data) ## End(Not run)
Performs action on Product objects that satisfy the given Statement.
dfp_performProductAction(request_data, as_df = TRUE, verbose = FALSE)
dfp_performProductAction(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 |
a data.frame
or list
containing all the elements of a performProductActionResponse
Google Documentation for performProductAction
## Not run: res <- dfp_performProductAction(request_data) ## End(Not run)
## Not run: res <- dfp_performProductAction(request_data) ## End(Not run)
Performs actions on ProductPackage objects that match the given {@link Statement query}.
dfp_performProductPackageAction(request_data, as_df = TRUE, verbose = FALSE)
dfp_performProductPackageAction(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 |
a data.frame
or list
containing all the elements of a performProductPackageActionResponse
Google Documentation for performProductPackageAction
## Not run: res <- dfp_performProductPackageAction(request_data) ## End(Not run)
## Not run: res <- dfp_performProductPackageAction(request_data) ## End(Not run)
Performs actions on ProductPackageItem objects that satisfy the given Statement query.
dfp_performProductPackageItemAction(request_data, as_df = TRUE, verbose = FALSE)
dfp_performProductPackageItemAction(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 |
a data.frame
or list
containing all the elements of a performProductPackageItemActionResponse
Google Documentation for performProductPackageItemAction
## Not run: res <- dfp_performProductPackageItemAction(request_data) ## End(Not run)
## Not run: res <- dfp_performProductPackageItemAction(request_data) ## End(Not run)
Performs action on ProductTemplate objects that satisfy the given Statement query.
dfp_performProductTemplateAction(request_data, as_df = TRUE, verbose = FALSE)
dfp_performProductTemplateAction(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 |
a data.frame
or list
containing all the elements of a performProductTemplateActionResponse
Google Documentation for performProductTemplateAction
## Not run: res <- dfp_performProductTemplateAction(request_data) ## End(Not run)
## Not run: res <- dfp_performProductTemplateAction(request_data) ## End(Not run)
Performs actions on Proposal objects that match the given Statement query. The following fields are also required when submitting proposals for approval:
Proposal advertiser
Proposal primarySalesperson
Proposal primaryTraffickerId
dfp_performProposalAction(request_data, as_df = TRUE, verbose = FALSE)
dfp_performProposalAction(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 |
a data.frame
or list
containing all the elements of a performProposalActionResponse
Google Documentation for performProposalAction
## Not run: res <- dfp_performProposalAction(request_data) ## End(Not run)
## Not run: res <- dfp_performProposalAction(request_data) ## End(Not run)
Performs actions on ProposalLineItem objects that match the given Statement query.
dfp_performProposalLineItemAction(request_data, as_df = TRUE, verbose = FALSE)
dfp_performProposalLineItemAction(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 |
a data.frame
or list
containing all the elements of a performProposalLineItemActionResponse
Google Documentation for performProposalLineItemAction
## Not run: res <- dfp_performProposalLineItemAction(request_data) ## End(Not run)
## Not run: res <- dfp_performProposalLineItemAction(request_data) ## End(Not run)
Performs action on RateCard objects that satisfy the given Statement query.
dfp_performRateCardAction(request_data, as_df = TRUE, verbose = FALSE)
dfp_performRateCardAction(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 |
a data.frame
or list
containing all the elements of a performRateCardActionResponse
Google Documentation for performRateCardAction
## Not run: res <- dfp_performRateCardAction(request_data) ## End(Not run)
## Not run: res <- dfp_performRateCardAction(request_data) ## End(Not run)
Performs actions on the ReconciliationOrderReport objects that match the given Statement query. The following fields are supported for filtering:
orderId
proposalId
reconciliationReportId
dfp_performReconciliationOrderReportAction(request_data, as_df = TRUE, verbose = FALSE)
dfp_performReconciliationOrderReportAction(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 |
a data.frame
or list
containing all the elements of a performReconciliationOrderReportActionResponse
Google Documentation for performReconciliationOrderReportAction
## Not run: res <- dfp_performReconciliationOrderReportAction(request_data) ## End(Not run)
## Not run: res <- dfp_performReconciliationOrderReportAction(request_data) ## End(Not run)
Performs actions on SuggestedAdUnit objects that match the given Statement query. The following fields are supported for filtering:
id
numRequests
dfp_performSuggestedAdUnitAction(request_data, as_df = TRUE, verbose = FALSE)
dfp_performSuggestedAdUnitAction(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 |
a data.frame
or list
containing all the elements of a performSuggestedAdUnitActionResponse
Google Documentation for performSuggestedAdUnitAction
## Not run: res <- dfp_performSuggestedAdUnitAction(request_data) ## End(Not run)
## Not run: res <- dfp_performSuggestedAdUnitAction(request_data) ## End(Not run)
Performs actions on Team objects that match the given Statement query.
dfp_performTeamAction(request_data, as_df = TRUE, verbose = FALSE)
dfp_performTeamAction(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 |
a data.frame
or list
containing all the elements of a performTeamActionResponse
Google Documentation for performTeamAction
## Not run: res <- dfp_performTeamAction(request_data) ## End(Not run)
## Not run: res <- dfp_performTeamAction(request_data) ## End(Not run)
Performs actions on User objects that match the given Statement query.
dfp_performUserAction(request_data, as_df = TRUE, verbose = FALSE)
dfp_performUserAction(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 |
a data.frame
or list
containing all the elements of a performUserActionResponse
Google Documentation for performUserAction
## Not run: res <- dfp_performUserAction(request_data) ## End(Not run)
## Not run: res <- dfp_performUserAction(request_data) ## End(Not run)
Performs actions on UserTeamAssociation objects that match the given Statement query.
dfp_performUserTeamAssociationAction(request_data, as_df = TRUE, verbose = FALSE)
dfp_performUserTeamAssociationAction(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 |
a data.frame
or list
containing all the elements of a performUserTeamAssociationActionResponse
Google Documentation for performUserTeamAssociationAction
## Not run: res <- dfp_performUserTeamAssociationAction(request_data) ## End(Not run)
## Not run: res <- dfp_performUserTeamAssociationAction(request_data) ## End(Not run)
Perform actions on WorkflowRequest objects that match the given Statement query.
dfp_performWorkflowRequestAction(request_data, as_df = TRUE, verbose = FALSE)
dfp_performWorkflowRequestAction(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 |
a data.frame
or list
containing all the elements of a performWorkflowRequestActionResponse
Google Documentation for performWorkflowRequestAction
## Not run: res <- dfp_performWorkflowRequestAction(request_data) ## End(Not run)
## Not run: res <- dfp_performWorkflowRequestAction(request_data) ## End(Not run)
Registers the specified list of sessionIds for monitoring. Once the session IDs have been registered, all logged information about the sessions will be persisted and can be viewed via the Ad Manager UI. A session ID is a unique identifier of a single user watching a live stream event.
dfp_registerSessionsForMonitoring(as_df = TRUE, verbose = FALSE)
dfp_registerSessionsForMonitoring(as_df = TRUE, verbose = FALSE)
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 |
a data.frame
or list
containing all the elements of a registerSessionsForMonitoringResponse
Google Documentation for registerSessionsForMonitoring
## Not run: res <- dfp_registerSessionsForMonitoring() ## End(Not run)
## Not run: res <- dfp_registerSessionsForMonitoring() ## End(Not run)
Receive a URL (usually from the ReportService) and download data from that URL. Currently, the exportFormat must have been set for CSV_DUMP
dfp_report_url_to_dataframe(report_url, exportFormat='CSV_DUMP')
dfp_report_url_to_dataframe(report_url, exportFormat='CSV_DUMP')
report_url |
a URL character string returned from the function dfp_getReportDownloadURL |
exportFormat |
a character string naming what type of exportFormat was provided to dfp_getReportDownloadURL. This is used to determine how to parse the results. |
a data.frame
of report results from the specified URL
Initiates the execution of a ReportQuery on the server. The following fields are required:
ReportJob reportQuery
dfp_runReportJob(request_data, as_df = TRUE, verbose = FALSE)
dfp_runReportJob(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 |
a data.frame
or list
containing all the elements of a runReportJobResponse
Google Documentation for runReportJob
## Not run: request_data <- list(reportJob= list(reportQuery= list(dimensions='MONTH_AND_YEAR', dimensions='AD_UNIT_ID', adUnitView='FLAT', columns='AD_SERVER_CLICKS', dateRangeType='LAST_WEEK'))) # the result is a list and most importantly the ID is included for checking its status dfp_runReportJob_result <- dfp_runReportJob(request_data) dfp_runReportJob_result$id ## End(Not run)
## Not run: request_data <- list(reportJob= list(reportQuery= list(dimensions='MONTH_AND_YEAR', dimensions='AD_UNIT_ID', adUnitView='FLAT', columns='AD_SERVER_CLICKS', dateRangeType='LAST_WEEK'))) # the result is a list and most importantly the ID is included for checking its status dfp_runReportJob_result <- dfp_runReportJob(request_data) dfp_runReportJob_result$id ## End(Not run)
Provides methods for executing a PQL Statement to retrieve information from the system. In order to support the selection of columns of interest from various tables, Statement objects support a "select" clause. An example query text might be "select CountryCode, Name from Geo_Target", where CountryCode and Name are columns of interest and Geo_Target is the table.
dfp_select(request_data, verbose = FALSE)
dfp_select(request_data, verbose = FALSE)
request_data |
a |
verbose |
a boolean indicating whether to print the service URL and POSTed XML |
The following tables are supported:
Geo_Target
Bandwidth_Group
Browser
Browser_Language
Device_Capability
Device_Category
Device_Manufacturer
Mobile_Carrier
Mobile_Device
Mobile_Device_Submodel
Operating_System
Operating_System_Version
Third_Party_Company
Line_Item
Ad_Unit
User
Exchange_Rate
Programmatic_Buyer
Audience_Segment_Category
Audience_Segment
Proposal_Retraction_Reason
Time_Zone
Proposal_Terms_And_Conditions
Change_History
ad_category
Visit the See Also section below to proceed to Google and view columns in each of these tables.
select
Retrieves rows of data that satisfy the given Statement query from the system.
a data.frame
or list
containing all the elements of a selectResponse
Google Documentation for select
## Not run: request_data <- list(selectStatement= list(query='SELECT Id, Name, Targeting FROM LineItem LIMIT 3')) dfp_select_result <- dfp_select(request_data) request_data <- list(selectStatement= list(query="SELECT Id , Name , CanonicalParentId , CountryCode , Type FROM Geo_Target WHERE CountryCode='US' AND (TYPE='STATE' OR TYPE='COUNTY')")) us_geos <- dfp_select(request_data) ## End(Not run)
## Not run: request_data <- list(selectStatement= list(query='SELECT Id, Name, Targeting FROM LineItem LIMIT 3')) dfp_select_result <- dfp_select(request_data) request_data <- list(selectStatement= list(query="SELECT Id , Name , CanonicalParentId , CountryCode , Type FROM Geo_Target WHERE CountryCode='US' AND (TYPE='STATE' OR TYPE='COUNTY')")) us_geos <- dfp_select(request_data) ## End(Not run)
Updates the specified Activity objects.
dfp_updateActivities(request_data, as_df = TRUE, verbose = FALSE)
dfp_updateActivities(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 |
a data.frame
or list
containing all the elements of a updateActivitiesResponse
Google Documentation for updateActivities
## Not run: res <- dfp_updateActivities(request_data) ## End(Not run)
## Not run: res <- dfp_updateActivities(request_data) ## End(Not run)
Updates the specified ActivityGroup objects.
dfp_updateActivityGroups(request_data, as_df = TRUE, verbose = FALSE)
dfp_updateActivityGroups(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 |
a data.frame
or list
containing all the elements of a updateActivityGroupsResponse
Google Documentation for updateActivityGroups
## Not run: res <- dfp_updateActivityGroups(request_data) ## End(Not run)
## Not run: res <- dfp_updateActivityGroups(request_data) ## End(Not run)
Updates the specified AdExclusionRule objects.
dfp_updateAdExclusionRules(request_data, as_df = TRUE, verbose = FALSE)
dfp_updateAdExclusionRules(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 |
a data.frame
or list
containing all the elements of a updateAdExclusionRulesResponse
Google Documentation for updateAdExclusionRules
## Not run: res <- dfp_updateAdExclusionRules(request_data) ## End(Not run)
## Not run: res <- dfp_updateAdExclusionRules(request_data) ## End(Not run)
Updates the specified AdRule objects.
dfp_updateAdRules(request_data, as_df = TRUE, verbose = FALSE)
dfp_updateAdRules(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 |
a data.frame
or list
containing all the elements of a updateAdRulesResponse
Google Documentation for updateAdRules
## Not run: res <- dfp_updateAdRules(request_data) ## End(Not run)
## Not run: res <- dfp_updateAdRules(request_data) ## End(Not run)
Updates the specified AdUnit objects.
dfp_updateAdUnits(request_data, as_df = TRUE, verbose = FALSE)
dfp_updateAdUnits(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 |
a data.frame
or list
containing all the elements of a updateAdUnitsResponse
Google Documentation for updateAdUnits
## Not run: res <- dfp_updateAdUnits(request_data) ## End(Not run)
## Not run: res <- dfp_updateAdUnits(request_data) ## End(Not run)
Updates the given RuleBasedFirstPartyAudienceSegment objects.
dfp_updateAudienceSegments(request_data, as_df = TRUE, verbose = FALSE)
dfp_updateAudienceSegments(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 |
a data.frame
or list
containing all the elements of a updateAudienceSegmentsResponse
Google Documentation for updateAudienceSegments
## Not run: res <- dfp_updateAudienceSegments(request_data) ## End(Not run)
## Not run: res <- dfp_updateAudienceSegments(request_data) ## End(Not run)
Updates the specified BaseRate objects.
dfp_updateBaseRates(request_data, as_df = TRUE, verbose = FALSE)
dfp_updateBaseRates(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 |
a data.frame
or list
containing all the elements of a updateBaseRatesResponse
Google Documentation for updateBaseRates
## Not run: res <- dfp_updateBaseRates(request_data) ## End(Not run)
## Not run: res <- dfp_updateBaseRates(request_data) ## End(Not run)
Updates the specified CdnConfiguration objects. Updates the specified CdnConfiguration objects. Updates the specified CdnConfiguration objects.
dfp_updateCdnConfigurations(request_data, as_df = TRUE, verbose = FALSE)
dfp_updateCdnConfigurations(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 |
a data.frame
or list
containing all the elements of a updateCdnConfigurationsResponse
Google Documentation for updateCdnConfigurations
## Not run: res <- dfp_updateCdnConfigurations(request_data) ## End(Not run)
## Not run: res <- dfp_updateCdnConfigurations(request_data) ## End(Not run)
Updates the specified Company objects.
dfp_updateCompanies(request_data, as_df = TRUE, verbose = FALSE)
dfp_updateCompanies(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 |
a data.frame
or list
containing all the elements of a updateCompaniesResponse
Google Documentation for updateCompanies
## Not run: res <- dfp_updateCompanies(request_data) ## End(Not run)
## Not run: res <- dfp_updateCompanies(request_data) ## End(Not run)
Updates the specified Contact objects.
dfp_updateContacts(request_data, as_df = TRUE, verbose = FALSE)
dfp_updateContacts(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 |
a data.frame
or list
containing all the elements of a updateContactsResponse
Google Documentation for updateContacts
## Not run: res <- dfp_updateContacts(request_data) ## End(Not run)
## Not run: res <- dfp_updateContacts(request_data) ## End(Not run)
Updates the specified ContentBundle objects.
dfp_updateContentBundles(request_data, as_df = TRUE, verbose = FALSE)
dfp_updateContentBundles(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 |
a data.frame
or list
containing all the elements of a updateContentBundlesResponse
Google Documentation for updateContentBundles
## Not run: res <- dfp_updateContentBundles(request_data) ## End(Not run)
## Not run: res <- dfp_updateContentBundles(request_data) ## End(Not run)
Updates the specified Creative objects.
dfp_updateCreatives(request_data, as_df = TRUE, verbose = FALSE)
dfp_updateCreatives(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 |
a data.frame
or list
containing all the elements of a updateCreativesResponse
Google Documentation for updateCreatives
## Not run: res <- dfp_updateCreatives(request_data) ## End(Not run)
## Not run: res <- dfp_updateCreatives(request_data) ## End(Not run)
Updates the specified CreativeSet.
dfp_updateCreativeSet(request_data, as_df = TRUE, verbose = FALSE)
dfp_updateCreativeSet(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 |
a data.frame
or list
containing all the elements of a updateCreativeSetResponse
Google Documentation for updateCreativeSet
## Not run: res <- dfp_updateCreativeSet(request_data) ## End(Not run)
## Not run: res <- dfp_updateCreativeSet(request_data) ## End(Not run)
Updates the specified CreativeWrapper objects.
dfp_updateCreativeWrappers(request_data, as_df = TRUE, verbose = FALSE)
dfp_updateCreativeWrappers(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 |
a data.frame
or list
containing all the elements of a updateCreativeWrappersResponse
Google Documentation for updateCreativeWrappers
## Not run: res <- dfp_updateCreativeWrappers(request_data) ## End(Not run)
## Not run: res <- dfp_updateCreativeWrappers(request_data) ## End(Not run)
Updates the specified CustomFieldOption objects.
dfp_updateCustomFieldOptions(request_data, as_df = TRUE, verbose = FALSE)
dfp_updateCustomFieldOptions(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 |
a data.frame
or list
containing all the elements of a updateCustomFieldOptionsResponse
Google Documentation for updateCustomFieldOptions
## Not run: res <- dfp_updateCustomFieldOptions(request_data) ## End(Not run)
## Not run: res <- dfp_updateCustomFieldOptions(request_data) ## End(Not run)
Updates the specified CustomField objects.
dfp_updateCustomFields(request_data, as_df = TRUE, verbose = FALSE)
dfp_updateCustomFields(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 |
a data.frame
or list
containing all the elements of a updateCustomFieldsResponse
Google Documentation for updateCustomFields
## Not run: res <- dfp_updateCustomFields(request_data) ## End(Not run)
## Not run: res <- dfp_updateCustomFields(request_data) ## End(Not run)
Updates the specified CustomTargetingKey objects.
dfp_updateCustomTargetingKeys(request_data, as_df = TRUE, verbose = FALSE)
dfp_updateCustomTargetingKeys(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 |
a data.frame
or list
containing all the elements of a updateCustomTargetingKeysResponse
Google Documentation for updateCustomTargetingKeys
## Not run: res <- dfp_updateCustomTargetingKeys(request_data) ## End(Not run)
## Not run: res <- dfp_updateCustomTargetingKeys(request_data) ## End(Not run)
Updates the specified CustomTargetingValue objects.
dfp_updateCustomTargetingValues(request_data, as_df = TRUE, verbose = FALSE)
dfp_updateCustomTargetingValues(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 |
a data.frame
or list
containing all the elements of a updateCustomTargetingValuesResponse
Google Documentation for updateCustomTargetingValues
## Not run: res <- dfp_updateCustomTargetingValues(request_data) ## End(Not run)
## Not run: res <- dfp_updateCustomTargetingValues(request_data) ## End(Not run)
Updates the specified DaiAuthenticationKey objects.
dfp_updateDaiAuthenticationKeys(request_data, as_df = TRUE, verbose = FALSE)
dfp_updateDaiAuthenticationKeys(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 |
a data.frame
or list
containing all the elements of a updateDaiAuthenticationKeysResponse
Google Documentation for updateDaiAuthenticationKeys
## Not run: res <- dfp_updateDaiAuthenticationKeys(request_data) ## End(Not run)
## Not run: res <- dfp_updateDaiAuthenticationKeys(request_data) ## End(Not run)
Updates the specified ExchangeRate objects.
dfp_updateExchangeRates(request_data, as_df = TRUE, verbose = FALSE)
dfp_updateExchangeRates(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 |
a data.frame
or list
containing all the elements of a updateExchangeRatesResponse
Google Documentation for updateExchangeRates
## Not run: res <- dfp_updateExchangeRates(request_data) ## End(Not run)
## Not run: res <- dfp_updateExchangeRates(request_data) ## End(Not run)
Updates the specified Label objects.
dfp_updateLabels(request_data, as_df = TRUE, verbose = FALSE)
dfp_updateLabels(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 |
a data.frame
or list
containing all the elements of a updateLabelsResponse
Google Documentation for updateLabels
## Not run: res <- dfp_updateLabels(request_data) ## End(Not run)
## Not run: res <- dfp_updateLabels(request_data) ## End(Not run)
Updates the specified LineItemCreativeAssociation objects
dfp_updateLineItemCreativeAssociations(request_data, as_df = TRUE, verbose = FALSE)
dfp_updateLineItemCreativeAssociations(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 |
a data.frame
or list
containing all the elements of a updateLineItemCreativeAssociationsResponse
Google Documentation for updateLineItemCreativeAssociations
## Not run: res <- dfp_updateLineItemCreativeAssociations(request_data) ## End(Not run)
## Not run: res <- dfp_updateLineItemCreativeAssociations(request_data) ## End(Not run)
Updates the specified LineItem objects.
dfp_updateLineItems(request_data, as_df = TRUE, verbose = FALSE)
dfp_updateLineItems(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 |
a data.frame
or list
containing all the elements of a updateLineItemsResponse
Google Documentation for updateLineItems
## Not run: res <- dfp_updateLineItems(request_data) ## End(Not run)
## Not run: res <- dfp_updateLineItems(request_data) ## End(Not run)
Updates the specified LiveStreamEvent objects.
dfp_updateLiveStreamEvents(request_data, as_df = TRUE, verbose = FALSE)
dfp_updateLiveStreamEvents(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 |
a data.frame
or list
containing all the elements of a updateLiveStreamEventsResponse
Google Documentation for updateLiveStreamEvents
## Not run: res <- dfp_updateLiveStreamEvents(request_data) ## End(Not run)
## Not run: res <- dfp_updateLiveStreamEvents(request_data) ## End(Not run)
Updates the specified MobileApplication mobile applications.
dfp_updateMobileApplications(request_data, as_df = TRUE, verbose = FALSE)
dfp_updateMobileApplications(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 |
a data.frame
or list
containing all the elements of a updateMobileApplicationsResponse
Google Documentation for updateMobileApplications
## Not run: res <- dfp_updateMobileApplications(request_data) ## End(Not run)
## Not run: res <- dfp_updateMobileApplications(request_data) ## End(Not run)
Updates the specified NativeStyle objects.
dfp_updateNativeStyles(request_data, as_df = TRUE, verbose = FALSE)
dfp_updateNativeStyles(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 |
a data.frame
or list
containing all the elements of a updateNativeStylesResponse
Google Documentation for updateNativeStyles
## Not run: res <- dfp_updateNativeStyles(request_data) ## End(Not run)
## Not run: res <- dfp_updateNativeStyles(request_data) ## End(Not run)
Updates the specified network. Currently, only the network display name can be updated.
dfp_updateNetwork(request_data, as_df = TRUE, verbose = FALSE)
dfp_updateNetwork(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 |
a data.frame
or list
containing all the elements of a updateNetworkResponse
Google Documentation for updateNetwork
## Not run: res <- dfp_updateNetwork(request_data) ## End(Not run)
## Not run: res <- dfp_updateNetwork(request_data) ## End(Not run)
Updates the specified Order objects.
dfp_updateOrders(request_data, as_df = TRUE, verbose = FALSE)
dfp_updateOrders(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 |
a data.frame
or list
containing all the elements of a updateOrdersResponse
Google Documentation for updateOrders
## Not run: res <- dfp_updateOrders(request_data) ## End(Not run)
## Not run: res <- dfp_updateOrders(request_data) ## End(Not run)
Updates the specified Package objects.
dfp_updatePackages(request_data, as_df = TRUE, verbose = FALSE)
dfp_updatePackages(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 |
a data.frame
or list
containing all the elements of a updatePackagesResponse
Google Documentation for updatePackages
## Not run: res <- dfp_updatePackages(request_data) ## End(Not run)
## Not run: res <- dfp_updatePackages(request_data) ## End(Not run)
Updates the specified Placement objects.
dfp_updatePlacements(request_data, as_df = TRUE, verbose = FALSE)
dfp_updatePlacements(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 |
a data.frame
or list
containing all the elements of a updatePlacementsResponse
Google Documentation for updatePlacements
## Not run: res <- dfp_updatePlacements(request_data) ## End(Not run)
## Not run: res <- dfp_updatePlacements(request_data) ## End(Not run)
Updates the specified PremiumRate objects.
dfp_updatePremiumRates(request_data, as_df = TRUE, verbose = FALSE)
dfp_updatePremiumRates(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 |
a data.frame
or list
containing all the elements of a updatePremiumRatesResponse
Google Documentation for updatePremiumRates
## Not run: res <- dfp_updatePremiumRates(request_data) ## End(Not run)
## Not run: res <- dfp_updatePremiumRates(request_data) ## End(Not run)
Updates the specified ProductPackageItem objects.
dfp_updateProductPackageItems(request_data, as_df = TRUE, verbose = FALSE)
dfp_updateProductPackageItems(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 |
a data.frame
or list
containing all the elements of a updateProductPackageItemsResponse
Google Documentation for updateProductPackageItems
## Not run: res <- dfp_updateProductPackageItems(request_data) ## End(Not run)
## Not run: res <- dfp_updateProductPackageItems(request_data) ## End(Not run)
Updates the specified ProductPackage objects.
dfp_updateProductPackages(request_data, as_df = TRUE, verbose = FALSE)
dfp_updateProductPackages(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 |
a data.frame
or list
containing all the elements of a updateProductPackagesResponse
Google Documentation for updateProductPackages
## Not run: res <- dfp_updateProductPackages(request_data) ## End(Not run)
## Not run: res <- dfp_updateProductPackages(request_data) ## End(Not run)
Updates the specified Product objects. Note non-updatable fields will not be backfilled.
dfp_updateProducts(request_data, as_df = TRUE, verbose = FALSE)
dfp_updateProducts(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 |
a data.frame
or list
containing all the elements of a updateProductsResponse
Google Documentation for updateProducts
## Not run: res <- dfp_updateProducts(request_data) ## End(Not run)
## Not run: res <- dfp_updateProducts(request_data) ## End(Not run)
Updates the specified ProductTemplate objects.
dfp_updateProductTemplates(request_data, as_df = TRUE, verbose = FALSE)
dfp_updateProductTemplates(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 |
a data.frame
or list
containing all the elements of a updateProductTemplatesResponse
Google Documentation for updateProductTemplates
## Not run: res <- dfp_updateProductTemplates(request_data) ## End(Not run)
## Not run: res <- dfp_updateProductTemplates(request_data) ## End(Not run)
Updates the specified ProposalLineItem objects.
dfp_updateProposalLineItems(request_data, as_df = TRUE, verbose = FALSE)
dfp_updateProposalLineItems(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 |
a data.frame
or list
containing all the elements of a updateProposalLineItemsResponse
Google Documentation for updateProposalLineItems
## Not run: res <- dfp_updateProposalLineItems(request_data) ## End(Not run)
## Not run: res <- dfp_updateProposalLineItems(request_data) ## End(Not run)
Updates the specified Proposal objects.
dfp_updateProposals(request_data, as_df = TRUE, verbose = FALSE)
dfp_updateProposals(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 |
a data.frame
or list
containing all the elements of a updateProposalsResponse
Google Documentation for updateProposals
## Not run: res <- dfp_updateProposals(request_data) ## End(Not run)
## Not run: res <- dfp_updateProposals(request_data) ## End(Not run)
Updates a list of RateCard objects.
dfp_updateRateCards(request_data, as_df = TRUE, verbose = FALSE)
dfp_updateRateCards(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 |
a data.frame
or list
containing all the elements of a updateRateCardsResponse
Google Documentation for updateRateCards
## Not run: res <- dfp_updateRateCards(request_data) ## End(Not run)
## Not run: res <- dfp_updateRateCards(request_data) ## End(Not run)
Updates a list of ReconciliationLineItemReport objects which belong to same ReconciliationReport.
dfp_updateReconciliationLineItemReports(request_data, as_df = TRUE, verbose = FALSE)
dfp_updateReconciliationLineItemReports(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 |
a data.frame
or list
containing all the elements of a updateReconciliationLineItemReportsResponse
Google Documentation for updateReconciliationLineItemReports
## Not run: res <- dfp_updateReconciliationLineItemReports(request_data) ## End(Not run)
## Not run: res <- dfp_updateReconciliationLineItemReports(request_data) ## End(Not run)
Updates a list of ReconciliationOrderReport reconciliation order reports which belong to a ReconciliationReport.
dfp_updateReconciliationOrderReports(request_data, as_df = TRUE, verbose = FALSE)
dfp_updateReconciliationOrderReports(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 |
a data.frame
or list
containing all the elements of a updateReconciliationOrderReportsResponse
Google Documentation for updateReconciliationOrderReports
## Not run: res <- dfp_updateReconciliationOrderReports(request_data) ## End(Not run)
## Not run: res <- dfp_updateReconciliationOrderReports(request_data) ## End(Not run)
Updates a list of ReconciliationReportRow which belong to same ReconciliationReport.
dfp_updateReconciliationReportRows(request_data, as_df = TRUE, verbose = FALSE)
dfp_updateReconciliationReportRows(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 |
a data.frame
or list
containing all the elements of a updateReconciliationReportRowsResponse
Google Documentation for updateReconciliationReportRows
## Not run: res <- dfp_updateReconciliationReportRows(request_data) ## End(Not run)
## Not run: res <- dfp_updateReconciliationReportRows(request_data) ## End(Not run)
Updates the specified ReconciliationReport objects.
dfp_updateReconciliationReports(request_data, as_df = TRUE, verbose = FALSE)
dfp_updateReconciliationReports(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 |
a data.frame
or list
containing all the elements of a updateReconciliationReportsResponse
Google Documentation for updateReconciliationReports
## Not run: res <- dfp_updateReconciliationReports(request_data) ## End(Not run)
## Not run: res <- dfp_updateReconciliationReports(request_data) ## End(Not run)
Updates the specified Team objects.
dfp_updateTeams(request_data, as_df = TRUE, verbose = FALSE)
dfp_updateTeams(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 |
a data.frame
or list
containing all the elements of a updateTeamsResponse
Google Documentation for updateTeams
## Not run: res <- dfp_updateTeams(request_data) ## End(Not run)
## Not run: res <- dfp_updateTeams(request_data) ## End(Not run)
Saves all of the provided traffic adjustments. If there is already a TrafficForecastAdjustment saved for the same {@link TrafficTimeSeriesFilterCriteria}, the pre-existing TrafficForecastAdjustment will be completely replaced with the submitted TrafficForecastAdjustment. This method is only available when MAKE_TRAFFIC_FORECAST_ADJUSTMENTS_IN_BULK is enabled in the global settings on your network. Saves all of the provided traffic adjustments. If there is already a TrafficForecastAdjustment saved for the same TrafficTimeSeriesFilterCriteria, the pre-existing TrafficForecastAdjustment will be completely replaced with the submitted TrafficForecastAdjustment. This method is only available when MAKE_TRAFFIC_FORECAST_ADJUSTMENTS_IN_BULK is enabled in the global settings on your network. Saves all of the provided traffic adjustments. If there is already a TrafficForecastAdjustment saved for the same TrafficTimeSeriesFilterCriteria, the pre-existing TrafficForecastAdjustment will be completely replaced with the submitted TrafficForecastAdjustment. This method is only available when MAKE_TRAFFIC_FORECAST_ADJUSTMENTS_IN_BULK is enabled in the global settings on your network.
dfp_updateTrafficAdjustments(request_data, as_df = TRUE, verbose = FALSE)
dfp_updateTrafficAdjustments(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 |
a data.frame
or list
containing all the elements of a updateTrafficAdjustmentsResponse
Google Documentation for updateTrafficAdjustments
## Not run: res <- dfp_updateTrafficAdjustments(request_data) ## End(Not run)
## Not run: res <- dfp_updateTrafficAdjustments(request_data) ## End(Not run)
Updates the specified User objects.
dfp_updateUsers(request_data, as_df = TRUE, verbose = FALSE)
dfp_updateUsers(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 |
a data.frame
or list
containing all the elements of a updateUsersResponse
Google Documentation for updateUsers
## Not run: res <- dfp_updateUsers(request_data) ## End(Not run)
## Not run: res <- dfp_updateUsers(request_data) ## End(Not run)
Updates the specified UserTeamAssociation objects.
dfp_updateUserTeamAssociations(request_data, as_df = TRUE, verbose = FALSE)
dfp_updateUserTeamAssociations(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 |
a data.frame
or list
containing all the elements of a updateUserTeamAssociationsResponse
Google Documentation for updateUserTeamAssociations
## Not run: res <- dfp_updateUserTeamAssociations(request_data) ## End(Not run)
## Not run: res <- dfp_updateUserTeamAssociations(request_data) ## End(Not run)
rdfp
packageDoubleClick for Publishers API from R
The DoubleClick for Publishers (DFP) API (recently renamed to Google Ad Manager) consists of roughly 50 services. Each service is written to handle a particular set of operations within the API and grouped.
The official documentation, provided by Google, is available at: https://developers.google.com/ad-manager/api/rel_notes
This package attempts to scrape the functionality and documentation from the references and WSDL to provide an interface via R. Each function has its own documentation, but additional material can be found in the README on GitHub