Skip to content

Upgrade version of Campaign Manager API to v5#62510

Open
Crowiant wants to merge 1 commit intoapache:mainfrom
VladaZakharova:upgrade-campaign-manager
Open

Upgrade version of Campaign Manager API to v5#62510
Crowiant wants to merge 1 commit intoapache:mainfrom
VladaZakharova:upgrade-campaign-manager

Conversation

@Crowiant
Copy link
Contributor

Campaign Manager 360 API v4 is deprecated(https://developers.google.com/doubleclick-advertisers/deprecation) and will be sunset on February 26, 2026.
PR updates default version inside Campaign Manager Operators.
Release notes for the new version: https://developers.google.com/doubleclick-advertisers/rel_notes


Was generative AI tooling used to co-author this PR?
  • Yes (please specify the tool below)

  • Read the Pull Request Guidelines for more information. Note: commit author/co-author name and email in commits become permanently public when merged.
  • For fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
  • When adding dependency, check compliance with the ASF 3rd Party License Policy.
  • For significant user-facing changes create newsfragment: {pr_number}.significant.rst or {issue_number}.significant.rst, in airflow-core/newsfragments.

@Crowiant Crowiant requested a review from shahar1 as a code owner February 26, 2026 10:45
@boring-cyborg boring-cyborg bot added area:providers provider:google Google (including GCP) related issues labels Feb 26, 2026
@kaxil kaxil requested a review from Copilot February 26, 2026 18:39
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates Google Campaign Manager 360 operators to default to the v5 API in response to the deprecation and impending sunset of v4.

Changes:

  • Bump default api_version for Campaign Manager operators from v4 to v5.
  • Update operator unit test constant to use v5.
  • Adjust operator docstring parameter examples to reference v5.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 7 comments.

File Description
providers/google/src/airflow/providers/google/marketing_platform/operators/campaign_manager.py Switches operator defaults (and docstring param examples) to Campaign Manager API v5.
providers/google/tests/unit/google/marketing_platform/operators/test_campaign_manager.py Updates test constant to v5 for operator tests.

:param report_id: The ID of the report.
:param synchronous: If set and true, tries to run the report synchronously.
:param api_version: The version of the api that will be requested, for example 'v4'.
:param api_version: The version of the api that will be requested, for example 'v5'.
Copy link

Copilot AI Feb 26, 2026

Choose a reason for hiding this comment

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

This docstring now mentions api_version 'v5', but the referenced official API docs URL for this operator still uses /rest/v4/.... Please update the link(s) to v5 (or a version-neutral reference) to avoid confusion.

Copilot uses AI. Check for mistakes.
(the %m macro) or from Data Transfer.
:param max_failed_inserts: The maximum number of conversions that failed to be inserted
:param api_version: The version of the api that will be requested, for example 'v4'.
:param api_version: The version of the api that will be requested, for example 'v5'.
Copy link

Copilot AI Feb 26, 2026

Choose a reason for hiding this comment

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

The docstring now documents api_version example 'v5', but it still references v4 REST docs for conversions (/rest/v4/...). Please update the linked docs URLs to v5 (or a version-neutral page) so the guidance matches the operator defaults.

Copilot uses AI. Check for mistakes.
(the %m macro) or from Data Transfer.
:param max_failed_updates: The maximum number of conversions that failed to be updated
:param api_version: The version of the api that will be requested, for example 'v4'.
:param api_version: The version of the api that will be requested, for example 'v5'.
Copy link

Copilot AI Feb 26, 2026

Choose a reason for hiding this comment

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

This docstring now documents api_version example 'v5', but the linked conversions documentation URLs still point at v4 (/rest/v4/...). Please update those URLs to v5 (or a version-neutral page) to keep documentation accurate.

Copilot uses AI. Check for mistakes.
from tests_common.test_utils.taskinstance import run_task_instance

API_VERSION = "v4"
API_VERSION = "v5"
Copy link

Copilot AI Feb 26, 2026

Choose a reason for hiding this comment

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

These tests always pass api_version explicitly, so they don't verify that the operators' default api_version was changed to v5. Please add at least one test case that omits api_version and asserts the hook is instantiated with v5 by default.

Copilot uses AI. Check for mistakes.
:param report_name: The name of the report to delete.
:param report_id: The ID of the report.
:param api_version: The version of the api that will be requested, for example 'v4'.
:param api_version: The version of the api that will be requested, for example 'v5'.
Copy link

Copilot AI Feb 26, 2026

Choose a reason for hiding this comment

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

The docstring now uses api_version example 'v5', but the "Check official API docs" URL in the same docstring still points to /rest/v4/.... Please update the referenced URL(s) to v5 (or make the URL version-neutral) to avoid misleading users.

Copilot uses AI. Check for mistakes.
:param gzip: Option to compress local file or file data for upload
:param chunk_size: File will be downloaded in chunks of this many bytes.
:param api_version: The version of the api that will be requested, for example 'v4'.
:param api_version: The version of the api that will be requested, for example 'v5'.
Copy link

Copilot AI Feb 26, 2026

Choose a reason for hiding this comment

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

The docstring now references api_version 'v5', but the linked official docs in this class still point to the v4 REST path (/rest/v4/...). Please update the doc links (or make them version-neutral) so the documentation matches the new default.

Copilot uses AI. Check for mistakes.
:param profile_id: The DFA user profile ID.
:param report: Report to be created.
:param api_version: The version of the api that will be requested, for example 'v4'.
:param api_version: The version of the api that will be requested, for example 'v5'.
Copy link

Copilot AI Feb 26, 2026

Choose a reason for hiding this comment

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

The docstring was updated to use api_version example 'v5', but this class still links to v4 REST docs (/rest/v4/...) above. Please update those URLs to v5 (or a versionless page) to keep documentation consistent with the default behavior.

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:providers provider:google Google (including GCP) related issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants