adwordsR (version 0.3.1)

getXmlRequest: Send XML Request

Description

Send XML Get Request to get a XML response.

Usage

getXmlRequest(adwordsService, xmlEnvelope, credentials, saveNewToken = NULL,
  addGitignore = NULL, apiVersion = NULL)

Arguments

adwordsService

The Adwords service that is being requested

xmlEnvelope

The full XML request to be sent to the Adwords API

credentials

The list that contains the access token. This does not need to be valid.

saveNewToken

Option to save the new access token if access token has been refreshed. (Optional)

addGitignore

Option to add new access token to Gitignore if required. (Optional)

apiVersion

The version of the API being requested. Defaults to v201806.

Value

Returns the XML output from the API request.

Details

Please note that sending your XML request to the API does check and refresh the token automatically, if necessary.