Skip to content

source-facebook-marketing: Add engaged view (ev) attribution windows to action attribution reportingΒ #74265

@devin-ai-integration

Description

@devin-ai-integration

Summary

Requested by Teo (@tgonzalezc5) (teo@airbyte.io).

When pulling data from the Facebook Marketing source connector, the action_attribution_windows parameter sent to the Facebook Insights API should include the engaged view (ev) attribution window types in addition to the existing click and view windows.

Current Behavior

The connector currently requests the following action_attribution_windows (defined in ALL_ACTION_ATTRIBUTION_WINDOWS in base_insight_streams.py):

  • 1d_click
  • 7d_click
  • 28d_click
  • 1d_view

This means streams like custom insights reporting (e.g. custom_table_actions, custom_table_action_values) only include click and 1d_view attribution data.

Expected Behavior

The connector should also request the following engaged view attribution windows:

  • 1d_ev
  • 7d_ev
  • 28d_ev

These are valid Facebook Marketing API attribution windows and are needed to get complete attribution reporting data.

Relevant Code

Impact

This affects all Ads Insights streams that use action_attribution_windows in their API requests. Adding the ev windows will surface engaged view attribution data in action-related fields (e.g. actions, action_values, cost_per_action_type, etc.).

Considerations

  • Adding new attribution windows is a schema change β€” new *_1d_ev, *_7d_ev, *_28d_ev columns will appear in action stats objects.
  • This should be evaluated for whether it constitutes a breaking change (new columns appearing in existing streams). Since these are additive columns, this may be non-breaking.
  • The JSON schemas for action stats (shared/ads_action_stats.json) will need to be updated to include the new ev window properties.

Internal Tracking: https://github.com/airbytehq/oncall/issues/11511

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions