POST /v3/audience/insights/appssites → Audience.appsSitesInsights

Overview

Property Value
REST endpoint POST /v3/audience/insights/appssites
GraphQL query Audience.appsSitesInsights
Return type AppsSitesInsightsConnection

Request and filter field mapping

REST field GraphQL argument GraphQL type Required Notes
AudienceId Parent: Query.audience(id: ID!) N/A Required Enter via audience(id: "<audience-id>") { appsSitesInsights(...) }.
GeoSegmentIds filter.geoSegmentIds [ID!]! Required AudienceAppsSitesInsightsParamInput.
UseMockData N/A N/A N/A Not currently available in GraphQL
PageStartIndex after String Optional N/A
PageSize first Int Optional N/A

Response field mapping

REST response field GraphQL field GraphQL type Nullable Notes
Result nodes [AppsSitesInsight!] Nullable N/A
Result.Name nodes.name String! Not nullable N/A
Result.Avails nodes.avails Float! Not nullable N/A
Result.Cpm nodes.cpm MoneyModel! Not nullable N/A
Result.Cpm.Amount nodes.cpm.amount Decimal! Not nullable N/A
Result.Cpm.CurrencyCode nodes.cpm.currencyCode CurrencyCode! Not nullable N/A
Result.RelevanceScore nodes.relevanceScore Float! Not nullable N/A
Result.IsApp nodes.isApp Boolean! Not nullable N/A
Result.ChannelName nodes.channelName String! Not nullable N/A
ResultCount N/A N/A N/A N/A
TotalFilteredCount totalCount Int! Not nullable N/A
TotalUnfilteredCount N/A N/A N/A N/A

Endpoint-specific nested types and enums

AppsSitesInsight

REST field GraphQL field GraphQL type Nullable Notes
Name name String! Not nullable N/A
Avails avails Float! Not nullable N/A
Cpm cpm MoneyModel! Not nullable See the Audience domain page for MoneyModel.
RelevanceScore relevanceScore Float! Not nullable N/A
IsApp isApp Boolean! Not nullable N/A
ChannelName channelName String! Not nullable N/A

Code examples

REST example

POST /v3/audience/insights/appssites HTTP/1.1
Content-Type: application/json
TTD-Auth: AUTH_TOKEN_PLACEHOLDER

{
  "AudienceId": "<audience-id>",
  "GeoSegmentIds": ["<geo-segment-id>"],
  "PageStartIndex": 0,
  "PageSize": 25
}

GraphQL example

POST /graphql HTTP/1.1
Content-Type: application/json
TTD-Auth: AUTH_TOKEN_PLACEHOLDER
query AppsSitesInsights {
  audience(id: "<audience-id>") {
    appsSitesInsights(
      first: 25
      filter: { geoSegmentIds: ["<geo-segment-id>"] }
    ) {
      nodes {
        name
        avails
        isApp
        channelName
        cpm {
          amount
          currencyCode
        }
        relevanceScore
      }
      totalCount
      pageInfo {
        hasNextPage
        endCursor
      }
    }
  }
}