Google Analytics API
  1. management
Google Analytics API
  • data
    • /data/ga
    • /data/mcf
    • /data/realtime
  • management
    • /management/accountSummaries
      GET
    • /management/accounts
      GET
    • /management/accounts/{accountId}/entityUserLinks
      GET
    • /management/accounts/{accountId}/entityUserLinks
      POST
    • /management/accounts/{accountId}/entityUserLinks/{linkId}
      DELETE
    • /management/accounts/{accountId}/entityUserLinks/{linkId}
      PUT
    • /management/accounts/{accountId}/filters
      GET
    • /management/accounts/{accountId}/filters
      POST
    • /management/accounts/{accountId}/filters/{filterId}
      DELETE
    • /management/accounts/{accountId}/filters/{filterId}
      GET
    • /management/accounts/{accountId}/filters/{filterId}
      PATCH
    • /management/accounts/{accountId}/filters/{filterId}
      PUT
    • /management/accounts/{accountId}/webproperties
      GET
    • /management/accounts/{accountId}/webproperties
      POST
    • /management/accounts/{accountId}/webproperties/{webPropertyId}
      GET
    • /management/accounts/{accountId}/webproperties/{webPropertyId}
      PATCH
    • /management/accounts/{accountId}/webproperties/{webPropertyId}
      PUT
    • /management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources
      GET
    • /management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/deleteUploadData
      POST
    • /management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/uploads
      GET
    • /management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/uploads
      POST
    • /management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/uploads/{uploadId}
      GET
    • /management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions
      GET
    • /management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions
      POST
    • /management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions/{customDimensionId}
      GET
    • /management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions/{customDimensionId}
      PATCH
    • /management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions/{customDimensionId}
      PUT
    • /management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics
      GET
    • /management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics
      POST
    • /management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics/{customMetricId}
      GET
    • /management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics/{customMetricId}
      PATCH
    • /management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics/{customMetricId}
      PUT
    • /management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks
      GET
    • /management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks
      POST
    • /management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks/{webPropertyAdWordsLinkId}
      DELETE
    • /management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks/{webPropertyAdWordsLinkId}
      GET
    • /management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks/{webPropertyAdWordsLinkId}
      PATCH
    • /management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks/{webPropertyAdWordsLinkId}
      PUT
    • /management/accounts/{accountId}/webproperties/{webPropertyId}/entityUserLinks
      GET
    • /management/accounts/{accountId}/webproperties/{webPropertyId}/entityUserLinks
      POST
    • /management/accounts/{accountId}/webproperties/{webPropertyId}/entityUserLinks/{linkId}
      DELETE
    • /management/accounts/{accountId}/webproperties/{webPropertyId}/entityUserLinks/{linkId}
      PUT
    • /management/accounts/{accountId}/webproperties/{webPropertyId}/profiles
      GET
    • /management/accounts/{accountId}/webproperties/{webPropertyId}/profiles
      POST
    • /management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}
      DELETE
    • /management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}
      GET
    • /management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}
      PATCH
    • /management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}
      PUT
    • /management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/entityUserLinks
      GET
    • /management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/entityUserLinks
      POST
    • /management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/entityUserLinks/{linkId}
      DELETE
    • /management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/entityUserLinks/{linkId}
      PUT
    • /management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments
      GET
    • /management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments
      POST
    • /management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments/{experimentId}
      DELETE
    • /management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments/{experimentId}
      GET
    • /management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments/{experimentId}
      PATCH
    • /management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments/{experimentId}
      PUT
    • /management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals
      GET
    • /management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals
      POST
    • /management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals/{goalId}
      GET
    • /management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals/{goalId}
      PATCH
    • /management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals/{goalId}
      PUT
    • /management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks
      GET
    • /management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks
      POST
    • /management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks/{linkId}
      DELETE
    • /management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks/{linkId}
      GET
    • /management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks/{linkId}
      PATCH
    • /management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks/{linkId}
      PUT
    • /management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/unsampledReports
      GET
    • /management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/unsampledReports
      POST
    • /management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/unsampledReports/{unsampledReportId}
      DELETE
    • /management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/unsampledReports/{unsampledReportId}
      GET
    • /management/accounts/{accountId}/webproperties/{webPropertyId}/remarketingAudiences
      GET
    • /management/accounts/{accountId}/webproperties/{webPropertyId}/remarketingAudiences
      POST
    • /management/accounts/{accountId}/webproperties/{webPropertyId}/remarketingAudiences/{remarketingAudienceId}
      DELETE
    • /management/accounts/{accountId}/webproperties/{webPropertyId}/remarketingAudiences/{remarketingAudienceId}
      GET
    • /management/accounts/{accountId}/webproperties/{webPropertyId}/remarketingAudiences/{remarketingAudienceId}
      PATCH
    • /management/accounts/{accountId}/webproperties/{webPropertyId}/remarketingAudiences/{remarketingAudienceId}
      PUT
    • /management/clientId:hashClientId
      POST
    • /management/segments
      GET
  • metadata
    • /metadata/{reportType}/columns
  • provisioning
    • /provisioning/createAccountTicket
    • /provisioning/createAccountTree
  • userDeletion
    • /userDeletion/userDeletionRequests:upsert
  1. management

