Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Source Facebook Marketing: Add Ad Insights streams #26720

Merged
merged 10 commits into from May 30, 2023
Expand Up @@ -13,5 +13,5 @@ ENV AIRBYTE_ENTRYPOINT "python /airbyte/integration_code/main.py"
ENTRYPOINT ["python", "/airbyte/integration_code/main.py"]


LABEL io.airbyte.version=0.3.7
LABEL io.airbyte.version=0.4.0
LABEL io.airbyte.name=airbyte/source-facebook-marketing
Expand Up @@ -27,14 +27,44 @@ acceptance_tests:
bypass_reason: "Thumbnail urls changes permanently"
- name: "ad_creatives"
bypass_reason: "Thumbnail urls changes permanently"
- name: "ads_insights_action_carousel_card"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how are we testing the new streams if there's no data in our test account?

Copy link
Collaborator Author

@artem1205 artem1205 May 30, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We do have some data for all these streams. Or, more precisely, all ad Insight streams make requests to the same data, but using different "slicing" columns (like in pivot tables).
I've disable them for basic_read test, because we use our "live" account for testing.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We still test all these streams in incremental and full_refresh tests

bypass_reason: "Data not permanent"
- name: "ads_insights_action_conversion_device"
bypass_reason: "Data not permanent"
- name: "ads_insights_action_product_id"
bypass_reason: "Data not permanent"
- name: "ads_insights_action_reaction"
bypass_reason: "Data not permanent"
- name: "ads_insights_action_video_sound"
bypass_reason: "Data not permanent"
- name: "ads_insights_action_video_type"
bypass_reason: "Data not permanent"
- name: "ads_insights_action_type"
bypass_reason: "Data not permanent"
- name: "ads_insights_delivery_device"
bypass_reason: "Data not permanent"
- name: "ads_insights_delivery_platform"
bypass_reason: "Data not permanent"
- name: "ads_insights_delivery_platform_and_device_platform"
bypass_reason: "Data not permanent"
- name: "ads_insights_demographics_age"
bypass_reason: "Data not permanent"
- name: "ads_insights_age_and_gender"
bypass_reason: "Data not permanent"
- name: "ads_insights_region"
- name: "ads_insights_demographics_country"
bypass_reason: "Data not permanent"
- name: "ads_insights_demographics_dma_region"
bypass_reason: "Data not permanent"
- name: "ads_insights_demographics_gender"
bypass_reason: "Data not permanent"
- name: "ads_insights_dma"
bypass_reason: "Data not permanent"
- name: "ads_insights_country"
bypass_reason: "Data not permanent"
- name: "ads_insights_platform_and_device"
bypass_reason: "Data not permanent"
- name: "ads_insights_region"
bypass_reason: "Data not permanent"
- name: "activities"
bypass_reason: "age field autoupdated"
- name: "custom_conversions"
Expand Down
@@ -0,0 +1,232 @@
{
"streams": [
{
"stream": {
"name": "ads_insights_action_carousel_card",
"json_schema": {},
"supported_sync_modes": [
"full_refresh",
"incremental"
]
},
"sync_mode": "incremental",
"destination_sync_mode": "append"
},
{
"stream": {
"name": "ads_insights_action_conversion_device",
"json_schema": {},
"supported_sync_modes": [
"full_refresh",
"incremental"
]
},
"sync_mode": "incremental",
"destination_sync_mode": "append"
},
{
"stream": {
"name": "ads_insights_action_product_id",
"json_schema": {},
"supported_sync_modes": [
"full_refresh",
"incremental"
]
},
"sync_mode": "incremental",
"destination_sync_mode": "append"
},
{
"stream": {
"name": "ads_insights_action_reaction",
"json_schema": {},
"supported_sync_modes": [
"full_refresh",
"incremental"
]
},
"sync_mode": "incremental",
"destination_sync_mode": "append"
},
{
"stream": {
"name": "ads_insights_action_video_sound",
"json_schema": {},
"supported_sync_modes": [
"full_refresh",
"incremental"
]
},
"sync_mode": "incremental",
"destination_sync_mode": "append"
},
{
"stream": {
"name": "ads_insights_action_video_type",
"json_schema": {},
"supported_sync_modes": [
"full_refresh",
"incremental"
]
},
"sync_mode": "incremental",
"destination_sync_mode": "append"
},
{
"stream": {
"name": "ads_insights_action_type",
"json_schema": {},
"supported_sync_modes": [
"full_refresh",
"incremental"
]
},
"sync_mode": "incremental",
"destination_sync_mode": "append"
},
{
"stream": {
"name": "ads_insights_delivery_device",
"json_schema": {},
"supported_sync_modes": [
"full_refresh",
"incremental"
]
},
"sync_mode": "incremental",
"destination_sync_mode": "append"
},
{
"stream": {
"name": "ads_insights_delivery_platform",
"json_schema": {},
"supported_sync_modes": [
"full_refresh",
"incremental"
]
},
"sync_mode": "incremental",
"destination_sync_mode": "append"
},
{
"stream": {
"name": "ads_insights_delivery_platform_and_device_platform",
"json_schema": {},
"supported_sync_modes": [
"full_refresh",
"incremental"
]
},
"sync_mode": "incremental",
"destination_sync_mode": "append"
},
{
"stream": {
"name": "ads_insights_demographics_age",
"json_schema": {},
"supported_sync_modes": [
"full_refresh",
"incremental"
]
},
"sync_mode": "incremental",
"destination_sync_mode": "append"
},
{
"stream": {
"name": "ads_insights_age_and_gender",
"json_schema": {},
"supported_sync_modes": [
"full_refresh",
"incremental"
]
},
"sync_mode": "incremental",
"destination_sync_mode": "append"
},
{
"stream": {
"name": "ads_insights_demographics_country",
"json_schema": {},
"supported_sync_modes": [
"full_refresh",
"incremental"
]
},
"sync_mode": "incremental",
"destination_sync_mode": "append"
},
{
"stream": {
"name": "ads_insights_demographics_dma_region",
"json_schema": {},
"supported_sync_modes": [
"full_refresh",
"incremental"
]
},
"sync_mode": "incremental",
"destination_sync_mode": "append"
},
{
"stream": {
"name": "ads_insights_demographics_gender",
"json_schema": {},
"supported_sync_modes": [
"full_refresh",
"incremental"
]
},
"sync_mode": "incremental",
"destination_sync_mode": "append"
},
{
"stream": {
"name": "ads_insights_dma",
"json_schema": {},
"supported_sync_modes": [
"full_refresh",
"incremental"
]
},
"sync_mode": "incremental",
"destination_sync_mode": "append"
},
{
"stream": {
"name": "ads_insights_country",
"json_schema": {},
"supported_sync_modes": [
"full_refresh",
"incremental"
]
},
"sync_mode": "incremental",
"destination_sync_mode": "append"
},
{
"stream": {
"name": "ads_insights_platform_and_device",
"json_schema": {},
"supported_sync_modes": [
"full_refresh",
"incremental"
]
},
"sync_mode": "incremental",
"destination_sync_mode": "append"
},
{
"stream": {
"name": "ads_insights_region",
"json_schema": {},
"supported_sync_modes": [
"full_refresh",
"incremental"
]
},
"sync_mode": "incremental",
"destination_sync_mode": "append"
}
]
}