class_docstr: Deletes previous GA uploads to leave the latest file to control the size of the Data Set Quota.
  
  .. seealso::
      This operator is deprecated, please use
      :class:`~airflow.providers.google.marketing_platform.operators.analytics_admin.GoogleAnalyticsAdminDeleteDataStreamOperator`:
  
  :param account_id: The GA account Id (long) to which the data upload belongs.
  :param web_property_id: The web property UA-string associated with the upload.
  :param custom_data_source_id: The id to which the data import belongs.
  :param gcp_conn_id: The connection ID to use when fetching connection info.
  :param delegate_to: The account to impersonate using domain-wide delegation of authority,
      if any. For this to work, the service account making the request must have
      domain-wide delegation enabled.
  :param api_version: The version of the api that will be requested for example 'v3'.
  :param impersonation_chain: Optional service account to impersonate using short-term
      credentials, or chained list of accounts required to get the access_token
      of the last account in the list, which will be impersonated in the request.
      If set as a string, the account must grant the originating account
      the Service Account Token Creator IAM role.
      If set as a sequence, the identities from the list must grant
      Service Account Token Creator IAM role to the directly preceding identity, with first
      account from the list granting this role to the originating account (templated).
class_docstr_tok: ["Deletes","previous","GA","uploads","to","leave","the","latest","file","to","control","the","size","of","the","Data","Set","Quota",".","..","seealso",":",":","This","operator","is","deprecated",",","please","use",":","class",":","`","~airflow.providers.google.marketing_platform.operators.analytics_admin.GoogleAnalyticsAdminDeleteDataStreamOperator","`",":",":","param","account_id",":","The","GA","account","Id","(","long",")","to","which","the","data","upload","belongs",".",":","param","web_property_id",":","The","web","property","UA-string","associated","with","the","upload",".",":","param","custom_data_source_id",":","The","id","to","which","the","data","import","belongs",".",":","param","gcp_conn_id",":","The","connection","ID","to","use","when","fetching","connection","info",".",":","param","delegate_to",":","The","account","to","impersonate","using","domain-wide","delegation","of","authority",",","if","any",".","For","this","to","work",",","the","service","account","making","the","request","must","have","domain-wide","delegation","enabled",".",":","param","api_version",":","The","version","of","the","api","that","will","be","requested","for","example","'v3","'",".",":","param","impersonation_chain",":","Optional","service","account","to","impersonate","using","short-term","credentials",",","or","chained","list","of","accounts","required","to","get","the","access_token","of","the","last","account","in","the","list",",","which","will","be","impersonated","in","the","request",".","If","set","as","a","string",",","the","account","must","grant","the","originating","account","the","Service","Account","Token","Creator","IAM","role",".","If","set","as","a","sequence",",","the","identities","from","the","list","must","grant","Service","Account","Token","Creator","IAM","role","to","the","directly","preceding","identity",",","with","first","account","from","the","list","granting","this","role","to","the","originating","account","(","templated",")","."]
code: def __init__(
      self,
      account_id: str,
      web_property_id: str,
      custom_data_source_id: str,
      gcp_conn_id: str = "google_cloud_default",
      delegate_to: str | None = None,
      api_version: str = "v3",
      impersonation_chain: str | Sequence[str] | None = None,
      **kwargs,
  ) -> None:
      warnings.warn(
          f"The `{type(self).__name__}` operator is deprecated, please use "
          f"`GoogleAnalyticsAdminDeleteDataStreamOperator` instead.",
          AirflowProviderDeprecationWarning,
          stacklevel=1,
      )
      super().__init__(**kwargs)
  
      self.account_id = account_id
      self.web_property_id = web_property_id
      self.custom_data_source_id = custom_data_source_id
      self.gcp_conn_id = gcp_conn_id
      self.delegate_to = delegate_to
      self.api_version = api_version
      self.impersonation_chain = impersonation_chain
  
imports: from __future__ import annotations
  import csv
  import warnings
  from tempfile import NamedTemporaryFile
  from typing import TYPE_CHECKING, Any, Sequence
  from airflow.exceptions import AirflowProviderDeprecationWarning
  from airflow.models import BaseOperator
  from airflow.providers.google.cloud.hooks.gcs import GCSHook
  from airflow.providers.google.marketing_platform.hooks.analytics import GoogleAnalyticsHook
label_desc: Use image node_id 1 to create a new GoogleAnalyticsDeletePreviousDataUploadsOperator object from inherited base classes: BaseOperator with example: obj = GoogleAnalyticsDeletePreviousDataUploadsOperator(account_id, web_property_id, custom_data_source_id, gcp_conn_id, delegate_to, api_version, impersonation_chain)