/management/accounts/{accountId}/webproperties/{webPropertyId}/remarketingAudiences

POST
/management/accounts/{accountId}/webproperties/{webPropertyId}/remarketingAudiences
management
Creates a new remarketing audience.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://analytics.googleapis.com/analytics/v3/management/accounts//webproperties//remarketingAudiences' \
--header 'Content-Type: application/json' \
--data-raw '{
    "accountId": "string",
    "audienceDefinition": {
        "includeConditions": {
            "daysToLookBack": 0,
            "isSmartList": true,
            "kind": "analytics#includeConditions",
            "membershipDurationDays": 0,
            "segment": "string"
        }
    },
    "audienceType": "string",
    "id": "string",
    "kind": "analytics#remarketingAudience",
    "linkedAdAccounts": [
        {
            "accountId": "string",
            "id": "string",
            "kind": "analytics#linkedForeignAccount",
            "linkedAccountId": "string",
            "remarketingAudienceId": "string",
            "status": "string",
            "type": "string",
            "webPropertyId": "string"
        }
    ],
    "linkedViews": [
        "string"
    ],
    "name": "string",
    "stateBasedAudienceDefinition": {
        "excludeConditions": {
            "exclusionDuration": "string",
            "segment": "string"
        },
        "includeConditions": {
            "daysToLookBack": 0,
            "isSmartList": true,
            "kind": "analytics#includeConditions",
            "membershipDurationDays": 0,
            "segment": "string"
        }
    },
    "webPropertyId": "string"
}'
Response Response Example
{
  "accountId": "string",
  "audienceDefinition": {
    "includeConditions": {
      "daysToLookBack": 0,
      "isSmartList": true,
      "kind": "analytics#includeConditions",
      "membershipDurationDays": 0,
      "segment": "string"
    }
  },
  "audienceType": "string",
  "created": "2019-08-24T14:15:22Z",
  "description": "string",
  "id": "string",
  "internalWebPropertyId": "string",
  "kind": "analytics#remarketingAudience",
  "linkedAdAccounts": [
    {
      "accountId": "string",
      "eligibleForSearch": true,
      "id": "string",
      "internalWebPropertyId": "string",
      "kind": "analytics#linkedForeignAccount",
      "linkedAccountId": "string",
      "remarketingAudienceId": "string",
      "status": "string",
      "type": "string",
      "webPropertyId": "string"
    }
  ],
  "linkedViews": [
    "string"
  ],
  "name": "string",
  "stateBasedAudienceDefinition": {
    "excludeConditions": {
      "exclusionDuration": "string",
      "segment": "string"
    },
    "includeConditions": {
      "daysToLookBack": 0,
      "isSmartList": true,
      "kind": "analytics#includeConditions",
      "membershipDurationDays": 0,
      "segment": "string"
    }
  },
  "updated": "2019-08-24T14:15:22Z",
  "webPropertyId": "string"
}

Request

