Skip to content

Bug: attach_shared_set_to_campaigns fails with partial_failure error #40

@luison

Description

@luison

Tool: attach_shared_set_to_campaigns → confirm_and_apply

Steps to reproduce

  1. Call attach_shared_set_to_campaigns with any valid shared_set_id and campaign_ids — returns plan_id successfully
  2. Call confirm_and_apply(plan_id, dry_run=false) — throws error

Error

CampaignSharedSetServiceClient.mutate_campaign_shared_sets() got an unexpected keyword argument 'partial_failure'

Root cause

The server passes partial_failure=True as a keyword argument to mutate_campaign_shared_sets(). The current version of the google-ads library does not accept this parameter on this
service (it is supported on other services like AdGroupCriterionService).

Expected behavior

confirm_and_apply should successfully link the shared negative keyword list to the specified campaign(s).

Workaround

Attach shared negative keyword lists manually from the Google Ads UI: Tools & Settings → Shared Library → Negative keyword lists → Select list → Campaigns tab → Link campaign.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions