google_api_ad_mob v0.4.0 GoogleApi.AdMob.V1.Model.GenerateNetworkReportResponse View Source

The streaming response for the AdMob Network report where the first response contains the report header, then a stream of row responses, and finally a footer as the last response message.

For example:

[{
  "header": {
    "dateRange": {
      "startDate": {"year": 2018, "month": 9, "day": 1},
      "endDate": {"year": 2018, "month": 9, "day": 30}
    }
    "localizationSettings": {
      "currencyCode": "USD",
      "languageCode": "en-US"
    }
  }
},
{
  "row": {
    "dimensionValues": {
      "DATE": {"value": "20180918"},
      "APP": {
        "value": "ca-app-pub-8123415297019784~1001342552",
         displayLabel: "My app name!"
      }
    },
    "metricValues": {
      "ESTIMATED_EARNINGS": {"microsValue": 6500000}
    }
  }
},
...
{
  "footer": {"matchingRowCount": 5}
}]

Attributes

  • footer (type: GoogleApi.AdMob.V1.Model.ReportFooter.t, default: nil) - Additional information about the generated report, such as warnings about the data.
  • header (type: GoogleApi.AdMob.V1.Model.ReportHeader.t, default: nil) - Report generation settings that describes the report contents, such as the report date range and localization settings.
  • row (type: GoogleApi.AdMob.V1.Model.ReportRow.t, default: nil) - Actual report data.

Link to this section Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Link to this section Types

Link to this type

t()

View Source
t() :: %GoogleApi.AdMob.V1.Model.GenerateNetworkReportResponse{
  footer: GoogleApi.AdMob.V1.Model.ReportFooter.t(),
  header: GoogleApi.AdMob.V1.Model.ReportHeader.t(),
  row: GoogleApi.AdMob.V1.Model.ReportRow.t()
}

Link to this section Functions

Link to this function

decode(value, options)

View Source
decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.