---
updatedAt: 2026-06-08T03:35:06.000Z
agentTools:
  projectIndex: https://developer.moloco.cloud/llms.txt
---

# Read an existing log.

Read an existing log.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Moloco Ads Campaign Management API",
    "description": "Moloco Ads Campaign Management API provides functionalities for Moloco Ads Campaigns.",
    "version": "1.10",
    "contact": {
      "name": "Moloco Inc.",
      "url": "https://www.moloco.com"
    }
  },
  "paths": {
    "/cm/v1/logs/{log_id}": {
      "get": {
        "summary": "Read an existing log.",
        "description": "Read an existing log.",
        "operationId": "DspApi_ReadLog",
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/messagesReadLogResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/googlerpcStatus"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "log_id",
            "description": "Log ID to read.",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "tags": [
          "Log"
        ]
      }
    }
  },
  "security": [
    {
      "Bearer": []
    }
  ],
  "servers": [
    {
      "url": "https://api.moloco.cloud"
    }
  ],
  "components": {
    "securitySchemes": {
      "Bearer": {
        "type": "apiKey",
        "name": "Authorization",
        "in": "header"
      }
    },
    "schemas": {
      "dspLog": {
        "type": "object",
        "example": {
          "id": "sampleLogId",
          "ad_account_id": "sampleAdAccountId",
          "type": "IMP",
          "format": "CSV",
          "date": "2020-01-01",
          "created_at": "2020-01-03T03:12:50.124101982Z",
          "updated_at": "2020-01-03T03:24:21.109821241Z"
        },
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier of the Log. Automatically set by server on creation."
          },
          "type": {
            "$ref": "#/components/schemas/dspLogType",
            "description": "Type of data which a log contains."
          },
          "format": {
            "$ref": "#/components/schemas/dspLogFormat",
            "description": "Format of generated log files."
          },
          "date": {
            "type": "string",
            "description": "Date for which a log contains the data in \"yyyy-mm-dd\" format."
          },
          "ad_account_id": {
            "type": "string",
            "description": "Ad account ID to which the log is bound."
          },
          "status": {
            "$ref": "#/components/schemas/dspLogStatus",
            "description": "Status of the log generation.",
            "readOnly": true
          },
          "skip_compression": {
            "type": "boolean",
            "description": "Flag whether to skip compression."
          },
          "expire_at": {
            "type": "string",
            "format": "date-time",
            "description": "The time when a log will be expired.",
            "readOnly": true
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Created time.",
            "readOnly": true
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Last updated time. Should not modify on the client side."
          }
        },
        "description": "The metadata of a log.",
        "required": [
          "type",
          "date",
          "ad_account_id"
        ]
      },
      "dspLogFormat": {
        "type": "string",
        "enum": [
          "UNKNOWN_LOG_FORMAT",
          "CSV",
          "AVRO",
          "PARQUET"
        ],
        "default": "UNKNOWN_LOG_FORMAT",
        "description": "Format enumerates the format of log. Default is CSV.\n\n - CSV: CSV format.\n - AVRO: Avro format.\n - PARQUET: Parquet format."
      },
      "dspLogStatus": {
        "type": "string",
        "enum": [
          "UNKNOWN_LOG_STATUS",
          "ACCEPTED",
          "READY",
          "FAILED"
        ],
        "default": "UNKNOWN_LOG_STATUS",
        "description": "Status enumerates the status of log.\n\n - ACCEPTED: Successfully initiated the log generation request.\n - READY: Successfully generated the log. It's ready to download from the location.\n - FAILED: Failed to generate the log. Reasons of failure can be found at errors."
      },
      "dspLogType": {
        "type": "string",
        "enum": [
          "UNKNOWN_LOG_TYPE",
          "IMP",
          "CLICK",
          "CONVERSION",
          "SKAN_CONVERSION",
          "ENGAGED_VIEW"
        ],
        "default": "UNKNOWN_LOG_TYPE",
        "description": "Type enumerates available log types.\n\nUnknown log type.\n\n - IMP: Log type which includes every impression log.\n - CLICK: Log type which includes every click log.\n - CONVERSION: Log type which includes every conversion event log.\n - SKAN_CONVERSION: Log type which includes SKAdNetwork attributed conversion event log.\n - ENGAGED_VIEW: Log type which includes every engaged view log."
      },
      "googlerpcStatus": {
        "type": "object",
        "properties": {
          "code": {
            "type": "integer",
            "format": "int32"
          },
          "message": {
            "type": "string"
          },
          "details": {
            "type": "array",
            "items": {
              "type": "object",
              "$ref": "#/components/schemas/protobufAny"
            }
          }
        }
      },
      "messagesReadLogResponse": {
        "type": "object",
        "example": {
          "log": {
            "id": "sampleLogId",
            "ad_account_id": "sampleAdAccountId",
            "type": "IMP",
            "format": "CSV",
            "date": "2020-01-01",
            "created_at": "2020-01-01T03:12:50.124101982Z",
            "updated_at": "2020-01-01T03:24:21.109821241Z"
          }
        },
        "properties": {
          "log": {
            "$ref": "#/components/schemas/dspLog",
            "description": "The details of a log."
          }
        }
      },
      "protobufAny": {
        "type": "object",
        "properties": {
          "@type": {
            "type": "string"
          }
        },
        "additionalProperties": {}
      }
    }
  }
}
```