From 078c67c3985462caadb619ee35df359825219a71 Mon Sep 17 00:00:00 2001 From: Marcos Marx Date: Wed, 20 Oct 2021 14:43:42 -0300 Subject: [PATCH] run gradlew format --- .../src/main/resources/spec.json | 5 +- .../MongodbDestinationStrictEncrypt.java | 3 +- .../integration_tests/catalog.json | 211 +- .../integration_tests/configured_catalog.json | 303 +- .../integration_tests/invalid_config.json | 2 +- .../integration_tests/sample_config.json | 2 +- .../sample_files/configured_catalog.json | 7250 ++++++----------- .../invalid_config_wrong_api_token.json | 2 +- .../invalid_config_wrong_app_id.json | 2 +- .../sample_files/sample_config.json | 2 +- .../connectors/source-appsflyer/setup.py | 5 +- .../source_appsflyer/fields/__init__.py | 29 +- .../source_appsflyer/fields/daily_report.py | 6 +- .../source_appsflyer/fields/geo_report.py | 6 +- .../fields/partners_report.py | 6 +- .../source_appsflyer/fields/raw_data.py | 6 +- .../fields/retargeting_daily_report.py | 6 +- .../fields/retargeting_geo_report.py | 6 +- .../fields/retargeting_partners_report.py | 6 +- .../fields/uninstall_events.py | 6 +- .../schemas/daily_report.json | 134 +- .../source_appsflyer/schemas/geo_report.json | 359 +- .../schemas/in_app_events.json | 1086 +-- .../source_appsflyer/schemas/installs.json | 1086 +-- .../schemas/partners_report.json | 350 +- .../schemas/retargeting_conversions.json | 1086 +-- .../schemas/retargeting_daily_report.json | 125 +- .../schemas/retargeting_geo_report.json | 296 +- .../schemas/retargeting_in_app_events.json | 1086 +-- .../schemas/retargeting_partners_report.json | 287 +- .../schemas/uninstall_events.json | 1050 +-- .../source_appsflyer/source.py | 126 +- .../unit_tests/test_incremental_streams.py | 89 +- .../unit_tests/test_source.py | 17 +- .../unit_tests/test_streams.py | 15 +- .../source_facebook_marketing/api.py | 2 +- .../source_facebook_marketing/common.py | 2 +- .../schemas/ads_insights_breakdowns.json | 78 +- .../source_facebook_marketing/source.py | 49 +- .../sample_files/configured_catalog.json | 8 +- .../source-s3/integration_tests/spec.json | 4 +- .../source_files_abstract/formats/csv_spec.py | 2 +- .../source_s3/source_files_abstract/stream.py | 1 + .../source-s3/unit_tests/test_csv_parser.py | 8 +- 44 files changed, 5270 insertions(+), 9940 deletions(-) diff --git a/airbyte-integrations/connectors/destination-bigquery/src/main/resources/spec.json b/airbyte-integrations/connectors/destination-bigquery/src/main/resources/spec.json index 4f98ba0f6619e..ea0a674dbe90f 100644 --- a/airbyte-integrations/connectors/destination-bigquery/src/main/resources/spec.json +++ b/airbyte-integrations/connectors/destination-bigquery/src/main/resources/spec.json @@ -78,10 +78,7 @@ "description": "When running custom transformations or Basic normalization, running queries on interactive mode can hit BQ limits, choosing batch will solve those limitss.", "title": "Transformation Query Run Type", "default": "interactive", - "enum": [ - "interactive", - "batch" - ] + "enum": ["interactive", "batch"] }, "loading_method": { "type": "object", diff --git a/airbyte-integrations/connectors/destination-mongodb-strict-encrypt/src/main/java/io.airbyte.integrations.destination.mongodb/MongodbDestinationStrictEncrypt.java b/airbyte-integrations/connectors/destination-mongodb-strict-encrypt/src/main/java/io.airbyte.integrations.destination.mongodb/MongodbDestinationStrictEncrypt.java index d4c791a024cdd..d20ced77f2668 100644 --- a/airbyte-integrations/connectors/destination-mongodb-strict-encrypt/src/main/java/io.airbyte.integrations.destination.mongodb/MongodbDestinationStrictEncrypt.java +++ b/airbyte-integrations/connectors/destination-mongodb-strict-encrypt/src/main/java/io.airbyte.integrations.destination.mongodb/MongodbDestinationStrictEncrypt.java @@ -24,7 +24,8 @@ public MongodbDestinationStrictEncrypt() { @Override public ConnectorSpecification modifySpec(ConnectorSpecification originalSpec) throws Exception { final ConnectorSpecification spec = Jsons.clone(originalSpec); - // removing tls property for a standalone instance to disable possibility to switch off a tls connection + // removing tls property for a standalone instance to disable possibility to switch off a tls + // connection ((ObjectNode) spec.getConnectionSpecification().get("properties").get("instance_type").get("oneOf").get(0).get("properties")).remove("tls"); return spec; } diff --git a/airbyte-integrations/connectors/source-appsflyer/integration_tests/catalog.json b/airbyte-integrations/connectors/source-appsflyer/integration_tests/catalog.json index 0b0d95f80f331..3a56a7ce27e4f 100644 --- a/airbyte-integrations/connectors/source-appsflyer/integration_tests/catalog.json +++ b/airbyte-integrations/connectors/source-appsflyer/integration_tests/catalog.json @@ -1,136 +1,81 @@ { "streams": [ - { - "name": "in_app_events", - "json_schema": {}, - "supported_sync_modes": [ - "full_refresh", - "incremental" - ], - "source_defined_cursor": true, - "default_cursor_field": [ - "event_time" - ] - }, - { - "name": "installs", - "json_schema": {}, - "supported_sync_modes": [ - "full_refresh", - "incremental" - ], - "source_defined_cursor": true, - "default_cursor_field": [ - "install_time" - ] - }, - { - "name": "uninstall_events", - "json_schema": {}, - "supported_sync_modes": [ - "full_refresh", - "incremental" - ], - "source_defined_cursor": true, - "default_cursor_field": [ - "event_time" - ] - }, - { - "name": "retargeting_in_app_events", - "json_schema": {}, - "supported_sync_modes": [ - "full_refresh", - "incremental" - ], - "source_defined_cursor": true, - "default_cursor_field": [ - "event_time" - ] - }, - { - "name": "retargeting_conversions", - "json_schema": {}, - "supported_sync_modes": [ - "full_refresh", - "incremental" - ], - "source_defined_cursor": true, - "default_cursor_field": [ - "install_time" - ] - }, - { - "name": "partners_report", - "json_schema": {}, - "supported_sync_modes": [ - "full_refresh", - "incremental" - ], - "source_defined_cursor": true, - "default_cursor_field": [ - "date" - ] - }, - { - "name": "daily_report", - "json_schema": {}, - "supported_sync_modes": [ - "full_refresh", - "incremental" - ], - "source_defined_cursor": true, - "default_cursor_field": [ - "date" - ] - }, - { - "name": "geo_report", - "json_schema": {}, - "supported_sync_modes": [ - "full_refresh", - "incremental" - ], - "source_defined_cursor": true, - "default_cursor_field": [ - "date" - ] - }, - { - "name": "retargeting_partners_report", - "json_schema": {}, - "supported_sync_modes": [ - "full_refresh", - "incremental" - ], - "source_defined_cursor": true, - "default_cursor_field": [ - "date" - ] - }, - { - "name": "retargeting_daily_report", - "json_schema": {}, - "supported_sync_modes": [ - "full_refresh", - "incremental" - ], - "source_defined_cursor": true, - "default_cursor_field": [ - "date" - ] - }, - { - "name": "retargeting_geo_report", - "json_schema": {}, - "supported_sync_modes": [ - "full_refresh", - "incremental" - ], - "source_defined_cursor": true, - "default_cursor_field": [ - "date" - ] - } + { + "name": "in_app_events", + "json_schema": {}, + "supported_sync_modes": ["full_refresh", "incremental"], + "source_defined_cursor": true, + "default_cursor_field": ["event_time"] + }, + { + "name": "installs", + "json_schema": {}, + "supported_sync_modes": ["full_refresh", "incremental"], + "source_defined_cursor": true, + "default_cursor_field": ["install_time"] + }, + { + "name": "uninstall_events", + "json_schema": {}, + "supported_sync_modes": ["full_refresh", "incremental"], + "source_defined_cursor": true, + "default_cursor_field": ["event_time"] + }, + { + "name": "retargeting_in_app_events", + "json_schema": {}, + "supported_sync_modes": ["full_refresh", "incremental"], + "source_defined_cursor": true, + "default_cursor_field": ["event_time"] + }, + { + "name": "retargeting_conversions", + "json_schema": {}, + "supported_sync_modes": ["full_refresh", "incremental"], + "source_defined_cursor": true, + "default_cursor_field": ["install_time"] + }, + { + "name": "partners_report", + "json_schema": {}, + "supported_sync_modes": ["full_refresh", "incremental"], + "source_defined_cursor": true, + "default_cursor_field": ["date"] + }, + { + "name": "daily_report", + "json_schema": {}, + "supported_sync_modes": ["full_refresh", "incremental"], + "source_defined_cursor": true, + "default_cursor_field": ["date"] + }, + { + "name": "geo_report", + "json_schema": {}, + "supported_sync_modes": ["full_refresh", "incremental"], + "source_defined_cursor": true, + "default_cursor_field": ["date"] + }, + { + "name": "retargeting_partners_report", + "json_schema": {}, + "supported_sync_modes": ["full_refresh", "incremental"], + "source_defined_cursor": true, + "default_cursor_field": ["date"] + }, + { + "name": "retargeting_daily_report", + "json_schema": {}, + "supported_sync_modes": ["full_refresh", "incremental"], + "source_defined_cursor": true, + "default_cursor_field": ["date"] + }, + { + "name": "retargeting_geo_report", + "json_schema": {}, + "supported_sync_modes": ["full_refresh", "incremental"], + "source_defined_cursor": true, + "default_cursor_field": ["date"] + } ] -} \ No newline at end of file +} diff --git a/airbyte-integrations/connectors/source-appsflyer/integration_tests/configured_catalog.json b/airbyte-integrations/connectors/source-appsflyer/integration_tests/configured_catalog.json index 52a2e9611e2c3..44f0d8bce7510 100644 --- a/airbyte-integrations/connectors/source-appsflyer/integration_tests/configured_catalog.json +++ b/airbyte-integrations/connectors/source-appsflyer/integration_tests/configured_catalog.json @@ -1,180 +1,125 @@ { - "streams": [ - { - "stream": { - "name": "in_app_events", - "json_schema": {}, - "supported_sync_modes": [ - "full_refresh", - "incremental" - ], - "source_defined_cursor": true, - "default_cursor_field": [ - "event_time" - ] - }, - "sync_mode": "incremental", - "destination_sync_mode": "overwrite" - }, - { - "stream": { - "name": "installs", - "json_schema": {}, - "supported_sync_modes": [ - "full_refresh", - "incremental" - ], - "source_defined_cursor": true, - "default_cursor_field": [ - "install_time" - ] - }, - "sync_mode": "incremental", - "destination_sync_mode": "overwrite" - }, - { - "stream": { - "name": "uninstall_events", - "json_schema": {}, - "supported_sync_modes": [ - "full_refresh", - "incremental" - ], - "source_defined_cursor": true, - "default_cursor_field": [ - "event_time" - ] - }, - "sync_mode": "incremental", - "destination_sync_mode": "overwrite" - }, - { - "stream": { - "name": "retargeting_in_app_events", - "json_schema": {}, - "supported_sync_modes": [ - "full_refresh", - "incremental" - ], - "source_defined_cursor": true, - "default_cursor_field": [ - "event_time" - ] - }, - "sync_mode": "incremental", - "destination_sync_mode": "overwrite" - }, - { - "stream": { - "name": "retargeting_conversions", - "json_schema": {}, - "supported_sync_modes": [ - "full_refresh", - "incremental" - ], - "source_defined_cursor": true, - "default_cursor_field": [ - "install_time" - ] - }, - "sync_mode": "incremental", - "destination_sync_mode": "overwrite" - }, - { - "stream": { - "name": "partners_report", - "json_schema": {}, - "supported_sync_modes": [ - "full_refresh", - "incremental" - ], - "source_defined_cursor": true, - "default_cursor_field": [ - "date" - ] - }, - "sync_mode": "incremental", - "destination_sync_mode": "overwrite" - }, - { - "stream": { - "name": "daily_report", - "json_schema": {}, - "supported_sync_modes": [ - "full_refresh", - "incremental" - ], - "source_defined_cursor": true, - "default_cursor_field": [ - "date" - ] - }, - "sync_mode": "incremental", - "destination_sync_mode": "overwrite" - }, - { - "stream": { - "name": "geo_report", - "json_schema": {}, - "supported_sync_modes": [ - "full_refresh", - "incremental" - ], - "source_defined_cursor": true, - "default_cursor_field": [ - "date" - ] - }, - "sync_mode": "incremental", - "destination_sync_mode": "overwrite" - }, - { - "stream": { - "name": "retargeting_partners_report", - "json_schema": {}, - "supported_sync_modes": [ - "full_refresh", - "incremental" - ], - "source_defined_cursor": true, - "default_cursor_field": [ - "date" - ] - }, - "sync_mode": "incremental", - "destination_sync_mode": "overwrite" - }, - { - "stream": { - "name": "retargeting_daily_report", - "json_schema": {}, - "supported_sync_modes": [ - "full_refresh", - "incremental" - ], - "source_defined_cursor": true, - "default_cursor_field": [ - "date" - ] - }, - "sync_mode": "incremental", - "destination_sync_mode": "overwrite" - }, - { - "stream": { - "name": "retargeting_geo_report", - "json_schema": {}, - "supported_sync_modes": [ - "full_refresh", - "incremental" - ], - "source_defined_cursor": true, - "default_cursor_field": [ - "date" - ] - }, - "sync_mode": "incremental", - "destination_sync_mode": "overwrite" - } - ] -} \ No newline at end of file + "streams": [ + { + "stream": { + "name": "in_app_events", + "json_schema": {}, + "supported_sync_modes": ["full_refresh", "incremental"], + "source_defined_cursor": true, + "default_cursor_field": ["event_time"] + }, + "sync_mode": "incremental", + "destination_sync_mode": "overwrite" + }, + { + "stream": { + "name": "installs", + "json_schema": {}, + "supported_sync_modes": ["full_refresh", "incremental"], + "source_defined_cursor": true, + "default_cursor_field": ["install_time"] + }, + "sync_mode": "incremental", + "destination_sync_mode": "overwrite" + }, + { + "stream": { + "name": "uninstall_events", + "json_schema": {}, + "supported_sync_modes": ["full_refresh", "incremental"], + "source_defined_cursor": true, + "default_cursor_field": ["event_time"] + }, + "sync_mode": "incremental", + "destination_sync_mode": "overwrite" + }, + { + "stream": { + "name": "retargeting_in_app_events", + "json_schema": {}, + "supported_sync_modes": ["full_refresh", "incremental"], + "source_defined_cursor": true, + "default_cursor_field": ["event_time"] + }, + "sync_mode": "incremental", + "destination_sync_mode": "overwrite" + }, + { + "stream": { + "name": "retargeting_conversions", + "json_schema": {}, + "supported_sync_modes": ["full_refresh", "incremental"], + "source_defined_cursor": true, + "default_cursor_field": ["install_time"] + }, + "sync_mode": "incremental", + "destination_sync_mode": "overwrite" + }, + { + "stream": { + "name": "partners_report", + "json_schema": {}, + "supported_sync_modes": ["full_refresh", "incremental"], + "source_defined_cursor": true, + "default_cursor_field": ["date"] + }, + "sync_mode": "incremental", + "destination_sync_mode": "overwrite" + }, + { + "stream": { + "name": "daily_report", + "json_schema": {}, + "supported_sync_modes": ["full_refresh", "incremental"], + "source_defined_cursor": true, + "default_cursor_field": ["date"] + }, + "sync_mode": "incremental", + "destination_sync_mode": "overwrite" + }, + { + "stream": { + "name": "geo_report", + "json_schema": {}, + "supported_sync_modes": ["full_refresh", "incremental"], + "source_defined_cursor": true, + "default_cursor_field": ["date"] + }, + "sync_mode": "incremental", + "destination_sync_mode": "overwrite" + }, + { + "stream": { + "name": "retargeting_partners_report", + "json_schema": {}, + "supported_sync_modes": ["full_refresh", "incremental"], + "source_defined_cursor": true, + "default_cursor_field": ["date"] + }, + "sync_mode": "incremental", + "destination_sync_mode": "overwrite" + }, + { + "stream": { + "name": "retargeting_daily_report", + "json_schema": {}, + "supported_sync_modes": ["full_refresh", "incremental"], + "source_defined_cursor": true, + "default_cursor_field": ["date"] + }, + "sync_mode": "incremental", + "destination_sync_mode": "overwrite" + }, + { + "stream": { + "name": "retargeting_geo_report", + "json_schema": {}, + "supported_sync_modes": ["full_refresh", "incremental"], + "source_defined_cursor": true, + "default_cursor_field": ["date"] + }, + "sync_mode": "incremental", + "destination_sync_mode": "overwrite" + } + ] +} diff --git a/airbyte-integrations/connectors/source-appsflyer/integration_tests/invalid_config.json b/airbyte-integrations/connectors/source-appsflyer/integration_tests/invalid_config.json index e1ab8741c55c9..e696bd65ab5a5 100644 --- a/airbyte-integrations/connectors/source-appsflyer/integration_tests/invalid_config.json +++ b/airbyte-integrations/connectors/source-appsflyer/integration_tests/invalid_config.json @@ -2,5 +2,5 @@ "app_id": "app.yourapp.android", "api_token": "wrong_secret", "start_date": "2021-09-27 20:00:00", - "timezone":"Asia/Jakarta" + "timezone": "Asia/Jakarta" } diff --git a/airbyte-integrations/connectors/source-appsflyer/integration_tests/sample_config.json b/airbyte-integrations/connectors/source-appsflyer/integration_tests/sample_config.json index d832122db99b3..70c41e0b78ebe 100644 --- a/airbyte-integrations/connectors/source-appsflyer/integration_tests/sample_config.json +++ b/airbyte-integrations/connectors/source-appsflyer/integration_tests/sample_config.json @@ -2,5 +2,5 @@ "app_id": "app.yourapp.android", "api_token": "secret", "start_date": "2021-09-27 20:00:00", - "timezone":"Asia/Jakarta" + "timezone": "Asia/Jakarta" } diff --git a/airbyte-integrations/connectors/source-appsflyer/sample_files/configured_catalog.json b/airbyte-integrations/connectors/source-appsflyer/sample_files/configured_catalog.json index e9c369f9db99e..12cea4adcb568 100644 --- a/airbyte-integrations/connectors/source-appsflyer/sample_files/configured_catalog.json +++ b/airbyte-integrations/connectors/source-appsflyer/sample_files/configured_catalog.json @@ -1,4793 +1,2479 @@ { - "streams": [ - { - "stream": { - "name": "in_app_events", - "json_schema": { - "type": "object", - "properties": { - "attributed_touch_type": { - "type": [ - "null", - "string" - ] - }, - "attributed_touch_time": { - "type": [ - "null", - "string" - ], - "format": "date-time" - }, - "install_time": { - "type": [ - "null", - "string" - ], - "format": "date-time" - }, - "event_time": { - "type": [ - "null", - "string" - ], - "format": "date-time" - }, - "event_name": { - "type": [ - "null", - "string" - ] - }, - "event_value": { - "type": [ - "null", - "string" - ] - }, - "event_revenue": { - "type": [ - "null", - "string" - ] - }, - "event_revenue_currency": { - "type": [ - "null", - "string" - ] - }, - "event_revenue_usd": { - "type": [ - "null", - "string" - ] - }, - "event_source": { - "type": [ - "null", - "string" - ] - }, - "is_receipt_validated": { - "type": [ - "null", - "boolean" - ] - }, - "af_prt": { - "type": [ - "null", - "string" - ] - }, - "media_source": { - "type": [ - "null", - "string" - ] - }, - "af_channel": { - "type": [ - "null", - "string" - ] - }, - "af_keywords": { - "type": [ - "null", - "string" - ] - }, - "campaign": { - "type": [ - "null", - "string" - ] - }, - "af_c_id": { - "type": [ - "null", - "string" - ] - }, - "af_adset": { - "type": [ - "null", - "string" - ] - }, - "af_adset_id": { - "type": [ - "null", - "string" - ] - }, - "af_ad": { - "type": [ - "null", - "string" - ] - }, - "af_ad_id": { - "type": [ - "null", - "string" - ] - }, - "af_ad_type": { - "type": [ - "null", - "string" - ] - }, - "af_siteid": { - "type": [ - "null", - "string" - ] - }, - "af_sub_siteid": { - "type": [ - "null", - "string" - ] - }, - "af_sub1": { - "type": [ - "null", - "string" - ] - }, - "af_sub2": { - "type": [ - "null", - "string" - ] - }, - "af_sub3": { - "type": [ - "null", - "string" - ] - }, - "af_sub4": { - "type": [ - "null", - "string" - ] - }, - "af_sub5": { - "type": [ - "null", - "string" - ] - }, - "af_cost_model": { - "type": [ - "null", - "string" - ] - }, - "af_cost_value": { - "type": [ - "null", - "string" - ] - }, - "af_cost_currency": { - "type": [ - "null", - "string" - ] - }, - "contributor1_af_prt": { - "type": [ - "null", - "string" - ] - }, - "contributor1_media_source": { - "type": [ - "null", - "string" - ] - }, - "contributor1_campaign": { - "type": [ - "null", - "string" - ] - }, - "contributor1_touch_type": { - "type": [ - "null", - "string" - ] - }, - "contributor1_touch_time": { - "type": [ - "null", - "string" - ], - "format": "date-time" - }, - "contributor2_af_prt": { - "type": [ - "null", - "string" - ] - }, - "contributor2_media_source": { - "type": [ - "null", - "string" - ] - }, - "contributor2_campaign": { - "type": [ - "null", - "string" - ] - }, - "contributor2_touch_type": { - "type": [ - "null", - "string" - ] - }, - "contributor2_touch_time": { - "type": [ - "null", - "string" - ], - "format": "date-time" - }, - "contributor3_af_prt": { - "type": [ - "null", - "string" - ] - }, - "contributor3_media_source": { - "type": [ - "null", - "string" - ] - }, - "contributor3_campaign": { - "type": [ - "null", - "string" - ] - }, - "contributor3_touch_type": { - "type": [ - "null", - "string" - ] - }, - "contributor3_touch_time": { - "type": [ - "null", - "string" - ], - "format": "date-time" - }, - "region": { - "type": [ - "null", - "string" - ] - }, - "country_code": { - "type": [ - "null", - "string" - ] - }, - "state": { - "type": [ - "null", - "string" - ] - }, - "city": { - "type": [ - "null", - "string" - ] - }, - "postal_code": { - "type": [ - "null", - "string" - ] - }, - "dma": { - "type": [ - "null", - "string" - ] - }, - "ip": { - "type": [ - "null", - "string" - ] - }, - "wifi": { - "type": [ - "null", - "boolean" - ] - }, - "operator": { - "type": [ - "null", - "string" - ] - }, - "carrier": { - "type": [ - "null", - "string" - ] - }, - "language": { - "type": [ - "null", - "string" - ] - }, - "appsflyer_id": { - "type": [ - "null", - "string" - ] - }, - "advertising_id": { - "type": [ - "null", - "string" - ] - }, - "idfa": { - "type": [ - "null", - "string" - ] - }, - "android_id": { - "type": [ - "null", - "string" - ] - }, - "customer_user_id": { - "type": [ - "null", - "string" - ] - }, - "imei": { - "type": [ - "null", - "string" - ] - }, - "idfv": { - "type": [ - "null", - "string" - ] - }, - "platform": { - "type": [ - "null", - "string" - ] - }, - "device_type": { - "type": [ - "null", - "string" - ] - }, - "os_version": { - "type": [ - "null", - "string" - ] - }, - "app_version": { - "type": [ - "null", - "string" - ] - }, - "sdk_version": { - "type": [ - "null", - "string" - ] - }, - "app_id": { - "type": [ - "null", - "string" - ] - }, - "app_name": { - "type": [ - "null", - "string" - ] - }, - "bundle_id": { - "type": [ - "null", - "string" - ] - }, - "is_retargeting": { - "type": [ - "null", - "boolean" - ] - }, - "retargeting_conversion_type": { - "type": [ - "null", - "string" - ] - }, - "af_attribution_lookback": { - "type": [ - "null", - "string" - ] - }, - "af_reengagement_window": { - "type": [ - "null", - "string" - ] - }, - "is_primary_attribution": { - "type": [ - "null", - "boolean" - ] - }, - "user_agent": { - "type": [ - "null", - "string" - ] - }, - "http_referrer": { - "type": [ - "null", - "string" - ] - }, - "original_url": { - "type": [ - "null", - "string" - ] - }, - "app_type": { - "type": [ - "null", - "string" - ] - }, - "custom_data": { - "type": [ - "null", - "string" - ] - }, - "network_account_id": { - "type": [ - "null", - "string" - ] - }, - "install_app_store": { - "type": [ - "null", - "string" - ] - }, - "contributor1_match_type": { - "type": [ - "null", - "string" - ] - }, - "contributor2_match_type": { - "type": [ - "null", - "string" - ] - }, - "contributor3_match_type": { - "type": [ - "null", - "string" - ] - }, - "campaign_type": { - "type": [ - "null", - "string" - ] - }, - "conversion_type": { - "type": [ - "null", - "string" - ] - }, - "match_type": { - "type": [ - "null", - "string" - ] - }, - "gp_referrer": { - "type": [ - "null", - "string" - ] - }, - "gp_click_time": { - "type": [ - "null", - "string" - ], - "format": "date-time" - }, - "gp_install_begin": { - "type": [ - "null", - "string" - ], - "format": "date-time" - }, - "gp_broadcast_referrer": { - "type": [ - "null", - "string" - ] - }, - "keyword_match_type": { - "type": [ - "null", - "string" - ] - }, - "keyword_id": { - "type": [ - "null", - "string" - ] - }, - "att": { - "type": [ - "null", - "string" - ] - }, - "amazon_aid": { - "type": [ - "null", - "string" - ] - }, - "device_category": { - "type": [ - "null", - "string" - ] - }, - "device_model": { - "type": [ - "null", - "string" - ] - }, - "device_download_time": { - "type": [ - "null", - "string" - ], - "format": "date-time" - }, - "deeplink_url": { - "type": [ - "null", - "string" - ] - }, - "oaid": { - "type": [ - "null", - "string" - ] - }, - "is_lat": { - "type": [ - "null", - "boolean" - ] - }, - "store_reinstall": { - "type": [ - "null", - "boolean" - ] - }, - "placement": { - "type": [ - "null", - "string" - ] - }, - "mediation_network": { - "type": [ - "null", - "string" - ] - }, - "segment": { - "type": [ - "null", - "string" - ] - }, - "ad_unit": { - "type": [ - "null", - "string" - ] - }, - "monetization_network": { - "type": [ - "null", - "string" - ] - }, - "impressions": { - "type": [ - "null", - "string" - ] - }, - "blocked_reason": { - "type": [ - "null", - "string" - ] - }, - "blocked_reason_value": { - "type": [ - "null", - "string" - ] - }, - "blocked_reason_rule": { - "type": [ - "null", - "string" - ] - }, - "blocked_sub_reason": { - "type": [ - "null", - "string" - ] - }, - "rejected_reason": { - "type": [ - "null", - "string" - ] - }, - "rejected_reason_value": { - "type": [ - "null", - "string" - ] - } - } - }, - "supported_sync_modes": [ - "full_refresh", - "incremental" - ], - "source_defined_cursor": true, - "default_cursor_field": [ - "event_time" - ] - }, - "sync_mode": "incremental", - "destination_sync_mode": "overwrite" + "streams": [ + { + "stream": { + "name": "in_app_events", + "json_schema": { + "type": "object", + "properties": { + "attributed_touch_type": { + "type": ["null", "string"] + }, + "attributed_touch_time": { + "type": ["null", "string"], + "format": "date-time" + }, + "install_time": { + "type": ["null", "string"], + "format": "date-time" + }, + "event_time": { + "type": ["null", "string"], + "format": "date-time" + }, + "event_name": { + "type": ["null", "string"] + }, + "event_value": { + "type": ["null", "string"] + }, + "event_revenue": { + "type": ["null", "string"] + }, + "event_revenue_currency": { + "type": ["null", "string"] + }, + "event_revenue_usd": { + "type": ["null", "string"] + }, + "event_source": { + "type": ["null", "string"] + }, + "is_receipt_validated": { + "type": ["null", "boolean"] + }, + "af_prt": { + "type": ["null", "string"] + }, + "media_source": { + "type": ["null", "string"] + }, + "af_channel": { + "type": ["null", "string"] + }, + "af_keywords": { + "type": ["null", "string"] + }, + "campaign": { + "type": ["null", "string"] + }, + "af_c_id": { + "type": ["null", "string"] + }, + "af_adset": { + "type": ["null", "string"] + }, + "af_adset_id": { + "type": ["null", "string"] + }, + "af_ad": { + "type": ["null", "string"] + }, + "af_ad_id": { + "type": ["null", "string"] + }, + "af_ad_type": { + "type": ["null", "string"] + }, + "af_siteid": { + "type": ["null", "string"] + }, + "af_sub_siteid": { + "type": ["null", "string"] + }, + "af_sub1": { + "type": ["null", "string"] + }, + "af_sub2": { + "type": ["null", "string"] + }, + "af_sub3": { + "type": ["null", "string"] + }, + "af_sub4": { + "type": ["null", "string"] + }, + "af_sub5": { + "type": ["null", "string"] + }, + "af_cost_model": { + "type": ["null", "string"] + }, + "af_cost_value": { + "type": ["null", "string"] + }, + "af_cost_currency": { + "type": ["null", "string"] + }, + "contributor1_af_prt": { + "type": ["null", "string"] + }, + "contributor1_media_source": { + "type": ["null", "string"] + }, + "contributor1_campaign": { + "type": ["null", "string"] + }, + "contributor1_touch_type": { + "type": ["null", "string"] + }, + "contributor1_touch_time": { + "type": ["null", "string"], + "format": "date-time" + }, + "contributor2_af_prt": { + "type": ["null", "string"] + }, + "contributor2_media_source": { + "type": ["null", "string"] + }, + "contributor2_campaign": { + "type": ["null", "string"] + }, + "contributor2_touch_type": { + "type": ["null", "string"] + }, + "contributor2_touch_time": { + "type": ["null", "string"], + "format": "date-time" + }, + "contributor3_af_prt": { + "type": ["null", "string"] + }, + "contributor3_media_source": { + "type": ["null", "string"] + }, + "contributor3_campaign": { + "type": ["null", "string"] + }, + "contributor3_touch_type": { + "type": ["null", "string"] + }, + "contributor3_touch_time": { + "type": ["null", "string"], + "format": "date-time" + }, + "region": { + "type": ["null", "string"] + }, + "country_code": { + "type": ["null", "string"] + }, + "state": { + "type": ["null", "string"] + }, + "city": { + "type": ["null", "string"] + }, + "postal_code": { + "type": ["null", "string"] + }, + "dma": { + "type": ["null", "string"] + }, + "ip": { + "type": ["null", "string"] + }, + "wifi": { + "type": ["null", "boolean"] + }, + "operator": { + "type": ["null", "string"] + }, + "carrier": { + "type": ["null", "string"] + }, + "language": { + "type": ["null", "string"] + }, + "appsflyer_id": { + "type": ["null", "string"] + }, + "advertising_id": { + "type": ["null", "string"] + }, + "idfa": { + "type": ["null", "string"] + }, + "android_id": { + "type": ["null", "string"] + }, + "customer_user_id": { + "type": ["null", "string"] + }, + "imei": { + "type": ["null", "string"] + }, + "idfv": { + "type": ["null", "string"] + }, + "platform": { + "type": ["null", "string"] + }, + "device_type": { + "type": ["null", "string"] + }, + "os_version": { + "type": ["null", "string"] + }, + "app_version": { + "type": ["null", "string"] + }, + "sdk_version": { + "type": ["null", "string"] + }, + "app_id": { + "type": ["null", "string"] + }, + "app_name": { + "type": ["null", "string"] + }, + "bundle_id": { + "type": ["null", "string"] + }, + "is_retargeting": { + "type": ["null", "boolean"] + }, + "retargeting_conversion_type": { + "type": ["null", "string"] + }, + "af_attribution_lookback": { + "type": ["null", "string"] + }, + "af_reengagement_window": { + "type": ["null", "string"] + }, + "is_primary_attribution": { + "type": ["null", "boolean"] + }, + "user_agent": { + "type": ["null", "string"] + }, + "http_referrer": { + "type": ["null", "string"] + }, + "original_url": { + "type": ["null", "string"] + }, + "app_type": { + "type": ["null", "string"] + }, + "custom_data": { + "type": ["null", "string"] + }, + "network_account_id": { + "type": ["null", "string"] + }, + "install_app_store": { + "type": ["null", "string"] + }, + "contributor1_match_type": { + "type": ["null", "string"] + }, + "contributor2_match_type": { + "type": ["null", "string"] + }, + "contributor3_match_type": { + "type": ["null", "string"] + }, + "campaign_type": { + "type": ["null", "string"] + }, + "conversion_type": { + "type": ["null", "string"] + }, + "match_type": { + "type": ["null", "string"] + }, + "gp_referrer": { + "type": ["null", "string"] + }, + "gp_click_time": { + "type": ["null", "string"], + "format": "date-time" + }, + "gp_install_begin": { + "type": ["null", "string"], + "format": "date-time" + }, + "gp_broadcast_referrer": { + "type": ["null", "string"] + }, + "keyword_match_type": { + "type": ["null", "string"] + }, + "keyword_id": { + "type": ["null", "string"] + }, + "att": { + "type": ["null", "string"] + }, + "amazon_aid": { + "type": ["null", "string"] + }, + "device_category": { + "type": ["null", "string"] + }, + "device_model": { + "type": ["null", "string"] + }, + "device_download_time": { + "type": ["null", "string"], + "format": "date-time" + }, + "deeplink_url": { + "type": ["null", "string"] + }, + "oaid": { + "type": ["null", "string"] + }, + "is_lat": { + "type": ["null", "boolean"] + }, + "store_reinstall": { + "type": ["null", "boolean"] + }, + "placement": { + "type": ["null", "string"] + }, + "mediation_network": { + "type": ["null", "string"] + }, + "segment": { + "type": ["null", "string"] + }, + "ad_unit": { + "type": ["null", "string"] + }, + "monetization_network": { + "type": ["null", "string"] + }, + "impressions": { + "type": ["null", "string"] + }, + "blocked_reason": { + "type": ["null", "string"] + }, + "blocked_reason_value": { + "type": ["null", "string"] + }, + "blocked_reason_rule": { + "type": ["null", "string"] + }, + "blocked_sub_reason": { + "type": ["null", "string"] + }, + "rejected_reason": { + "type": ["null", "string"] + }, + "rejected_reason_value": { + "type": ["null", "string"] + } + } }, - { - "stream": { - "name": "installs", - "json_schema": { - "type": "object", - "properties": { - "attributed_touch_type": { - "type": [ - "null", - "string" - ] - }, - "attributed_touch_time": { - "type": [ - "null", - "string" - ], - "format": "date-time" - }, - "install_time": { - "type": [ - "null", - "string" - ], - "format": "date-time" - }, - "event_time": { - "type": [ - "null", - "string" - ], - "format": "date-time" - }, - "event_name": { - "type": [ - "null", - "string" - ] - }, - "event_value": { - "type": [ - "null", - "string" - ] - }, - "event_revenue": { - "type": [ - "null", - "string" - ] - }, - "event_revenue_currency": { - "type": [ - "null", - "string" - ] - }, - "event_revenue_usd": { - "type": [ - "null", - "string" - ] - }, - "event_source": { - "type": [ - "null", - "string" - ] - }, - "is_receipt_validated": { - "type": [ - "null", - "boolean" - ] - }, - "af_prt": { - "type": [ - "null", - "string" - ] - }, - "media_source": { - "type": [ - "null", - "string" - ] - }, - "af_channel": { - "type": [ - "null", - "string" - ] - }, - "af_keywords": { - "type": [ - "null", - "string" - ] - }, - "campaign": { - "type": [ - "null", - "string" - ] - }, - "af_c_id": { - "type": [ - "null", - "string" - ] - }, - "af_adset": { - "type": [ - "null", - "string" - ] - }, - "af_adset_id": { - "type": [ - "null", - "string" - ] - }, - "af_ad": { - "type": [ - "null", - "string" - ] - }, - "af_ad_id": { - "type": [ - "null", - "string" - ] - }, - "af_ad_type": { - "type": [ - "null", - "string" - ] - }, - "af_siteid": { - "type": [ - "null", - "string" - ] - }, - "af_sub_siteid": { - "type": [ - "null", - "string" - ] - }, - "af_sub1": { - "type": [ - "null", - "string" - ] - }, - "af_sub2": { - "type": [ - "null", - "string" - ] - }, - "af_sub3": { - "type": [ - "null", - "string" - ] - }, - "af_sub4": { - "type": [ - "null", - "string" - ] - }, - "af_sub5": { - "type": [ - "null", - "string" - ] - }, - "af_cost_model": { - "type": [ - "null", - "string" - ] - }, - "af_cost_value": { - "type": [ - "null", - "string" - ] - }, - "af_cost_currency": { - "type": [ - "null", - "string" - ] - }, - "contributor1_af_prt": { - "type": [ - "null", - "string" - ] - }, - "contributor1_media_source": { - "type": [ - "null", - "string" - ] - }, - "contributor1_campaign": { - "type": [ - "null", - "string" - ] - }, - "contributor1_touch_type": { - "type": [ - "null", - "string" - ] - }, - "contributor1_touch_time": { - "type": [ - "null", - "string" - ], - "format": "date-time" - }, - "contributor2_af_prt": { - "type": [ - "null", - "string" - ] - }, - "contributor2_media_source": { - "type": [ - "null", - "string" - ] - }, - "contributor2_campaign": { - "type": [ - "null", - "string" - ] - }, - "contributor2_touch_type": { - "type": [ - "null", - "string" - ] - }, - "contributor2_touch_time": { - "type": [ - "null", - "string" - ], - "format": "date-time" - }, - "contributor3_af_prt": { - "type": [ - "null", - "string" - ] - }, - "contributor3_media_source": { - "type": [ - "null", - "string" - ] - }, - "contributor3_campaign": { - "type": [ - "null", - "string" - ] - }, - "contributor3_touch_type": { - "type": [ - "null", - "string" - ] - }, - "contributor3_touch_time": { - "type": [ - "null", - "string" - ], - "format": "date-time" - }, - "region": { - "type": [ - "null", - "string" - ] - }, - "country_code": { - "type": [ - "null", - "string" - ] - }, - "state": { - "type": [ - "null", - "string" - ] - }, - "city": { - "type": [ - "null", - "string" - ] - }, - "postal_code": { - "type": [ - "null", - "string" - ] - }, - "dma": { - "type": [ - "null", - "string" - ] - }, - "ip": { - "type": [ - "null", - "string" - ] - }, - "wifi": { - "type": [ - "null", - "boolean" - ] - }, - "operator": { - "type": [ - "null", - "string" - ] - }, - "carrier": { - "type": [ - "null", - "string" - ] - }, - "language": { - "type": [ - "null", - "string" - ] - }, - "appsflyer_id": { - "type": [ - "null", - "string" - ] - }, - "advertising_id": { - "type": [ - "null", - "string" - ] - }, - "idfa": { - "type": [ - "null", - "string" - ] - }, - "android_id": { - "type": [ - "null", - "string" - ] - }, - "customer_user_id": { - "type": [ - "null", - "string" - ] - }, - "imei": { - "type": [ - "null", - "string" - ] - }, - "idfv": { - "type": [ - "null", - "string" - ] - }, - "platform": { - "type": [ - "null", - "string" - ] - }, - "device_type": { - "type": [ - "null", - "string" - ] - }, - "os_version": { - "type": [ - "null", - "string" - ] - }, - "app_version": { - "type": [ - "null", - "string" - ] - }, - "sdk_version": { - "type": [ - "null", - "string" - ] - }, - "app_id": { - "type": [ - "null", - "string" - ] - }, - "app_name": { - "type": [ - "null", - "string" - ] - }, - "bundle_id": { - "type": [ - "null", - "string" - ] - }, - "is_retargeting": { - "type": [ - "null", - "boolean" - ] - }, - "retargeting_conversion_type": { - "type": [ - "null", - "string" - ] - }, - "af_attribution_lookback": { - "type": [ - "null", - "string" - ] - }, - "af_reengagement_window": { - "type": [ - "null", - "string" - ] - }, - "is_primary_attribution": { - "type": [ - "null", - "boolean" - ] - }, - "user_agent": { - "type": [ - "null", - "string" - ] - }, - "http_referrer": { - "type": [ - "null", - "string" - ] - }, - "original_url": { - "type": [ - "null", - "string" - ] - }, - "app_type": { - "type": [ - "null", - "string" - ] - }, - "custom_data": { - "type": [ - "null", - "string" - ] - }, - "network_account_id": { - "type": [ - "null", - "string" - ] - }, - "install_app_store": { - "type": [ - "null", - "string" - ] - }, - "contributor1_match_type": { - "type": [ - "null", - "string" - ] - }, - "contributor2_match_type": { - "type": [ - "null", - "string" - ] - }, - "contributor3_match_type": { - "type": [ - "null", - "string" - ] - }, - "campaign_type": { - "type": [ - "null", - "string" - ] - }, - "conversion_type": { - "type": [ - "null", - "string" - ] - }, - "match_type": { - "type": [ - "null", - "string" - ] - }, - "gp_referrer": { - "type": [ - "null", - "string" - ] - }, - "gp_click_time": { - "type": [ - "null", - "string" - ], - "format": "date-time" - }, - "gp_install_begin": { - "type": [ - "null", - "string" - ], - "format": "date-time" - }, - "gp_broadcast_referrer": { - "type": [ - "null", - "string" - ] - }, - "keyword_match_type": { - "type": [ - "null", - "string" - ] - }, - "keyword_id": { - "type": [ - "null", - "string" - ] - }, - "att": { - "type": [ - "null", - "string" - ] - }, - "amazon_aid": { - "type": [ - "null", - "string" - ] - }, - "device_category": { - "type": [ - "null", - "string" - ] - }, - "device_model": { - "type": [ - "null", - "string" - ] - }, - "device_download_time": { - "type": [ - "null", - "string" - ], - "format": "date-time" - }, - "deeplink_url": { - "type": [ - "null", - "string" - ] - }, - "oaid": { - "type": [ - "null", - "string" - ] - }, - "is_lat": { - "type": [ - "null", - "boolean" - ] - }, - "store_reinstall": { - "type": [ - "null", - "boolean" - ] - }, - "placement": { - "type": [ - "null", - "string" - ] - }, - "mediation_network": { - "type": [ - "null", - "string" - ] - }, - "segment": { - "type": [ - "null", - "string" - ] - }, - "ad_unit": { - "type": [ - "null", - "string" - ] - }, - "monetization_network": { - "type": [ - "null", - "string" - ] - }, - "impressions": { - "type": [ - "null", - "string" - ] - }, - "blocked_reason": { - "type": [ - "null", - "string" - ] - }, - "blocked_reason_value": { - "type": [ - "null", - "string" - ] - }, - "blocked_reason_rule": { - "type": [ - "null", - "string" - ] - }, - "blocked_sub_reason": { - "type": [ - "null", - "string" - ] - }, - "rejected_reason": { - "type": [ - "null", - "string" - ] - }, - "rejected_reason_value": { - "type": [ - "null", - "string" - ] - } - } - }, - "supported_sync_modes": [ - "full_refresh", - "incremental" - ], - "source_defined_cursor": true, - "default_cursor_field": [ - "install_time" - ] - }, - "sync_mode": "incremental", - "destination_sync_mode": "overwrite" + "supported_sync_modes": ["full_refresh", "incremental"], + "source_defined_cursor": true, + "default_cursor_field": ["event_time"] + }, + "sync_mode": "incremental", + "destination_sync_mode": "overwrite" + }, + { + "stream": { + "name": "installs", + "json_schema": { + "type": "object", + "properties": { + "attributed_touch_type": { + "type": ["null", "string"] + }, + "attributed_touch_time": { + "type": ["null", "string"], + "format": "date-time" + }, + "install_time": { + "type": ["null", "string"], + "format": "date-time" + }, + "event_time": { + "type": ["null", "string"], + "format": "date-time" + }, + "event_name": { + "type": ["null", "string"] + }, + "event_value": { + "type": ["null", "string"] + }, + "event_revenue": { + "type": ["null", "string"] + }, + "event_revenue_currency": { + "type": ["null", "string"] + }, + "event_revenue_usd": { + "type": ["null", "string"] + }, + "event_source": { + "type": ["null", "string"] + }, + "is_receipt_validated": { + "type": ["null", "boolean"] + }, + "af_prt": { + "type": ["null", "string"] + }, + "media_source": { + "type": ["null", "string"] + }, + "af_channel": { + "type": ["null", "string"] + }, + "af_keywords": { + "type": ["null", "string"] + }, + "campaign": { + "type": ["null", "string"] + }, + "af_c_id": { + "type": ["null", "string"] + }, + "af_adset": { + "type": ["null", "string"] + }, + "af_adset_id": { + "type": ["null", "string"] + }, + "af_ad": { + "type": ["null", "string"] + }, + "af_ad_id": { + "type": ["null", "string"] + }, + "af_ad_type": { + "type": ["null", "string"] + }, + "af_siteid": { + "type": ["null", "string"] + }, + "af_sub_siteid": { + "type": ["null", "string"] + }, + "af_sub1": { + "type": ["null", "string"] + }, + "af_sub2": { + "type": ["null", "string"] + }, + "af_sub3": { + "type": ["null", "string"] + }, + "af_sub4": { + "type": ["null", "string"] + }, + "af_sub5": { + "type": ["null", "string"] + }, + "af_cost_model": { + "type": ["null", "string"] + }, + "af_cost_value": { + "type": ["null", "string"] + }, + "af_cost_currency": { + "type": ["null", "string"] + }, + "contributor1_af_prt": { + "type": ["null", "string"] + }, + "contributor1_media_source": { + "type": ["null", "string"] + }, + "contributor1_campaign": { + "type": ["null", "string"] + }, + "contributor1_touch_type": { + "type": ["null", "string"] + }, + "contributor1_touch_time": { + "type": ["null", "string"], + "format": "date-time" + }, + "contributor2_af_prt": { + "type": ["null", "string"] + }, + "contributor2_media_source": { + "type": ["null", "string"] + }, + "contributor2_campaign": { + "type": ["null", "string"] + }, + "contributor2_touch_type": { + "type": ["null", "string"] + }, + "contributor2_touch_time": { + "type": ["null", "string"], + "format": "date-time" + }, + "contributor3_af_prt": { + "type": ["null", "string"] + }, + "contributor3_media_source": { + "type": ["null", "string"] + }, + "contributor3_campaign": { + "type": ["null", "string"] + }, + "contributor3_touch_type": { + "type": ["null", "string"] + }, + "contributor3_touch_time": { + "type": ["null", "string"], + "format": "date-time" + }, + "region": { + "type": ["null", "string"] + }, + "country_code": { + "type": ["null", "string"] + }, + "state": { + "type": ["null", "string"] + }, + "city": { + "type": ["null", "string"] + }, + "postal_code": { + "type": ["null", "string"] + }, + "dma": { + "type": ["null", "string"] + }, + "ip": { + "type": ["null", "string"] + }, + "wifi": { + "type": ["null", "boolean"] + }, + "operator": { + "type": ["null", "string"] + }, + "carrier": { + "type": ["null", "string"] + }, + "language": { + "type": ["null", "string"] + }, + "appsflyer_id": { + "type": ["null", "string"] + }, + "advertising_id": { + "type": ["null", "string"] + }, + "idfa": { + "type": ["null", "string"] + }, + "android_id": { + "type": ["null", "string"] + }, + "customer_user_id": { + "type": ["null", "string"] + }, + "imei": { + "type": ["null", "string"] + }, + "idfv": { + "type": ["null", "string"] + }, + "platform": { + "type": ["null", "string"] + }, + "device_type": { + "type": ["null", "string"] + }, + "os_version": { + "type": ["null", "string"] + }, + "app_version": { + "type": ["null", "string"] + }, + "sdk_version": { + "type": ["null", "string"] + }, + "app_id": { + "type": ["null", "string"] + }, + "app_name": { + "type": ["null", "string"] + }, + "bundle_id": { + "type": ["null", "string"] + }, + "is_retargeting": { + "type": ["null", "boolean"] + }, + "retargeting_conversion_type": { + "type": ["null", "string"] + }, + "af_attribution_lookback": { + "type": ["null", "string"] + }, + "af_reengagement_window": { + "type": ["null", "string"] + }, + "is_primary_attribution": { + "type": ["null", "boolean"] + }, + "user_agent": { + "type": ["null", "string"] + }, + "http_referrer": { + "type": ["null", "string"] + }, + "original_url": { + "type": ["null", "string"] + }, + "app_type": { + "type": ["null", "string"] + }, + "custom_data": { + "type": ["null", "string"] + }, + "network_account_id": { + "type": ["null", "string"] + }, + "install_app_store": { + "type": ["null", "string"] + }, + "contributor1_match_type": { + "type": ["null", "string"] + }, + "contributor2_match_type": { + "type": ["null", "string"] + }, + "contributor3_match_type": { + "type": ["null", "string"] + }, + "campaign_type": { + "type": ["null", "string"] + }, + "conversion_type": { + "type": ["null", "string"] + }, + "match_type": { + "type": ["null", "string"] + }, + "gp_referrer": { + "type": ["null", "string"] + }, + "gp_click_time": { + "type": ["null", "string"], + "format": "date-time" + }, + "gp_install_begin": { + "type": ["null", "string"], + "format": "date-time" + }, + "gp_broadcast_referrer": { + "type": ["null", "string"] + }, + "keyword_match_type": { + "type": ["null", "string"] + }, + "keyword_id": { + "type": ["null", "string"] + }, + "att": { + "type": ["null", "string"] + }, + "amazon_aid": { + "type": ["null", "string"] + }, + "device_category": { + "type": ["null", "string"] + }, + "device_model": { + "type": ["null", "string"] + }, + "device_download_time": { + "type": ["null", "string"], + "format": "date-time" + }, + "deeplink_url": { + "type": ["null", "string"] + }, + "oaid": { + "type": ["null", "string"] + }, + "is_lat": { + "type": ["null", "boolean"] + }, + "store_reinstall": { + "type": ["null", "boolean"] + }, + "placement": { + "type": ["null", "string"] + }, + "mediation_network": { + "type": ["null", "string"] + }, + "segment": { + "type": ["null", "string"] + }, + "ad_unit": { + "type": ["null", "string"] + }, + "monetization_network": { + "type": ["null", "string"] + }, + "impressions": { + "type": ["null", "string"] + }, + "blocked_reason": { + "type": ["null", "string"] + }, + "blocked_reason_value": { + "type": ["null", "string"] + }, + "blocked_reason_rule": { + "type": ["null", "string"] + }, + "blocked_sub_reason": { + "type": ["null", "string"] + }, + "rejected_reason": { + "type": ["null", "string"] + }, + "rejected_reason_value": { + "type": ["null", "string"] + } + } }, - { - "stream": { - "name": "uninstall_events", - "json_schema": { - "type": "object", - "properties": { - "attributed_touch_type": { - "type": [ - "null", - "string" - ] - }, - "attributed_touch_time": { - "type": [ - "null", - "string" - ], - "format": "date-time" - }, - "install_time": { - "type": [ - "null", - "string" - ], - "format": "date-time" - }, - "event_time": { - "type": [ - "null", - "string" - ], - "format": "date-time" - }, - "event_name": { - "type": [ - "null", - "string" - ] - }, - "event_value": { - "type": [ - "null", - "string" - ] - }, - "event_revenue": { - "type": [ - "null", - "string" - ] - }, - "event_revenue_currency": { - "type": [ - "null", - "string" - ] - }, - "event_revenue_usd": { - "type": [ - "null", - "string" - ] - }, - "event_source": { - "type": [ - "null", - "string" - ] - }, - "is_receipt_validated": { - "type": [ - "null", - "boolean" - ] - }, - "af_prt": { - "type": [ - "null", - "string" - ] - }, - "media_source": { - "type": [ - "null", - "string" - ] - }, - "af_channel": { - "type": [ - "null", - "string" - ] - }, - "af_keywords": { - "type": [ - "null", - "string" - ] - }, - "campaign": { - "type": [ - "null", - "string" - ] - }, - "af_c_id": { - "type": [ - "null", - "string" - ] - }, - "af_adset": { - "type": [ - "null", - "string" - ] - }, - "af_adset_id": { - "type": [ - "null", - "string" - ] - }, - "af_ad": { - "type": [ - "null", - "string" - ] - }, - "af_ad_id": { - "type": [ - "null", - "string" - ] - }, - "af_ad_type": { - "type": [ - "null", - "string" - ] - }, - "af_siteid": { - "type": [ - "null", - "string" - ] - }, - "af_sub_siteid": { - "type": [ - "null", - "string" - ] - }, - "af_sub1": { - "type": [ - "null", - "string" - ] - }, - "af_sub2": { - "type": [ - "null", - "string" - ] - }, - "af_sub3": { - "type": [ - "null", - "string" - ] - }, - "af_sub4": { - "type": [ - "null", - "string" - ] - }, - "af_sub5": { - "type": [ - "null", - "string" - ] - }, - "af_cost_model": { - "type": [ - "null", - "string" - ] - }, - "af_cost_value": { - "type": [ - "null", - "string" - ] - }, - "af_cost_currency": { - "type": [ - "null", - "string" - ] - }, - "contributor1_af_prt": { - "type": [ - "null", - "string" - ] - }, - "contributor1_media_source": { - "type": [ - "null", - "string" - ] - }, - "contributor1_campaign": { - "type": [ - "null", - "string" - ] - }, - "contributor1_touch_type": { - "type": [ - "null", - "string" - ] - }, - "contributor1_touch_time": { - "type": [ - "null", - "string" - ], - "format": "date-time" - }, - "contributor2_af_prt": { - "type": [ - "null", - "string" - ] - }, - "contributor2_media_source": { - "type": [ - "null", - "string" - ] - }, - "contributor2_campaign": { - "type": [ - "null", - "string" - ] - }, - "contributor2_touch_type": { - "type": [ - "null", - "string" - ] - }, - "contributor2_touch_time": { - "type": [ - "null", - "string" - ], - "format": "date-time" - }, - "contributor3_af_prt": { - "type": [ - "null", - "string" - ] - }, - "contributor3_media_source": { - "type": [ - "null", - "string" - ] - }, - "contributor3_campaign": { - "type": [ - "null", - "string" - ] - }, - "contributor3_touch_type": { - "type": [ - "null", - "string" - ] - }, - "contributor3_touch_time": { - "type": [ - "null", - "string" - ], - "format": "date-time" - }, - "region": { - "type": [ - "null", - "string" - ] - }, - "country_code": { - "type": [ - "null", - "string" - ] - }, - "state": { - "type": [ - "null", - "string" - ] - }, - "city": { - "type": [ - "null", - "string" - ] - }, - "postal_code": { - "type": [ - "null", - "string" - ] - }, - "dma": { - "type": [ - "null", - "string" - ] - }, - "ip": { - "type": [ - "null", - "string" - ] - }, - "wifi": { - "type": [ - "null", - "boolean" - ] - }, - "operator": { - "type": [ - "null", - "string" - ] - }, - "carrier": { - "type": [ - "null", - "string" - ] - }, - "language": { - "type": [ - "null", - "string" - ] - }, - "appsflyer_id": { - "type": [ - "null", - "string" - ] - }, - "advertising_id": { - "type": [ - "null", - "string" - ] - }, - "idfa": { - "type": [ - "null", - "string" - ] - }, - "android_id": { - "type": [ - "null", - "string" - ] - }, - "customer_user_id": { - "type": [ - "null", - "string" - ] - }, - "imei": { - "type": [ - "null", - "string" - ] - }, - "idfv": { - "type": [ - "null", - "string" - ] - }, - "platform": { - "type": [ - "null", - "string" - ] - }, - "device_type": { - "type": [ - "null", - "string" - ] - }, - "os_version": { - "type": [ - "null", - "string" - ] - }, - "app_version": { - "type": [ - "null", - "string" - ] - }, - "sdk_version": { - "type": [ - "null", - "string" - ] - }, - "app_id": { - "type": [ - "null", - "string" - ] - }, - "app_name": { - "type": [ - "null", - "string" - ] - }, - "bundle_id": { - "type": [ - "null", - "string" - ] - }, - "is_retargeting": { - "type": [ - "null", - "boolean" - ] - }, - "retargeting_conversion_type": { - "type": [ - "null", - "string" - ] - }, - "af_attribution_lookback": { - "type": [ - "null", - "string" - ] - }, - "af_reengagement_window": { - "type": [ - "null", - "string" - ] - }, - "is_primary_attribution": { - "type": [ - "null", - "boolean" - ] - }, - "user_agent": { - "type": [ - "null", - "string" - ] - }, - "http_referrer": { - "type": [ - "null", - "string" - ] - }, - "original_url": { - "type": [ - "null", - "string" - ] - }, - "custom_data": { - "type": [ - "null", - "string" - ] - }, - "network_account_id": { - "type": [ - "null", - "string" - ] - }, - "install_app_store": { - "type": [ - "null", - "string" - ] - }, - "contributor1_match_type": { - "type": [ - "null", - "string" - ] - }, - "contributor2_match_type": { - "type": [ - "null", - "string" - ] - }, - "contributor3_match_type": { - "type": [ - "null", - "string" - ] - }, - "match_type": { - "type": [ - "null", - "string" - ] - }, - "gp_referrer": { - "type": [ - "null", - "string" - ] - }, - "gp_click_time": { - "type": [ - "null", - "string" - ], - "format": "date-time" - }, - "gp_install_begin": { - "type": [ - "null", - "string" - ], - "format": "date-time" - }, - "gp_broadcast_referrer": { - "type": [ - "null", - "string" - ] - }, - "keyword_match_type": { - "type": [ - "null", - "string" - ] - }, - "keyword_id": { - "type": [ - "null", - "string" - ] - }, - "amazon_aid": { - "type": [ - "null", - "string" - ] - }, - "device_category": { - "type": [ - "null", - "string" - ] - }, - "device_model": { - "type": [ - "null", - "string" - ] - }, - "device_download_time": { - "type": [ - "null", - "string" - ], - "format": "date-time" - }, - "deeplink_url": { - "type": [ - "null", - "string" - ] - }, - "oaid": { - "type": [ - "null", - "string" - ] - }, - "is_lat": { - "type": [ - "null", - "boolean" - ] - }, - "store_reinstall": { - "type": [ - "null", - "boolean" - ] - }, - "placement": { - "type": [ - "null", - "string" - ] - }, - "mediation_network": { - "type": [ - "null", - "string" - ] - }, - "segment": { - "type": [ - "null", - "string" - ] - }, - "ad_unit": { - "type": [ - "null", - "string" - ] - }, - "monetization_network": { - "type": [ - "null", - "string" - ] - }, - "impressions": { - "type": [ - "null", - "string" - ] - }, - "blocked_reason": { - "type": [ - "null", - "string" - ] - }, - "blocked_reason_value": { - "type": [ - "null", - "string" - ] - }, - "blocked_reason_rule": { - "type": [ - "null", - "string" - ] - }, - "blocked_sub_reason": { - "type": [ - "null", - "string" - ] - }, - "rejected_reason": { - "type": [ - "null", - "string" - ] - }, - "rejected_reason_value": { - "type": [ - "null", - "string" - ] - } - } - }, - "supported_sync_modes": [ - "full_refresh", - "incremental" - ], - "source_defined_cursor": true, - "default_cursor_field": [ - "event_time" - ] - }, - "sync_mode": "incremental", - "destination_sync_mode": "overwrite" + "supported_sync_modes": ["full_refresh", "incremental"], + "source_defined_cursor": true, + "default_cursor_field": ["install_time"] + }, + "sync_mode": "incremental", + "destination_sync_mode": "overwrite" + }, + { + "stream": { + "name": "uninstall_events", + "json_schema": { + "type": "object", + "properties": { + "attributed_touch_type": { + "type": ["null", "string"] + }, + "attributed_touch_time": { + "type": ["null", "string"], + "format": "date-time" + }, + "install_time": { + "type": ["null", "string"], + "format": "date-time" + }, + "event_time": { + "type": ["null", "string"], + "format": "date-time" + }, + "event_name": { + "type": ["null", "string"] + }, + "event_value": { + "type": ["null", "string"] + }, + "event_revenue": { + "type": ["null", "string"] + }, + "event_revenue_currency": { + "type": ["null", "string"] + }, + "event_revenue_usd": { + "type": ["null", "string"] + }, + "event_source": { + "type": ["null", "string"] + }, + "is_receipt_validated": { + "type": ["null", "boolean"] + }, + "af_prt": { + "type": ["null", "string"] + }, + "media_source": { + "type": ["null", "string"] + }, + "af_channel": { + "type": ["null", "string"] + }, + "af_keywords": { + "type": ["null", "string"] + }, + "campaign": { + "type": ["null", "string"] + }, + "af_c_id": { + "type": ["null", "string"] + }, + "af_adset": { + "type": ["null", "string"] + }, + "af_adset_id": { + "type": ["null", "string"] + }, + "af_ad": { + "type": ["null", "string"] + }, + "af_ad_id": { + "type": ["null", "string"] + }, + "af_ad_type": { + "type": ["null", "string"] + }, + "af_siteid": { + "type": ["null", "string"] + }, + "af_sub_siteid": { + "type": ["null", "string"] + }, + "af_sub1": { + "type": ["null", "string"] + }, + "af_sub2": { + "type": ["null", "string"] + }, + "af_sub3": { + "type": ["null", "string"] + }, + "af_sub4": { + "type": ["null", "string"] + }, + "af_sub5": { + "type": ["null", "string"] + }, + "af_cost_model": { + "type": ["null", "string"] + }, + "af_cost_value": { + "type": ["null", "string"] + }, + "af_cost_currency": { + "type": ["null", "string"] + }, + "contributor1_af_prt": { + "type": ["null", "string"] + }, + "contributor1_media_source": { + "type": ["null", "string"] + }, + "contributor1_campaign": { + "type": ["null", "string"] + }, + "contributor1_touch_type": { + "type": ["null", "string"] + }, + "contributor1_touch_time": { + "type": ["null", "string"], + "format": "date-time" + }, + "contributor2_af_prt": { + "type": ["null", "string"] + }, + "contributor2_media_source": { + "type": ["null", "string"] + }, + "contributor2_campaign": { + "type": ["null", "string"] + }, + "contributor2_touch_type": { + "type": ["null", "string"] + }, + "contributor2_touch_time": { + "type": ["null", "string"], + "format": "date-time" + }, + "contributor3_af_prt": { + "type": ["null", "string"] + }, + "contributor3_media_source": { + "type": ["null", "string"] + }, + "contributor3_campaign": { + "type": ["null", "string"] + }, + "contributor3_touch_type": { + "type": ["null", "string"] + }, + "contributor3_touch_time": { + "type": ["null", "string"], + "format": "date-time" + }, + "region": { + "type": ["null", "string"] + }, + "country_code": { + "type": ["null", "string"] + }, + "state": { + "type": ["null", "string"] + }, + "city": { + "type": ["null", "string"] + }, + "postal_code": { + "type": ["null", "string"] + }, + "dma": { + "type": ["null", "string"] + }, + "ip": { + "type": ["null", "string"] + }, + "wifi": { + "type": ["null", "boolean"] + }, + "operator": { + "type": ["null", "string"] + }, + "carrier": { + "type": ["null", "string"] + }, + "language": { + "type": ["null", "string"] + }, + "appsflyer_id": { + "type": ["null", "string"] + }, + "advertising_id": { + "type": ["null", "string"] + }, + "idfa": { + "type": ["null", "string"] + }, + "android_id": { + "type": ["null", "string"] + }, + "customer_user_id": { + "type": ["null", "string"] + }, + "imei": { + "type": ["null", "string"] + }, + "idfv": { + "type": ["null", "string"] + }, + "platform": { + "type": ["null", "string"] + }, + "device_type": { + "type": ["null", "string"] + }, + "os_version": { + "type": ["null", "string"] + }, + "app_version": { + "type": ["null", "string"] + }, + "sdk_version": { + "type": ["null", "string"] + }, + "app_id": { + "type": ["null", "string"] + }, + "app_name": { + "type": ["null", "string"] + }, + "bundle_id": { + "type": ["null", "string"] + }, + "is_retargeting": { + "type": ["null", "boolean"] + }, + "retargeting_conversion_type": { + "type": ["null", "string"] + }, + "af_attribution_lookback": { + "type": ["null", "string"] + }, + "af_reengagement_window": { + "type": ["null", "string"] + }, + "is_primary_attribution": { + "type": ["null", "boolean"] + }, + "user_agent": { + "type": ["null", "string"] + }, + "http_referrer": { + "type": ["null", "string"] + }, + "original_url": { + "type": ["null", "string"] + }, + "custom_data": { + "type": ["null", "string"] + }, + "network_account_id": { + "type": ["null", "string"] + }, + "install_app_store": { + "type": ["null", "string"] + }, + "contributor1_match_type": { + "type": ["null", "string"] + }, + "contributor2_match_type": { + "type": ["null", "string"] + }, + "contributor3_match_type": { + "type": ["null", "string"] + }, + "match_type": { + "type": ["null", "string"] + }, + "gp_referrer": { + "type": ["null", "string"] + }, + "gp_click_time": { + "type": ["null", "string"], + "format": "date-time" + }, + "gp_install_begin": { + "type": ["null", "string"], + "format": "date-time" + }, + "gp_broadcast_referrer": { + "type": ["null", "string"] + }, + "keyword_match_type": { + "type": ["null", "string"] + }, + "keyword_id": { + "type": ["null", "string"] + }, + "amazon_aid": { + "type": ["null", "string"] + }, + "device_category": { + "type": ["null", "string"] + }, + "device_model": { + "type": ["null", "string"] + }, + "device_download_time": { + "type": ["null", "string"], + "format": "date-time" + }, + "deeplink_url": { + "type": ["null", "string"] + }, + "oaid": { + "type": ["null", "string"] + }, + "is_lat": { + "type": ["null", "boolean"] + }, + "store_reinstall": { + "type": ["null", "boolean"] + }, + "placement": { + "type": ["null", "string"] + }, + "mediation_network": { + "type": ["null", "string"] + }, + "segment": { + "type": ["null", "string"] + }, + "ad_unit": { + "type": ["null", "string"] + }, + "monetization_network": { + "type": ["null", "string"] + }, + "impressions": { + "type": ["null", "string"] + }, + "blocked_reason": { + "type": ["null", "string"] + }, + "blocked_reason_value": { + "type": ["null", "string"] + }, + "blocked_reason_rule": { + "type": ["null", "string"] + }, + "blocked_sub_reason": { + "type": ["null", "string"] + }, + "rejected_reason": { + "type": ["null", "string"] + }, + "rejected_reason_value": { + "type": ["null", "string"] + } + } }, - { - "stream": { - "name": "retargeting_in_app_events", - "json_schema": { - "type": "object", - "properties": { - "attributed_touch_type": { - "type": [ - "null", - "string" - ] - }, - "attributed_touch_time": { - "type": [ - "null", - "string" - ], - "format": "date-time" - }, - "install_time": { - "type": [ - "null", - "string" - ], - "format": "date-time" - }, - "event_time": { - "type": [ - "null", - "string" - ], - "format": "date-time" - }, - "event_name": { - "type": [ - "null", - "string" - ] - }, - "event_value": { - "type": [ - "null", - "string" - ] - }, - "event_revenue": { - "type": [ - "null", - "string" - ] - }, - "event_revenue_currency": { - "type": [ - "null", - "string" - ] - }, - "event_revenue_usd": { - "type": [ - "null", - "string" - ] - }, - "event_source": { - "type": [ - "null", - "string" - ] - }, - "is_receipt_validated": { - "type": [ - "null", - "boolean" - ] - }, - "af_prt": { - "type": [ - "null", - "string" - ] - }, - "media_source": { - "type": [ - "null", - "string" - ] - }, - "af_channel": { - "type": [ - "null", - "string" - ] - }, - "af_keywords": { - "type": [ - "null", - "string" - ] - }, - "campaign": { - "type": [ - "null", - "string" - ] - }, - "af_c_id": { - "type": [ - "null", - "string" - ] - }, - "af_adset": { - "type": [ - "null", - "string" - ] - }, - "af_adset_id": { - "type": [ - "null", - "string" - ] - }, - "af_ad": { - "type": [ - "null", - "string" - ] - }, - "af_ad_id": { - "type": [ - "null", - "string" - ] - }, - "af_ad_type": { - "type": [ - "null", - "string" - ] - }, - "af_siteid": { - "type": [ - "null", - "string" - ] - }, - "af_sub_siteid": { - "type": [ - "null", - "string" - ] - }, - "af_sub1": { - "type": [ - "null", - "string" - ] - }, - "af_sub2": { - "type": [ - "null", - "string" - ] - }, - "af_sub3": { - "type": [ - "null", - "string" - ] - }, - "af_sub4": { - "type": [ - "null", - "string" - ] - }, - "af_sub5": { - "type": [ - "null", - "string" - ] - }, - "af_cost_model": { - "type": [ - "null", - "string" - ] - }, - "af_cost_value": { - "type": [ - "null", - "string" - ] - }, - "af_cost_currency": { - "type": [ - "null", - "string" - ] - }, - "contributor1_af_prt": { - "type": [ - "null", - "string" - ] - }, - "contributor1_media_source": { - "type": [ - "null", - "string" - ] - }, - "contributor1_campaign": { - "type": [ - "null", - "string" - ] - }, - "contributor1_touch_type": { - "type": [ - "null", - "string" - ] - }, - "contributor1_touch_time": { - "type": [ - "null", - "string" - ], - "format": "date-time" - }, - "contributor2_af_prt": { - "type": [ - "null", - "string" - ] - }, - "contributor2_media_source": { - "type": [ - "null", - "string" - ] - }, - "contributor2_campaign": { - "type": [ - "null", - "string" - ] - }, - "contributor2_touch_type": { - "type": [ - "null", - "string" - ] - }, - "contributor2_touch_time": { - "type": [ - "null", - "string" - ], - "format": "date-time" - }, - "contributor3_af_prt": { - "type": [ - "null", - "string" - ] - }, - "contributor3_media_source": { - "type": [ - "null", - "string" - ] - }, - "contributor3_campaign": { - "type": [ - "null", - "string" - ] - }, - "contributor3_touch_type": { - "type": [ - "null", - "string" - ] - }, - "contributor3_touch_time": { - "type": [ - "null", - "string" - ], - "format": "date-time" - }, - "region": { - "type": [ - "null", - "string" - ] - }, - "country_code": { - "type": [ - "null", - "string" - ] - }, - "state": { - "type": [ - "null", - "string" - ] - }, - "city": { - "type": [ - "null", - "string" - ] - }, - "postal_code": { - "type": [ - "null", - "string" - ] - }, - "dma": { - "type": [ - "null", - "string" - ] - }, - "ip": { - "type": [ - "null", - "string" - ] - }, - "wifi": { - "type": [ - "null", - "boolean" - ] - }, - "operator": { - "type": [ - "null", - "string" - ] - }, - "carrier": { - "type": [ - "null", - "string" - ] - }, - "language": { - "type": [ - "null", - "string" - ] - }, - "appsflyer_id": { - "type": [ - "null", - "string" - ] - }, - "advertising_id": { - "type": [ - "null", - "string" - ] - }, - "idfa": { - "type": [ - "null", - "string" - ] - }, - "android_id": { - "type": [ - "null", - "string" - ] - }, - "customer_user_id": { - "type": [ - "null", - "string" - ] - }, - "imei": { - "type": [ - "null", - "string" - ] - }, - "idfv": { - "type": [ - "null", - "string" - ] - }, - "platform": { - "type": [ - "null", - "string" - ] - }, - "device_type": { - "type": [ - "null", - "string" - ] - }, - "os_version": { - "type": [ - "null", - "string" - ] - }, - "app_version": { - "type": [ - "null", - "string" - ] - }, - "sdk_version": { - "type": [ - "null", - "string" - ] - }, - "app_id": { - "type": [ - "null", - "string" - ] - }, - "app_name": { - "type": [ - "null", - "string" - ] - }, - "bundle_id": { - "type": [ - "null", - "string" - ] - }, - "is_retargeting": { - "type": [ - "null", - "boolean" - ] - }, - "retargeting_conversion_type": { - "type": [ - "null", - "string" - ] - }, - "af_attribution_lookback": { - "type": [ - "null", - "string" - ] - }, - "af_reengagement_window": { - "type": [ - "null", - "string" - ] - }, - "is_primary_attribution": { - "type": [ - "null", - "boolean" - ] - }, - "user_agent": { - "type": [ - "null", - "string" - ] - }, - "http_referrer": { - "type": [ - "null", - "string" - ] - }, - "original_url": { - "type": [ - "null", - "string" - ] - }, - "app_type": { - "type": [ - "null", - "string" - ] - }, - "custom_data": { - "type": [ - "null", - "string" - ] - }, - "network_account_id": { - "type": [ - "null", - "string" - ] - }, - "install_app_store": { - "type": [ - "null", - "string" - ] - }, - "contributor1_match_type": { - "type": [ - "null", - "string" - ] - }, - "contributor2_match_type": { - "type": [ - "null", - "string" - ] - }, - "contributor3_match_type": { - "type": [ - "null", - "string" - ] - }, - "campaign_type": { - "type": [ - "null", - "string" - ] - }, - "conversion_type": { - "type": [ - "null", - "string" - ] - }, - "match_type": { - "type": [ - "null", - "string" - ] - }, - "gp_referrer": { - "type": [ - "null", - "string" - ] - }, - "gp_click_time": { - "type": [ - "null", - "string" - ], - "format": "date-time" - }, - "gp_install_begin": { - "type": [ - "null", - "string" - ], - "format": "date-time" - }, - "gp_broadcast_referrer": { - "type": [ - "null", - "string" - ] - }, - "keyword_match_type": { - "type": [ - "null", - "string" - ] - }, - "keyword_id": { - "type": [ - "null", - "string" - ] - }, - "att": { - "type": [ - "null", - "string" - ] - }, - "amazon_aid": { - "type": [ - "null", - "string" - ] - }, - "device_category": { - "type": [ - "null", - "string" - ] - }, - "device_model": { - "type": [ - "null", - "string" - ] - }, - "device_download_time": { - "type": [ - "null", - "string" - ], - "format": "date-time" - }, - "deeplink_url": { - "type": [ - "null", - "string" - ] - }, - "oaid": { - "type": [ - "null", - "string" - ] - }, - "is_lat": { - "type": [ - "null", - "boolean" - ] - }, - "store_reinstall": { - "type": [ - "null", - "boolean" - ] - }, - "placement": { - "type": [ - "null", - "string" - ] - }, - "mediation_network": { - "type": [ - "null", - "string" - ] - }, - "segment": { - "type": [ - "null", - "string" - ] - }, - "ad_unit": { - "type": [ - "null", - "string" - ] - }, - "monetization_network": { - "type": [ - "null", - "string" - ] - }, - "impressions": { - "type": [ - "null", - "string" - ] - }, - "blocked_reason": { - "type": [ - "null", - "string" - ] - }, - "blocked_reason_value": { - "type": [ - "null", - "string" - ] - }, - "blocked_reason_rule": { - "type": [ - "null", - "string" - ] - }, - "blocked_sub_reason": { - "type": [ - "null", - "string" - ] - }, - "rejected_reason": { - "type": [ - "null", - "string" - ] - }, - "rejected_reason_value": { - "type": [ - "null", - "string" - ] - } - } - }, - "supported_sync_modes": [ - "full_refresh", - "incremental" - ], - "source_defined_cursor": true, - "default_cursor_field": [ - "event_time" - ] - }, - "sync_mode": "incremental", - "destination_sync_mode": "overwrite" + "supported_sync_modes": ["full_refresh", "incremental"], + "source_defined_cursor": true, + "default_cursor_field": ["event_time"] + }, + "sync_mode": "incremental", + "destination_sync_mode": "overwrite" + }, + { + "stream": { + "name": "retargeting_in_app_events", + "json_schema": { + "type": "object", + "properties": { + "attributed_touch_type": { + "type": ["null", "string"] + }, + "attributed_touch_time": { + "type": ["null", "string"], + "format": "date-time" + }, + "install_time": { + "type": ["null", "string"], + "format": "date-time" + }, + "event_time": { + "type": ["null", "string"], + "format": "date-time" + }, + "event_name": { + "type": ["null", "string"] + }, + "event_value": { + "type": ["null", "string"] + }, + "event_revenue": { + "type": ["null", "string"] + }, + "event_revenue_currency": { + "type": ["null", "string"] + }, + "event_revenue_usd": { + "type": ["null", "string"] + }, + "event_source": { + "type": ["null", "string"] + }, + "is_receipt_validated": { + "type": ["null", "boolean"] + }, + "af_prt": { + "type": ["null", "string"] + }, + "media_source": { + "type": ["null", "string"] + }, + "af_channel": { + "type": ["null", "string"] + }, + "af_keywords": { + "type": ["null", "string"] + }, + "campaign": { + "type": ["null", "string"] + }, + "af_c_id": { + "type": ["null", "string"] + }, + "af_adset": { + "type": ["null", "string"] + }, + "af_adset_id": { + "type": ["null", "string"] + }, + "af_ad": { + "type": ["null", "string"] + }, + "af_ad_id": { + "type": ["null", "string"] + }, + "af_ad_type": { + "type": ["null", "string"] + }, + "af_siteid": { + "type": ["null", "string"] + }, + "af_sub_siteid": { + "type": ["null", "string"] + }, + "af_sub1": { + "type": ["null", "string"] + }, + "af_sub2": { + "type": ["null", "string"] + }, + "af_sub3": { + "type": ["null", "string"] + }, + "af_sub4": { + "type": ["null", "string"] + }, + "af_sub5": { + "type": ["null", "string"] + }, + "af_cost_model": { + "type": ["null", "string"] + }, + "af_cost_value": { + "type": ["null", "string"] + }, + "af_cost_currency": { + "type": ["null", "string"] + }, + "contributor1_af_prt": { + "type": ["null", "string"] + }, + "contributor1_media_source": { + "type": ["null", "string"] + }, + "contributor1_campaign": { + "type": ["null", "string"] + }, + "contributor1_touch_type": { + "type": ["null", "string"] + }, + "contributor1_touch_time": { + "type": ["null", "string"], + "format": "date-time" + }, + "contributor2_af_prt": { + "type": ["null", "string"] + }, + "contributor2_media_source": { + "type": ["null", "string"] + }, + "contributor2_campaign": { + "type": ["null", "string"] + }, + "contributor2_touch_type": { + "type": ["null", "string"] + }, + "contributor2_touch_time": { + "type": ["null", "string"], + "format": "date-time" + }, + "contributor3_af_prt": { + "type": ["null", "string"] + }, + "contributor3_media_source": { + "type": ["null", "string"] + }, + "contributor3_campaign": { + "type": ["null", "string"] + }, + "contributor3_touch_type": { + "type": ["null", "string"] + }, + "contributor3_touch_time": { + "type": ["null", "string"], + "format": "date-time" + }, + "region": { + "type": ["null", "string"] + }, + "country_code": { + "type": ["null", "string"] + }, + "state": { + "type": ["null", "string"] + }, + "city": { + "type": ["null", "string"] + }, + "postal_code": { + "type": ["null", "string"] + }, + "dma": { + "type": ["null", "string"] + }, + "ip": { + "type": ["null", "string"] + }, + "wifi": { + "type": ["null", "boolean"] + }, + "operator": { + "type": ["null", "string"] + }, + "carrier": { + "type": ["null", "string"] + }, + "language": { + "type": ["null", "string"] + }, + "appsflyer_id": { + "type": ["null", "string"] + }, + "advertising_id": { + "type": ["null", "string"] + }, + "idfa": { + "type": ["null", "string"] + }, + "android_id": { + "type": ["null", "string"] + }, + "customer_user_id": { + "type": ["null", "string"] + }, + "imei": { + "type": ["null", "string"] + }, + "idfv": { + "type": ["null", "string"] + }, + "platform": { + "type": ["null", "string"] + }, + "device_type": { + "type": ["null", "string"] + }, + "os_version": { + "type": ["null", "string"] + }, + "app_version": { + "type": ["null", "string"] + }, + "sdk_version": { + "type": ["null", "string"] + }, + "app_id": { + "type": ["null", "string"] + }, + "app_name": { + "type": ["null", "string"] + }, + "bundle_id": { + "type": ["null", "string"] + }, + "is_retargeting": { + "type": ["null", "boolean"] + }, + "retargeting_conversion_type": { + "type": ["null", "string"] + }, + "af_attribution_lookback": { + "type": ["null", "string"] + }, + "af_reengagement_window": { + "type": ["null", "string"] + }, + "is_primary_attribution": { + "type": ["null", "boolean"] + }, + "user_agent": { + "type": ["null", "string"] + }, + "http_referrer": { + "type": ["null", "string"] + }, + "original_url": { + "type": ["null", "string"] + }, + "app_type": { + "type": ["null", "string"] + }, + "custom_data": { + "type": ["null", "string"] + }, + "network_account_id": { + "type": ["null", "string"] + }, + "install_app_store": { + "type": ["null", "string"] + }, + "contributor1_match_type": { + "type": ["null", "string"] + }, + "contributor2_match_type": { + "type": ["null", "string"] + }, + "contributor3_match_type": { + "type": ["null", "string"] + }, + "campaign_type": { + "type": ["null", "string"] + }, + "conversion_type": { + "type": ["null", "string"] + }, + "match_type": { + "type": ["null", "string"] + }, + "gp_referrer": { + "type": ["null", "string"] + }, + "gp_click_time": { + "type": ["null", "string"], + "format": "date-time" + }, + "gp_install_begin": { + "type": ["null", "string"], + "format": "date-time" + }, + "gp_broadcast_referrer": { + "type": ["null", "string"] + }, + "keyword_match_type": { + "type": ["null", "string"] + }, + "keyword_id": { + "type": ["null", "string"] + }, + "att": { + "type": ["null", "string"] + }, + "amazon_aid": { + "type": ["null", "string"] + }, + "device_category": { + "type": ["null", "string"] + }, + "device_model": { + "type": ["null", "string"] + }, + "device_download_time": { + "type": ["null", "string"], + "format": "date-time" + }, + "deeplink_url": { + "type": ["null", "string"] + }, + "oaid": { + "type": ["null", "string"] + }, + "is_lat": { + "type": ["null", "boolean"] + }, + "store_reinstall": { + "type": ["null", "boolean"] + }, + "placement": { + "type": ["null", "string"] + }, + "mediation_network": { + "type": ["null", "string"] + }, + "segment": { + "type": ["null", "string"] + }, + "ad_unit": { + "type": ["null", "string"] + }, + "monetization_network": { + "type": ["null", "string"] + }, + "impressions": { + "type": ["null", "string"] + }, + "blocked_reason": { + "type": ["null", "string"] + }, + "blocked_reason_value": { + "type": ["null", "string"] + }, + "blocked_reason_rule": { + "type": ["null", "string"] + }, + "blocked_sub_reason": { + "type": ["null", "string"] + }, + "rejected_reason": { + "type": ["null", "string"] + }, + "rejected_reason_value": { + "type": ["null", "string"] + } + } + }, + "supported_sync_modes": ["full_refresh", "incremental"], + "source_defined_cursor": true, + "default_cursor_field": ["event_time"] + }, + "sync_mode": "incremental", + "destination_sync_mode": "overwrite" + }, + { + "stream": { + "name": "retargeting_conversions", + "json_schema": { + "type": "object", + "properties": { + "attributed_touch_type": { + "type": ["null", "string"] + }, + "attributed_touch_time": { + "type": ["null", "string"], + "format": "date-time" + }, + "install_time": { + "type": ["null", "string"], + "format": "date-time" + }, + "event_time": { + "type": ["null", "string"], + "format": "date-time" + }, + "event_name": { + "type": ["null", "string"] + }, + "event_value": { + "type": ["null", "string"] + }, + "event_revenue": { + "type": ["null", "string"] + }, + "event_revenue_currency": { + "type": ["null", "string"] + }, + "event_revenue_usd": { + "type": ["null", "string"] + }, + "event_source": { + "type": ["null", "string"] + }, + "is_receipt_validated": { + "type": ["null", "boolean"] + }, + "af_prt": { + "type": ["null", "string"] + }, + "media_source": { + "type": ["null", "string"] + }, + "af_channel": { + "type": ["null", "string"] + }, + "af_keywords": { + "type": ["null", "string"] + }, + "campaign": { + "type": ["null", "string"] + }, + "af_c_id": { + "type": ["null", "string"] + }, + "af_adset": { + "type": ["null", "string"] + }, + "af_adset_id": { + "type": ["null", "string"] + }, + "af_ad": { + "type": ["null", "string"] + }, + "af_ad_id": { + "type": ["null", "string"] + }, + "af_ad_type": { + "type": ["null", "string"] + }, + "af_siteid": { + "type": ["null", "string"] + }, + "af_sub_siteid": { + "type": ["null", "string"] + }, + "af_sub1": { + "type": ["null", "string"] + }, + "af_sub2": { + "type": ["null", "string"] + }, + "af_sub3": { + "type": ["null", "string"] + }, + "af_sub4": { + "type": ["null", "string"] + }, + "af_sub5": { + "type": ["null", "string"] + }, + "af_cost_model": { + "type": ["null", "string"] + }, + "af_cost_value": { + "type": ["null", "string"] + }, + "af_cost_currency": { + "type": ["null", "string"] + }, + "contributor1_af_prt": { + "type": ["null", "string"] + }, + "contributor1_media_source": { + "type": ["null", "string"] + }, + "contributor1_campaign": { + "type": ["null", "string"] + }, + "contributor1_touch_type": { + "type": ["null", "string"] + }, + "contributor1_touch_time": { + "type": ["null", "string"], + "format": "date-time" + }, + "contributor2_af_prt": { + "type": ["null", "string"] + }, + "contributor2_media_source": { + "type": ["null", "string"] + }, + "contributor2_campaign": { + "type": ["null", "string"] + }, + "contributor2_touch_type": { + "type": ["null", "string"] + }, + "contributor2_touch_time": { + "type": ["null", "string"], + "format": "date-time" + }, + "contributor3_af_prt": { + "type": ["null", "string"] + }, + "contributor3_media_source": { + "type": ["null", "string"] + }, + "contributor3_campaign": { + "type": ["null", "string"] + }, + "contributor3_touch_type": { + "type": ["null", "string"] + }, + "contributor3_touch_time": { + "type": ["null", "string"], + "format": "date-time" + }, + "region": { + "type": ["null", "string"] + }, + "country_code": { + "type": ["null", "string"] + }, + "state": { + "type": ["null", "string"] + }, + "city": { + "type": ["null", "string"] + }, + "postal_code": { + "type": ["null", "string"] + }, + "dma": { + "type": ["null", "string"] + }, + "ip": { + "type": ["null", "string"] + }, + "wifi": { + "type": ["null", "boolean"] + }, + "operator": { + "type": ["null", "string"] + }, + "carrier": { + "type": ["null", "string"] + }, + "language": { + "type": ["null", "string"] + }, + "appsflyer_id": { + "type": ["null", "string"] + }, + "advertising_id": { + "type": ["null", "string"] + }, + "idfa": { + "type": ["null", "string"] + }, + "android_id": { + "type": ["null", "string"] + }, + "customer_user_id": { + "type": ["null", "string"] + }, + "imei": { + "type": ["null", "string"] + }, + "idfv": { + "type": ["null", "string"] + }, + "platform": { + "type": ["null", "string"] + }, + "device_type": { + "type": ["null", "string"] + }, + "os_version": { + "type": ["null", "string"] + }, + "app_version": { + "type": ["null", "string"] + }, + "sdk_version": { + "type": ["null", "string"] + }, + "app_id": { + "type": ["null", "string"] + }, + "app_name": { + "type": ["null", "string"] + }, + "bundle_id": { + "type": ["null", "string"] + }, + "is_retargeting": { + "type": ["null", "boolean"] + }, + "retargeting_conversion_type": { + "type": ["null", "string"] + }, + "af_attribution_lookback": { + "type": ["null", "string"] + }, + "af_reengagement_window": { + "type": ["null", "string"] + }, + "is_primary_attribution": { + "type": ["null", "boolean"] + }, + "user_agent": { + "type": ["null", "string"] + }, + "http_referrer": { + "type": ["null", "string"] + }, + "original_url": { + "type": ["null", "string"] + }, + "app_type": { + "type": ["null", "string"] + }, + "custom_data": { + "type": ["null", "string"] + }, + "network_account_id": { + "type": ["null", "string"] + }, + "install_app_store": { + "type": ["null", "string"] + }, + "contributor1_match_type": { + "type": ["null", "string"] + }, + "contributor2_match_type": { + "type": ["null", "string"] + }, + "contributor3_match_type": { + "type": ["null", "string"] + }, + "campaign_type": { + "type": ["null", "string"] + }, + "conversion_type": { + "type": ["null", "string"] + }, + "match_type": { + "type": ["null", "string"] + }, + "gp_referrer": { + "type": ["null", "string"] + }, + "gp_click_time": { + "type": ["null", "string"], + "format": "date-time" + }, + "gp_install_begin": { + "type": ["null", "string"], + "format": "date-time" + }, + "gp_broadcast_referrer": { + "type": ["null", "string"] + }, + "keyword_match_type": { + "type": ["null", "string"] + }, + "keyword_id": { + "type": ["null", "string"] + }, + "att": { + "type": ["null", "string"] + }, + "amazon_aid": { + "type": ["null", "string"] + }, + "device_category": { + "type": ["null", "string"] + }, + "device_model": { + "type": ["null", "string"] + }, + "device_download_time": { + "type": ["null", "string"], + "format": "date-time" + }, + "deeplink_url": { + "type": ["null", "string"] + }, + "oaid": { + "type": ["null", "string"] + }, + "is_lat": { + "type": ["null", "boolean"] + }, + "store_reinstall": { + "type": ["null", "boolean"] + }, + "placement": { + "type": ["null", "string"] + }, + "mediation_network": { + "type": ["null", "string"] + }, + "segment": { + "type": ["null", "string"] + }, + "ad_unit": { + "type": ["null", "string"] + }, + "monetization_network": { + "type": ["null", "string"] + }, + "impressions": { + "type": ["null", "string"] + }, + "blocked_reason": { + "type": ["null", "string"] + }, + "blocked_reason_value": { + "type": ["null", "string"] + }, + "blocked_reason_rule": { + "type": ["null", "string"] + }, + "blocked_sub_reason": { + "type": ["null", "string"] + }, + "rejected_reason": { + "type": ["null", "string"] + }, + "rejected_reason_value": { + "type": ["null", "string"] + } + } }, - { - "stream": { - "name": "retargeting_conversions", - "json_schema": { - "type": "object", - "properties": { - "attributed_touch_type": { - "type": [ - "null", - "string" - ] - }, - "attributed_touch_time": { - "type": [ - "null", - "string" - ], - "format": "date-time" - }, - "install_time": { - "type": [ - "null", - "string" - ], - "format": "date-time" - }, - "event_time": { - "type": [ - "null", - "string" - ], - "format": "date-time" - }, - "event_name": { - "type": [ - "null", - "string" - ] - }, - "event_value": { - "type": [ - "null", - "string" - ] - }, - "event_revenue": { - "type": [ - "null", - "string" - ] - }, - "event_revenue_currency": { - "type": [ - "null", - "string" - ] - }, - "event_revenue_usd": { - "type": [ - "null", - "string" - ] - }, - "event_source": { - "type": [ - "null", - "string" - ] - }, - "is_receipt_validated": { - "type": [ - "null", - "boolean" - ] - }, - "af_prt": { - "type": [ - "null", - "string" - ] - }, - "media_source": { - "type": [ - "null", - "string" - ] - }, - "af_channel": { - "type": [ - "null", - "string" - ] - }, - "af_keywords": { - "type": [ - "null", - "string" - ] - }, - "campaign": { - "type": [ - "null", - "string" - ] - }, - "af_c_id": { - "type": [ - "null", - "string" - ] - }, - "af_adset": { - "type": [ - "null", - "string" - ] - }, - "af_adset_id": { - "type": [ - "null", - "string" - ] - }, - "af_ad": { - "type": [ - "null", - "string" - ] - }, - "af_ad_id": { - "type": [ - "null", - "string" - ] - }, - "af_ad_type": { - "type": [ - "null", - "string" - ] - }, - "af_siteid": { - "type": [ - "null", - "string" - ] - }, - "af_sub_siteid": { - "type": [ - "null", - "string" - ] - }, - "af_sub1": { - "type": [ - "null", - "string" - ] - }, - "af_sub2": { - "type": [ - "null", - "string" - ] - }, - "af_sub3": { - "type": [ - "null", - "string" - ] - }, - "af_sub4": { - "type": [ - "null", - "string" - ] - }, - "af_sub5": { - "type": [ - "null", - "string" - ] - }, - "af_cost_model": { - "type": [ - "null", - "string" - ] - }, - "af_cost_value": { - "type": [ - "null", - "string" - ] - }, - "af_cost_currency": { - "type": [ - "null", - "string" - ] - }, - "contributor1_af_prt": { - "type": [ - "null", - "string" - ] - }, - "contributor1_media_source": { - "type": [ - "null", - "string" - ] - }, - "contributor1_campaign": { - "type": [ - "null", - "string" - ] - }, - "contributor1_touch_type": { - "type": [ - "null", - "string" - ] - }, - "contributor1_touch_time": { - "type": [ - "null", - "string" - ], - "format": "date-time" - }, - "contributor2_af_prt": { - "type": [ - "null", - "string" - ] - }, - "contributor2_media_source": { - "type": [ - "null", - "string" - ] - }, - "contributor2_campaign": { - "type": [ - "null", - "string" - ] - }, - "contributor2_touch_type": { - "type": [ - "null", - "string" - ] - }, - "contributor2_touch_time": { - "type": [ - "null", - "string" - ], - "format": "date-time" - }, - "contributor3_af_prt": { - "type": [ - "null", - "string" - ] - }, - "contributor3_media_source": { - "type": [ - "null", - "string" - ] - }, - "contributor3_campaign": { - "type": [ - "null", - "string" - ] - }, - "contributor3_touch_type": { - "type": [ - "null", - "string" - ] - }, - "contributor3_touch_time": { - "type": [ - "null", - "string" - ], - "format": "date-time" - }, - "region": { - "type": [ - "null", - "string" - ] - }, - "country_code": { - "type": [ - "null", - "string" - ] - }, - "state": { - "type": [ - "null", - "string" - ] - }, - "city": { - "type": [ - "null", - "string" - ] - }, - "postal_code": { - "type": [ - "null", - "string" - ] - }, - "dma": { - "type": [ - "null", - "string" - ] - }, - "ip": { - "type": [ - "null", - "string" - ] - }, - "wifi": { - "type": [ - "null", - "boolean" - ] - }, - "operator": { - "type": [ - "null", - "string" - ] - }, - "carrier": { - "type": [ - "null", - "string" - ] - }, - "language": { - "type": [ - "null", - "string" - ] - }, - "appsflyer_id": { - "type": [ - "null", - "string" - ] - }, - "advertising_id": { - "type": [ - "null", - "string" - ] - }, - "idfa": { - "type": [ - "null", - "string" - ] - }, - "android_id": { - "type": [ - "null", - "string" - ] - }, - "customer_user_id": { - "type": [ - "null", - "string" - ] - }, - "imei": { - "type": [ - "null", - "string" - ] - }, - "idfv": { - "type": [ - "null", - "string" - ] - }, - "platform": { - "type": [ - "null", - "string" - ] - }, - "device_type": { - "type": [ - "null", - "string" - ] - }, - "os_version": { - "type": [ - "null", - "string" - ] - }, - "app_version": { - "type": [ - "null", - "string" - ] - }, - "sdk_version": { - "type": [ - "null", - "string" - ] - }, - "app_id": { - "type": [ - "null", - "string" - ] - }, - "app_name": { - "type": [ - "null", - "string" - ] - }, - "bundle_id": { - "type": [ - "null", - "string" - ] - }, - "is_retargeting": { - "type": [ - "null", - "boolean" - ] - }, - "retargeting_conversion_type": { - "type": [ - "null", - "string" - ] - }, - "af_attribution_lookback": { - "type": [ - "null", - "string" - ] - }, - "af_reengagement_window": { - "type": [ - "null", - "string" - ] - }, - "is_primary_attribution": { - "type": [ - "null", - "boolean" - ] - }, - "user_agent": { - "type": [ - "null", - "string" - ] - }, - "http_referrer": { - "type": [ - "null", - "string" - ] - }, - "original_url": { - "type": [ - "null", - "string" - ] - }, - "app_type": { - "type": [ - "null", - "string" - ] - }, - "custom_data": { - "type": [ - "null", - "string" - ] - }, - "network_account_id": { - "type": [ - "null", - "string" - ] - }, - "install_app_store": { - "type": [ - "null", - "string" - ] - }, - "contributor1_match_type": { - "type": [ - "null", - "string" - ] - }, - "contributor2_match_type": { - "type": [ - "null", - "string" - ] - }, - "contributor3_match_type": { - "type": [ - "null", - "string" - ] - }, - "campaign_type": { - "type": [ - "null", - "string" - ] - }, - "conversion_type": { - "type": [ - "null", - "string" - ] - }, - "match_type": { - "type": [ - "null", - "string" - ] - }, - "gp_referrer": { - "type": [ - "null", - "string" - ] - }, - "gp_click_time": { - "type": [ - "null", - "string" - ], - "format": "date-time" - }, - "gp_install_begin": { - "type": [ - "null", - "string" - ], - "format": "date-time" - }, - "gp_broadcast_referrer": { - "type": [ - "null", - "string" - ] - }, - "keyword_match_type": { - "type": [ - "null", - "string" - ] - }, - "keyword_id": { - "type": [ - "null", - "string" - ] - }, - "att": { - "type": [ - "null", - "string" - ] - }, - "amazon_aid": { - "type": [ - "null", - "string" - ] - }, - "device_category": { - "type": [ - "null", - "string" - ] - }, - "device_model": { - "type": [ - "null", - "string" - ] - }, - "device_download_time": { - "type": [ - "null", - "string" - ], - "format": "date-time" - }, - "deeplink_url": { - "type": [ - "null", - "string" - ] - }, - "oaid": { - "type": [ - "null", - "string" - ] - }, - "is_lat": { - "type": [ - "null", - "boolean" - ] - }, - "store_reinstall": { - "type": [ - "null", - "boolean" - ] - }, - "placement": { - "type": [ - "null", - "string" - ] - }, - "mediation_network": { - "type": [ - "null", - "string" - ] - }, - "segment": { - "type": [ - "null", - "string" - ] - }, - "ad_unit": { - "type": [ - "null", - "string" - ] - }, - "monetization_network": { - "type": [ - "null", - "string" - ] - }, - "impressions": { - "type": [ - "null", - "string" - ] - }, - "blocked_reason": { - "type": [ - "null", - "string" - ] - }, - "blocked_reason_value": { - "type": [ - "null", - "string" - ] - }, - "blocked_reason_rule": { - "type": [ - "null", - "string" - ] - }, - "blocked_sub_reason": { - "type": [ - "null", - "string" - ] - }, - "rejected_reason": { - "type": [ - "null", - "string" - ] - }, - "rejected_reason_value": { - "type": [ - "null", - "string" - ] - } - } - }, - "supported_sync_modes": [ - "full_refresh", - "incremental" - ], - "source_defined_cursor": true, - "default_cursor_field": [ - "install_time" - ] - }, - "sync_mode": "incremental", - "destination_sync_mode": "overwrite" + "supported_sync_modes": ["full_refresh", "incremental"], + "source_defined_cursor": true, + "default_cursor_field": ["install_time"] + }, + "sync_mode": "incremental", + "destination_sync_mode": "overwrite" + }, + { + "stream": { + "name": "partners_report", + "json_schema": { + "type": "object", + "properties": { + "date": { + "type": ["null", "string"], + "format": "date" + }, + "af_prt": { + "type": ["null", "string"] + }, + "media_source": { + "type": ["null", "string"] + }, + "campaign": { + "type": ["null", "string"] + }, + "impressions": { + "type": ["null", "number"] + }, + "clicks": { + "type": ["null", "number"] + }, + "click_through_rate": { + "type": ["null", "number"] + }, + "installs": { + "type": ["null", "number"] + }, + "conversion_rate": { + "type": ["null", "number"] + }, + "sessions": { + "type": ["null", "number"] + }, + "loyal_users": { + "type": ["null", "number"] + }, + "loyal_users_rate": { + "type": ["null", "number"] + }, + "total_revenue": { + "type": ["null", "number"] + }, + "total_cost": { + "type": ["null", "number"] + }, + "return_on_investment": { + "type": ["null", "number"] + }, + "average_revenue_per_user": { + "type": ["null", "number"] + }, + "average_ecpi": { + "type": ["null", "number"] + }, + "account_login_unique_users": { + "type": ["null", "number"] + }, + "account_login_event_counter": { + "type": ["null", "number"] + }, + "account_login_sales": { + "type": ["null", "number"] + }, + "af_complete_registration_unique_users": { + "type": ["null", "number"] + }, + "af_complete_registration_event_counter": { + "type": ["null", "number"] + }, + "af_complete_registration_sales": { + "type": ["null", "number"] + }, + "af_purchase_registration_unique_users": { + "type": ["null", "number"] + }, + "af_purchase_registration_event_counter": { + "type": ["null", "number"] + }, + "af_purchase_registration_sales": { + "type": ["null", "number"] + }, + "checkout_success_unique_users": { + "type": ["null", "number"] + }, + "checkout_success_event_counter": { + "type": ["null", "number"] + }, + "checkout_success_sales": { + "type": ["null", "number"] + }, + "create_product_complete_unique_users": { + "type": ["null", "number"] + }, + "create_product_complete_event_counter": { + "type": ["null", "number"] + }, + "create_product_complete_sales": { + "type": ["null", "number"] + }, + "init_appsflyer_id_unique_users": { + "type": ["null", "number"] + }, + "init_appsflyer_id_event_counter": { + "type": ["null", "number"] + }, + "init_appsflyer_id_sales": { + "type": ["null", "number"] + }, + "pay_premium_pkg_unique_users": { + "type": ["null", "number"] + }, + "pay_premium_pkg_event_counter": { + "type": ["null", "number"] + }, + "pay_premium_pkg_sales": { + "type": ["null", "number"] + } + } }, - { - "stream": { - "name": "partners_report", - "json_schema": { - "type": "object", - "properties": { - "date": { - "type": [ - "null", - "string" - ], - "format": "date" - }, - "af_prt": { - "type": [ - "null", - "string" - ] - }, - "media_source": { - "type": [ - "null", - "string" - ] - }, - "campaign": { - "type": [ - "null", - "string" - ] - }, - "impressions": { - "type": [ - "null", - "number" - ] - }, - "clicks": { - "type": [ - "null", - "number" - ] - }, - "click_through_rate": { - "type": [ - "null", - "number" - ] - }, - "installs": { - "type": [ - "null", - "number" - ] - }, - "conversion_rate": { - "type": [ - "null", - "number" - ] - }, - "sessions": { - "type": [ - "null", - "number" - ] - }, - "loyal_users": { - "type": [ - "null", - "number" - ] - }, - "loyal_users_rate": { - "type": [ - "null", - "number" - ] - }, - "total_revenue": { - "type": [ - "null", - "number" - ] - }, - "total_cost": { - "type": [ - "null", - "number" - ] - }, - "return_on_investment": { - "type": [ - "null", - "number" - ] - }, - "average_revenue_per_user": { - "type": [ - "null", - "number" - ] - }, - "average_ecpi": { - "type": [ - "null", - "number" - ] - }, - "account_login_unique_users": { - "type": [ - "null", - "number" - ] - }, - "account_login_event_counter": { - "type": [ - "null", - "number" - ] - }, - "account_login_sales": { - "type": [ - "null", - "number" - ] - }, - "af_complete_registration_unique_users": { - "type": [ - "null", - "number" - ] - }, - "af_complete_registration_event_counter": { - "type": [ - "null", - "number" - ] - }, - "af_complete_registration_sales": { - "type": [ - "null", - "number" - ] - }, - "af_purchase_registration_unique_users": { - "type": [ - "null", - "number" - ] - }, - "af_purchase_registration_event_counter": { - "type": [ - "null", - "number" - ] - }, - "af_purchase_registration_sales": { - "type": [ - "null", - "number" - ] - }, - "checkout_success_unique_users": { - "type": [ - "null", - "number" - ] - }, - "checkout_success_event_counter": { - "type": [ - "null", - "number" - ] - }, - "checkout_success_sales": { - "type": [ - "null", - "number" - ] - }, - "create_product_complete_unique_users": { - "type": [ - "null", - "number" - ] - }, - "create_product_complete_event_counter": { - "type": [ - "null", - "number" - ] - }, - "create_product_complete_sales": { - "type": [ - "null", - "number" - ] - }, - "init_appsflyer_id_unique_users": { - "type": [ - "null", - "number" - ] - }, - "init_appsflyer_id_event_counter": { - "type": [ - "null", - "number" - ] - }, - "init_appsflyer_id_sales": { - "type": [ - "null", - "number" - ] - }, - "pay_premium_pkg_unique_users": { - "type": [ - "null", - "number" - ] - }, - "pay_premium_pkg_event_counter": { - "type": [ - "null", - "number" - ] - }, - "pay_premium_pkg_sales": { - "type": [ - "null", - "number" - ] - } - } - }, - "supported_sync_modes": [ - "full_refresh", - "incremental" - ], - "source_defined_cursor": true, - "default_cursor_field": [ - "date" - ] - }, - "sync_mode": "incremental", - "destination_sync_mode": "overwrite" + "supported_sync_modes": ["full_refresh", "incremental"], + "source_defined_cursor": true, + "default_cursor_field": ["date"] + }, + "sync_mode": "incremental", + "destination_sync_mode": "overwrite" + }, + { + "stream": { + "name": "daily_report", + "json_schema": { + "type": "object", + "properties": { + "date": { + "type": ["null", "string"], + "format": "date" + }, + "af_prt": { + "type": ["null", "string"] + }, + "media_source": { + "type": ["null", "string"] + }, + "campaign": { + "type": ["null", "string"] + }, + "impressions": { + "type": ["null", "number"] + }, + "clicks": { + "type": ["null", "number"] + }, + "click_through_rate": { + "type": ["null", "number"] + }, + "installs": { + "type": ["null", "number"] + }, + "conversion_rate": { + "type": ["null", "number"] + }, + "sessions": { + "type": ["null", "number"] + }, + "loyal_users": { + "type": ["null", "number"] + }, + "loyal_users_rate": { + "type": ["null", "number"] + }, + "total_cost": { + "type": ["null", "number"] + }, + "average_ecpi": { + "type": ["null", "number"] + } + } }, - { - "stream": { - "name": "daily_report", - "json_schema": { - "type": "object", - "properties": { - "date": { - "type": [ - "null", - "string" - ], - "format": "date" - }, - "af_prt": { - "type": [ - "null", - "string" - ] - }, - "media_source": { - "type": [ - "null", - "string" - ] - }, - "campaign": { - "type": [ - "null", - "string" - ] - }, - "impressions": { - "type": [ - "null", - "number" - ] - }, - "clicks": { - "type": [ - "null", - "number" - ] - }, - "click_through_rate": { - "type": [ - "null", - "number" - ] - }, - "installs": { - "type": [ - "null", - "number" - ] - }, - "conversion_rate": { - "type": [ - "null", - "number" - ] - }, - "sessions": { - "type": [ - "null", - "number" - ] - }, - "loyal_users": { - "type": [ - "null", - "number" - ] - }, - "loyal_users_rate": { - "type": [ - "null", - "number" - ] - }, - "total_cost": { - "type": [ - "null", - "number" - ] - }, - "average_ecpi": { - "type": [ - "null", - "number" - ] - } - } - }, - "supported_sync_modes": [ - "full_refresh", - "incremental" - ], - "source_defined_cursor": true, - "default_cursor_field": [ - "date" - ] - }, - "sync_mode": "incremental", - "destination_sync_mode": "overwrite" + "supported_sync_modes": ["full_refresh", "incremental"], + "source_defined_cursor": true, + "default_cursor_field": ["date"] + }, + "sync_mode": "incremental", + "destination_sync_mode": "overwrite" + }, + { + "stream": { + "name": "geo_report", + "json_schema": { + "type": "object", + "properties": { + "date": { + "type": ["null", "string"], + "format": "date" + }, + "country_code": { + "type": ["null", "string"] + }, + "af_prt": { + "type": ["null", "string"] + }, + "media_source": { + "type": ["null", "string"] + }, + "campaign": { + "type": ["null", "string"] + }, + "impressions": { + "type": ["null", "number"] + }, + "clicks": { + "type": ["null", "number"] + }, + "click_through_rate": { + "type": ["null", "number"] + }, + "installs": { + "type": ["null", "number"] + }, + "conversion_rate": { + "type": ["null", "number"] + }, + "sessions": { + "type": ["null", "number"] + }, + "loyal_users": { + "type": ["null", "number"] + }, + "loyal_users_rate": { + "type": ["null", "number"] + }, + "total_revenue": { + "type": ["null", "number"] + }, + "total_cost": { + "type": ["null", "number"] + }, + "return_on_investment": { + "type": ["null", "number"] + }, + "average_revenue_per_user": { + "type": ["null", "number"] + }, + "average_ecpi": { + "type": ["null", "number"] + }, + "account_login_unique_users": { + "type": ["null", "number"] + }, + "account_login_event_counter": { + "type": ["null", "number"] + }, + "account_login_sales": { + "type": ["null", "number"] + }, + "af_complete_registration_unique_users": { + "type": ["null", "number"] + }, + "af_complete_registration_event_counter": { + "type": ["null", "number"] + }, + "af_complete_registration_sales": { + "type": ["null", "number"] + }, + "af_purchase_registration_unique_users": { + "type": ["null", "number"] + }, + "af_purchase_registration_event_counter": { + "type": ["null", "number"] + }, + "af_purchase_registration_sales": { + "type": ["null", "number"] + }, + "checkout_success_unique_users": { + "type": ["null", "number"] + }, + "checkout_success_event_counter": { + "type": ["null", "number"] + }, + "checkout_success_sales": { + "type": ["null", "number"] + }, + "create_product_complete_unique_users": { + "type": ["null", "number"] + }, + "create_product_complete_event_counter": { + "type": ["null", "number"] + }, + "create_product_complete_sales": { + "type": ["null", "number"] + }, + "init_appsflyer_id_unique_users": { + "type": ["null", "number"] + }, + "init_appsflyer_id_event_counter": { + "type": ["null", "number"] + }, + "init_appsflyer_id_sales": { + "type": ["null", "number"] + }, + "pay_premium_pkg_unique_users": { + "type": ["null", "number"] + }, + "pay_premium_pkg_event_counter": { + "type": ["null", "number"] + }, + "pay_premium_pkg_sales": { + "type": ["null", "number"] + } + } }, - { - "stream": { - "name": "geo_report", - "json_schema": { - "type": "object", - "properties": { - "date": { - "type": [ - "null", - "string" - ], - "format": "date" - }, - "country_code": { - "type": [ - "null", - "string" - ] - }, - "af_prt": { - "type": [ - "null", - "string" - ] - }, - "media_source": { - "type": [ - "null", - "string" - ] - }, - "campaign": { - "type": [ - "null", - "string" - ] - }, - "impressions": { - "type": [ - "null", - "number" - ] - }, - "clicks": { - "type": [ - "null", - "number" - ] - }, - "click_through_rate": { - "type": [ - "null", - "number" - ] - }, - "installs": { - "type": [ - "null", - "number" - ] - }, - "conversion_rate": { - "type": [ - "null", - "number" - ] - }, - "sessions": { - "type": [ - "null", - "number" - ] - }, - "loyal_users": { - "type": [ - "null", - "number" - ] - }, - "loyal_users_rate": { - "type": [ - "null", - "number" - ] - }, - "total_revenue": { - "type": [ - "null", - "number" - ] - }, - "total_cost": { - "type": [ - "null", - "number" - ] - }, - "return_on_investment": { - "type": [ - "null", - "number" - ] - }, - "average_revenue_per_user": { - "type": [ - "null", - "number" - ] - }, - "average_ecpi": { - "type": [ - "null", - "number" - ] - }, - "account_login_unique_users": { - "type": [ - "null", - "number" - ] - }, - "account_login_event_counter": { - "type": [ - "null", - "number" - ] - }, - "account_login_sales": { - "type": [ - "null", - "number" - ] - }, - "af_complete_registration_unique_users": { - "type": [ - "null", - "number" - ] - }, - "af_complete_registration_event_counter": { - "type": [ - "null", - "number" - ] - }, - "af_complete_registration_sales": { - "type": [ - "null", - "number" - ] - }, - "af_purchase_registration_unique_users": { - "type": [ - "null", - "number" - ] - }, - "af_purchase_registration_event_counter": { - "type": [ - "null", - "number" - ] - }, - "af_purchase_registration_sales": { - "type": [ - "null", - "number" - ] - }, - "checkout_success_unique_users": { - "type": [ - "null", - "number" - ] - }, - "checkout_success_event_counter": { - "type": [ - "null", - "number" - ] - }, - "checkout_success_sales": { - "type": [ - "null", - "number" - ] - }, - "create_product_complete_unique_users": { - "type": [ - "null", - "number" - ] - }, - "create_product_complete_event_counter": { - "type": [ - "null", - "number" - ] - }, - "create_product_complete_sales": { - "type": [ - "null", - "number" - ] - }, - "init_appsflyer_id_unique_users": { - "type": [ - "null", - "number" - ] - }, - "init_appsflyer_id_event_counter": { - "type": [ - "null", - "number" - ] - }, - "init_appsflyer_id_sales": { - "type": [ - "null", - "number" - ] - }, - "pay_premium_pkg_unique_users": { - "type": [ - "null", - "number" - ] - }, - "pay_premium_pkg_event_counter": { - "type": [ - "null", - "number" - ] - }, - "pay_premium_pkg_sales": { - "type": [ - "null", - "number" - ] - } - } - }, - "supported_sync_modes": [ - "full_refresh", - "incremental" - ], - "source_defined_cursor": true, - "default_cursor_field": [ - "date" - ] - }, - "sync_mode": "incremental", - "destination_sync_mode": "overwrite" + "supported_sync_modes": ["full_refresh", "incremental"], + "source_defined_cursor": true, + "default_cursor_field": ["date"] + }, + "sync_mode": "incremental", + "destination_sync_mode": "overwrite" + }, + { + "stream": { + "name": "retargeting_partners_report", + "json_schema": { + "type": "object", + "properties": { + "date": { + "type": ["null", "string"], + "format": "date" + }, + "af_prt": { + "type": ["null", "string"] + }, + "media_source": { + "type": ["null", "string"] + }, + "campaign": { + "type": ["null", "string"] + }, + "clicks": { + "type": ["null", "number"] + }, + "conversions": { + "type": ["null", "number"] + }, + "conversion_type": { + "type": ["null", "string"] + }, + "conversion_rate": { + "type": ["null", "number"] + }, + "sessions": { + "type": ["null", "number"] + }, + "loyal_users": { + "type": ["null", "number"] + }, + "loyal_users_rate": { + "type": ["null", "number"] + }, + "total_revenue": { + "type": ["null", "number"] + }, + "total_cost": { + "type": ["null", "number"] + }, + "return_on_investment": { + "type": ["null", "number"] + }, + "average_revenue_per_user": { + "type": ["null", "number"] + }, + "average_ecpi": { + "type": ["null", "number"] + }, + "account_login_unique_users": { + "type": ["null", "number"] + }, + "account_login_event_counter": { + "type": ["null", "number"] + }, + "account_login_sales": { + "type": ["null", "number"] + }, + "af_complete_registration_unique_users": { + "type": ["null", "number"] + }, + "af_complete_registration_event_counter": { + "type": ["null", "number"] + }, + "af_complete_registration_sales": { + "type": ["null", "number"] + }, + "checkout_success_unique_users": { + "type": ["null", "number"] + }, + "checkout_success_event_counter": { + "type": ["null", "number"] + }, + "checkout_success_sales": { + "type": ["null", "number"] + }, + "create_product_complete_unique_users": { + "type": ["null", "number"] + }, + "create_product_complete_event_counter": { + "type": ["null", "number"] + }, + "create_product_complete_sales": { + "type": ["null", "number"] + }, + "init_appsflyer_id_unique_users": { + "type": ["null", "number"] + }, + "init_appsflyer_id_event_counter": { + "type": ["null", "number"] + }, + "init_appsflyer_id_sales": { + "type": ["null", "number"] + } + } }, - { - "stream": { - "name": "retargeting_partners_report", - "json_schema": { - "type": "object", - "properties": { - "date": { - "type": [ - "null", - "string" - ], - "format": "date" - }, - "af_prt": { - "type": [ - "null", - "string" - ] - }, - "media_source": { - "type": [ - "null", - "string" - ] - }, - "campaign": { - "type": [ - "null", - "string" - ] - }, - "clicks": { - "type": [ - "null", - "number" - ] - }, - "conversions": { - "type": [ - "null", - "number" - ] - }, - "conversion_type": { - "type": [ - "null", - "string" - ] - }, - "conversion_rate": { - "type": [ - "null", - "number" - ] - }, - "sessions": { - "type": [ - "null", - "number" - ] - }, - "loyal_users": { - "type": [ - "null", - "number" - ] - }, - "loyal_users_rate": { - "type": [ - "null", - "number" - ] - }, - "total_revenue": { - "type": [ - "null", - "number" - ] - }, - "total_cost": { - "type": [ - "null", - "number" - ] - }, - "return_on_investment": { - "type": [ - "null", - "number" - ] - }, - "average_revenue_per_user": { - "type": [ - "null", - "number" - ] - }, - "average_ecpi": { - "type": [ - "null", - "number" - ] - }, - "account_login_unique_users": { - "type": [ - "null", - "number" - ] - }, - "account_login_event_counter": { - "type": [ - "null", - "number" - ] - }, - "account_login_sales": { - "type": [ - "null", - "number" - ] - }, - "af_complete_registration_unique_users": { - "type": [ - "null", - "number" - ] - }, - "af_complete_registration_event_counter": { - "type": [ - "null", - "number" - ] - }, - "af_complete_registration_sales": { - "type": [ - "null", - "number" - ] - }, - "checkout_success_unique_users": { - "type": [ - "null", - "number" - ] - }, - "checkout_success_event_counter": { - "type": [ - "null", - "number" - ] - }, - "checkout_success_sales": { - "type": [ - "null", - "number" - ] - }, - "create_product_complete_unique_users": { - "type": [ - "null", - "number" - ] - }, - "create_product_complete_event_counter": { - "type": [ - "null", - "number" - ] - }, - "create_product_complete_sales": { - "type": [ - "null", - "number" - ] - }, - "init_appsflyer_id_unique_users": { - "type": [ - "null", - "number" - ] - }, - "init_appsflyer_id_event_counter": { - "type": [ - "null", - "number" - ] - }, - "init_appsflyer_id_sales": { - "type": [ - "null", - "number" - ] - } - } - }, - "supported_sync_modes": [ - "full_refresh", - "incremental" - ], - "source_defined_cursor": true, - "default_cursor_field": [ - "date" - ] - }, - "sync_mode": "incremental", - "destination_sync_mode": "overwrite" + "supported_sync_modes": ["full_refresh", "incremental"], + "source_defined_cursor": true, + "default_cursor_field": ["date"] + }, + "sync_mode": "incremental", + "destination_sync_mode": "overwrite" + }, + { + "stream": { + "name": "retargeting_daily_report", + "json_schema": { + "type": "object", + "properties": { + "date": { + "type": ["null", "string"], + "format": "date" + }, + "af_prt": { + "type": ["null", "string"] + }, + "media_source": { + "type": ["null", "string"] + }, + "campaign": { + "type": ["null", "string"] + }, + "clicks": { + "type": ["null", "number"] + }, + "conversions": { + "type": ["null", "number"] + }, + "conversion_type": { + "type": ["null", "string"] + }, + "conversion_rate": { + "type": ["null", "number"] + }, + "sessions": { + "type": ["null", "number"] + }, + "loyal_users": { + "type": ["null", "number"] + }, + "loyal_users_rate": { + "type": ["null", "number"] + }, + "total_cost": { + "type": ["null", "number"] + }, + "average_ecpi": { + "type": ["null", "number"] + } + } }, - { - "stream": { - "name": "retargeting_daily_report", - "json_schema": { - "type": "object", - "properties": { - "date": { - "type": [ - "null", - "string" - ], - "format": "date" - }, - "af_prt": { - "type": [ - "null", - "string" - ] - }, - "media_source": { - "type": [ - "null", - "string" - ] - }, - "campaign": { - "type": [ - "null", - "string" - ] - }, - "clicks": { - "type": [ - "null", - "number" - ] - }, - "conversions": { - "type": [ - "null", - "number" - ] - }, - "conversion_type": { - "type": [ - "null", - "string" - ] - }, - "conversion_rate": { - "type": [ - "null", - "number" - ] - }, - "sessions": { - "type": [ - "null", - "number" - ] - }, - "loyal_users": { - "type": [ - "null", - "number" - ] - }, - "loyal_users_rate": { - "type": [ - "null", - "number" - ] - }, - "total_cost": { - "type": [ - "null", - "number" - ] - }, - "average_ecpi": { - "type": [ - "null", - "number" - ] - } - } - }, - "supported_sync_modes": [ - "full_refresh", - "incremental" - ], - "source_defined_cursor": true, - "default_cursor_field": [ - "date" - ] - }, - "sync_mode": "incremental", - "destination_sync_mode": "overwrite" + "supported_sync_modes": ["full_refresh", "incremental"], + "source_defined_cursor": true, + "default_cursor_field": ["date"] + }, + "sync_mode": "incremental", + "destination_sync_mode": "overwrite" + }, + { + "stream": { + "name": "retargeting_geo_report", + "json_schema": { + "type": "object", + "properties": { + "date": { + "type": ["null", "string"], + "format": "date" + }, + "country_code": { + "type": ["null", "string"] + }, + "af_prt": { + "type": ["null", "string"] + }, + "media_source": { + "type": ["null", "string"] + }, + "campaign": { + "type": ["null", "string"] + }, + "clicks": { + "type": ["null", "number"] + }, + "conversions": { + "type": ["null", "number"] + }, + "conversion_type": { + "type": ["null", "string"] + }, + "conversion_rate": { + "type": ["null", "number"] + }, + "sessions": { + "type": ["null", "number"] + }, + "loyal_users": { + "type": ["null", "number"] + }, + "loyal_users_rate": { + "type": ["null", "number"] + }, + "total_revenue": { + "type": ["null", "number"] + }, + "total_cost": { + "type": ["null", "number"] + }, + "return_on_investment": { + "type": ["null", "number"] + }, + "average_revenue_per_user": { + "type": ["null", "number"] + }, + "average_ecpi": { + "type": ["null", "number"] + }, + "account_login_unique_users": { + "type": ["null", "number"] + }, + "account_login_event_counter": { + "type": ["null", "number"] + }, + "account_login_sales": { + "type": ["null", "number"] + }, + "af_complete_registration_unique_users": { + "type": ["null", "number"] + }, + "af_complete_registration_event_counter": { + "type": ["null", "number"] + }, + "af_complete_registration_sales": { + "type": ["null", "number"] + }, + "checkout_success_unique_users": { + "type": ["null", "number"] + }, + "checkout_success_event_counter": { + "type": ["null", "number"] + }, + "checkout_success_sales": { + "type": ["null", "number"] + }, + "create_product_complete_unique_users": { + "type": ["null", "number"] + }, + "create_product_complete_event_counter": { + "type": ["null", "number"] + }, + "create_product_complete_sales": { + "type": ["null", "number"] + }, + "init_appsflyer_id_unique_users": { + "type": ["null", "number"] + }, + "init_appsflyer_id_event_counter": { + "type": ["null", "number"] + }, + "init_appsflyer_id_sales": { + "type": ["null", "number"] + } + } }, - { - "stream": { - "name": "retargeting_geo_report", - "json_schema": { - "type": "object", - "properties": { - "date": { - "type": [ - "null", - "string" - ], - "format": "date" - }, - "country_code": { - "type": [ - "null", - "string" - ] - }, - "af_prt": { - "type": [ - "null", - "string" - ] - }, - "media_source": { - "type": [ - "null", - "string" - ] - }, - "campaign": { - "type": [ - "null", - "string" - ] - }, - "clicks": { - "type": [ - "null", - "number" - ] - }, - "conversions": { - "type": [ - "null", - "number" - ] - }, - "conversion_type": { - "type": [ - "null", - "string" - ] - }, - "conversion_rate": { - "type": [ - "null", - "number" - ] - }, - "sessions": { - "type": [ - "null", - "number" - ] - }, - "loyal_users": { - "type": [ - "null", - "number" - ] - }, - "loyal_users_rate": { - "type": [ - "null", - "number" - ] - }, - "total_revenue": { - "type": [ - "null", - "number" - ] - }, - "total_cost": { - "type": [ - "null", - "number" - ] - }, - "return_on_investment": { - "type": [ - "null", - "number" - ] - }, - "average_revenue_per_user": { - "type": [ - "null", - "number" - ] - }, - "average_ecpi": { - "type": [ - "null", - "number" - ] - }, - "account_login_unique_users": { - "type": [ - "null", - "number" - ] - }, - "account_login_event_counter": { - "type": [ - "null", - "number" - ] - }, - "account_login_sales": { - "type": [ - "null", - "number" - ] - }, - "af_complete_registration_unique_users": { - "type": [ - "null", - "number" - ] - }, - "af_complete_registration_event_counter": { - "type": [ - "null", - "number" - ] - }, - "af_complete_registration_sales": { - "type": [ - "null", - "number" - ] - }, - "checkout_success_unique_users": { - "type": [ - "null", - "number" - ] - }, - "checkout_success_event_counter": { - "type": [ - "null", - "number" - ] - }, - "checkout_success_sales": { - "type": [ - "null", - "number" - ] - }, - "create_product_complete_unique_users": { - "type": [ - "null", - "number" - ] - }, - "create_product_complete_event_counter": { - "type": [ - "null", - "number" - ] - }, - "create_product_complete_sales": { - "type": [ - "null", - "number" - ] - }, - "init_appsflyer_id_unique_users": { - "type": [ - "null", - "number" - ] - }, - "init_appsflyer_id_event_counter": { - "type": [ - "null", - "number" - ] - }, - "init_appsflyer_id_sales": { - "type": [ - "null", - "number" - ] - } - } - }, - "supported_sync_modes": [ - "full_refresh", - "incremental" - ], - "source_defined_cursor": true, - "default_cursor_field": [ - "date" - ] - }, - "sync_mode": "incremental", - "destination_sync_mode": "overwrite" - } - ] -} \ No newline at end of file + "supported_sync_modes": ["full_refresh", "incremental"], + "source_defined_cursor": true, + "default_cursor_field": ["date"] + }, + "sync_mode": "incremental", + "destination_sync_mode": "overwrite" + } + ] +} diff --git a/airbyte-integrations/connectors/source-appsflyer/sample_files/invalid_config_wrong_api_token.json b/airbyte-integrations/connectors/source-appsflyer/sample_files/invalid_config_wrong_api_token.json index 1958af94c330c..0995e34948505 100644 --- a/airbyte-integrations/connectors/source-appsflyer/sample_files/invalid_config_wrong_api_token.json +++ b/airbyte-integrations/connectors/source-appsflyer/sample_files/invalid_config_wrong_api_token.json @@ -2,5 +2,5 @@ "app_id": "app.post.android", "api_token": "wrong token", "start_date": "2021-09-13 01:00:00", - "timezone":"Asia/Jakarta" + "timezone": "Asia/Jakarta" } diff --git a/airbyte-integrations/connectors/source-appsflyer/sample_files/invalid_config_wrong_app_id.json b/airbyte-integrations/connectors/source-appsflyer/sample_files/invalid_config_wrong_app_id.json index 319f7db05ed37..0ec8f24ffea0f 100644 --- a/airbyte-integrations/connectors/source-appsflyer/sample_files/invalid_config_wrong_app_id.json +++ b/airbyte-integrations/connectors/source-appsflyer/sample_files/invalid_config_wrong_app_id.json @@ -2,5 +2,5 @@ "app_id": "wrong id", "api_token": "secret", "start_date": "2021-09-13 01:00:00", - "timezone":"Asia/Jakarta" + "timezone": "Asia/Jakarta" } diff --git a/airbyte-integrations/connectors/source-appsflyer/sample_files/sample_config.json b/airbyte-integrations/connectors/source-appsflyer/sample_files/sample_config.json index d832122db99b3..70c41e0b78ebe 100644 --- a/airbyte-integrations/connectors/source-appsflyer/sample_files/sample_config.json +++ b/airbyte-integrations/connectors/source-appsflyer/sample_files/sample_config.json @@ -2,5 +2,5 @@ "app_id": "app.yourapp.android", "api_token": "secret", "start_date": "2021-09-27 20:00:00", - "timezone":"Asia/Jakarta" + "timezone": "Asia/Jakarta" } diff --git a/airbyte-integrations/connectors/source-appsflyer/setup.py b/airbyte-integrations/connectors/source-appsflyer/setup.py index 38305ddda6375..b78170f7aa5d9 100644 --- a/airbyte-integrations/connectors/source-appsflyer/setup.py +++ b/airbyte-integrations/connectors/source-appsflyer/setup.py @@ -5,10 +5,7 @@ from setuptools import find_packages, setup -MAIN_REQUIREMENTS = [ - "airbyte-cdk~=0.1.25", - "pendulum~=2.1.2" -] +MAIN_REQUIREMENTS = ["airbyte-cdk~=0.1.25", "pendulum~=2.1.2"] TEST_REQUIREMENTS = [ "pytest~=6.1", diff --git a/airbyte-integrations/connectors/source-appsflyer/source_appsflyer/fields/__init__.py b/airbyte-integrations/connectors/source-appsflyer/source_appsflyer/fields/__init__.py index a093d38a091cf..c5f7c5e03356d 100644 --- a/airbyte-integrations/connectors/source-appsflyer/source_appsflyer/fields/__init__.py +++ b/airbyte-integrations/connectors/source-appsflyer/source_appsflyer/fields/__init__.py @@ -1,8 +1,21 @@ -from . import raw_data -from . import uninstall_events -from . import partners_report -from . import daily_report -from . import geo_report -from . import retargeting_partners_report -from . import retargeting_daily_report -from . import retargeting_geo_report +from . import ( + daily_report, + geo_report, + partners_report, + raw_data, + retargeting_daily_report, + retargeting_geo_report, + retargeting_partners_report, + uninstall_events, +) + +__all__ = ( + "daily_report", + "geo_report", + "partners_report", + "raw_data", + "retargeting_daily_report", + "retargeting_geo_report", + "retargeting_partners_report", + "uninstall_events", +) diff --git a/airbyte-integrations/connectors/source-appsflyer/source_appsflyer/fields/daily_report.py b/airbyte-integrations/connectors/source-appsflyer/source_appsflyer/fields/daily_report.py index 1acccc28040e4..bfdacd290a8d1 100644 --- a/airbyte-integrations/connectors/source-appsflyer/source_appsflyer/fields/daily_report.py +++ b/airbyte-integrations/connectors/source-appsflyer/source_appsflyer/fields/daily_report.py @@ -1,3 +1,7 @@ +# +# Copyright (c) 2021 Airbyte, Inc., all rights reserved. +# + # This order matters main_fields = ( "date", @@ -13,5 +17,5 @@ "loyal_users", "loyal_users_rate", "total_cost", - "average_ecpi" + "average_ecpi", ) diff --git a/airbyte-integrations/connectors/source-appsflyer/source_appsflyer/fields/geo_report.py b/airbyte-integrations/connectors/source-appsflyer/source_appsflyer/fields/geo_report.py index 8550badaff903..b08ef7597fcaf 100644 --- a/airbyte-integrations/connectors/source-appsflyer/source_appsflyer/fields/geo_report.py +++ b/airbyte-integrations/connectors/source-appsflyer/source_appsflyer/fields/geo_report.py @@ -1,3 +1,7 @@ +# +# Copyright (c) 2021 Airbyte, Inc., all rights reserved. +# + # This order matters main_fields = ( "date", @@ -38,5 +42,5 @@ "init_appsflyer_id_sales", "pay_premium_pkg_unique_users", "pay_premium_pkg_event_counter", - "pay_premium_pkg_sales" + "pay_premium_pkg_sales", ) diff --git a/airbyte-integrations/connectors/source-appsflyer/source_appsflyer/fields/partners_report.py b/airbyte-integrations/connectors/source-appsflyer/source_appsflyer/fields/partners_report.py index bc77c6840ec38..dd36a51b3fc36 100644 --- a/airbyte-integrations/connectors/source-appsflyer/source_appsflyer/fields/partners_report.py +++ b/airbyte-integrations/connectors/source-appsflyer/source_appsflyer/fields/partners_report.py @@ -1,3 +1,7 @@ +# +# Copyright (c) 2021 Airbyte, Inc., all rights reserved. +# + # This order matters main_fields = ( "date", @@ -37,5 +41,5 @@ "init_appsflyer_id_sales", "pay_premium_pkg_unique_users", "pay_premium_pkg_event_counter", - "pay_premium_pkg_sales" + "pay_premium_pkg_sales", ) diff --git a/airbyte-integrations/connectors/source-appsflyer/source_appsflyer/fields/raw_data.py b/airbyte-integrations/connectors/source-appsflyer/source_appsflyer/fields/raw_data.py index 3b3a6cf03e26a..e91adb0c1b852 100644 --- a/airbyte-integrations/connectors/source-appsflyer/source_appsflyer/fields/raw_data.py +++ b/airbyte-integrations/connectors/source-appsflyer/source_appsflyer/fields/raw_data.py @@ -1,3 +1,7 @@ +# +# Copyright (c) 2021 Airbyte, Inc., all rights reserved. +# + # This order matters main_fields = ( "attributed_touch_type", @@ -121,5 +125,5 @@ "blocked_reason_rule", "blocked_sub_reason", "rejected_reason", - "rejected_reason_value" + "rejected_reason_value", ) diff --git a/airbyte-integrations/connectors/source-appsflyer/source_appsflyer/fields/retargeting_daily_report.py b/airbyte-integrations/connectors/source-appsflyer/source_appsflyer/fields/retargeting_daily_report.py index 10e6ff2903686..0772d976b744b 100644 --- a/airbyte-integrations/connectors/source-appsflyer/source_appsflyer/fields/retargeting_daily_report.py +++ b/airbyte-integrations/connectors/source-appsflyer/source_appsflyer/fields/retargeting_daily_report.py @@ -1,3 +1,7 @@ +# +# Copyright (c) 2021 Airbyte, Inc., all rights reserved. +# + # This order matters main_fields = ( "date", @@ -12,5 +16,5 @@ "loyal_users", "loyal_users_rate", "total_cost", - "average_ecpi" + "average_ecpi", ) diff --git a/airbyte-integrations/connectors/source-appsflyer/source_appsflyer/fields/retargeting_geo_report.py b/airbyte-integrations/connectors/source-appsflyer/source_appsflyer/fields/retargeting_geo_report.py index 9e3a08e7d03df..a9427f72b1e19 100644 --- a/airbyte-integrations/connectors/source-appsflyer/source_appsflyer/fields/retargeting_geo_report.py +++ b/airbyte-integrations/connectors/source-appsflyer/source_appsflyer/fields/retargeting_geo_report.py @@ -1,3 +1,7 @@ +# +# Copyright (c) 2021 Airbyte, Inc., all rights reserved. +# + # This order matters main_fields = ( "date", @@ -31,5 +35,5 @@ "create_product_complete_sales", "init_appsflyer_id_unique_users", "init_appsflyer_id_event_counter", - "init_appsflyer_id_sales" + "init_appsflyer_id_sales", ) diff --git a/airbyte-integrations/connectors/source-appsflyer/source_appsflyer/fields/retargeting_partners_report.py b/airbyte-integrations/connectors/source-appsflyer/source_appsflyer/fields/retargeting_partners_report.py index 966fba3af5f08..9fc160e85f771 100644 --- a/airbyte-integrations/connectors/source-appsflyer/source_appsflyer/fields/retargeting_partners_report.py +++ b/airbyte-integrations/connectors/source-appsflyer/source_appsflyer/fields/retargeting_partners_report.py @@ -1,3 +1,7 @@ +# +# Copyright (c) 2021 Airbyte, Inc., all rights reserved. +# + # This order matters main_fields = ( "date", @@ -30,5 +34,5 @@ "create_product_complete_sales", "init_appsflyer_id_unique_users", "init_appsflyer_id_event_counter", - "init_appsflyer_id_sales" + "init_appsflyer_id_sales", ) diff --git a/airbyte-integrations/connectors/source-appsflyer/source_appsflyer/fields/uninstall_events.py b/airbyte-integrations/connectors/source-appsflyer/source_appsflyer/fields/uninstall_events.py index 94bfe3e1cfd03..22ac4927f5b81 100644 --- a/airbyte-integrations/connectors/source-appsflyer/source_appsflyer/fields/uninstall_events.py +++ b/airbyte-integrations/connectors/source-appsflyer/source_appsflyer/fields/uninstall_events.py @@ -1,3 +1,7 @@ +# +# Copyright (c) 2021 Airbyte, Inc., all rights reserved. +# + # This order matters additional_fields = ( "custom_data", @@ -32,5 +36,5 @@ "blocked_reason_rule", "blocked_sub_reason", "rejected_reason", - "rejected_reason_value" + "rejected_reason_value", ) diff --git a/airbyte-integrations/connectors/source-appsflyer/source_appsflyer/schemas/daily_report.json b/airbyte-integrations/connectors/source-appsflyer/source_appsflyer/schemas/daily_report.json index d92eaf19ed2cb..875245033323c 100644 --- a/airbyte-integrations/connectors/source-appsflyer/source_appsflyer/schemas/daily_report.json +++ b/airbyte-integrations/connectors/source-appsflyer/source_appsflyer/schemas/daily_report.json @@ -1,90 +1,48 @@ { - "type": "object", - "properties": { - "date": { - "type": [ - "null", - "string" - ], - "format": "date" - }, - "af_prt": { - "type": [ - "null", - "string" - ] - }, - "media_source": { - "type": [ - "null", - "string" - ] - }, - "campaign": { - "type": [ - "null", - "string" - ] - }, - "impressions": { - "type": [ - "null", - "number" - ] - }, - "clicks": { - "type": [ - "null", - "number" - ] - }, - "click_through_rate": { - "type": [ - "null", - "number" - ] - }, - "installs": { - "type": [ - "null", - "number" - ] - }, - "conversion_rate": { - "type": [ - "null", - "number" - ] - }, - "sessions": { - "type": [ - "null", - "number" - ] - }, - "loyal_users": { - "type": [ - "null", - "number" - ] - }, - "loyal_users_rate": { - "type": [ - "null", - "number" - ] - }, - "total_cost": { - "type": [ - "null", - "number" - ] - }, - "average_ecpi": { - "type": [ - "null", - "number" - ] - } + "type": "object", + "properties": { + "date": { + "type": ["null", "string"], + "format": "date" + }, + "af_prt": { + "type": ["null", "string"] + }, + "media_source": { + "type": ["null", "string"] + }, + "campaign": { + "type": ["null", "string"] + }, + "impressions": { + "type": ["null", "number"] + }, + "clicks": { + "type": ["null", "number"] + }, + "click_through_rate": { + "type": ["null", "number"] + }, + "installs": { + "type": ["null", "number"] + }, + "conversion_rate": { + "type": ["null", "number"] + }, + "sessions": { + "type": ["null", "number"] + }, + "loyal_users": { + "type": ["null", "number"] + }, + "loyal_users_rate": { + "type": ["null", "number"] + }, + "total_cost": { + "type": ["null", "number"] + }, + "average_ecpi": { + "type": ["null", "number"] } -} \ No newline at end of file + } +} diff --git a/airbyte-integrations/connectors/source-appsflyer/source_appsflyer/schemas/geo_report.json b/airbyte-integrations/connectors/source-appsflyer/source_appsflyer/schemas/geo_report.json index 6ce4209b615d4..287754090beeb 100644 --- a/airbyte-integrations/connectors/source-appsflyer/source_appsflyer/schemas/geo_report.json +++ b/airbyte-integrations/connectors/source-appsflyer/source_appsflyer/schemas/geo_report.json @@ -1,240 +1,123 @@ { - "type": "object", - "properties": { - "date": { - "type": [ - "null", - "string" - ], - "format": "date" - }, - "country_code": { - "type": [ - "null", - "string" - ] - }, - "af_prt": { - "type": [ - "null", - "string" - ] - }, - "media_source": { - "type": [ - "null", - "string" - ] - }, - "campaign": { - "type": [ - "null", - "string" - ] - }, - "impressions": { - "type": [ - "null", - "number" - ] - }, - "clicks": { - "type": [ - "null", - "number" - ] - }, - "click_through_rate": { - "type": [ - "null", - "number" - ] - }, - "installs": { - "type": [ - "null", - "number" - ] - }, - "conversion_rate": { - "type": [ - "null", - "number" - ] - }, - "sessions": { - "type": [ - "null", - "number" - ] - }, - "loyal_users": { - "type": [ - "null", - "number" - ] - }, - "loyal_users_rate": { - "type": [ - "null", - "number" - ] - }, - "total_revenue": { - "type": [ - "null", - "number" - ] - }, - "total_cost": { - "type": [ - "null", - "number" - ] - }, - "return_on_investment": { - "type": [ - "null", - "number" - ] - }, - "average_revenue_per_user": { - "type": [ - "null", - "number" - ] - }, - "average_ecpi": { - "type": [ - "null", - "number" - ] - }, - "account_login_unique_users": { - "type": [ - "null", - "number" - ] - }, - "account_login_event_counter": { - "type": [ - "null", - "number" - ] - }, - "account_login_sales": { - "type": [ - "null", - "number" - ] - }, - "af_complete_registration_unique_users": { - "type": [ - "null", - "number" - ] - }, - "af_complete_registration_event_counter": { - "type": [ - "null", - "number" - ] - }, - "af_complete_registration_sales": { - "type": [ - "null", - "number" - ] - }, - "af_purchase_registration_unique_users": { - "type": [ - "null", - "number" - ] - }, - "af_purchase_registration_event_counter": { - "type": [ - "null", - "number" - ] - }, - "af_purchase_registration_sales": { - "type": [ - "null", - "number" - ] - }, - "checkout_success_unique_users": { - "type": [ - "null", - "number" - ] - }, - "checkout_success_event_counter": { - "type": [ - "null", - "number" - ] - }, - "checkout_success_sales": { - "type": [ - "null", - "number" - ] - }, - "create_product_complete_unique_users": { - "type": [ - "null", - "number" - ] - }, - "create_product_complete_event_counter": { - "type": [ - "null", - "number" - ] - }, - "create_product_complete_sales": { - "type": [ - "null", - "number" - ] - }, - "init_appsflyer_id_unique_users": { - "type": [ - "null", - "number" - ] - }, - "init_appsflyer_id_event_counter": { - "type": [ - "null", - "number" - ] - }, - "init_appsflyer_id_sales": { - "type": [ - "null", - "number" - ] - }, - "pay_premium_pkg_unique_users": { - "type": [ - "null", - "number" - ] - }, - "pay_premium_pkg_event_counter": { - "type": [ - "null", - "number" - ] - }, - "pay_premium_pkg_sales": { - "type": [ - "null", - "number" - ] - } + "type": "object", + "properties": { + "date": { + "type": ["null", "string"], + "format": "date" + }, + "country_code": { + "type": ["null", "string"] + }, + "af_prt": { + "type": ["null", "string"] + }, + "media_source": { + "type": ["null", "string"] + }, + "campaign": { + "type": ["null", "string"] + }, + "impressions": { + "type": ["null", "number"] + }, + "clicks": { + "type": ["null", "number"] + }, + "click_through_rate": { + "type": ["null", "number"] + }, + "installs": { + "type": ["null", "number"] + }, + "conversion_rate": { + "type": ["null", "number"] + }, + "sessions": { + "type": ["null", "number"] + }, + "loyal_users": { + "type": ["null", "number"] + }, + "loyal_users_rate": { + "type": ["null", "number"] + }, + "total_revenue": { + "type": ["null", "number"] + }, + "total_cost": { + "type": ["null", "number"] + }, + "return_on_investment": { + "type": ["null", "number"] + }, + "average_revenue_per_user": { + "type": ["null", "number"] + }, + "average_ecpi": { + "type": ["null", "number"] + }, + "account_login_unique_users": { + "type": ["null", "number"] + }, + "account_login_event_counter": { + "type": ["null", "number"] + }, + "account_login_sales": { + "type": ["null", "number"] + }, + "af_complete_registration_unique_users": { + "type": ["null", "number"] + }, + "af_complete_registration_event_counter": { + "type": ["null", "number"] + }, + "af_complete_registration_sales": { + "type": ["null", "number"] + }, + "af_purchase_registration_unique_users": { + "type": ["null", "number"] + }, + "af_purchase_registration_event_counter": { + "type": ["null", "number"] + }, + "af_purchase_registration_sales": { + "type": ["null", "number"] + }, + "checkout_success_unique_users": { + "type": ["null", "number"] + }, + "checkout_success_event_counter": { + "type": ["null", "number"] + }, + "checkout_success_sales": { + "type": ["null", "number"] + }, + "create_product_complete_unique_users": { + "type": ["null", "number"] + }, + "create_product_complete_event_counter": { + "type": ["null", "number"] + }, + "create_product_complete_sales": { + "type": ["null", "number"] + }, + "init_appsflyer_id_unique_users": { + "type": ["null", "number"] + }, + "init_appsflyer_id_event_counter": { + "type": ["null", "number"] + }, + "init_appsflyer_id_sales": { + "type": ["null", "number"] + }, + "pay_premium_pkg_unique_users": { + "type": ["null", "number"] + }, + "pay_premium_pkg_event_counter": { + "type": ["null", "number"] + }, + "pay_premium_pkg_sales": { + "type": ["null", "number"] } -} \ No newline at end of file + } +} diff --git a/airbyte-integrations/connectors/source-appsflyer/source_appsflyer/schemas/in_app_events.json b/airbyte-integrations/connectors/source-appsflyer/source_appsflyer/schemas/in_app_events.json index 5ba12bf07ccea..7abb262666746 100644 --- a/airbyte-integrations/connectors/source-appsflyer/source_appsflyer/schemas/in_app_events.json +++ b/airbyte-integrations/connectors/source-appsflyer/source_appsflyer/schemas/in_app_events.json @@ -1,722 +1,368 @@ { - "type": "object", - "properties": { - "attributed_touch_type": { - "type": [ - "null", - "string" - ] - }, - "attributed_touch_time": { - "type": [ - "null", - "string" - ], - "format": "date-time" - }, - "install_time": { - "type": [ - "null", - "string" - ], - "format": "date-time" - }, - "event_time": { - "type": [ - "null", - "string" - ], - "format": "date-time" - }, - "event_name": { - "type": [ - "null", - "string" - ] - }, - "event_value": { - "type": [ - "null", - "string" - ] - }, - "event_revenue": { - "type": [ - "null", - "string" - ] - }, - "event_revenue_currency": { - "type": [ - "null", - "string" - ] - }, - "event_revenue_usd": { - "type": [ - "null", - "string" - ] - }, - "event_source": { - "type": [ - "null", - "string" - ] - }, - "is_receipt_validated": { - "type": [ - "null", - "boolean" - ] - }, - "af_prt": { - "type": [ - "null", - "string" - ] - }, - "media_source": { - "type": [ - "null", - "string" - ] - }, - "af_channel": { - "type": [ - "null", - "string" - ] - }, - "af_keywords": { - "type": [ - "null", - "string" - ] - }, - "campaign": { - "type": [ - "null", - "string" - ] - }, - "af_c_id": { - "type": [ - "null", - "string" - ] - }, - "af_adset": { - "type": [ - "null", - "string" - ] - }, - "af_adset_id": { - "type": [ - "null", - "string" - ] - }, - "af_ad": { - "type": [ - "null", - "string" - ] - }, - "af_ad_id": { - "type": [ - "null", - "string" - ] - }, - "af_ad_type": { - "type": [ - "null", - "string" - ] - }, - "af_siteid": { - "type": [ - "null", - "string" - ] - }, - "af_sub_siteid": { - "type": [ - "null", - "string" - ] - }, - "af_sub1": { - "type": [ - "null", - "string" - ] - }, - "af_sub2": { - "type": [ - "null", - "string" - ] - }, - "af_sub3": { - "type": [ - "null", - "string" - ] - }, - "af_sub4": { - "type": [ - "null", - "string" - ] - }, - "af_sub5": { - "type": [ - "null", - "string" - ] - }, - "af_cost_model": { - "type": [ - "null", - "string" - ] - }, - "af_cost_value": { - "type": [ - "null", - "string" - ] - }, - "af_cost_currency": { - "type": [ - "null", - "string" - ] - }, - "contributor1_af_prt": { - "type": [ - "null", - "string" - ] - }, - "contributor1_media_source": { - "type": [ - "null", - "string" - ] - }, - "contributor1_campaign": { - "type": [ - "null", - "string" - ] - }, - "contributor1_touch_type": { - "type": [ - "null", - "string" - ] - }, - "contributor1_touch_time": { - "type": [ - "null", - "string" - ], - "format": "date-time" - }, - "contributor2_af_prt": { - "type": [ - "null", - "string" - ] - }, - "contributor2_media_source": { - "type": [ - "null", - "string" - ] - }, - "contributor2_campaign": { - "type": [ - "null", - "string" - ] - }, - "contributor2_touch_type": { - "type": [ - "null", - "string" - ] - }, - "contributor2_touch_time": { - "type": [ - "null", - "string" - ], - "format": "date-time" - }, - "contributor3_af_prt": { - "type": [ - "null", - "string" - ] - }, - "contributor3_media_source": { - "type": [ - "null", - "string" - ] - }, - "contributor3_campaign": { - "type": [ - "null", - "string" - ] - }, - "contributor3_touch_type": { - "type": [ - "null", - "string" - ] - }, - "contributor3_touch_time": { - "type": [ - "null", - "string" - ], - "format": "date-time" - }, - "region": { - "type": [ - "null", - "string" - ] - }, - "country_code": { - "type": [ - "null", - "string" - ] - }, - "state": { - "type": [ - "null", - "string" - ] - }, - "city": { - "type": [ - "null", - "string" - ] - }, - "postal_code": { - "type": [ - "null", - "string" - ] - }, - "dma": { - "type": [ - "null", - "string" - ] - }, - "ip": { - "type": [ - "null", - "string" - ] - }, - "wifi": { - "type": [ - "null", - "boolean" - ] - }, - "operator": { - "type": [ - "null", - "string" - ] - }, - "carrier": { - "type": [ - "null", - "string" - ] - }, - "language": { - "type": [ - "null", - "string" - ] - }, - "appsflyer_id": { - "type": [ - "null", - "string" - ] - }, - "advertising_id": { - "type": [ - "null", - "string" - ] - }, - "idfa": { - "type": [ - "null", - "string" - ] - }, - "android_id": { - "type": [ - "null", - "string" - ] - }, - "customer_user_id": { - "type": [ - "null", - "string" - ] - }, - "imei": { - "type": [ - "null", - "string" - ] - }, - "idfv": { - "type": [ - "null", - "string" - ] - }, - "platform": { - "type": [ - "null", - "string" - ] - }, - "device_type": { - "type": [ - "null", - "string" - ] - }, - "os_version": { - "type": [ - "null", - "string" - ] - }, - "app_version": { - "type": [ - "null", - "string" - ] - }, - "sdk_version": { - "type": [ - "null", - "string" - ] - }, - "app_id": { - "type": [ - "null", - "string" - ] - }, - "app_name": { - "type": [ - "null", - "string" - ] - }, - "bundle_id": { - "type": [ - "null", - "string" - ] - }, - "is_retargeting": { - "type": [ - "null", - "boolean" - ] - }, - "retargeting_conversion_type": { - "type": [ - "null", - "string" - ] - }, - "af_attribution_lookback": { - "type": [ - "null", - "string" - ] - }, - "af_reengagement_window": { - "type": [ - "null", - "string" - ] - }, - "is_primary_attribution": { - "type": [ - "null", - "boolean" - ] - }, - "user_agent": { - "type": [ - "null", - "string" - ] - }, - "http_referrer": { - "type": [ - "null", - "string" - ] - }, - "original_url": { - "type": [ - "null", - "string" - ] - }, - "app_type": { - "type": [ - "null", - "string" - ] - }, - "custom_data": { - "type": [ - "null", - "string" - ] - }, - "network_account_id": { - "type": [ - "null", - "string" - ] - }, - "install_app_store": { - "type": [ - "null", - "string" - ] - }, - "contributor1_match_type": { - "type": [ - "null", - "string" - ] - }, - "contributor2_match_type": { - "type": [ - "null", - "string" - ] - }, - "contributor3_match_type": { - "type": [ - "null", - "string" - ] - }, - "campaign_type": { - "type": [ - "null", - "string" - ] - }, - "conversion_type": { - "type": [ - "null", - "string" - ] - }, - "match_type": { - "type": [ - "null", - "string" - ] - }, - "gp_referrer": { - "type": [ - "null", - "string" - ] - }, - "gp_click_time": { - "type": [ - "null", - "string" - ], - "format": "date-time" - }, - "gp_install_begin": { - "type": [ - "null", - "string" - ], - "format": "date-time" - }, - "gp_broadcast_referrer": { - "type": [ - "null", - "string" - ] - }, - "keyword_match_type": { - "type": [ - "null", - "string" - ] - }, - "keyword_id": { - "type": [ - "null", - "string" - ] - }, - "att": { - "type": [ - "null", - "string" - ] - }, - "amazon_aid": { - "type": [ - "null", - "string" - ] - }, - "device_category": { - "type": [ - "null", - "string" - ] - }, - "device_model": { - "type": [ - "null", - "string" - ] - }, - "device_download_time": { - "type": [ - "null", - "string" - ], - "format": "date-time" - }, - "deeplink_url": { - "type": [ - "null", - "string" - ] - }, - "oaid": { - "type": [ - "null", - "string" - ] - }, - "is_lat": { - "type": [ - "null", - "boolean" - ] - }, - "store_reinstall": { - "type": [ - "null", - "boolean" - ] - }, - "placement": { - "type": [ - "null", - "string" - ] - }, - "mediation_network": { - "type": [ - "null", - "string" - ] - }, - "segment": { - "type": [ - "null", - "string" - ] - }, - "ad_unit": { - "type": [ - "null", - "string" - ] - }, - "monetization_network": { - "type": [ - "null", - "string" - ] - }, - "impressions": { - "type": [ - "null", - "string" - ] - }, - "blocked_reason": { - "type": [ - "null", - "string" - ] - }, - "blocked_reason_value": { - "type": [ - "null", - "string" - ] - }, - "blocked_reason_rule": { - "type": [ - "null", - "string" - ] - }, - "blocked_sub_reason": { - "type": [ - "null", - "string" - ] - }, - "rejected_reason": { - "type": [ - "null", - "string" - ] - }, - "rejected_reason_value": { - "type": [ - "null", - "string" - ] - } + "type": "object", + "properties": { + "attributed_touch_type": { + "type": ["null", "string"] + }, + "attributed_touch_time": { + "type": ["null", "string"], + "format": "date-time" + }, + "install_time": { + "type": ["null", "string"], + "format": "date-time" + }, + "event_time": { + "type": ["null", "string"], + "format": "date-time" + }, + "event_name": { + "type": ["null", "string"] + }, + "event_value": { + "type": ["null", "string"] + }, + "event_revenue": { + "type": ["null", "string"] + }, + "event_revenue_currency": { + "type": ["null", "string"] + }, + "event_revenue_usd": { + "type": ["null", "string"] + }, + "event_source": { + "type": ["null", "string"] + }, + "is_receipt_validated": { + "type": ["null", "boolean"] + }, + "af_prt": { + "type": ["null", "string"] + }, + "media_source": { + "type": ["null", "string"] + }, + "af_channel": { + "type": ["null", "string"] + }, + "af_keywords": { + "type": ["null", "string"] + }, + "campaign": { + "type": ["null", "string"] + }, + "af_c_id": { + "type": ["null", "string"] + }, + "af_adset": { + "type": ["null", "string"] + }, + "af_adset_id": { + "type": ["null", "string"] + }, + "af_ad": { + "type": ["null", "string"] + }, + "af_ad_id": { + "type": ["null", "string"] + }, + "af_ad_type": { + "type": ["null", "string"] + }, + "af_siteid": { + "type": ["null", "string"] + }, + "af_sub_siteid": { + "type": ["null", "string"] + }, + "af_sub1": { + "type": ["null", "string"] + }, + "af_sub2": { + "type": ["null", "string"] + }, + "af_sub3": { + "type": ["null", "string"] + }, + "af_sub4": { + "type": ["null", "string"] + }, + "af_sub5": { + "type": ["null", "string"] + }, + "af_cost_model": { + "type": ["null", "string"] + }, + "af_cost_value": { + "type": ["null", "string"] + }, + "af_cost_currency": { + "type": ["null", "string"] + }, + "contributor1_af_prt": { + "type": ["null", "string"] + }, + "contributor1_media_source": { + "type": ["null", "string"] + }, + "contributor1_campaign": { + "type": ["null", "string"] + }, + "contributor1_touch_type": { + "type": ["null", "string"] + }, + "contributor1_touch_time": { + "type": ["null", "string"], + "format": "date-time" + }, + "contributor2_af_prt": { + "type": ["null", "string"] + }, + "contributor2_media_source": { + "type": ["null", "string"] + }, + "contributor2_campaign": { + "type": ["null", "string"] + }, + "contributor2_touch_type": { + "type": ["null", "string"] + }, + "contributor2_touch_time": { + "type": ["null", "string"], + "format": "date-time" + }, + "contributor3_af_prt": { + "type": ["null", "string"] + }, + "contributor3_media_source": { + "type": ["null", "string"] + }, + "contributor3_campaign": { + "type": ["null", "string"] + }, + "contributor3_touch_type": { + "type": ["null", "string"] + }, + "contributor3_touch_time": { + "type": ["null", "string"], + "format": "date-time" + }, + "region": { + "type": ["null", "string"] + }, + "country_code": { + "type": ["null", "string"] + }, + "state": { + "type": ["null", "string"] + }, + "city": { + "type": ["null", "string"] + }, + "postal_code": { + "type": ["null", "string"] + }, + "dma": { + "type": ["null", "string"] + }, + "ip": { + "type": ["null", "string"] + }, + "wifi": { + "type": ["null", "boolean"] + }, + "operator": { + "type": ["null", "string"] + }, + "carrier": { + "type": ["null", "string"] + }, + "language": { + "type": ["null", "string"] + }, + "appsflyer_id": { + "type": ["null", "string"] + }, + "advertising_id": { + "type": ["null", "string"] + }, + "idfa": { + "type": ["null", "string"] + }, + "android_id": { + "type": ["null", "string"] + }, + "customer_user_id": { + "type": ["null", "string"] + }, + "imei": { + "type": ["null", "string"] + }, + "idfv": { + "type": ["null", "string"] + }, + "platform": { + "type": ["null", "string"] + }, + "device_type": { + "type": ["null", "string"] + }, + "os_version": { + "type": ["null", "string"] + }, + "app_version": { + "type": ["null", "string"] + }, + "sdk_version": { + "type": ["null", "string"] + }, + "app_id": { + "type": ["null", "string"] + }, + "app_name": { + "type": ["null", "string"] + }, + "bundle_id": { + "type": ["null", "string"] + }, + "is_retargeting": { + "type": ["null", "boolean"] + }, + "retargeting_conversion_type": { + "type": ["null", "string"] + }, + "af_attribution_lookback": { + "type": ["null", "string"] + }, + "af_reengagement_window": { + "type": ["null", "string"] + }, + "is_primary_attribution": { + "type": ["null", "boolean"] + }, + "user_agent": { + "type": ["null", "string"] + }, + "http_referrer": { + "type": ["null", "string"] + }, + "original_url": { + "type": ["null", "string"] + }, + "app_type": { + "type": ["null", "string"] + }, + "custom_data": { + "type": ["null", "string"] + }, + "network_account_id": { + "type": ["null", "string"] + }, + "install_app_store": { + "type": ["null", "string"] + }, + "contributor1_match_type": { + "type": ["null", "string"] + }, + "contributor2_match_type": { + "type": ["null", "string"] + }, + "contributor3_match_type": { + "type": ["null", "string"] + }, + "campaign_type": { + "type": ["null", "string"] + }, + "conversion_type": { + "type": ["null", "string"] + }, + "match_type": { + "type": ["null", "string"] + }, + "gp_referrer": { + "type": ["null", "string"] + }, + "gp_click_time": { + "type": ["null", "string"], + "format": "date-time" + }, + "gp_install_begin": { + "type": ["null", "string"], + "format": "date-time" + }, + "gp_broadcast_referrer": { + "type": ["null", "string"] + }, + "keyword_match_type": { + "type": ["null", "string"] + }, + "keyword_id": { + "type": ["null", "string"] + }, + "att": { + "type": ["null", "string"] + }, + "amazon_aid": { + "type": ["null", "string"] + }, + "device_category": { + "type": ["null", "string"] + }, + "device_model": { + "type": ["null", "string"] + }, + "device_download_time": { + "type": ["null", "string"], + "format": "date-time" + }, + "deeplink_url": { + "type": ["null", "string"] + }, + "oaid": { + "type": ["null", "string"] + }, + "is_lat": { + "type": ["null", "boolean"] + }, + "store_reinstall": { + "type": ["null", "boolean"] + }, + "placement": { + "type": ["null", "string"] + }, + "mediation_network": { + "type": ["null", "string"] + }, + "segment": { + "type": ["null", "string"] + }, + "ad_unit": { + "type": ["null", "string"] + }, + "monetization_network": { + "type": ["null", "string"] + }, + "impressions": { + "type": ["null", "string"] + }, + "blocked_reason": { + "type": ["null", "string"] + }, + "blocked_reason_value": { + "type": ["null", "string"] + }, + "blocked_reason_rule": { + "type": ["null", "string"] + }, + "blocked_sub_reason": { + "type": ["null", "string"] + }, + "rejected_reason": { + "type": ["null", "string"] + }, + "rejected_reason_value": { + "type": ["null", "string"] } -} \ No newline at end of file + } +} diff --git a/airbyte-integrations/connectors/source-appsflyer/source_appsflyer/schemas/installs.json b/airbyte-integrations/connectors/source-appsflyer/source_appsflyer/schemas/installs.json index 5ba12bf07ccea..7abb262666746 100644 --- a/airbyte-integrations/connectors/source-appsflyer/source_appsflyer/schemas/installs.json +++ b/airbyte-integrations/connectors/source-appsflyer/source_appsflyer/schemas/installs.json @@ -1,722 +1,368 @@ { - "type": "object", - "properties": { - "attributed_touch_type": { - "type": [ - "null", - "string" - ] - }, - "attributed_touch_time": { - "type": [ - "null", - "string" - ], - "format": "date-time" - }, - "install_time": { - "type": [ - "null", - "string" - ], - "format": "date-time" - }, - "event_time": { - "type": [ - "null", - "string" - ], - "format": "date-time" - }, - "event_name": { - "type": [ - "null", - "string" - ] - }, - "event_value": { - "type": [ - "null", - "string" - ] - }, - "event_revenue": { - "type": [ - "null", - "string" - ] - }, - "event_revenue_currency": { - "type": [ - "null", - "string" - ] - }, - "event_revenue_usd": { - "type": [ - "null", - "string" - ] - }, - "event_source": { - "type": [ - "null", - "string" - ] - }, - "is_receipt_validated": { - "type": [ - "null", - "boolean" - ] - }, - "af_prt": { - "type": [ - "null", - "string" - ] - }, - "media_source": { - "type": [ - "null", - "string" - ] - }, - "af_channel": { - "type": [ - "null", - "string" - ] - }, - "af_keywords": { - "type": [ - "null", - "string" - ] - }, - "campaign": { - "type": [ - "null", - "string" - ] - }, - "af_c_id": { - "type": [ - "null", - "string" - ] - }, - "af_adset": { - "type": [ - "null", - "string" - ] - }, - "af_adset_id": { - "type": [ - "null", - "string" - ] - }, - "af_ad": { - "type": [ - "null", - "string" - ] - }, - "af_ad_id": { - "type": [ - "null", - "string" - ] - }, - "af_ad_type": { - "type": [ - "null", - "string" - ] - }, - "af_siteid": { - "type": [ - "null", - "string" - ] - }, - "af_sub_siteid": { - "type": [ - "null", - "string" - ] - }, - "af_sub1": { - "type": [ - "null", - "string" - ] - }, - "af_sub2": { - "type": [ - "null", - "string" - ] - }, - "af_sub3": { - "type": [ - "null", - "string" - ] - }, - "af_sub4": { - "type": [ - "null", - "string" - ] - }, - "af_sub5": { - "type": [ - "null", - "string" - ] - }, - "af_cost_model": { - "type": [ - "null", - "string" - ] - }, - "af_cost_value": { - "type": [ - "null", - "string" - ] - }, - "af_cost_currency": { - "type": [ - "null", - "string" - ] - }, - "contributor1_af_prt": { - "type": [ - "null", - "string" - ] - }, - "contributor1_media_source": { - "type": [ - "null", - "string" - ] - }, - "contributor1_campaign": { - "type": [ - "null", - "string" - ] - }, - "contributor1_touch_type": { - "type": [ - "null", - "string" - ] - }, - "contributor1_touch_time": { - "type": [ - "null", - "string" - ], - "format": "date-time" - }, - "contributor2_af_prt": { - "type": [ - "null", - "string" - ] - }, - "contributor2_media_source": { - "type": [ - "null", - "string" - ] - }, - "contributor2_campaign": { - "type": [ - "null", - "string" - ] - }, - "contributor2_touch_type": { - "type": [ - "null", - "string" - ] - }, - "contributor2_touch_time": { - "type": [ - "null", - "string" - ], - "format": "date-time" - }, - "contributor3_af_prt": { - "type": [ - "null", - "string" - ] - }, - "contributor3_media_source": { - "type": [ - "null", - "string" - ] - }, - "contributor3_campaign": { - "type": [ - "null", - "string" - ] - }, - "contributor3_touch_type": { - "type": [ - "null", - "string" - ] - }, - "contributor3_touch_time": { - "type": [ - "null", - "string" - ], - "format": "date-time" - }, - "region": { - "type": [ - "null", - "string" - ] - }, - "country_code": { - "type": [ - "null", - "string" - ] - }, - "state": { - "type": [ - "null", - "string" - ] - }, - "city": { - "type": [ - "null", - "string" - ] - }, - "postal_code": { - "type": [ - "null", - "string" - ] - }, - "dma": { - "type": [ - "null", - "string" - ] - }, - "ip": { - "type": [ - "null", - "string" - ] - }, - "wifi": { - "type": [ - "null", - "boolean" - ] - }, - "operator": { - "type": [ - "null", - "string" - ] - }, - "carrier": { - "type": [ - "null", - "string" - ] - }, - "language": { - "type": [ - "null", - "string" - ] - }, - "appsflyer_id": { - "type": [ - "null", - "string" - ] - }, - "advertising_id": { - "type": [ - "null", - "string" - ] - }, - "idfa": { - "type": [ - "null", - "string" - ] - }, - "android_id": { - "type": [ - "null", - "string" - ] - }, - "customer_user_id": { - "type": [ - "null", - "string" - ] - }, - "imei": { - "type": [ - "null", - "string" - ] - }, - "idfv": { - "type": [ - "null", - "string" - ] - }, - "platform": { - "type": [ - "null", - "string" - ] - }, - "device_type": { - "type": [ - "null", - "string" - ] - }, - "os_version": { - "type": [ - "null", - "string" - ] - }, - "app_version": { - "type": [ - "null", - "string" - ] - }, - "sdk_version": { - "type": [ - "null", - "string" - ] - }, - "app_id": { - "type": [ - "null", - "string" - ] - }, - "app_name": { - "type": [ - "null", - "string" - ] - }, - "bundle_id": { - "type": [ - "null", - "string" - ] - }, - "is_retargeting": { - "type": [ - "null", - "boolean" - ] - }, - "retargeting_conversion_type": { - "type": [ - "null", - "string" - ] - }, - "af_attribution_lookback": { - "type": [ - "null", - "string" - ] - }, - "af_reengagement_window": { - "type": [ - "null", - "string" - ] - }, - "is_primary_attribution": { - "type": [ - "null", - "boolean" - ] - }, - "user_agent": { - "type": [ - "null", - "string" - ] - }, - "http_referrer": { - "type": [ - "null", - "string" - ] - }, - "original_url": { - "type": [ - "null", - "string" - ] - }, - "app_type": { - "type": [ - "null", - "string" - ] - }, - "custom_data": { - "type": [ - "null", - "string" - ] - }, - "network_account_id": { - "type": [ - "null", - "string" - ] - }, - "install_app_store": { - "type": [ - "null", - "string" - ] - }, - "contributor1_match_type": { - "type": [ - "null", - "string" - ] - }, - "contributor2_match_type": { - "type": [ - "null", - "string" - ] - }, - "contributor3_match_type": { - "type": [ - "null", - "string" - ] - }, - "campaign_type": { - "type": [ - "null", - "string" - ] - }, - "conversion_type": { - "type": [ - "null", - "string" - ] - }, - "match_type": { - "type": [ - "null", - "string" - ] - }, - "gp_referrer": { - "type": [ - "null", - "string" - ] - }, - "gp_click_time": { - "type": [ - "null", - "string" - ], - "format": "date-time" - }, - "gp_install_begin": { - "type": [ - "null", - "string" - ], - "format": "date-time" - }, - "gp_broadcast_referrer": { - "type": [ - "null", - "string" - ] - }, - "keyword_match_type": { - "type": [ - "null", - "string" - ] - }, - "keyword_id": { - "type": [ - "null", - "string" - ] - }, - "att": { - "type": [ - "null", - "string" - ] - }, - "amazon_aid": { - "type": [ - "null", - "string" - ] - }, - "device_category": { - "type": [ - "null", - "string" - ] - }, - "device_model": { - "type": [ - "null", - "string" - ] - }, - "device_download_time": { - "type": [ - "null", - "string" - ], - "format": "date-time" - }, - "deeplink_url": { - "type": [ - "null", - "string" - ] - }, - "oaid": { - "type": [ - "null", - "string" - ] - }, - "is_lat": { - "type": [ - "null", - "boolean" - ] - }, - "store_reinstall": { - "type": [ - "null", - "boolean" - ] - }, - "placement": { - "type": [ - "null", - "string" - ] - }, - "mediation_network": { - "type": [ - "null", - "string" - ] - }, - "segment": { - "type": [ - "null", - "string" - ] - }, - "ad_unit": { - "type": [ - "null", - "string" - ] - }, - "monetization_network": { - "type": [ - "null", - "string" - ] - }, - "impressions": { - "type": [ - "null", - "string" - ] - }, - "blocked_reason": { - "type": [ - "null", - "string" - ] - }, - "blocked_reason_value": { - "type": [ - "null", - "string" - ] - }, - "blocked_reason_rule": { - "type": [ - "null", - "string" - ] - }, - "blocked_sub_reason": { - "type": [ - "null", - "string" - ] - }, - "rejected_reason": { - "type": [ - "null", - "string" - ] - }, - "rejected_reason_value": { - "type": [ - "null", - "string" - ] - } + "type": "object", + "properties": { + "attributed_touch_type": { + "type": ["null", "string"] + }, + "attributed_touch_time": { + "type": ["null", "string"], + "format": "date-time" + }, + "install_time": { + "type": ["null", "string"], + "format": "date-time" + }, + "event_time": { + "type": ["null", "string"], + "format": "date-time" + }, + "event_name": { + "type": ["null", "string"] + }, + "event_value": { + "type": ["null", "string"] + }, + "event_revenue": { + "type": ["null", "string"] + }, + "event_revenue_currency": { + "type": ["null", "string"] + }, + "event_revenue_usd": { + "type": ["null", "string"] + }, + "event_source": { + "type": ["null", "string"] + }, + "is_receipt_validated": { + "type": ["null", "boolean"] + }, + "af_prt": { + "type": ["null", "string"] + }, + "media_source": { + "type": ["null", "string"] + }, + "af_channel": { + "type": ["null", "string"] + }, + "af_keywords": { + "type": ["null", "string"] + }, + "campaign": { + "type": ["null", "string"] + }, + "af_c_id": { + "type": ["null", "string"] + }, + "af_adset": { + "type": ["null", "string"] + }, + "af_adset_id": { + "type": ["null", "string"] + }, + "af_ad": { + "type": ["null", "string"] + }, + "af_ad_id": { + "type": ["null", "string"] + }, + "af_ad_type": { + "type": ["null", "string"] + }, + "af_siteid": { + "type": ["null", "string"] + }, + "af_sub_siteid": { + "type": ["null", "string"] + }, + "af_sub1": { + "type": ["null", "string"] + }, + "af_sub2": { + "type": ["null", "string"] + }, + "af_sub3": { + "type": ["null", "string"] + }, + "af_sub4": { + "type": ["null", "string"] + }, + "af_sub5": { + "type": ["null", "string"] + }, + "af_cost_model": { + "type": ["null", "string"] + }, + "af_cost_value": { + "type": ["null", "string"] + }, + "af_cost_currency": { + "type": ["null", "string"] + }, + "contributor1_af_prt": { + "type": ["null", "string"] + }, + "contributor1_media_source": { + "type": ["null", "string"] + }, + "contributor1_campaign": { + "type": ["null", "string"] + }, + "contributor1_touch_type": { + "type": ["null", "string"] + }, + "contributor1_touch_time": { + "type": ["null", "string"], + "format": "date-time" + }, + "contributor2_af_prt": { + "type": ["null", "string"] + }, + "contributor2_media_source": { + "type": ["null", "string"] + }, + "contributor2_campaign": { + "type": ["null", "string"] + }, + "contributor2_touch_type": { + "type": ["null", "string"] + }, + "contributor2_touch_time": { + "type": ["null", "string"], + "format": "date-time" + }, + "contributor3_af_prt": { + "type": ["null", "string"] + }, + "contributor3_media_source": { + "type": ["null", "string"] + }, + "contributor3_campaign": { + "type": ["null", "string"] + }, + "contributor3_touch_type": { + "type": ["null", "string"] + }, + "contributor3_touch_time": { + "type": ["null", "string"], + "format": "date-time" + }, + "region": { + "type": ["null", "string"] + }, + "country_code": { + "type": ["null", "string"] + }, + "state": { + "type": ["null", "string"] + }, + "city": { + "type": ["null", "string"] + }, + "postal_code": { + "type": ["null", "string"] + }, + "dma": { + "type": ["null", "string"] + }, + "ip": { + "type": ["null", "string"] + }, + "wifi": { + "type": ["null", "boolean"] + }, + "operator": { + "type": ["null", "string"] + }, + "carrier": { + "type": ["null", "string"] + }, + "language": { + "type": ["null", "string"] + }, + "appsflyer_id": { + "type": ["null", "string"] + }, + "advertising_id": { + "type": ["null", "string"] + }, + "idfa": { + "type": ["null", "string"] + }, + "android_id": { + "type": ["null", "string"] + }, + "customer_user_id": { + "type": ["null", "string"] + }, + "imei": { + "type": ["null", "string"] + }, + "idfv": { + "type": ["null", "string"] + }, + "platform": { + "type": ["null", "string"] + }, + "device_type": { + "type": ["null", "string"] + }, + "os_version": { + "type": ["null", "string"] + }, + "app_version": { + "type": ["null", "string"] + }, + "sdk_version": { + "type": ["null", "string"] + }, + "app_id": { + "type": ["null", "string"] + }, + "app_name": { + "type": ["null", "string"] + }, + "bundle_id": { + "type": ["null", "string"] + }, + "is_retargeting": { + "type": ["null", "boolean"] + }, + "retargeting_conversion_type": { + "type": ["null", "string"] + }, + "af_attribution_lookback": { + "type": ["null", "string"] + }, + "af_reengagement_window": { + "type": ["null", "string"] + }, + "is_primary_attribution": { + "type": ["null", "boolean"] + }, + "user_agent": { + "type": ["null", "string"] + }, + "http_referrer": { + "type": ["null", "string"] + }, + "original_url": { + "type": ["null", "string"] + }, + "app_type": { + "type": ["null", "string"] + }, + "custom_data": { + "type": ["null", "string"] + }, + "network_account_id": { + "type": ["null", "string"] + }, + "install_app_store": { + "type": ["null", "string"] + }, + "contributor1_match_type": { + "type": ["null", "string"] + }, + "contributor2_match_type": { + "type": ["null", "string"] + }, + "contributor3_match_type": { + "type": ["null", "string"] + }, + "campaign_type": { + "type": ["null", "string"] + }, + "conversion_type": { + "type": ["null", "string"] + }, + "match_type": { + "type": ["null", "string"] + }, + "gp_referrer": { + "type": ["null", "string"] + }, + "gp_click_time": { + "type": ["null", "string"], + "format": "date-time" + }, + "gp_install_begin": { + "type": ["null", "string"], + "format": "date-time" + }, + "gp_broadcast_referrer": { + "type": ["null", "string"] + }, + "keyword_match_type": { + "type": ["null", "string"] + }, + "keyword_id": { + "type": ["null", "string"] + }, + "att": { + "type": ["null", "string"] + }, + "amazon_aid": { + "type": ["null", "string"] + }, + "device_category": { + "type": ["null", "string"] + }, + "device_model": { + "type": ["null", "string"] + }, + "device_download_time": { + "type": ["null", "string"], + "format": "date-time" + }, + "deeplink_url": { + "type": ["null", "string"] + }, + "oaid": { + "type": ["null", "string"] + }, + "is_lat": { + "type": ["null", "boolean"] + }, + "store_reinstall": { + "type": ["null", "boolean"] + }, + "placement": { + "type": ["null", "string"] + }, + "mediation_network": { + "type": ["null", "string"] + }, + "segment": { + "type": ["null", "string"] + }, + "ad_unit": { + "type": ["null", "string"] + }, + "monetization_network": { + "type": ["null", "string"] + }, + "impressions": { + "type": ["null", "string"] + }, + "blocked_reason": { + "type": ["null", "string"] + }, + "blocked_reason_value": { + "type": ["null", "string"] + }, + "blocked_reason_rule": { + "type": ["null", "string"] + }, + "blocked_sub_reason": { + "type": ["null", "string"] + }, + "rejected_reason": { + "type": ["null", "string"] + }, + "rejected_reason_value": { + "type": ["null", "string"] } -} \ No newline at end of file + } +} diff --git a/airbyte-integrations/connectors/source-appsflyer/source_appsflyer/schemas/partners_report.json b/airbyte-integrations/connectors/source-appsflyer/source_appsflyer/schemas/partners_report.json index ffa4713a524f3..d6a30819cab1d 100644 --- a/airbyte-integrations/connectors/source-appsflyer/source_appsflyer/schemas/partners_report.json +++ b/airbyte-integrations/connectors/source-appsflyer/source_appsflyer/schemas/partners_report.json @@ -1,234 +1,120 @@ { - "type": "object", - "properties": { - "date": { - "type": [ - "null", - "string" - ], - "format": "date" - }, - "af_prt": { - "type": [ - "null", - "string" - ] - }, - "media_source": { - "type": [ - "null", - "string" - ] - }, - "campaign": { - "type": [ - "null", - "string" - ] - }, - "impressions": { - "type": [ - "null", - "number" - ] - }, - "clicks": { - "type": [ - "null", - "number" - ] - }, - "click_through_rate": { - "type": [ - "null", - "number" - ] - }, - "installs": { - "type": [ - "null", - "number" - ] - }, - "conversion_rate": { - "type": [ - "null", - "number" - ] - }, - "sessions": { - "type": [ - "null", - "number" - ] - }, - "loyal_users": { - "type": [ - "null", - "number" - ] - }, - "loyal_users_rate": { - "type": [ - "null", - "number" - ] - }, - "total_revenue": { - "type": [ - "null", - "number" - ] - }, - "total_cost": { - "type": [ - "null", - "number" - ] - }, - "return_on_investment": { - "type": [ - "null", - "number" - ] - }, - "average_revenue_per_user": { - "type": [ - "null", - "number" - ] - }, - "average_ecpi": { - "type": [ - "null", - "number" - ] - }, - "account_login_unique_users": { - "type": [ - "null", - "number" - ] - }, - "account_login_event_counter": { - "type": [ - "null", - "number" - ] - }, - "account_login_sales": { - "type": [ - "null", - "number" - ] - }, - "af_complete_registration_unique_users": { - "type": [ - "null", - "number" - ] - }, - "af_complete_registration_event_counter": { - "type": [ - "null", - "number" - ] - }, - "af_complete_registration_sales": { - "type": [ - "null", - "number" - ] - }, - "af_purchase_registration_unique_users": { - "type": [ - "null", - "number" - ] - }, - "af_purchase_registration_event_counter": { - "type": [ - "null", - "number" - ] - }, - "af_purchase_registration_sales": { - "type": [ - "null", - "number" - ] - }, - "checkout_success_unique_users": { - "type": [ - "null", - "number" - ] - }, - "checkout_success_event_counter": { - "type": [ - "null", - "number" - ] - }, - "checkout_success_sales": { - "type": [ - "null", - "number" - ] - }, - "create_product_complete_unique_users": { - "type": [ - "null", - "number" - ] - }, - "create_product_complete_event_counter": { - "type": [ - "null", - "number" - ] - }, - "create_product_complete_sales": { - "type": [ - "null", - "number" - ] - }, - "init_appsflyer_id_unique_users": { - "type": [ - "null", - "number" - ] - }, - "init_appsflyer_id_event_counter": { - "type": [ - "null", - "number" - ] - }, - "init_appsflyer_id_sales": { - "type": [ - "null", - "number" - ] - }, - "pay_premium_pkg_unique_users": { - "type": [ - "null", - "number" - ] - }, - "pay_premium_pkg_event_counter": { - "type": [ - "null", - "number" - ] - }, - "pay_premium_pkg_sales": { - "type": [ - "null", - "number" - ] - } + "type": "object", + "properties": { + "date": { + "type": ["null", "string"], + "format": "date" + }, + "af_prt": { + "type": ["null", "string"] + }, + "media_source": { + "type": ["null", "string"] + }, + "campaign": { + "type": ["null", "string"] + }, + "impressions": { + "type": ["null", "number"] + }, + "clicks": { + "type": ["null", "number"] + }, + "click_through_rate": { + "type": ["null", "number"] + }, + "installs": { + "type": ["null", "number"] + }, + "conversion_rate": { + "type": ["null", "number"] + }, + "sessions": { + "type": ["null", "number"] + }, + "loyal_users": { + "type": ["null", "number"] + }, + "loyal_users_rate": { + "type": ["null", "number"] + }, + "total_revenue": { + "type": ["null", "number"] + }, + "total_cost": { + "type": ["null", "number"] + }, + "return_on_investment": { + "type": ["null", "number"] + }, + "average_revenue_per_user": { + "type": ["null", "number"] + }, + "average_ecpi": { + "type": ["null", "number"] + }, + "account_login_unique_users": { + "type": ["null", "number"] + }, + "account_login_event_counter": { + "type": ["null", "number"] + }, + "account_login_sales": { + "type": ["null", "number"] + }, + "af_complete_registration_unique_users": { + "type": ["null", "number"] + }, + "af_complete_registration_event_counter": { + "type": ["null", "number"] + }, + "af_complete_registration_sales": { + "type": ["null", "number"] + }, + "af_purchase_registration_unique_users": { + "type": ["null", "number"] + }, + "af_purchase_registration_event_counter": { + "type": ["null", "number"] + }, + "af_purchase_registration_sales": { + "type": ["null", "number"] + }, + "checkout_success_unique_users": { + "type": ["null", "number"] + }, + "checkout_success_event_counter": { + "type": ["null", "number"] + }, + "checkout_success_sales": { + "type": ["null", "number"] + }, + "create_product_complete_unique_users": { + "type": ["null", "number"] + }, + "create_product_complete_event_counter": { + "type": ["null", "number"] + }, + "create_product_complete_sales": { + "type": ["null", "number"] + }, + "init_appsflyer_id_unique_users": { + "type": ["null", "number"] + }, + "init_appsflyer_id_event_counter": { + "type": ["null", "number"] + }, + "init_appsflyer_id_sales": { + "type": ["null", "number"] + }, + "pay_premium_pkg_unique_users": { + "type": ["null", "number"] + }, + "pay_premium_pkg_event_counter": { + "type": ["null", "number"] + }, + "pay_premium_pkg_sales": { + "type": ["null", "number"] } -} \ No newline at end of file + } +} diff --git a/airbyte-integrations/connectors/source-appsflyer/source_appsflyer/schemas/retargeting_conversions.json b/airbyte-integrations/connectors/source-appsflyer/source_appsflyer/schemas/retargeting_conversions.json index 5ba12bf07ccea..7abb262666746 100644 --- a/airbyte-integrations/connectors/source-appsflyer/source_appsflyer/schemas/retargeting_conversions.json +++ b/airbyte-integrations/connectors/source-appsflyer/source_appsflyer/schemas/retargeting_conversions.json @@ -1,722 +1,368 @@ { - "type": "object", - "properties": { - "attributed_touch_type": { - "type": [ - "null", - "string" - ] - }, - "attributed_touch_time": { - "type": [ - "null", - "string" - ], - "format": "date-time" - }, - "install_time": { - "type": [ - "null", - "string" - ], - "format": "date-time" - }, - "event_time": { - "type": [ - "null", - "string" - ], - "format": "date-time" - }, - "event_name": { - "type": [ - "null", - "string" - ] - }, - "event_value": { - "type": [ - "null", - "string" - ] - }, - "event_revenue": { - "type": [ - "null", - "string" - ] - }, - "event_revenue_currency": { - "type": [ - "null", - "string" - ] - }, - "event_revenue_usd": { - "type": [ - "null", - "string" - ] - }, - "event_source": { - "type": [ - "null", - "string" - ] - }, - "is_receipt_validated": { - "type": [ - "null", - "boolean" - ] - }, - "af_prt": { - "type": [ - "null", - "string" - ] - }, - "media_source": { - "type": [ - "null", - "string" - ] - }, - "af_channel": { - "type": [ - "null", - "string" - ] - }, - "af_keywords": { - "type": [ - "null", - "string" - ] - }, - "campaign": { - "type": [ - "null", - "string" - ] - }, - "af_c_id": { - "type": [ - "null", - "string" - ] - }, - "af_adset": { - "type": [ - "null", - "string" - ] - }, - "af_adset_id": { - "type": [ - "null", - "string" - ] - }, - "af_ad": { - "type": [ - "null", - "string" - ] - }, - "af_ad_id": { - "type": [ - "null", - "string" - ] - }, - "af_ad_type": { - "type": [ - "null", - "string" - ] - }, - "af_siteid": { - "type": [ - "null", - "string" - ] - }, - "af_sub_siteid": { - "type": [ - "null", - "string" - ] - }, - "af_sub1": { - "type": [ - "null", - "string" - ] - }, - "af_sub2": { - "type": [ - "null", - "string" - ] - }, - "af_sub3": { - "type": [ - "null", - "string" - ] - }, - "af_sub4": { - "type": [ - "null", - "string" - ] - }, - "af_sub5": { - "type": [ - "null", - "string" - ] - }, - "af_cost_model": { - "type": [ - "null", - "string" - ] - }, - "af_cost_value": { - "type": [ - "null", - "string" - ] - }, - "af_cost_currency": { - "type": [ - "null", - "string" - ] - }, - "contributor1_af_prt": { - "type": [ - "null", - "string" - ] - }, - "contributor1_media_source": { - "type": [ - "null", - "string" - ] - }, - "contributor1_campaign": { - "type": [ - "null", - "string" - ] - }, - "contributor1_touch_type": { - "type": [ - "null", - "string" - ] - }, - "contributor1_touch_time": { - "type": [ - "null", - "string" - ], - "format": "date-time" - }, - "contributor2_af_prt": { - "type": [ - "null", - "string" - ] - }, - "contributor2_media_source": { - "type": [ - "null", - "string" - ] - }, - "contributor2_campaign": { - "type": [ - "null", - "string" - ] - }, - "contributor2_touch_type": { - "type": [ - "null", - "string" - ] - }, - "contributor2_touch_time": { - "type": [ - "null", - "string" - ], - "format": "date-time" - }, - "contributor3_af_prt": { - "type": [ - "null", - "string" - ] - }, - "contributor3_media_source": { - "type": [ - "null", - "string" - ] - }, - "contributor3_campaign": { - "type": [ - "null", - "string" - ] - }, - "contributor3_touch_type": { - "type": [ - "null", - "string" - ] - }, - "contributor3_touch_time": { - "type": [ - "null", - "string" - ], - "format": "date-time" - }, - "region": { - "type": [ - "null", - "string" - ] - }, - "country_code": { - "type": [ - "null", - "string" - ] - }, - "state": { - "type": [ - "null", - "string" - ] - }, - "city": { - "type": [ - "null", - "string" - ] - }, - "postal_code": { - "type": [ - "null", - "string" - ] - }, - "dma": { - "type": [ - "null", - "string" - ] - }, - "ip": { - "type": [ - "null", - "string" - ] - }, - "wifi": { - "type": [ - "null", - "boolean" - ] - }, - "operator": { - "type": [ - "null", - "string" - ] - }, - "carrier": { - "type": [ - "null", - "string" - ] - }, - "language": { - "type": [ - "null", - "string" - ] - }, - "appsflyer_id": { - "type": [ - "null", - "string" - ] - }, - "advertising_id": { - "type": [ - "null", - "string" - ] - }, - "idfa": { - "type": [ - "null", - "string" - ] - }, - "android_id": { - "type": [ - "null", - "string" - ] - }, - "customer_user_id": { - "type": [ - "null", - "string" - ] - }, - "imei": { - "type": [ - "null", - "string" - ] - }, - "idfv": { - "type": [ - "null", - "string" - ] - }, - "platform": { - "type": [ - "null", - "string" - ] - }, - "device_type": { - "type": [ - "null", - "string" - ] - }, - "os_version": { - "type": [ - "null", - "string" - ] - }, - "app_version": { - "type": [ - "null", - "string" - ] - }, - "sdk_version": { - "type": [ - "null", - "string" - ] - }, - "app_id": { - "type": [ - "null", - "string" - ] - }, - "app_name": { - "type": [ - "null", - "string" - ] - }, - "bundle_id": { - "type": [ - "null", - "string" - ] - }, - "is_retargeting": { - "type": [ - "null", - "boolean" - ] - }, - "retargeting_conversion_type": { - "type": [ - "null", - "string" - ] - }, - "af_attribution_lookback": { - "type": [ - "null", - "string" - ] - }, - "af_reengagement_window": { - "type": [ - "null", - "string" - ] - }, - "is_primary_attribution": { - "type": [ - "null", - "boolean" - ] - }, - "user_agent": { - "type": [ - "null", - "string" - ] - }, - "http_referrer": { - "type": [ - "null", - "string" - ] - }, - "original_url": { - "type": [ - "null", - "string" - ] - }, - "app_type": { - "type": [ - "null", - "string" - ] - }, - "custom_data": { - "type": [ - "null", - "string" - ] - }, - "network_account_id": { - "type": [ - "null", - "string" - ] - }, - "install_app_store": { - "type": [ - "null", - "string" - ] - }, - "contributor1_match_type": { - "type": [ - "null", - "string" - ] - }, - "contributor2_match_type": { - "type": [ - "null", - "string" - ] - }, - "contributor3_match_type": { - "type": [ - "null", - "string" - ] - }, - "campaign_type": { - "type": [ - "null", - "string" - ] - }, - "conversion_type": { - "type": [ - "null", - "string" - ] - }, - "match_type": { - "type": [ - "null", - "string" - ] - }, - "gp_referrer": { - "type": [ - "null", - "string" - ] - }, - "gp_click_time": { - "type": [ - "null", - "string" - ], - "format": "date-time" - }, - "gp_install_begin": { - "type": [ - "null", - "string" - ], - "format": "date-time" - }, - "gp_broadcast_referrer": { - "type": [ - "null", - "string" - ] - }, - "keyword_match_type": { - "type": [ - "null", - "string" - ] - }, - "keyword_id": { - "type": [ - "null", - "string" - ] - }, - "att": { - "type": [ - "null", - "string" - ] - }, - "amazon_aid": { - "type": [ - "null", - "string" - ] - }, - "device_category": { - "type": [ - "null", - "string" - ] - }, - "device_model": { - "type": [ - "null", - "string" - ] - }, - "device_download_time": { - "type": [ - "null", - "string" - ], - "format": "date-time" - }, - "deeplink_url": { - "type": [ - "null", - "string" - ] - }, - "oaid": { - "type": [ - "null", - "string" - ] - }, - "is_lat": { - "type": [ - "null", - "boolean" - ] - }, - "store_reinstall": { - "type": [ - "null", - "boolean" - ] - }, - "placement": { - "type": [ - "null", - "string" - ] - }, - "mediation_network": { - "type": [ - "null", - "string" - ] - }, - "segment": { - "type": [ - "null", - "string" - ] - }, - "ad_unit": { - "type": [ - "null", - "string" - ] - }, - "monetization_network": { - "type": [ - "null", - "string" - ] - }, - "impressions": { - "type": [ - "null", - "string" - ] - }, - "blocked_reason": { - "type": [ - "null", - "string" - ] - }, - "blocked_reason_value": { - "type": [ - "null", - "string" - ] - }, - "blocked_reason_rule": { - "type": [ - "null", - "string" - ] - }, - "blocked_sub_reason": { - "type": [ - "null", - "string" - ] - }, - "rejected_reason": { - "type": [ - "null", - "string" - ] - }, - "rejected_reason_value": { - "type": [ - "null", - "string" - ] - } + "type": "object", + "properties": { + "attributed_touch_type": { + "type": ["null", "string"] + }, + "attributed_touch_time": { + "type": ["null", "string"], + "format": "date-time" + }, + "install_time": { + "type": ["null", "string"], + "format": "date-time" + }, + "event_time": { + "type": ["null", "string"], + "format": "date-time" + }, + "event_name": { + "type": ["null", "string"] + }, + "event_value": { + "type": ["null", "string"] + }, + "event_revenue": { + "type": ["null", "string"] + }, + "event_revenue_currency": { + "type": ["null", "string"] + }, + "event_revenue_usd": { + "type": ["null", "string"] + }, + "event_source": { + "type": ["null", "string"] + }, + "is_receipt_validated": { + "type": ["null", "boolean"] + }, + "af_prt": { + "type": ["null", "string"] + }, + "media_source": { + "type": ["null", "string"] + }, + "af_channel": { + "type": ["null", "string"] + }, + "af_keywords": { + "type": ["null", "string"] + }, + "campaign": { + "type": ["null", "string"] + }, + "af_c_id": { + "type": ["null", "string"] + }, + "af_adset": { + "type": ["null", "string"] + }, + "af_adset_id": { + "type": ["null", "string"] + }, + "af_ad": { + "type": ["null", "string"] + }, + "af_ad_id": { + "type": ["null", "string"] + }, + "af_ad_type": { + "type": ["null", "string"] + }, + "af_siteid": { + "type": ["null", "string"] + }, + "af_sub_siteid": { + "type": ["null", "string"] + }, + "af_sub1": { + "type": ["null", "string"] + }, + "af_sub2": { + "type": ["null", "string"] + }, + "af_sub3": { + "type": ["null", "string"] + }, + "af_sub4": { + "type": ["null", "string"] + }, + "af_sub5": { + "type": ["null", "string"] + }, + "af_cost_model": { + "type": ["null", "string"] + }, + "af_cost_value": { + "type": ["null", "string"] + }, + "af_cost_currency": { + "type": ["null", "string"] + }, + "contributor1_af_prt": { + "type": ["null", "string"] + }, + "contributor1_media_source": { + "type": ["null", "string"] + }, + "contributor1_campaign": { + "type": ["null", "string"] + }, + "contributor1_touch_type": { + "type": ["null", "string"] + }, + "contributor1_touch_time": { + "type": ["null", "string"], + "format": "date-time" + }, + "contributor2_af_prt": { + "type": ["null", "string"] + }, + "contributor2_media_source": { + "type": ["null", "string"] + }, + "contributor2_campaign": { + "type": ["null", "string"] + }, + "contributor2_touch_type": { + "type": ["null", "string"] + }, + "contributor2_touch_time": { + "type": ["null", "string"], + "format": "date-time" + }, + "contributor3_af_prt": { + "type": ["null", "string"] + }, + "contributor3_media_source": { + "type": ["null", "string"] + }, + "contributor3_campaign": { + "type": ["null", "string"] + }, + "contributor3_touch_type": { + "type": ["null", "string"] + }, + "contributor3_touch_time": { + "type": ["null", "string"], + "format": "date-time" + }, + "region": { + "type": ["null", "string"] + }, + "country_code": { + "type": ["null", "string"] + }, + "state": { + "type": ["null", "string"] + }, + "city": { + "type": ["null", "string"] + }, + "postal_code": { + "type": ["null", "string"] + }, + "dma": { + "type": ["null", "string"] + }, + "ip": { + "type": ["null", "string"] + }, + "wifi": { + "type": ["null", "boolean"] + }, + "operator": { + "type": ["null", "string"] + }, + "carrier": { + "type": ["null", "string"] + }, + "language": { + "type": ["null", "string"] + }, + "appsflyer_id": { + "type": ["null", "string"] + }, + "advertising_id": { + "type": ["null", "string"] + }, + "idfa": { + "type": ["null", "string"] + }, + "android_id": { + "type": ["null", "string"] + }, + "customer_user_id": { + "type": ["null", "string"] + }, + "imei": { + "type": ["null", "string"] + }, + "idfv": { + "type": ["null", "string"] + }, + "platform": { + "type": ["null", "string"] + }, + "device_type": { + "type": ["null", "string"] + }, + "os_version": { + "type": ["null", "string"] + }, + "app_version": { + "type": ["null", "string"] + }, + "sdk_version": { + "type": ["null", "string"] + }, + "app_id": { + "type": ["null", "string"] + }, + "app_name": { + "type": ["null", "string"] + }, + "bundle_id": { + "type": ["null", "string"] + }, + "is_retargeting": { + "type": ["null", "boolean"] + }, + "retargeting_conversion_type": { + "type": ["null", "string"] + }, + "af_attribution_lookback": { + "type": ["null", "string"] + }, + "af_reengagement_window": { + "type": ["null", "string"] + }, + "is_primary_attribution": { + "type": ["null", "boolean"] + }, + "user_agent": { + "type": ["null", "string"] + }, + "http_referrer": { + "type": ["null", "string"] + }, + "original_url": { + "type": ["null", "string"] + }, + "app_type": { + "type": ["null", "string"] + }, + "custom_data": { + "type": ["null", "string"] + }, + "network_account_id": { + "type": ["null", "string"] + }, + "install_app_store": { + "type": ["null", "string"] + }, + "contributor1_match_type": { + "type": ["null", "string"] + }, + "contributor2_match_type": { + "type": ["null", "string"] + }, + "contributor3_match_type": { + "type": ["null", "string"] + }, + "campaign_type": { + "type": ["null", "string"] + }, + "conversion_type": { + "type": ["null", "string"] + }, + "match_type": { + "type": ["null", "string"] + }, + "gp_referrer": { + "type": ["null", "string"] + }, + "gp_click_time": { + "type": ["null", "string"], + "format": "date-time" + }, + "gp_install_begin": { + "type": ["null", "string"], + "format": "date-time" + }, + "gp_broadcast_referrer": { + "type": ["null", "string"] + }, + "keyword_match_type": { + "type": ["null", "string"] + }, + "keyword_id": { + "type": ["null", "string"] + }, + "att": { + "type": ["null", "string"] + }, + "amazon_aid": { + "type": ["null", "string"] + }, + "device_category": { + "type": ["null", "string"] + }, + "device_model": { + "type": ["null", "string"] + }, + "device_download_time": { + "type": ["null", "string"], + "format": "date-time" + }, + "deeplink_url": { + "type": ["null", "string"] + }, + "oaid": { + "type": ["null", "string"] + }, + "is_lat": { + "type": ["null", "boolean"] + }, + "store_reinstall": { + "type": ["null", "boolean"] + }, + "placement": { + "type": ["null", "string"] + }, + "mediation_network": { + "type": ["null", "string"] + }, + "segment": { + "type": ["null", "string"] + }, + "ad_unit": { + "type": ["null", "string"] + }, + "monetization_network": { + "type": ["null", "string"] + }, + "impressions": { + "type": ["null", "string"] + }, + "blocked_reason": { + "type": ["null", "string"] + }, + "blocked_reason_value": { + "type": ["null", "string"] + }, + "blocked_reason_rule": { + "type": ["null", "string"] + }, + "blocked_sub_reason": { + "type": ["null", "string"] + }, + "rejected_reason": { + "type": ["null", "string"] + }, + "rejected_reason_value": { + "type": ["null", "string"] } -} \ No newline at end of file + } +} diff --git a/airbyte-integrations/connectors/source-appsflyer/source_appsflyer/schemas/retargeting_daily_report.json b/airbyte-integrations/connectors/source-appsflyer/source_appsflyer/schemas/retargeting_daily_report.json index 34ba493206c49..0beb699b30c97 100644 --- a/airbyte-integrations/connectors/source-appsflyer/source_appsflyer/schemas/retargeting_daily_report.json +++ b/airbyte-integrations/connectors/source-appsflyer/source_appsflyer/schemas/retargeting_daily_report.json @@ -1,84 +1,45 @@ { - "type": "object", - "properties": { - "date": { - "type": [ - "null", - "string" - ], - "format": "date" - }, - "af_prt": { - "type": [ - "null", - "string" - ] - }, - "media_source": { - "type": [ - "null", - "string" - ] - }, - "campaign": { - "type": [ - "null", - "string" - ] - }, - "clicks": { - "type": [ - "null", - "number" - ] - }, - "conversions": { - "type": [ - "null", - "number" - ] - }, - "conversion_type": { - "type": [ - "null", - "string" - ] - }, - "conversion_rate": { - "type": [ - "null", - "number" - ] - }, - "sessions": { - "type": [ - "null", - "number" - ] - }, - "loyal_users": { - "type": [ - "null", - "number" - ] - }, - "loyal_users_rate": { - "type": [ - "null", - "number" - ] - }, - "total_cost": { - "type": [ - "null", - "number" - ] - }, - "average_ecpi": { - "type": [ - "null", - "number" - ] - } + "type": "object", + "properties": { + "date": { + "type": ["null", "string"], + "format": "date" + }, + "af_prt": { + "type": ["null", "string"] + }, + "media_source": { + "type": ["null", "string"] + }, + "campaign": { + "type": ["null", "string"] + }, + "clicks": { + "type": ["null", "number"] + }, + "conversions": { + "type": ["null", "number"] + }, + "conversion_type": { + "type": ["null", "string"] + }, + "conversion_rate": { + "type": ["null", "number"] + }, + "sessions": { + "type": ["null", "number"] + }, + "loyal_users": { + "type": ["null", "number"] + }, + "loyal_users_rate": { + "type": ["null", "number"] + }, + "total_cost": { + "type": ["null", "number"] + }, + "average_ecpi": { + "type": ["null", "number"] } -} \ No newline at end of file + } +} diff --git a/airbyte-integrations/connectors/source-appsflyer/source_appsflyer/schemas/retargeting_geo_report.json b/airbyte-integrations/connectors/source-appsflyer/source_appsflyer/schemas/retargeting_geo_report.json index 8a80b743738a2..413dfdfb56416 100644 --- a/airbyte-integrations/connectors/source-appsflyer/source_appsflyer/schemas/retargeting_geo_report.json +++ b/airbyte-integrations/connectors/source-appsflyer/source_appsflyer/schemas/retargeting_geo_report.json @@ -1,198 +1,102 @@ { - "type": "object", - "properties": { - "date": { - "type": [ - "null", - "string" - ], - "format": "date" - }, - "country_code": { - "type": [ - "null", - "string" - ] - }, - "af_prt": { - "type": [ - "null", - "string" - ] - }, - "media_source": { - "type": [ - "null", - "string" - ] - }, - "campaign": { - "type": [ - "null", - "string" - ] - }, - "clicks": { - "type": [ - "null", - "number" - ] - }, - "conversions": { - "type": [ - "null", - "number" - ] - }, - "conversion_type": { - "type": [ - "null", - "string" - ] - }, - "conversion_rate": { - "type": [ - "null", - "number" - ] - }, - "sessions": { - "type": [ - "null", - "number" - ] - }, - "loyal_users": { - "type": [ - "null", - "number" - ] - }, - "loyal_users_rate": { - "type": [ - "null", - "number" - ] - }, - "total_revenue": { - "type": [ - "null", - "number" - ] - }, - "total_cost": { - "type": [ - "null", - "number" - ] - }, - "return_on_investment": { - "type": [ - "null", - "number" - ] - }, - "average_revenue_per_user": { - "type": [ - "null", - "number" - ] - }, - "average_ecpi": { - "type": [ - "null", - "number" - ] - }, - "account_login_unique_users": { - "type": [ - "null", - "number" - ] - }, - "account_login_event_counter": { - "type": [ - "null", - "number" - ] - }, - "account_login_sales": { - "type": [ - "null", - "number" - ] - }, - "af_complete_registration_unique_users": { - "type": [ - "null", - "number" - ] - }, - "af_complete_registration_event_counter": { - "type": [ - "null", - "number" - ] - }, - "af_complete_registration_sales": { - "type": [ - "null", - "number" - ] - }, - "checkout_success_unique_users": { - "type": [ - "null", - "number" - ] - }, - "checkout_success_event_counter": { - "type": [ - "null", - "number" - ] - }, - "checkout_success_sales": { - "type": [ - "null", - "number" - ] - }, - "create_product_complete_unique_users": { - "type": [ - "null", - "number" - ] - }, - "create_product_complete_event_counter": { - "type": [ - "null", - "number" - ] - }, - "create_product_complete_sales": { - "type": [ - "null", - "number" - ] - }, - "init_appsflyer_id_unique_users": { - "type": [ - "null", - "number" - ] - }, - "init_appsflyer_id_event_counter": { - "type": [ - "null", - "number" - ] - }, - "init_appsflyer_id_sales": { - "type": [ - "null", - "number" - ] - } + "type": "object", + "properties": { + "date": { + "type": ["null", "string"], + "format": "date" + }, + "country_code": { + "type": ["null", "string"] + }, + "af_prt": { + "type": ["null", "string"] + }, + "media_source": { + "type": ["null", "string"] + }, + "campaign": { + "type": ["null", "string"] + }, + "clicks": { + "type": ["null", "number"] + }, + "conversions": { + "type": ["null", "number"] + }, + "conversion_type": { + "type": ["null", "string"] + }, + "conversion_rate": { + "type": ["null", "number"] + }, + "sessions": { + "type": ["null", "number"] + }, + "loyal_users": { + "type": ["null", "number"] + }, + "loyal_users_rate": { + "type": ["null", "number"] + }, + "total_revenue": { + "type": ["null", "number"] + }, + "total_cost": { + "type": ["null", "number"] + }, + "return_on_investment": { + "type": ["null", "number"] + }, + "average_revenue_per_user": { + "type": ["null", "number"] + }, + "average_ecpi": { + "type": ["null", "number"] + }, + "account_login_unique_users": { + "type": ["null", "number"] + }, + "account_login_event_counter": { + "type": ["null", "number"] + }, + "account_login_sales": { + "type": ["null", "number"] + }, + "af_complete_registration_unique_users": { + "type": ["null", "number"] + }, + "af_complete_registration_event_counter": { + "type": ["null", "number"] + }, + "af_complete_registration_sales": { + "type": ["null", "number"] + }, + "checkout_success_unique_users": { + "type": ["null", "number"] + }, + "checkout_success_event_counter": { + "type": ["null", "number"] + }, + "checkout_success_sales": { + "type": ["null", "number"] + }, + "create_product_complete_unique_users": { + "type": ["null", "number"] + }, + "create_product_complete_event_counter": { + "type": ["null", "number"] + }, + "create_product_complete_sales": { + "type": ["null", "number"] + }, + "init_appsflyer_id_unique_users": { + "type": ["null", "number"] + }, + "init_appsflyer_id_event_counter": { + "type": ["null", "number"] + }, + "init_appsflyer_id_sales": { + "type": ["null", "number"] } -} \ No newline at end of file + } +} diff --git a/airbyte-integrations/connectors/source-appsflyer/source_appsflyer/schemas/retargeting_in_app_events.json b/airbyte-integrations/connectors/source-appsflyer/source_appsflyer/schemas/retargeting_in_app_events.json index 5ba12bf07ccea..7abb262666746 100644 --- a/airbyte-integrations/connectors/source-appsflyer/source_appsflyer/schemas/retargeting_in_app_events.json +++ b/airbyte-integrations/connectors/source-appsflyer/source_appsflyer/schemas/retargeting_in_app_events.json @@ -1,722 +1,368 @@ { - "type": "object", - "properties": { - "attributed_touch_type": { - "type": [ - "null", - "string" - ] - }, - "attributed_touch_time": { - "type": [ - "null", - "string" - ], - "format": "date-time" - }, - "install_time": { - "type": [ - "null", - "string" - ], - "format": "date-time" - }, - "event_time": { - "type": [ - "null", - "string" - ], - "format": "date-time" - }, - "event_name": { - "type": [ - "null", - "string" - ] - }, - "event_value": { - "type": [ - "null", - "string" - ] - }, - "event_revenue": { - "type": [ - "null", - "string" - ] - }, - "event_revenue_currency": { - "type": [ - "null", - "string" - ] - }, - "event_revenue_usd": { - "type": [ - "null", - "string" - ] - }, - "event_source": { - "type": [ - "null", - "string" - ] - }, - "is_receipt_validated": { - "type": [ - "null", - "boolean" - ] - }, - "af_prt": { - "type": [ - "null", - "string" - ] - }, - "media_source": { - "type": [ - "null", - "string" - ] - }, - "af_channel": { - "type": [ - "null", - "string" - ] - }, - "af_keywords": { - "type": [ - "null", - "string" - ] - }, - "campaign": { - "type": [ - "null", - "string" - ] - }, - "af_c_id": { - "type": [ - "null", - "string" - ] - }, - "af_adset": { - "type": [ - "null", - "string" - ] - }, - "af_adset_id": { - "type": [ - "null", - "string" - ] - }, - "af_ad": { - "type": [ - "null", - "string" - ] - }, - "af_ad_id": { - "type": [ - "null", - "string" - ] - }, - "af_ad_type": { - "type": [ - "null", - "string" - ] - }, - "af_siteid": { - "type": [ - "null", - "string" - ] - }, - "af_sub_siteid": { - "type": [ - "null", - "string" - ] - }, - "af_sub1": { - "type": [ - "null", - "string" - ] - }, - "af_sub2": { - "type": [ - "null", - "string" - ] - }, - "af_sub3": { - "type": [ - "null", - "string" - ] - }, - "af_sub4": { - "type": [ - "null", - "string" - ] - }, - "af_sub5": { - "type": [ - "null", - "string" - ] - }, - "af_cost_model": { - "type": [ - "null", - "string" - ] - }, - "af_cost_value": { - "type": [ - "null", - "string" - ] - }, - "af_cost_currency": { - "type": [ - "null", - "string" - ] - }, - "contributor1_af_prt": { - "type": [ - "null", - "string" - ] - }, - "contributor1_media_source": { - "type": [ - "null", - "string" - ] - }, - "contributor1_campaign": { - "type": [ - "null", - "string" - ] - }, - "contributor1_touch_type": { - "type": [ - "null", - "string" - ] - }, - "contributor1_touch_time": { - "type": [ - "null", - "string" - ], - "format": "date-time" - }, - "contributor2_af_prt": { - "type": [ - "null", - "string" - ] - }, - "contributor2_media_source": { - "type": [ - "null", - "string" - ] - }, - "contributor2_campaign": { - "type": [ - "null", - "string" - ] - }, - "contributor2_touch_type": { - "type": [ - "null", - "string" - ] - }, - "contributor2_touch_time": { - "type": [ - "null", - "string" - ], - "format": "date-time" - }, - "contributor3_af_prt": { - "type": [ - "null", - "string" - ] - }, - "contributor3_media_source": { - "type": [ - "null", - "string" - ] - }, - "contributor3_campaign": { - "type": [ - "null", - "string" - ] - }, - "contributor3_touch_type": { - "type": [ - "null", - "string" - ] - }, - "contributor3_touch_time": { - "type": [ - "null", - "string" - ], - "format": "date-time" - }, - "region": { - "type": [ - "null", - "string" - ] - }, - "country_code": { - "type": [ - "null", - "string" - ] - }, - "state": { - "type": [ - "null", - "string" - ] - }, - "city": { - "type": [ - "null", - "string" - ] - }, - "postal_code": { - "type": [ - "null", - "string" - ] - }, - "dma": { - "type": [ - "null", - "string" - ] - }, - "ip": { - "type": [ - "null", - "string" - ] - }, - "wifi": { - "type": [ - "null", - "boolean" - ] - }, - "operator": { - "type": [ - "null", - "string" - ] - }, - "carrier": { - "type": [ - "null", - "string" - ] - }, - "language": { - "type": [ - "null", - "string" - ] - }, - "appsflyer_id": { - "type": [ - "null", - "string" - ] - }, - "advertising_id": { - "type": [ - "null", - "string" - ] - }, - "idfa": { - "type": [ - "null", - "string" - ] - }, - "android_id": { - "type": [ - "null", - "string" - ] - }, - "customer_user_id": { - "type": [ - "null", - "string" - ] - }, - "imei": { - "type": [ - "null", - "string" - ] - }, - "idfv": { - "type": [ - "null", - "string" - ] - }, - "platform": { - "type": [ - "null", - "string" - ] - }, - "device_type": { - "type": [ - "null", - "string" - ] - }, - "os_version": { - "type": [ - "null", - "string" - ] - }, - "app_version": { - "type": [ - "null", - "string" - ] - }, - "sdk_version": { - "type": [ - "null", - "string" - ] - }, - "app_id": { - "type": [ - "null", - "string" - ] - }, - "app_name": { - "type": [ - "null", - "string" - ] - }, - "bundle_id": { - "type": [ - "null", - "string" - ] - }, - "is_retargeting": { - "type": [ - "null", - "boolean" - ] - }, - "retargeting_conversion_type": { - "type": [ - "null", - "string" - ] - }, - "af_attribution_lookback": { - "type": [ - "null", - "string" - ] - }, - "af_reengagement_window": { - "type": [ - "null", - "string" - ] - }, - "is_primary_attribution": { - "type": [ - "null", - "boolean" - ] - }, - "user_agent": { - "type": [ - "null", - "string" - ] - }, - "http_referrer": { - "type": [ - "null", - "string" - ] - }, - "original_url": { - "type": [ - "null", - "string" - ] - }, - "app_type": { - "type": [ - "null", - "string" - ] - }, - "custom_data": { - "type": [ - "null", - "string" - ] - }, - "network_account_id": { - "type": [ - "null", - "string" - ] - }, - "install_app_store": { - "type": [ - "null", - "string" - ] - }, - "contributor1_match_type": { - "type": [ - "null", - "string" - ] - }, - "contributor2_match_type": { - "type": [ - "null", - "string" - ] - }, - "contributor3_match_type": { - "type": [ - "null", - "string" - ] - }, - "campaign_type": { - "type": [ - "null", - "string" - ] - }, - "conversion_type": { - "type": [ - "null", - "string" - ] - }, - "match_type": { - "type": [ - "null", - "string" - ] - }, - "gp_referrer": { - "type": [ - "null", - "string" - ] - }, - "gp_click_time": { - "type": [ - "null", - "string" - ], - "format": "date-time" - }, - "gp_install_begin": { - "type": [ - "null", - "string" - ], - "format": "date-time" - }, - "gp_broadcast_referrer": { - "type": [ - "null", - "string" - ] - }, - "keyword_match_type": { - "type": [ - "null", - "string" - ] - }, - "keyword_id": { - "type": [ - "null", - "string" - ] - }, - "att": { - "type": [ - "null", - "string" - ] - }, - "amazon_aid": { - "type": [ - "null", - "string" - ] - }, - "device_category": { - "type": [ - "null", - "string" - ] - }, - "device_model": { - "type": [ - "null", - "string" - ] - }, - "device_download_time": { - "type": [ - "null", - "string" - ], - "format": "date-time" - }, - "deeplink_url": { - "type": [ - "null", - "string" - ] - }, - "oaid": { - "type": [ - "null", - "string" - ] - }, - "is_lat": { - "type": [ - "null", - "boolean" - ] - }, - "store_reinstall": { - "type": [ - "null", - "boolean" - ] - }, - "placement": { - "type": [ - "null", - "string" - ] - }, - "mediation_network": { - "type": [ - "null", - "string" - ] - }, - "segment": { - "type": [ - "null", - "string" - ] - }, - "ad_unit": { - "type": [ - "null", - "string" - ] - }, - "monetization_network": { - "type": [ - "null", - "string" - ] - }, - "impressions": { - "type": [ - "null", - "string" - ] - }, - "blocked_reason": { - "type": [ - "null", - "string" - ] - }, - "blocked_reason_value": { - "type": [ - "null", - "string" - ] - }, - "blocked_reason_rule": { - "type": [ - "null", - "string" - ] - }, - "blocked_sub_reason": { - "type": [ - "null", - "string" - ] - }, - "rejected_reason": { - "type": [ - "null", - "string" - ] - }, - "rejected_reason_value": { - "type": [ - "null", - "string" - ] - } + "type": "object", + "properties": { + "attributed_touch_type": { + "type": ["null", "string"] + }, + "attributed_touch_time": { + "type": ["null", "string"], + "format": "date-time" + }, + "install_time": { + "type": ["null", "string"], + "format": "date-time" + }, + "event_time": { + "type": ["null", "string"], + "format": "date-time" + }, + "event_name": { + "type": ["null", "string"] + }, + "event_value": { + "type": ["null", "string"] + }, + "event_revenue": { + "type": ["null", "string"] + }, + "event_revenue_currency": { + "type": ["null", "string"] + }, + "event_revenue_usd": { + "type": ["null", "string"] + }, + "event_source": { + "type": ["null", "string"] + }, + "is_receipt_validated": { + "type": ["null", "boolean"] + }, + "af_prt": { + "type": ["null", "string"] + }, + "media_source": { + "type": ["null", "string"] + }, + "af_channel": { + "type": ["null", "string"] + }, + "af_keywords": { + "type": ["null", "string"] + }, + "campaign": { + "type": ["null", "string"] + }, + "af_c_id": { + "type": ["null", "string"] + }, + "af_adset": { + "type": ["null", "string"] + }, + "af_adset_id": { + "type": ["null", "string"] + }, + "af_ad": { + "type": ["null", "string"] + }, + "af_ad_id": { + "type": ["null", "string"] + }, + "af_ad_type": { + "type": ["null", "string"] + }, + "af_siteid": { + "type": ["null", "string"] + }, + "af_sub_siteid": { + "type": ["null", "string"] + }, + "af_sub1": { + "type": ["null", "string"] + }, + "af_sub2": { + "type": ["null", "string"] + }, + "af_sub3": { + "type": ["null", "string"] + }, + "af_sub4": { + "type": ["null", "string"] + }, + "af_sub5": { + "type": ["null", "string"] + }, + "af_cost_model": { + "type": ["null", "string"] + }, + "af_cost_value": { + "type": ["null", "string"] + }, + "af_cost_currency": { + "type": ["null", "string"] + }, + "contributor1_af_prt": { + "type": ["null", "string"] + }, + "contributor1_media_source": { + "type": ["null", "string"] + }, + "contributor1_campaign": { + "type": ["null", "string"] + }, + "contributor1_touch_type": { + "type": ["null", "string"] + }, + "contributor1_touch_time": { + "type": ["null", "string"], + "format": "date-time" + }, + "contributor2_af_prt": { + "type": ["null", "string"] + }, + "contributor2_media_source": { + "type": ["null", "string"] + }, + "contributor2_campaign": { + "type": ["null", "string"] + }, + "contributor2_touch_type": { + "type": ["null", "string"] + }, + "contributor2_touch_time": { + "type": ["null", "string"], + "format": "date-time" + }, + "contributor3_af_prt": { + "type": ["null", "string"] + }, + "contributor3_media_source": { + "type": ["null", "string"] + }, + "contributor3_campaign": { + "type": ["null", "string"] + }, + "contributor3_touch_type": { + "type": ["null", "string"] + }, + "contributor3_touch_time": { + "type": ["null", "string"], + "format": "date-time" + }, + "region": { + "type": ["null", "string"] + }, + "country_code": { + "type": ["null", "string"] + }, + "state": { + "type": ["null", "string"] + }, + "city": { + "type": ["null", "string"] + }, + "postal_code": { + "type": ["null", "string"] + }, + "dma": { + "type": ["null", "string"] + }, + "ip": { + "type": ["null", "string"] + }, + "wifi": { + "type": ["null", "boolean"] + }, + "operator": { + "type": ["null", "string"] + }, + "carrier": { + "type": ["null", "string"] + }, + "language": { + "type": ["null", "string"] + }, + "appsflyer_id": { + "type": ["null", "string"] + }, + "advertising_id": { + "type": ["null", "string"] + }, + "idfa": { + "type": ["null", "string"] + }, + "android_id": { + "type": ["null", "string"] + }, + "customer_user_id": { + "type": ["null", "string"] + }, + "imei": { + "type": ["null", "string"] + }, + "idfv": { + "type": ["null", "string"] + }, + "platform": { + "type": ["null", "string"] + }, + "device_type": { + "type": ["null", "string"] + }, + "os_version": { + "type": ["null", "string"] + }, + "app_version": { + "type": ["null", "string"] + }, + "sdk_version": { + "type": ["null", "string"] + }, + "app_id": { + "type": ["null", "string"] + }, + "app_name": { + "type": ["null", "string"] + }, + "bundle_id": { + "type": ["null", "string"] + }, + "is_retargeting": { + "type": ["null", "boolean"] + }, + "retargeting_conversion_type": { + "type": ["null", "string"] + }, + "af_attribution_lookback": { + "type": ["null", "string"] + }, + "af_reengagement_window": { + "type": ["null", "string"] + }, + "is_primary_attribution": { + "type": ["null", "boolean"] + }, + "user_agent": { + "type": ["null", "string"] + }, + "http_referrer": { + "type": ["null", "string"] + }, + "original_url": { + "type": ["null", "string"] + }, + "app_type": { + "type": ["null", "string"] + }, + "custom_data": { + "type": ["null", "string"] + }, + "network_account_id": { + "type": ["null", "string"] + }, + "install_app_store": { + "type": ["null", "string"] + }, + "contributor1_match_type": { + "type": ["null", "string"] + }, + "contributor2_match_type": { + "type": ["null", "string"] + }, + "contributor3_match_type": { + "type": ["null", "string"] + }, + "campaign_type": { + "type": ["null", "string"] + }, + "conversion_type": { + "type": ["null", "string"] + }, + "match_type": { + "type": ["null", "string"] + }, + "gp_referrer": { + "type": ["null", "string"] + }, + "gp_click_time": { + "type": ["null", "string"], + "format": "date-time" + }, + "gp_install_begin": { + "type": ["null", "string"], + "format": "date-time" + }, + "gp_broadcast_referrer": { + "type": ["null", "string"] + }, + "keyword_match_type": { + "type": ["null", "string"] + }, + "keyword_id": { + "type": ["null", "string"] + }, + "att": { + "type": ["null", "string"] + }, + "amazon_aid": { + "type": ["null", "string"] + }, + "device_category": { + "type": ["null", "string"] + }, + "device_model": { + "type": ["null", "string"] + }, + "device_download_time": { + "type": ["null", "string"], + "format": "date-time" + }, + "deeplink_url": { + "type": ["null", "string"] + }, + "oaid": { + "type": ["null", "string"] + }, + "is_lat": { + "type": ["null", "boolean"] + }, + "store_reinstall": { + "type": ["null", "boolean"] + }, + "placement": { + "type": ["null", "string"] + }, + "mediation_network": { + "type": ["null", "string"] + }, + "segment": { + "type": ["null", "string"] + }, + "ad_unit": { + "type": ["null", "string"] + }, + "monetization_network": { + "type": ["null", "string"] + }, + "impressions": { + "type": ["null", "string"] + }, + "blocked_reason": { + "type": ["null", "string"] + }, + "blocked_reason_value": { + "type": ["null", "string"] + }, + "blocked_reason_rule": { + "type": ["null", "string"] + }, + "blocked_sub_reason": { + "type": ["null", "string"] + }, + "rejected_reason": { + "type": ["null", "string"] + }, + "rejected_reason_value": { + "type": ["null", "string"] } -} \ No newline at end of file + } +} diff --git a/airbyte-integrations/connectors/source-appsflyer/source_appsflyer/schemas/retargeting_partners_report.json b/airbyte-integrations/connectors/source-appsflyer/source_appsflyer/schemas/retargeting_partners_report.json index 52701d95f3c81..1d9ba40fe2d1a 100644 --- a/airbyte-integrations/connectors/source-appsflyer/source_appsflyer/schemas/retargeting_partners_report.json +++ b/airbyte-integrations/connectors/source-appsflyer/source_appsflyer/schemas/retargeting_partners_report.json @@ -1,192 +1,99 @@ { - "type": "object", - "properties": { - "date": { - "type": [ - "null", - "string" - ], - "format": "date" - }, - "af_prt": { - "type": [ - "null", - "string" - ] - }, - "media_source": { - "type": [ - "null", - "string" - ] - }, - "campaign": { - "type": [ - "null", - "string" - ] - }, - "clicks": { - "type": [ - "null", - "number" - ] - }, - "conversions": { - "type": [ - "null", - "number" - ] - }, - "conversion_type": { - "type": [ - "null", - "string" - ] - }, - "conversion_rate": { - "type": [ - "null", - "number" - ] - }, - "sessions": { - "type": [ - "null", - "number" - ] - }, - "loyal_users": { - "type": [ - "null", - "number" - ] - }, - "loyal_users_rate": { - "type": [ - "null", - "number" - ] - }, - "total_revenue": { - "type": [ - "null", - "number" - ] - }, - "total_cost": { - "type": [ - "null", - "number" - ] - }, - "return_on_investment": { - "type": [ - "null", - "number" - ] - }, - "average_revenue_per_user": { - "type": [ - "null", - "number" - ] - }, - "average_ecpi": { - "type": [ - "null", - "number" - ] - }, - "account_login_unique_users": { - "type": [ - "null", - "number" - ] - }, - "account_login_event_counter": { - "type": [ - "null", - "number" - ] - }, - "account_login_sales": { - "type": [ - "null", - "number" - ] - }, - "af_complete_registration_unique_users": { - "type": [ - "null", - "number" - ] - }, - "af_complete_registration_event_counter": { - "type": [ - "null", - "number" - ] - }, - "af_complete_registration_sales": { - "type": [ - "null", - "number" - ] - }, - "checkout_success_unique_users": { - "type": [ - "null", - "number" - ] - }, - "checkout_success_event_counter": { - "type": [ - "null", - "number" - ] - }, - "checkout_success_sales": { - "type": [ - "null", - "number" - ] - }, - "create_product_complete_unique_users": { - "type": [ - "null", - "number" - ] - }, - "create_product_complete_event_counter": { - "type": [ - "null", - "number" - ] - }, - "create_product_complete_sales": { - "type": [ - "null", - "number" - ] - }, - "init_appsflyer_id_unique_users": { - "type": [ - "null", - "number" - ] - }, - "init_appsflyer_id_event_counter": { - "type": [ - "null", - "number" - ] - }, - "init_appsflyer_id_sales": { - "type": [ - "null", - "number" - ] - } + "type": "object", + "properties": { + "date": { + "type": ["null", "string"], + "format": "date" + }, + "af_prt": { + "type": ["null", "string"] + }, + "media_source": { + "type": ["null", "string"] + }, + "campaign": { + "type": ["null", "string"] + }, + "clicks": { + "type": ["null", "number"] + }, + "conversions": { + "type": ["null", "number"] + }, + "conversion_type": { + "type": ["null", "string"] + }, + "conversion_rate": { + "type": ["null", "number"] + }, + "sessions": { + "type": ["null", "number"] + }, + "loyal_users": { + "type": ["null", "number"] + }, + "loyal_users_rate": { + "type": ["null", "number"] + }, + "total_revenue": { + "type": ["null", "number"] + }, + "total_cost": { + "type": ["null", "number"] + }, + "return_on_investment": { + "type": ["null", "number"] + }, + "average_revenue_per_user": { + "type": ["null", "number"] + }, + "average_ecpi": { + "type": ["null", "number"] + }, + "account_login_unique_users": { + "type": ["null", "number"] + }, + "account_login_event_counter": { + "type": ["null", "number"] + }, + "account_login_sales": { + "type": ["null", "number"] + }, + "af_complete_registration_unique_users": { + "type": ["null", "number"] + }, + "af_complete_registration_event_counter": { + "type": ["null", "number"] + }, + "af_complete_registration_sales": { + "type": ["null", "number"] + }, + "checkout_success_unique_users": { + "type": ["null", "number"] + }, + "checkout_success_event_counter": { + "type": ["null", "number"] + }, + "checkout_success_sales": { + "type": ["null", "number"] + }, + "create_product_complete_unique_users": { + "type": ["null", "number"] + }, + "create_product_complete_event_counter": { + "type": ["null", "number"] + }, + "create_product_complete_sales": { + "type": ["null", "number"] + }, + "init_appsflyer_id_unique_users": { + "type": ["null", "number"] + }, + "init_appsflyer_id_event_counter": { + "type": ["null", "number"] + }, + "init_appsflyer_id_sales": { + "type": ["null", "number"] } -} \ No newline at end of file + } +} diff --git a/airbyte-integrations/connectors/source-appsflyer/source_appsflyer/schemas/uninstall_events.json b/airbyte-integrations/connectors/source-appsflyer/source_appsflyer/schemas/uninstall_events.json index 3f305eb15b0d7..99d0892560e55 100644 --- a/airbyte-integrations/connectors/source-appsflyer/source_appsflyer/schemas/uninstall_events.json +++ b/airbyte-integrations/connectors/source-appsflyer/source_appsflyer/schemas/uninstall_events.json @@ -1,698 +1,356 @@ { - "type": "object", - "properties": { - "attributed_touch_type": { - "type": [ - "null", - "string" - ] - }, - "attributed_touch_time": { - "type": [ - "null", - "string" - ], - "format": "date-time" - }, - "install_time": { - "type": [ - "null", - "string" - ], - "format": "date-time" - }, - "event_time": { - "type": [ - "null", - "string" - ], - "format": "date-time" - }, - "event_name": { - "type": [ - "null", - "string" - ] - }, - "event_value": { - "type": [ - "null", - "string" - ] - }, - "event_revenue": { - "type": [ - "null", - "string" - ] - }, - "event_revenue_currency": { - "type": [ - "null", - "string" - ] - }, - "event_revenue_usd": { - "type": [ - "null", - "string" - ] - }, - "event_source": { - "type": [ - "null", - "string" - ] - }, - "is_receipt_validated": { - "type": [ - "null", - "boolean" - ] - }, - "af_prt": { - "type": [ - "null", - "string" - ] - }, - "media_source": { - "type": [ - "null", - "string" - ] - }, - "af_channel": { - "type": [ - "null", - "string" - ] - }, - "af_keywords": { - "type": [ - "null", - "string" - ] - }, - "campaign": { - "type": [ - "null", - "string" - ] - }, - "af_c_id": { - "type": [ - "null", - "string" - ] - }, - "af_adset": { - "type": [ - "null", - "string" - ] - }, - "af_adset_id": { - "type": [ - "null", - "string" - ] - }, - "af_ad": { - "type": [ - "null", - "string" - ] - }, - "af_ad_id": { - "type": [ - "null", - "string" - ] - }, - "af_ad_type": { - "type": [ - "null", - "string" - ] - }, - "af_siteid": { - "type": [ - "null", - "string" - ] - }, - "af_sub_siteid": { - "type": [ - "null", - "string" - ] - }, - "af_sub1": { - "type": [ - "null", - "string" - ] - }, - "af_sub2": { - "type": [ - "null", - "string" - ] - }, - "af_sub3": { - "type": [ - "null", - "string" - ] - }, - "af_sub4": { - "type": [ - "null", - "string" - ] - }, - "af_sub5": { - "type": [ - "null", - "string" - ] - }, - "af_cost_model": { - "type": [ - "null", - "string" - ] - }, - "af_cost_value": { - "type": [ - "null", - "string" - ] - }, - "af_cost_currency": { - "type": [ - "null", - "string" - ] - }, - "contributor1_af_prt": { - "type": [ - "null", - "string" - ] - }, - "contributor1_media_source": { - "type": [ - "null", - "string" - ] - }, - "contributor1_campaign": { - "type": [ - "null", - "string" - ] - }, - "contributor1_touch_type": { - "type": [ - "null", - "string" - ] - }, - "contributor1_touch_time": { - "type": [ - "null", - "string" - ], - "format": "date-time" - }, - "contributor2_af_prt": { - "type": [ - "null", - "string" - ] - }, - "contributor2_media_source": { - "type": [ - "null", - "string" - ] - }, - "contributor2_campaign": { - "type": [ - "null", - "string" - ] - }, - "contributor2_touch_type": { - "type": [ - "null", - "string" - ] - }, - "contributor2_touch_time": { - "type": [ - "null", - "string" - ], - "format": "date-time" - }, - "contributor3_af_prt": { - "type": [ - "null", - "string" - ] - }, - "contributor3_media_source": { - "type": [ - "null", - "string" - ] - }, - "contributor3_campaign": { - "type": [ - "null", - "string" - ] - }, - "contributor3_touch_type": { - "type": [ - "null", - "string" - ] - }, - "contributor3_touch_time": { - "type": [ - "null", - "string" - ], - "format": "date-time" - }, - "region": { - "type": [ - "null", - "string" - ] - }, - "country_code": { - "type": [ - "null", - "string" - ] - }, - "state": { - "type": [ - "null", - "string" - ] - }, - "city": { - "type": [ - "null", - "string" - ] - }, - "postal_code": { - "type": [ - "null", - "string" - ] - }, - "dma": { - "type": [ - "null", - "string" - ] - }, - "ip": { - "type": [ - "null", - "string" - ] - }, - "wifi": { - "type": [ - "null", - "boolean" - ] - }, - "operator": { - "type": [ - "null", - "string" - ] - }, - "carrier": { - "type": [ - "null", - "string" - ] - }, - "language": { - "type": [ - "null", - "string" - ] - }, - "appsflyer_id": { - "type": [ - "null", - "string" - ] - }, - "advertising_id": { - "type": [ - "null", - "string" - ] - }, - "idfa": { - "type": [ - "null", - "string" - ] - }, - "android_id": { - "type": [ - "null", - "string" - ] - }, - "customer_user_id": { - "type": [ - "null", - "string" - ] - }, - "imei": { - "type": [ - "null", - "string" - ] - }, - "idfv": { - "type": [ - "null", - "string" - ] - }, - "platform": { - "type": [ - "null", - "string" - ] - }, - "device_type": { - "type": [ - "null", - "string" - ] - }, - "os_version": { - "type": [ - "null", - "string" - ] - }, - "app_version": { - "type": [ - "null", - "string" - ] - }, - "sdk_version": { - "type": [ - "null", - "string" - ] - }, - "app_id": { - "type": [ - "null", - "string" - ] - }, - "app_name": { - "type": [ - "null", - "string" - ] - }, - "bundle_id": { - "type": [ - "null", - "string" - ] - }, - "is_retargeting": { - "type": [ - "null", - "boolean" - ] - }, - "retargeting_conversion_type": { - "type": [ - "null", - "string" - ] - }, - "af_attribution_lookback": { - "type": [ - "null", - "string" - ] - }, - "af_reengagement_window": { - "type": [ - "null", - "string" - ] - }, - "is_primary_attribution": { - "type": [ - "null", - "boolean" - ] - }, - "user_agent": { - "type": [ - "null", - "string" - ] - }, - "http_referrer": { - "type": [ - "null", - "string" - ] - }, - "original_url": { - "type": [ - "null", - "string" - ] - }, - "custom_data": { - "type": [ - "null", - "string" - ] - }, - "network_account_id": { - "type": [ - "null", - "string" - ] - }, - "install_app_store": { - "type": [ - "null", - "string" - ] - }, - "contributor1_match_type": { - "type": [ - "null", - "string" - ] - }, - "contributor2_match_type": { - "type": [ - "null", - "string" - ] - }, - "contributor3_match_type": { - "type": [ - "null", - "string" - ] - }, - "match_type": { - "type": [ - "null", - "string" - ] - }, - "gp_referrer": { - "type": [ - "null", - "string" - ] - }, - "gp_click_time": { - "type": [ - "null", - "string" - ], - "format": "date-time" - }, - "gp_install_begin": { - "type": [ - "null", - "string" - ], - "format": "date-time" - }, - "gp_broadcast_referrer": { - "type": [ - "null", - "string" - ] - }, - "keyword_match_type": { - "type": [ - "null", - "string" - ] - }, - "keyword_id": { - "type": [ - "null", - "string" - ] - }, - "amazon_aid": { - "type": [ - "null", - "string" - ] - }, - "device_category": { - "type": [ - "null", - "string" - ] - }, - "device_model": { - "type": [ - "null", - "string" - ] - }, - "device_download_time": { - "type": [ - "null", - "string" - ], - "format": "date-time" - }, - "deeplink_url": { - "type": [ - "null", - "string" - ] - }, - "oaid": { - "type": [ - "null", - "string" - ] - }, - "is_lat": { - "type": [ - "null", - "boolean" - ] - }, - "store_reinstall": { - "type": [ - "null", - "boolean" - ] - }, - "placement": { - "type": [ - "null", - "string" - ] - }, - "mediation_network": { - "type": [ - "null", - "string" - ] - }, - "segment": { - "type": [ - "null", - "string" - ] - }, - "ad_unit": { - "type": [ - "null", - "string" - ] - }, - "monetization_network": { - "type": [ - "null", - "string" - ] - }, - "impressions": { - "type": [ - "null", - "string" - ] - }, - "blocked_reason": { - "type": [ - "null", - "string" - ] - }, - "blocked_reason_value": { - "type": [ - "null", - "string" - ] - }, - "blocked_reason_rule": { - "type": [ - "null", - "string" - ] - }, - "blocked_sub_reason": { - "type": [ - "null", - "string" - ] - }, - "rejected_reason": { - "type": [ - "null", - "string" - ] - }, - "rejected_reason_value": { - "type": [ - "null", - "string" - ] - } + "type": "object", + "properties": { + "attributed_touch_type": { + "type": ["null", "string"] + }, + "attributed_touch_time": { + "type": ["null", "string"], + "format": "date-time" + }, + "install_time": { + "type": ["null", "string"], + "format": "date-time" + }, + "event_time": { + "type": ["null", "string"], + "format": "date-time" + }, + "event_name": { + "type": ["null", "string"] + }, + "event_value": { + "type": ["null", "string"] + }, + "event_revenue": { + "type": ["null", "string"] + }, + "event_revenue_currency": { + "type": ["null", "string"] + }, + "event_revenue_usd": { + "type": ["null", "string"] + }, + "event_source": { + "type": ["null", "string"] + }, + "is_receipt_validated": { + "type": ["null", "boolean"] + }, + "af_prt": { + "type": ["null", "string"] + }, + "media_source": { + "type": ["null", "string"] + }, + "af_channel": { + "type": ["null", "string"] + }, + "af_keywords": { + "type": ["null", "string"] + }, + "campaign": { + "type": ["null", "string"] + }, + "af_c_id": { + "type": ["null", "string"] + }, + "af_adset": { + "type": ["null", "string"] + }, + "af_adset_id": { + "type": ["null", "string"] + }, + "af_ad": { + "type": ["null", "string"] + }, + "af_ad_id": { + "type": ["null", "string"] + }, + "af_ad_type": { + "type": ["null", "string"] + }, + "af_siteid": { + "type": ["null", "string"] + }, + "af_sub_siteid": { + "type": ["null", "string"] + }, + "af_sub1": { + "type": ["null", "string"] + }, + "af_sub2": { + "type": ["null", "string"] + }, + "af_sub3": { + "type": ["null", "string"] + }, + "af_sub4": { + "type": ["null", "string"] + }, + "af_sub5": { + "type": ["null", "string"] + }, + "af_cost_model": { + "type": ["null", "string"] + }, + "af_cost_value": { + "type": ["null", "string"] + }, + "af_cost_currency": { + "type": ["null", "string"] + }, + "contributor1_af_prt": { + "type": ["null", "string"] + }, + "contributor1_media_source": { + "type": ["null", "string"] + }, + "contributor1_campaign": { + "type": ["null", "string"] + }, + "contributor1_touch_type": { + "type": ["null", "string"] + }, + "contributor1_touch_time": { + "type": ["null", "string"], + "format": "date-time" + }, + "contributor2_af_prt": { + "type": ["null", "string"] + }, + "contributor2_media_source": { + "type": ["null", "string"] + }, + "contributor2_campaign": { + "type": ["null", "string"] + }, + "contributor2_touch_type": { + "type": ["null", "string"] + }, + "contributor2_touch_time": { + "type": ["null", "string"], + "format": "date-time" + }, + "contributor3_af_prt": { + "type": ["null", "string"] + }, + "contributor3_media_source": { + "type": ["null", "string"] + }, + "contributor3_campaign": { + "type": ["null", "string"] + }, + "contributor3_touch_type": { + "type": ["null", "string"] + }, + "contributor3_touch_time": { + "type": ["null", "string"], + "format": "date-time" + }, + "region": { + "type": ["null", "string"] + }, + "country_code": { + "type": ["null", "string"] + }, + "state": { + "type": ["null", "string"] + }, + "city": { + "type": ["null", "string"] + }, + "postal_code": { + "type": ["null", "string"] + }, + "dma": { + "type": ["null", "string"] + }, + "ip": { + "type": ["null", "string"] + }, + "wifi": { + "type": ["null", "boolean"] + }, + "operator": { + "type": ["null", "string"] + }, + "carrier": { + "type": ["null", "string"] + }, + "language": { + "type": ["null", "string"] + }, + "appsflyer_id": { + "type": ["null", "string"] + }, + "advertising_id": { + "type": ["null", "string"] + }, + "idfa": { + "type": ["null", "string"] + }, + "android_id": { + "type": ["null", "string"] + }, + "customer_user_id": { + "type": ["null", "string"] + }, + "imei": { + "type": ["null", "string"] + }, + "idfv": { + "type": ["null", "string"] + }, + "platform": { + "type": ["null", "string"] + }, + "device_type": { + "type": ["null", "string"] + }, + "os_version": { + "type": ["null", "string"] + }, + "app_version": { + "type": ["null", "string"] + }, + "sdk_version": { + "type": ["null", "string"] + }, + "app_id": { + "type": ["null", "string"] + }, + "app_name": { + "type": ["null", "string"] + }, + "bundle_id": { + "type": ["null", "string"] + }, + "is_retargeting": { + "type": ["null", "boolean"] + }, + "retargeting_conversion_type": { + "type": ["null", "string"] + }, + "af_attribution_lookback": { + "type": ["null", "string"] + }, + "af_reengagement_window": { + "type": ["null", "string"] + }, + "is_primary_attribution": { + "type": ["null", "boolean"] + }, + "user_agent": { + "type": ["null", "string"] + }, + "http_referrer": { + "type": ["null", "string"] + }, + "original_url": { + "type": ["null", "string"] + }, + "custom_data": { + "type": ["null", "string"] + }, + "network_account_id": { + "type": ["null", "string"] + }, + "install_app_store": { + "type": ["null", "string"] + }, + "contributor1_match_type": { + "type": ["null", "string"] + }, + "contributor2_match_type": { + "type": ["null", "string"] + }, + "contributor3_match_type": { + "type": ["null", "string"] + }, + "match_type": { + "type": ["null", "string"] + }, + "gp_referrer": { + "type": ["null", "string"] + }, + "gp_click_time": { + "type": ["null", "string"], + "format": "date-time" + }, + "gp_install_begin": { + "type": ["null", "string"], + "format": "date-time" + }, + "gp_broadcast_referrer": { + "type": ["null", "string"] + }, + "keyword_match_type": { + "type": ["null", "string"] + }, + "keyword_id": { + "type": ["null", "string"] + }, + "amazon_aid": { + "type": ["null", "string"] + }, + "device_category": { + "type": ["null", "string"] + }, + "device_model": { + "type": ["null", "string"] + }, + "device_download_time": { + "type": ["null", "string"], + "format": "date-time" + }, + "deeplink_url": { + "type": ["null", "string"] + }, + "oaid": { + "type": ["null", "string"] + }, + "is_lat": { + "type": ["null", "boolean"] + }, + "store_reinstall": { + "type": ["null", "boolean"] + }, + "placement": { + "type": ["null", "string"] + }, + "mediation_network": { + "type": ["null", "string"] + }, + "segment": { + "type": ["null", "string"] + }, + "ad_unit": { + "type": ["null", "string"] + }, + "monetization_network": { + "type": ["null", "string"] + }, + "impressions": { + "type": ["null", "string"] + }, + "blocked_reason": { + "type": ["null", "string"] + }, + "blocked_reason_value": { + "type": ["null", "string"] + }, + "blocked_reason_rule": { + "type": ["null", "string"] + }, + "blocked_sub_reason": { + "type": ["null", "string"] + }, + "rejected_reason": { + "type": ["null", "string"] + }, + "rejected_reason_value": { + "type": ["null", "string"] } -} \ No newline at end of file + } +} diff --git a/airbyte-integrations/connectors/source-appsflyer/source_appsflyer/source.py b/airbyte-integrations/connectors/source-appsflyer/source_appsflyer/source.py index c4ee4eed19ffe..a22fb73bd807f 100644 --- a/airbyte-integrations/connectors/source-appsflyer/source_appsflyer/source.py +++ b/airbyte-integrations/connectors/source-appsflyer/source_appsflyer/source.py @@ -3,24 +3,25 @@ # import csv -import pendulum -import requests - -from . import fields from abc import ABC from datetime import date, datetime, timedelta -from typing import Any, Iterable, List, Mapping, MutableMapping, Optional, Tuple, Union, Callable, Dict -from operator import add -from pendulum.tz.timezone import Timezone -from http import HTTPStatus from decimal import Decimal +from http import HTTPStatus +from operator import add +from typing import Any, Callable, Dict, Iterable, List, Mapping, MutableMapping, Optional, Tuple, Union +import pendulum +import requests from airbyte_cdk.logger import AirbyteLogger from airbyte_cdk.sources import AbstractSource from airbyte_cdk.sources.streams import Stream from airbyte_cdk.sources.streams.http import HttpStream from airbyte_cdk.sources.streams.http.auth import NoAuth from airbyte_cdk.sources.utils.transform import TransformConfig, TypeTransformer +from pendulum.tz.timezone import Timezone + +from . import fields + # Simple transformer def parse_date(date: Any, timezone: Timezone) -> datetime: @@ -38,13 +39,7 @@ class AppsflyerStream(HttpStream, ABC): transformer: TypeTransformer = TypeTransformer(TransformConfig.DefaultSchemaNormalization | TransformConfig.CustomSchemaNormalization) def __init__( - self, - app_id: str, - api_token: str, - timezone: str, - start_date: Union[date, str] = None, - end_date: Union[date, str] = None, - **kwargs + self, app_id: str, api_token: str, timezone: str, start_date: Union[date, str] = None, end_date: Union[date, str] = None, **kwargs ): super().__init__(**kwargs) self.app_id = app_id @@ -61,17 +56,14 @@ def next_page_token(self, response: requests.Response) -> Optional[Mapping[str, return None def request_params( - self, - stream_state: Mapping[str, Any], - stream_slice: Mapping[str, any] = None, - next_page_token: Mapping[str, Any] = None + self, stream_state: Mapping[str, Any], stream_slice: Mapping[str, any] = None, next_page_token: Mapping[str, Any] = None ) -> MutableMapping[str, Any]: params = { "api_token": self.api_token, "from": pendulum.yesterday(self.timezone).to_date_string(), "to": pendulum.today(self.timezone).to_date_string(), "timezone": self.timezone.name, - "maximum_rows": self.maximum_rows + "maximum_rows": self.maximum_rows, } if self.additional_fields: @@ -92,7 +84,7 @@ def parse_response(self, response: requests.Response, **kwargs) -> Iterable[Mapp def is_aggregate_reports_reached_limit(self, response: requests.Response) -> bool: template = "Limit reached for " - is_forbidden = response.status_code == HTTPStatus.FORBIDDEN + is_forbidden = response.status_code == HTTPStatus.FORBIDDEN is_template_match = template in response.text return is_forbidden and is_template_match @@ -132,6 +124,7 @@ def transform_function(original_value: Any, field_schema: Dict[str, Any]) -> Any return Decimal(original_value) return original_value + # Basic incremental stream class IncrementalAppsflyerStream(AppsflyerStream, ABC): intervals = 60 @@ -145,13 +138,12 @@ def get_updated_state(self, current_stream_state: MutableMapping[str, Any], late return {self.cursor_field: max(latest_state, current_state)} return {} except TypeError as e: - raise TypeError(f"Expected {self.cursor_field} type '{type(current_state).__name__}' but returned type '{type(latest_state).__name__}'.") from e + raise TypeError( + f"Expected {self.cursor_field} type '{type(current_state).__name__}' but returned type '{type(latest_state).__name__}'." + ) from e def stream_slices( - self, - sync_mode, - cursor_field: List[str] = None, - stream_state: Mapping[str, Any] = None + self, sync_mode, cursor_field: List[str] = None, stream_state: Mapping[str, Any] = None ) -> Iterable[Optional[Mapping[str, any]]]: stream_state = stream_state or {} cursor_value = stream_state.get(self.cursor_field) @@ -173,142 +165,126 @@ def chunk_date_range(self, start_date: datetime) -> List[Mapping[str, any]]: delta = timedelta(days=self.intervals) while start_date <= self.end_date: end_date = self.get_date(start_date + delta, self.end_date, min) - dates.append({ - self.cursor_field: start_date, - self.cursor_field + '_end': end_date - }) + dates.append({self.cursor_field: start_date, self.cursor_field + "_end": end_date}) start_date += delta return dates + class RawDataMixin: main_fields = fields.raw_data.main_fields additional_fields = fields.raw_data.additional_fields def request_params( - self, - stream_state: Mapping[str, Any], - stream_slice: Mapping[str, any] = None, - next_page_token: Mapping[str, Any] = None + self, stream_state: Mapping[str, Any], stream_slice: Mapping[str, any] = None, next_page_token: Mapping[str, Any] = None ) -> MutableMapping[str, Any]: params = super().request_params(stream_state, stream_slice, next_page_token) params["from"] = stream_slice.get(self.cursor_field).to_datetime_string() - params["to"] = stream_slice.get(self.cursor_field + '_end').to_datetime_string() - # use currency set in the app settings to align with aggregate api currency. + params["to"] = stream_slice.get(self.cursor_field + "_end").to_datetime_string() + # use currency set in the app settings to align with aggregate api currency. params["currency"] = "preferred" return params + class AggregateDataMixin: cursor_field = "date" def request_params( - self, - stream_state: Mapping[str, Any], - stream_slice: Mapping[str, any] = None, - next_page_token: Mapping[str, Any] = None + self, stream_state: Mapping[str, Any], stream_slice: Mapping[str, any] = None, next_page_token: Mapping[str, Any] = None ) -> MutableMapping[str, Any]: params = super().request_params(stream_state, stream_slice, next_page_token) params["from"] = stream_slice.get(self.cursor_field).to_date_string() - params["to"] = stream_slice.get(self.cursor_field + '_end').to_date_string() + params["to"] = stream_slice.get(self.cursor_field + "_end").to_date_string() return params -class RetargetingMixin: +class RetargetingMixin: def request_params( - self, - stream_state: Mapping[str, Any], - stream_slice: Mapping[str, any] = None, - next_page_token: Mapping[str, Any] = None + self, stream_state: Mapping[str, Any], stream_slice: Mapping[str, any] = None, next_page_token: Mapping[str, Any] = None ) -> MutableMapping[str, Any]: params = super().request_params(stream_state, stream_slice, next_page_token) params["reattr"] = True return params + class InAppEvents(RawDataMixin, IncrementalAppsflyerStream): intervals = 31 cursor_field = "event_time" def path( - self, - stream_state: Mapping[str, Any] = None, - stream_slice: Mapping[str, Any] = None, - next_page_token: Mapping[str, Any] = None + self, stream_state: Mapping[str, Any] = None, stream_slice: Mapping[str, Any] = None, next_page_token: Mapping[str, Any] = None ) -> str: return "in_app_events_report/v5" + class UninstallEvents(RawDataMixin, IncrementalAppsflyerStream): cursor_field = "event_time" additional_fields = fields.uninstall_events.additional_fields def path( - self, - stream_state: Mapping[str, Any] = None, - stream_slice: Mapping[str, Any] = None, - next_page_token: Mapping[str, Any] = None + self, stream_state: Mapping[str, Any] = None, stream_slice: Mapping[str, Any] = None, next_page_token: Mapping[str, Any] = None ) -> str: return "uninstall_events_report/v5" + class Installs(RawDataMixin, IncrementalAppsflyerStream): cursor_field = "install_time" def path( - self, - stream_state: Mapping[str, Any] = None, - stream_slice: Mapping[str, Any] = None, - next_page_token: Mapping[str, Any] = None + self, stream_state: Mapping[str, Any] = None, stream_slice: Mapping[str, Any] = None, next_page_token: Mapping[str, Any] = None ) -> str: return "installs_report/v5" -class RetargetingInAppEvents(RetargetingMixin,InAppEvents): + +class RetargetingInAppEvents(RetargetingMixin, InAppEvents): pass -class RetargetingConversions(RetargetingMixin,Installs): + +class RetargetingConversions(RetargetingMixin, Installs): pass + class PartnersReport(AggregateDataMixin, IncrementalAppsflyerStream): main_fields = fields.partners_report.main_fields def path( - self, - stream_state: Mapping[str, Any] = None, - stream_slice: Mapping[str, Any] = None, - next_page_token: Mapping[str, Any] = None + self, stream_state: Mapping[str, Any] = None, stream_slice: Mapping[str, Any] = None, next_page_token: Mapping[str, Any] = None ) -> str: return "partners_by_date_report/v5" + class DailyReport(AggregateDataMixin, IncrementalAppsflyerStream): main_fields = fields.daily_report.main_fields def path( - self, - stream_state: Mapping[str, Any] = None, - stream_slice: Mapping[str, Any] = None, - next_page_token: Mapping[str, Any] = None + self, stream_state: Mapping[str, Any] = None, stream_slice: Mapping[str, Any] = None, next_page_token: Mapping[str, Any] = None ) -> str: return "daily_report/v5" + class GeoReport(AggregateDataMixin, IncrementalAppsflyerStream): main_fields = fields.geo_report.main_fields def path( - self, - stream_state: Mapping[str, Any] = None, - stream_slice: Mapping[str, Any] = None, - next_page_token: Mapping[str, Any] = None + self, stream_state: Mapping[str, Any] = None, stream_slice: Mapping[str, Any] = None, next_page_token: Mapping[str, Any] = None ) -> str: return "geo_by_date_report/v5" + class RetargetingPartnersReport(RetargetingMixin, PartnersReport): main_fields = fields.retargeting_partners_report.main_fields + class RetargetingDailyReport(RetargetingMixin, DailyReport): main_fields = fields.retargeting_daily_report.main_fields + class RetargetingGeoReport(RetargetingMixin, GeoReport): main_fields = fields.retargeting_geo_report.main_fields + # Source class SourceAppsflyer(AbstractSource): def check_connection(self, logger, config) -> Tuple[bool, any]: @@ -319,7 +295,9 @@ def check_connection(self, logger, config) -> Tuple[bool, any]: app_id = config["app_id"] api_token = config["api_token"] dates = pendulum.now("UTC").to_date_string() - test_url = f"https://hq.appsflyer.com/export/{app_id}/partners_report/v5?api_token={api_token}&from={dates}&to={dates}&timezone=UTC" + test_url = ( + f"https://hq.appsflyer.com/export/{app_id}/partners_report/v5?api_token={api_token}&from={dates}&to={dates}&timezone=UTC" + ) response = requests.request("GET", url=test_url) if response.status_code != 200: @@ -359,5 +337,5 @@ def streams(self, config: Mapping[str, Any]) -> List[Stream]: GeoReport(authenticator=auth, **config), RetargetingPartnersReport(authenticator=auth, **config), RetargetingDailyReport(authenticator=auth, **config), - RetargetingGeoReport(authenticator=auth, **config) + RetargetingGeoReport(authenticator=auth, **config), ] diff --git a/airbyte-integrations/connectors/source-appsflyer/unit_tests/test_incremental_streams.py b/airbyte-integrations/connectors/source-appsflyer/unit_tests/test_incremental_streams.py index 2206d03cd1b46..06f9cebc729d8 100644 --- a/airbyte-integrations/connectors/source-appsflyer/unit_tests/test_incremental_streams.py +++ b/airbyte-integrations/connectors/source-appsflyer/unit_tests/test_incremental_streams.py @@ -1,27 +1,26 @@ # # Copyright (c) 2021 Airbyte, Inc., all rights reserved. # -from datetime import timezone + import pendulum import pytest -from pytest import fixture, raises -from unittest.mock import MagicMock -from pendulum.parsing.exceptions import ParserError - from airbyte_cdk.models import SyncMode -from source_appsflyer.source import IncrementalAppsflyerStream -from source_appsflyer.source import InAppEvents -from source_appsflyer.source import UninstallEvents -from source_appsflyer.source import Installs -from source_appsflyer.source import RetargetingInAppEvents -from source_appsflyer.source import RetargetingConversions -from source_appsflyer.source import PartnersReport -from source_appsflyer.source import DailyReport -from source_appsflyer.source import GeoReport -from source_appsflyer.source import RetargetingPartnersReport -from source_appsflyer.source import RetargetingDailyReport -from source_appsflyer.source import RetargetingGeoReport +from pytest import fixture, raises from source_appsflyer import fields +from source_appsflyer.source import ( + DailyReport, + GeoReport, + InAppEvents, + IncrementalAppsflyerStream, + Installs, + PartnersReport, + RetargetingConversions, + RetargetingDailyReport, + RetargetingGeoReport, + RetargetingInAppEvents, + RetargetingPartnersReport, + UninstallEvents, +) @fixture @@ -71,31 +70,22 @@ def test_cursor_field(patch_incremental_base_class, mocker, class_, expected_cur (RetargetingGeoReport, "date", True, None, True, None), ], ) -def test_request_params( - mocker, - class_, - cursor_field, - date_only, - additional_fields, - retargeting, - currency -): +def test_request_params(mocker, class_, cursor_field, date_only, additional_fields, retargeting, currency): timezone = "UTC" + def __init__(self): self.api_token = "secret" self.timezone = pendulum.timezone("UTC") self.start_date = pendulum.yesterday(timezone) self.end_date = pendulum.today(timezone) + mocker.patch.object(class_, "__init__", __init__) mocker.patch.object(class_, "cursor_field", cursor_field) stream = class_() start = pendulum.yesterday(timezone) end = pendulum.today(timezone) inputs = dict() - inputs["stream_slice"] = { - cursor_field: start, - cursor_field + "_end": end - } + inputs["stream_slice"] = {cursor_field: start, cursor_field + "_end": end} inputs["next_page_token"] = None inputs["stream_state"] = None expected_params = dict() @@ -124,14 +114,10 @@ def __init__(self): ({}, {}, {}), ], ) -def test_get_updated_state( - patch_incremental_base_class, - mocker, - current_stream_state, - latest_record, - expected_state -): - def __init__(self): self.timezone= pendulum.timezone("UTC") +def test_get_updated_state(patch_incremental_base_class, mocker, current_stream_state, latest_record, expected_state): + def __init__(self): + self.timezone = pendulum.timezone("UTC") + mocker.patch.object(IncrementalAppsflyerStream, "__init__", __init__) mocker.patch.object(IncrementalAppsflyerStream, "cursor_field", "event_time") stream = IncrementalAppsflyerStream() @@ -141,34 +127,31 @@ def __init__(self): self.timezone= pendulum.timezone("UTC") def test_get_updated_state_exists_current_stream_and_empty_latest_record(patch_incremental_base_class, mocker): with raises(TypeError, match=r"Expected (.*) type '(.*)' but returned type '(.*)'."): - def __init__(self): self.timezone= pendulum.timezone("UTC") + + def __init__(self): + self.timezone = pendulum.timezone("UTC") + mocker.patch.object(IncrementalAppsflyerStream, "__init__", __init__) mocker.patch.object(IncrementalAppsflyerStream, "cursor_field", "event_time") stream = IncrementalAppsflyerStream() - inputs = {"current_stream_state": dict(event_time="2021-09-09"), "latest_record": {"event_time":None}} + inputs = {"current_stream_state": dict(event_time="2021-09-09"), "latest_record": {"event_time": None}} stream.get_updated_state(**inputs) def test_stream_slices(patch_incremental_base_class, mocker): timezone = "UTC" + def __init__(self): - self.api_token= "secret" - self.timezone= pendulum.timezone("UTC") - self.start_date= pendulum.yesterday("UTC") - self.end_date= pendulum.today("UTC") + self.api_token = "secret" + self.timezone = pendulum.timezone("UTC") + self.start_date = pendulum.yesterday("UTC") + self.end_date = pendulum.today("UTC") mocker.patch.object(IncrementalAppsflyerStream, "__init__", __init__) mocker.patch.object(IncrementalAppsflyerStream, "cursor_field", "date") stream = IncrementalAppsflyerStream() - inputs = { - "sync_mode": SyncMode.incremental, - "cursor_field": [], - "stream_state": dict(date=pendulum.yesterday(timezone)) - } - expected_stream_slice = [{ - "date":pendulum.yesterday("UTC"), - "date_end":pendulum.today("UTC") - }] + inputs = {"sync_mode": SyncMode.incremental, "cursor_field": [], "stream_state": dict(date=pendulum.yesterday(timezone))} + expected_stream_slice = [{"date": pendulum.yesterday("UTC"), "date_end": pendulum.today("UTC")}] assert stream.stream_slices(**inputs) == expected_stream_slice diff --git a/airbyte-integrations/connectors/source-appsflyer/unit_tests/test_source.py b/airbyte-integrations/connectors/source-appsflyer/unit_tests/test_source.py index 33ea1c7dfbc3b..eacfb10c0af2b 100644 --- a/airbyte-integrations/connectors/source-appsflyer/unit_tests/test_source.py +++ b/airbyte-integrations/connectors/source-appsflyer/unit_tests/test_source.py @@ -1,11 +1,13 @@ # # Copyright (c) 2021 Airbyte, Inc., all rights reserved. # -import pytest -from requests import request + from http import HTTPStatus +from unittest.mock import MagicMock, patch + +import pytest from source_appsflyer.source import SourceAppsflyer -from unittest.mock import patch, MagicMock + @pytest.mark.parametrize( ("timezone", "http_status", "response_text", "expected_result"), @@ -25,7 +27,7 @@ def test_check_connection(mocker, timezone, http_status, response_text, expected "app_id": "app.yourapp.android", "api_token": "secret", "start_date": "2021-09-27 20:00:00", - "timezone":timezone, + "timezone": timezone, } logger_mock = MagicMock() assert source.check_connection(logger_mock, config) == expected_result @@ -33,12 +35,7 @@ def test_check_connection(mocker, timezone, http_status, response_text, expected def test_streams(): source = SourceAppsflyer() - config_mock = { - "app_id": "testing", - "api_token": "secrets", - "start_date" : "2021-09-13 01:00:00", - "timezone":"UTC" - } + config_mock = {"app_id": "testing", "api_token": "secrets", "start_date": "2021-09-13 01:00:00", "timezone": "UTC"} streams = source.streams(config_mock) expected_streams_number = 11 assert len(streams) == expected_streams_number diff --git a/airbyte-integrations/connectors/source-appsflyer/unit_tests/test_streams.py b/airbyte-integrations/connectors/source-appsflyer/unit_tests/test_streams.py index 643cfb5fe8ce7..f23d2b30b24c5 100644 --- a/airbyte-integrations/connectors/source-appsflyer/unit_tests/test_streams.py +++ b/airbyte-integrations/connectors/source-appsflyer/unit_tests/test_streams.py @@ -4,9 +4,9 @@ from http import HTTPStatus from unittest.mock import MagicMock -import pytest + import pendulum -from requests.models import Response +import pytest from source_appsflyer.source import AppsflyerStream @@ -14,8 +14,9 @@ def patch_base_class(mocker): # Mock abstract methods to enable instantiating abstract class def __init__(self): - self.api_token= "secret" - self.timezone= pendulum.timezone("UTC") + self.api_token = "secret" + self.timezone = pendulum.timezone("UTC") + mocker.patch.object(AppsflyerStream, "__init__", __init__) mocker.patch.object(AppsflyerStream, "path", "v0/example_endpoint") mocker.patch.object(AppsflyerStream, "primary_key", "test_primary_key") @@ -84,12 +85,12 @@ def test_should_retry(patch_base_class, http_status, response_text, should_retry (HTTPStatus.BAD_REQUEST, "", None), (HTTPStatus.TOO_MANY_REQUESTS, "", None), (HTTPStatus.INTERNAL_SERVER_ERROR, "", None), - (HTTPStatus.FORBIDDEN, "Limit reached for ", 60), # Wait time for aggregate data is 60 Seconds. + (HTTPStatus.FORBIDDEN, "Limit reached for ", 60), # Wait time for aggregate data is 60 Seconds. ( HTTPStatus.BAD_REQUEST, "Your API calls limit has been reached for report type", - "Midnight" - ), # Wait time for raw data is Midnight UTC - Now UTC. + "Midnight", + ), # Wait time for raw data is Midnight UTC - Now UTC. ], ) def test_backoff_time(patch_base_class, http_status, response_text, expected_backoff_time): diff --git a/airbyte-integrations/connectors/source-facebook-marketing/source_facebook_marketing/api.py b/airbyte-integrations/connectors/source-facebook-marketing/source_facebook_marketing/api.py index 45e9db0501e90..db4766e5f59b5 100644 --- a/airbyte-integrations/connectors/source-facebook-marketing/source_facebook_marketing/api.py +++ b/airbyte-integrations/connectors/source-facebook-marketing/source_facebook_marketing/api.py @@ -3,10 +3,10 @@ # import json +import logging from time import sleep import pendulum -import logging from cached_property import cached_property from facebook_business import FacebookAdsApi from facebook_business.adobjects import user as fb_user diff --git a/airbyte-integrations/connectors/source-facebook-marketing/source_facebook_marketing/common.py b/airbyte-integrations/connectors/source-facebook-marketing/source_facebook_marketing/common.py index f0a58bdb9a881..2085bd56b4a8d 100644 --- a/airbyte-integrations/connectors/source-facebook-marketing/source_facebook_marketing/common.py +++ b/airbyte-integrations/connectors/source-facebook-marketing/source_facebook_marketing/common.py @@ -2,12 +2,12 @@ # Copyright (c) 2021 Airbyte, Inc., all rights reserved. # +import logging import sys from typing import Any, Iterable, Sequence import backoff import pendulum -import logging from facebook_business.exceptions import FacebookRequestError # The Facebook API error codes indicating rate-limiting are listed at diff --git a/airbyte-integrations/connectors/source-facebook-marketing/source_facebook_marketing/schemas/ads_insights_breakdowns.json b/airbyte-integrations/connectors/source-facebook-marketing/source_facebook_marketing/schemas/ads_insights_breakdowns.json index aa54929b7ecbd..87d31b9854b93 100644 --- a/airbyte-integrations/connectors/source-facebook-marketing/source_facebook_marketing/schemas/ads_insights_breakdowns.json +++ b/airbyte-integrations/connectors/source-facebook-marketing/source_facebook_marketing/schemas/ads_insights_breakdowns.json @@ -1,38 +1,42 @@ { - "properties": { - "action_device": {"type": ["null", "string"]}, - "action_canvas_component_name": {"type": ["null", "string"]}, - "action_carousel_card_id": {"type": ["null", "string"]}, - "action_carousel_card_name": {"type": ["null", "string"]}, - "action_destination": {"type": ["null", "string"]}, - "action_reaction": {"type": ["null", "string"]}, - "action_target_id": {"type": ["null", "string"]}, - "action_type": {"type": ["null", "string"]}, - "action_video_sound": {"type": ["null", "string"]}, - "action_video_type": {"type": ["null", "string"]}, - "ad_format_asset": {"type": ["null", "string"]}, - "age": {"type": ["null", "string"]}, - "app_id": {"type": ["null", "string"]}, - "body_asset": {"type": ["null", "string"]}, - "call_to_action_asset": {"type": ["null", "string"]}, - "country": {"type": ["null", "string"]}, - "description_asset": {"type": ["null", "string"]}, - "device_platform": {"type": ["null", "string"]}, - "dma": {"type": ["null", "string"]}, - "frequency_value": {"type": ["null", "string"]}, - "gender": {"type": ["null", "string"]}, - "hourly_stats_aggregated_by_advertiser_time_zone": {"type": ["null", "string"]}, - "hourly_stats_aggregated_by_audience_time_zone": {"type": ["null", "string"]}, - "image_asset": {"type": ["null", "string"]}, - "impression_device": {"type": ["null", "string"]}, - "link_url_asset": {"type": ["null", "string"]}, - "place_page_id": {"type": ["null", "string"]}, - "platform_position": {"type": ["null", "string"]}, - "product_id": {"type": ["null", "string"]}, - "publisher_platform": {"type": ["null", "string"]}, - "region": {"type": ["null", "string"]}, - "skan_conversion_id": {"type": ["null", "string"]}, - "title_asset": {"type": ["null", "string"]}, - "video_asset": {"type": ["null", "string"]} - } -} \ No newline at end of file + "properties": { + "action_device": { "type": ["null", "string"] }, + "action_canvas_component_name": { "type": ["null", "string"] }, + "action_carousel_card_id": { "type": ["null", "string"] }, + "action_carousel_card_name": { "type": ["null", "string"] }, + "action_destination": { "type": ["null", "string"] }, + "action_reaction": { "type": ["null", "string"] }, + "action_target_id": { "type": ["null", "string"] }, + "action_type": { "type": ["null", "string"] }, + "action_video_sound": { "type": ["null", "string"] }, + "action_video_type": { "type": ["null", "string"] }, + "ad_format_asset": { "type": ["null", "string"] }, + "age": { "type": ["null", "string"] }, + "app_id": { "type": ["null", "string"] }, + "body_asset": { "type": ["null", "string"] }, + "call_to_action_asset": { "type": ["null", "string"] }, + "country": { "type": ["null", "string"] }, + "description_asset": { "type": ["null", "string"] }, + "device_platform": { "type": ["null", "string"] }, + "dma": { "type": ["null", "string"] }, + "frequency_value": { "type": ["null", "string"] }, + "gender": { "type": ["null", "string"] }, + "hourly_stats_aggregated_by_advertiser_time_zone": { + "type": ["null", "string"] + }, + "hourly_stats_aggregated_by_audience_time_zone": { + "type": ["null", "string"] + }, + "image_asset": { "type": ["null", "string"] }, + "impression_device": { "type": ["null", "string"] }, + "link_url_asset": { "type": ["null", "string"] }, + "place_page_id": { "type": ["null", "string"] }, + "platform_position": { "type": ["null", "string"] }, + "product_id": { "type": ["null", "string"] }, + "publisher_platform": { "type": ["null", "string"] }, + "region": { "type": ["null", "string"] }, + "skan_conversion_id": { "type": ["null", "string"] }, + "title_asset": { "type": ["null", "string"] }, + "video_asset": { "type": ["null", "string"] } + } +} diff --git a/airbyte-integrations/connectors/source-facebook-marketing/source_facebook_marketing/source.py b/airbyte-integrations/connectors/source-facebook-marketing/source_facebook_marketing/source.py index cfef9c5c11877..cd9c565456403 100644 --- a/airbyte-integrations/connectors/source-facebook-marketing/source_facebook_marketing/source.py +++ b/airbyte-integrations/connectors/source-facebook-marketing/source_facebook_marketing/source.py @@ -4,20 +4,23 @@ import logging from datetime import datetime -from typing import Any, List, Mapping, Optional, Tuple, Type, MutableMapping -from jsonschema import RefResolver - - -from airbyte_cdk.logger import AirbyteLogger -from airbyte_cdk.models import AirbyteConnectionStatus, AuthSpecification, ConnectorSpecification, DestinationSyncMode, OAuth2Specification, Status - -from typing import Any, List, Mapping, Optional, Tuple, Type +from typing import Any, List, Mapping, MutableMapping, Optional, Tuple, Type import pendulum +from airbyte_cdk.logger import AirbyteLogger +from airbyte_cdk.models import ( + AirbyteConnectionStatus, + AuthSpecification, + ConnectorSpecification, + DestinationSyncMode, + OAuth2Specification, + Status, +) from airbyte_cdk.sources import AbstractSource from airbyte_cdk.sources.streams import Stream from airbyte_cdk.sources.streams.core import package_name_from_class from airbyte_cdk.sources.utils.schema_helpers import ResourceSchemaLoader +from jsonschema import RefResolver from pydantic import BaseModel, Field from source_facebook_marketing.api import API from source_facebook_marketing.streams import ( @@ -34,9 +37,9 @@ Campaigns, ) - logger = logging.getLogger(__name__) + class InsightConfig(BaseModel): name: str = Field(description="The name value of insight") @@ -133,7 +136,6 @@ def streams(self, config: Mapping[str, Any]) -> List[Type[Stream]]: Campaigns(api=api, start_date=config.start_date, end_date=config.end_date, include_deleted=config.include_deleted), AdSets(api=api, start_date=config.start_date, end_date=config.end_date, include_deleted=config.include_deleted), Ads(api=api, start_date=config.start_date, end_date=config.end_date, include_deleted=config.include_deleted), - AdCreatives(api=api), AdsInsights(**insights_args), AdsInsightsAgeAndGender(**insights_args), @@ -155,11 +157,10 @@ def check(self, logger: AirbyteLogger, config: Mapping[str, Any]) -> AirbyteConn except Exception as e: return AirbyteConnectionStatus(status=Status.FAILED, message=repr(e)) - self._check_custom_insights_entries(config.get('custom_insights', [])) + self._check_custom_insights_entries(config.get("custom_insights", [])) return AirbyteConnectionStatus(status=Status.SUCCEEDED) - def spec(self, *args, **kwargs) -> ConnectorSpecification: """ Returns the spec for this integration. The spec is a JSON-Schema object describing the required configurations (e.g: username and password) @@ -175,7 +176,7 @@ def spec(self, *args, **kwargs) -> ConnectorSpecification: auth_type="oauth2.0", oauth2Specification=OAuth2Specification( rootObject=[], oauthFlowInitParameters=[], oauthFlowOutputParameters=[["access_token"]] - ) + ), ), ) @@ -201,23 +202,27 @@ def _update_insights_streams(self, insights, args, streams) -> List[Type[Stream] def _check_custom_insights_entries(self, insights: List[Mapping[str, Any]]): - default_fields = list(ResourceSchemaLoader(package_name_from_class(self.__class__)).get_schema("ads_insights").get("properties", {}).keys()) - default_breakdowns = list(ResourceSchemaLoader(package_name_from_class(self.__class__)).get_schema("ads_insights_breakdowns").get("properties", {}).keys()) - default_actions_breakdowns = [e for e in default_breakdowns if 'action_' in e] + default_fields = list( + ResourceSchemaLoader(package_name_from_class(self.__class__)).get_schema("ads_insights").get("properties", {}).keys() + ) + default_breakdowns = list( + ResourceSchemaLoader(package_name_from_class(self.__class__)).get_schema("ads_insights_breakdowns").get("properties", {}).keys() + ) + default_actions_breakdowns = [e for e in default_breakdowns if "action_" in e] for insight in insights: - if insight.get('fields'): - value_checked, value = self._check_values(default_fields, insight.get('fields')) + if insight.get("fields"): + value_checked, value = self._check_values(default_fields, insight.get("fields")) if not value_checked: message = f"{value} is not a valid field name" raise Exception("Config validation error: " + message) from None - if insight.get('breakdowns'): - value_checked, value = self._check_values(default_breakdowns, insight.get('breakdowns')) + if insight.get("breakdowns"): + value_checked, value = self._check_values(default_breakdowns, insight.get("breakdowns")) if not value_checked: message = f"{value} is not a valid breakdown name" raise Exception("Config validation error: " + message) from None - if insight.get('action_breakdowns'): - value_checked, value = self._check_values(default_actions_breakdowns, insight.get('action_breakdowns')) + if insight.get("action_breakdowns"): + value_checked, value = self._check_values(default_actions_breakdowns, insight.get("action_breakdowns")) if not value_checked: message = f"{value} is not a valid action_breakdown name" raise Exception("Config validation error: " + message) from None diff --git a/airbyte-integrations/connectors/source-google-directory/sample_files/configured_catalog.json b/airbyte-integrations/connectors/source-google-directory/sample_files/configured_catalog.json index d1efb7f80b535..f89d0aa9e90e4 100644 --- a/airbyte-integrations/connectors/source-google-directory/sample_files/configured_catalog.json +++ b/airbyte-integrations/connectors/source-google-directory/sample_files/configured_catalog.json @@ -141,7 +141,13 @@ "type": "string" } }, - "required": ["name", "title", "primary", "customType", "description"] + "required": [ + "name", + "title", + "primary", + "customType", + "description" + ] } ] }, diff --git a/airbyte-integrations/connectors/source-s3/integration_tests/spec.json b/airbyte-integrations/connectors/source-s3/integration_tests/spec.json index 9c8cb99621ada..85c30a5eb513f 100644 --- a/airbyte-integrations/connectors/source-s3/integration_tests/spec.json +++ b/airbyte-integrations/connectors/source-s3/integration_tests/spec.json @@ -98,9 +98,7 @@ "title": "Advanced Options", "description": "Optionally add a valid JSON string here to provide additional Pyarrow ReadOptions. Specify 'column_names' here if your CSV doesn't have header, or if you want to use custom column names. 'block_size' and 'encoding' are already used above, specify them again here will override the values above.", "default": "{}", - "examples": [ - "{\"column_names\": [\"column1\", \"column2\"]}" - ], + "examples": ["{\"column_names\": [\"column1\", \"column2\"]}"], "type": "string" } } diff --git a/airbyte-integrations/connectors/source-s3/source_s3/source_files_abstract/formats/csv_spec.py b/airbyte-integrations/connectors/source-s3/source_s3/source_files_abstract/formats/csv_spec.py index a05c22e71dd72..445be3b594d79 100644 --- a/airbyte-integrations/connectors/source-s3/source_s3/source_files_abstract/formats/csv_spec.py +++ b/airbyte-integrations/connectors/source-s3/source_s3/source_files_abstract/formats/csv_spec.py @@ -53,5 +53,5 @@ class Config: advanced_options: str = Field( default="{}", description="Optionally add a valid JSON string here to provide additional Pyarrow ReadOptions. Specify 'column_names' here if your CSV doesn't have header, or if you want to use custom column names. 'block_size' and 'encoding' are already used above, specify them again here will override the values above.", - examples=["{\"column_names\": [\"column1\", \"column2\"]}"], + examples=['{"column_names": ["column1", "column2"]}'], ) diff --git a/airbyte-integrations/connectors/source-s3/source_s3/source_files_abstract/stream.py b/airbyte-integrations/connectors/source-s3/source_s3/source_files_abstract/stream.py index c4bffaff8c744..54d89b978999d 100644 --- a/airbyte-integrations/connectors/source-s3/source_s3/source_files_abstract/stream.py +++ b/airbyte-integrations/connectors/source-s3/source_s3/source_files_abstract/stream.py @@ -152,6 +152,7 @@ def get_time_ordered_filepaths(self) -> Iterable[Tuple[datetime, str]]: :return: list in time-ascending order """ + def get_storagefile_with_lastmod(filepath: str) -> Tuple[datetime, str]: fc = self.storagefile_class(filepath, self._provider) return (fc.last_modified, filepath) diff --git a/airbyte-integrations/connectors/source-s3/unit_tests/test_csv_parser.py b/airbyte-integrations/connectors/source-s3/unit_tests/test_csv_parser.py index 7d63667ae2d78..e9640bd41fc6e 100644 --- a/airbyte-integrations/connectors/source-s3/unit_tests/test_csv_parser.py +++ b/airbyte-integrations/connectors/source-s3/unit_tests/test_csv_parser.py @@ -256,11 +256,11 @@ def test_files(self) -> List[Mapping[str, Any]]: "AbstractFileParser": CsvParser( format={ "filetype": "csv", - "advanced_options": json.dumps({ - "column_names": ["id", "name", "valid", "code", "degrees", "birthday", "last_seen"] - }) + "advanced_options": json.dumps( + {"column_names": ["id", "name", "valid", "code", "degrees", "birthday", "last_seen"]} + ), }, - master_schema={} + master_schema={}, ), "filepath": os.path.join(SAMPLE_DIRECTORY, "csv/test_file_8_no_header.csv"), "num_records": 8,