airflow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [airflow] nuclearpinguin commented on a change in pull request #6170: [AIRFLOW-4971][Don't merge] Add Google Display & Video 360 integration
Date Tue, 24 Sep 2019 12:29:35 GMT
nuclearpinguin commented on a change in pull request #6170: [AIRFLOW-4971][Don't merge] Add
Google Display & Video 360 integration
URL: https://github.com/apache/airflow/pull/6170#discussion_r327585579
 
 

 ##########
 File path: docs/howto/operator/gcp/display_video.rst
 ##########
 @@ -0,0 +1,122 @@
+ .. Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License.  You may obtain a copy of the License at
+
+ ..   http://www.apache.org/licenses/LICENSE-2.0
+
+ .. Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License.
+
+Google Display & Video 360 Operators
+=======================================
+Display & Video 360 has the end-to-end campaign management features you need. For more
+information check `Google Display & Video 360 <https://marketingplatform.google.com/about/display-video-360/>`__
+
+
+.. contents::
+  :depth: 1
+  :local:
+
+Prerequisite Tasks
+^^^^^^^^^^^^^^^^^^
+
+.. include:: _partials/prerequisite_tasks.rst
+
+.. _howto/operator:GoogleDisplayVideo360CreateReportOperator:
+
+Creating a report
+^^^^^^^^^^^^^^^^^
+
+To create Display&Video 360 report you can use
+:class:`~airflow.gcp.operators.display_video.GoogleDisplayVideo360CreateReportOperator`.
+
+.. exampleinclude:: ../../../../airflow/gcp/example_dags/example_display_video.py
+    :language: python
+    :dedent: 4
+    :start-after: [START howto_google_display_video_createquery_report_operator]
+    :end-before: [END howto_google_display_video_createquery_report_operator]
+
+You can use :ref:`Jinja templating <jinja-templating>` with
+:template-fields:`airflow.gcp.operators.display_video.GoogleDisplayVideo360CreateReportOperator`
+parameters which allows you to dynamically determine values.
+The result is saved to :ref:`XCom <concepts:xcom>`, which allows it to be used by other
operators.
+
+.. _howto/operator:GoogleDisplayVideo360DeleteReportOperator:
+
+Deleting a report
+^^^^^^^^^^^^^^^^^
+
+To delete Display&Video 360 report you can use
+:class:`~airflow.gcp.operators.display_video.GoogleDisplayVideo360DeleteReportOperator`.
+
+.. exampleinclude:: ../../../../airflow/gcp/example_dags/example_display_video.py
+    :language: python
+    :dedent: 4
+    :start-after: [START howto_google_display_video_deletequery_report_operator]
+    :end-before: [END howto_google_display_video_deletequery_report_operator]
+
+You can use :ref:`Jinja templating <jinja-templating>` with
+:template-fields:`airflow.gcp.operators.display_video.GoogleDisplayVideo360DeleteReportOperator`
+parameters which allows you to dynamically determine values.
+
+.. _howto/operator:GoogleDisplayVideo360ReportSensor:
+
+Waiting for report
+^^^^^^^^^^^^^^^^^^
+To delete Display&Video 360 report you can use
+:class:`~airflow.gcp.sensors.display_video.GoogleDisplayVideo360ReportSensor`.
+
+.. exampleinclude:: ../../../../airflow/gcp/example_dags/example_display_video.py
+    :language: python
+    :dedent: 4
+    :start-after: [START howto_google_display_video_wait_report_operator]
+    :end-before: [END howto_google_display_video_wait_report_operator]
+
+You can use :ref:`Jinja templating <jinja-templating>` with
+:template-fields:`airflow.gcp.sensors.display_video.GoogleDisplayVideo360ReportSensor`
+parameters which allows you to dynamically determine values.
+
+.. _howto/operator:GoogleDisplayVideo360DownloadReportOperator:
+
+Downloading a report
+^^^^^^^^^^^^^^^^^^^^
+
+To create download a report to GCS bucket you can use
+:class:`~airflow.gcp.operators.display_video.GoogleDisplayVideo360DownloadReportOperator`.
+
+.. exampleinclude:: ../../../../airflow/gcp/example_dags/example_display_video.py
+    :language: python
+    :dedent: 4
+    :start-after: [START howto_google_display_video_getquery_report_operator]
+    :end-before: [END howto_google_display_video_getquery_report_operator]
+
+You can use :ref:`Jinja templating <jinja-templating>` with
+:template-fields:`airflow.gcp.operators.display_video.GoogleDisplayVideo360DownloadReportOperator`
+parameters which allows you to dynamically determine values.
+
+
+.. _howto/operator:GoogleDisplayVideo360RunReportOperator:
+
+Running a report
+^^^^^^^^^^^^^^^^
+
+To run Display&Video 360 report you can use
+:class:`~airflow.gcp.operators.display_video.GoogleDisplayVideo360RunReportOperator`.
+
+.. exampleinclude:: ../../../../airflow/gcp/example_dags/example_display_video.py
+    :language: python
+    :dedent: 4
+    :start-after: [START howto_google_display_video_runquery_report_operator]
+    :end-before: [END howto_google_display_video_runquery_report_operator]
+
+You can use :ref:`Jinja templating <jinja-templating>` with
+:template-fields:`airflow.gcp.operators.display_video.GoogleDisplayVideo360RunReportOperator`
+parameters which allows you to dynamically determine values.
 
 Review comment:
   Thanks @mschickensoup!

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message