Google Analytics

Daily Uploads: upload

Requires authorization

Update/Overwrite data for a custom data source.

This method supports an /upload URI and accepts uploaded media with the following characteristics:

  • Maximum file size: 5MB
  • Accepted Media MIME types: application/octet-stream

In addition to the standard parameters, this method supports the parameters listed in the parameters table.

Request

HTTP request

POST https://www.googleapis.com/upload/analytics/v3/management/accounts/accountId/webproperties/webPropertyId/customDataSources/customDataSourceId/dailyUploads/date/uploads

Parameters

Parameter name Value Description
Required parameters
uploadType string The type of upload request to the /upload URI. Acceptable values are:
  • media - Simple upload. Upload the media data.
  • resumable - Resumable upload. Upload the file in a resumable fashion, using a series of at least two requests.
accountId string Account Id associated with daily upload.
appendNumber integer Append number for this upload indexed from 1. Acceptable values are 1 to 20, inclusive.
customDataSourceId string Custom data source Id to which the data being uploaded belongs.
date string Date for which data is uploaded. Date should be formatted as YYYY-MM-DD.
type string Type of data for this upload.

Acceptable values are:
  • "cost": Value for specifying cost data upload.
webPropertyId string Web property Id associated with daily upload.
Optional parameters
reset boolean Reset/Overwrite all previous appends for this date and start over with this file as the first upload. (Default: false)

Authorization

This request requires authorization with at least one of the following scopes (read more about authentication and authorization).

Scope
https://www.googleapis.com/auth/analytics 
https://www.googleapis.com/auth/analytics.edit 

Request body

Do not supply a request body with this method.

Response

If successful, this method returns a response body with the following structure:

{
  "kind": "analytics#dailyUploadAppend",
  "accountId": string,
  "webPropertyId": string,
  "customDataSourceId": string,
  "date": string,
  "appendNumber": integer,
  "nextAppendLink": string
}
Property name Value Description Notes
kind string Resource type for Analytics daily upload append.
accountId string Account Id to which this daily upload append belongs.
webPropertyId string Web property Id of the form UA-XXXXX-YY to which this daily upload append belongs.
customDataSourceId string Custom data source Id to which this daily upload append belongs.
date string Date associated with daily upload append.
appendNumber integer Append number.

Authentication required

You need to be signed in with Google+ to do that.

Signing you in...

Google Developers needs your permission to do that.