Skip to content

Latest commit

 

History

History
65 lines (48 loc) · 2.62 KB

analytics.rst

File metadata and controls

65 lines (48 loc) · 2.62 KB

Google Analytics 360 Operators

Google Analytics 360 operators allow you to lists all accounts to which the user has access. For more information about the Google Analytics 360 API check official documentation.

To list accounts from Analytics you can use the :class:`~airflow.providers.google.marketing_platform.operators.analytics.GoogleAnalyticsListAccountsOperator`.

.. exampleinclude:: ../../../../airflow/providers/google/marketing_platform/example_dags/example_analytics.py
    :language: python
    :dedent: 4
    :start-after: [START howto_marketing_platform_list_accounts_operator]
    :end-before: [END howto_marketing_platform_list_accounts_operator]

You can use :ref:`Jinja templating <jinja-templating>` with :template-fields:`airflow.providers.google.marketing_platform.operators.analytics.GoogleAnalyticsListAccountsOperator`

To list Google Ads links you can use the :class:`~airflow.providers.google.marketing_platform.operators.analytics.GoogleAnalyticsRetrieveAdsLinksListOperator`.

.. exampleinclude:: ../../../../airflow/providers/google/marketing_platform/example_dags/example_analytics.py
    :language: python
    :dedent: 4
    :start-after: [START howto_marketing_platform_retrieve_ads_links_list_operator]
    :end-before: [END howto_marketing_platform_retrieve_ads_links_list_operator]

You can use :ref:`Jinja templating <jinja-templating>` with :template-fields:`airflow.providers.google.marketing_platform.operators.analytics.GoogleAnalyticsRetrieveAdsLinksListOperator`