Path Params
accountId
string 
required
The account ID for which to create the remarketing audience.
webPropertyId
string 
required
Web property ID for which to create the remarketing audience.
Body Params application/json
JSON template for an Analytics remarketing audience.
accountId
string 
optional
Account ID to which this remarketing audience belongs.
audienceDefinition
object 
optional
The simple audience definition that will cause a user to be added to an audience.
includeConditions
object (IncludeConditions) 
optional
Defines the conditions to include users to the audience.
audienceType
string 
optional
The type of audience, either SIMPLE or STATE_BASED.
id
string 
optional
Remarketing Audience ID.
kind
string 
optional
Collection type.
Default:
analytics#remarketingAudience
linkedAdAccounts
array[object (LinkedForeignAccount) {8}] 
optional
The linked ad accounts associated with this remarketing audience. A remarketing audience can have only one linkedAdAccount currently.
accountId
string 
optional
Account ID to which this linked foreign account belongs.
id
string 
optional
Entity ad account link ID.
kind
string 
optional
Resource type for linked foreign account.
Default:
analytics#linkedForeignAccount
linkedAccountId
string 
optional
The foreign account ID. For example the an Google Ads linkedAccountId has the following format XXX-XXX-XXXX.
remarketingAudienceId
string 
optional
Remarketing audience ID to which this linked foreign account belongs.
status
string 
optional
The status of this foreign account link.
type
string 
optional
The type of the foreign account. For example, ADWORDS_LINKS, DBM_LINKS, MCC_LINKS or OPTIMIZE.
webPropertyId
string 
optional
Web property ID of the form UA-XXXXX-YY to which this linked foreign account belongs.
linkedViews
array[string]
optional
The views (profiles) that this remarketing audience is linked to.
name
string 
optional
The name of this remarketing audience.
stateBasedAudienceDefinition
object 
optional
A state based audience definition that will cause a user to be added or removed from an audience.
excludeConditions
object 
optional
Defines the conditions to exclude users from the audience.
includeConditions
object (IncludeConditions) 
optional
Defines the conditions to include users to the audience.
webPropertyId
string 
optional
Web property ID of the form UA-XXXXX-YY to which this remarketing audience belongs.
Examples

Responses

🟢200Successful response
application/json
Body
JSON template for an Analytics remarketing audience.
accountId
string 
optional
Account ID to which this remarketing audience belongs.
audienceDefinition
object 
optional
The simple audience definition that will cause a user to be added to an audience.
includeConditions
object (IncludeConditions) 
optional
Defines the conditions to include users to the audience.
audienceType
string 
optional
The type of audience, either SIMPLE or STATE_BASED.
created
string <date-time>
read-onlyoptional
Time this remarketing audience was created.
description
string 
read-onlyoptional
The description of this remarketing audience.
id
string 
optional
Remarketing Audience ID.
internalWebPropertyId
string 
read-onlyoptional
Internal ID for the web property to which this remarketing audience belongs.
kind
string 
optional
Collection type.
Default:
analytics#remarketingAudience
linkedAdAccounts
array[object (LinkedForeignAccount) {10}] 
optional
The linked ad accounts associated with this remarketing audience. A remarketing audience can have only one linkedAdAccount currently.
accountId
string 
optional
Account ID to which this linked foreign account belongs.
eligibleForSearch
boolean 
read-onlyoptional
Boolean indicating whether this is eligible for search.
id
string 
optional
Entity ad account link ID.
internalWebPropertyId
string 
read-onlyoptional
Internal ID for the web property to which this linked foreign account belongs.
kind
string 
optional
Resource type for linked foreign account.
Default:
analytics#linkedForeignAccount
linkedAccountId
string 
optional
The foreign account ID. For example the an Google Ads linkedAccountId has the following format XXX-XXX-XXXX.
remarketingAudienceId
string 
optional
Remarketing audience ID to which this linked foreign account belongs.
status
string 
optional
The status of this foreign account link.
type
string 
optional
The type of the foreign account. For example, ADWORDS_LINKS, DBM_LINKS, MCC_LINKS or OPTIMIZE.
webPropertyId
string 
optional
Web property ID of the form UA-XXXXX-YY to which this linked foreign account belongs.
linkedViews
array[string]
optional
The views (profiles) that this remarketing audience is linked to.
name
string 
optional
The name of this remarketing audience.
stateBasedAudienceDefinition
object 
optional
A state based audience definition that will cause a user to be added or removed from an audience.
excludeConditions
object 
optional
Defines the conditions to exclude users from the audience.
includeConditions
object (IncludeConditions) 
optional
Defines the conditions to include users to the audience.
updated
string <date-time>
read-onlyoptional
Time this remarketing audience was last modified.
webPropertyId
string 
optional
Web property ID of the form UA-XXXXX-YY to which this remarketing audience belongs.
Modified at 2023-08-15 05:39:07
Previous
/management/accounts/{accountId}/webproperties/{webPropertyId}/remarketingAudiences
Next
/management/accounts/{accountId}/webproperties/{webPropertyId}/remarketingAudiences/{remarketingAudienceId}
Built with