Skip to content

draft_campaign fails for EU accounts: missing contains_eu_political_advertising field #5

Description

@Kameeleonn

Bug

draft_campaignconfirm_and_apply(dry_run=false) fails with:

errors {
  error_code {
    field_error: REQUIRED
  }
  message: "The required field was not present."
  location {
    field_path_elements { field_name: "mutate_operations" index: 1 }
    field_path_elements { field_name: "campaign_operation" }
    field_path_elements { field_name: "create" }
    field_path_elements { field_name: "contains_eu_political_advertising" }
  }
}

Steps to reproduce

  1. Configure AdLoop with an EU-based Google Ads account
  2. draft_campaign(campaign_name="Test", daily_budget=30, bidding_strategy="MAXIMIZE_CONVERSIONS")
  3. confirm_and_apply(plan_id=..., dry_run=false)

Dry run succeeds, but the actual apply fails.

Expected behavior

AdLoop should set contains_eu_political_advertising: false by default when creating campaigns, since the Google Ads API v23 requires this field for EU accounts.

Environment

  • AdLoop: latest (via uvx)
  • Google Ads API: v23
  • Account region: Poland (EU)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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