Skip to content

Errors::ErrorLocation::FieldPathElement doesnt contain index anymore #199

@apneadiving

Description

@apneadiving

Using 3.2.0, it seems there is a regression within the data I retrieve on errors.

It was possible to get the index of the errored operations before yet this field is now nil see <Google::Ads::GoogleAds::V2::Errors::ErrorLocation::FieldPathElement: field_name: "name", index: nil>]> and full object below.

If ever it is relevant, it happens after a mutation where I use partial_failure: true, validate_only: true.

Is it a known issue?

Thanks

[#<GoogleErrorWrapper:0x00007f682e2904f8 @error=<Google::Ads::GoogleAds::V2::Errors::GoogleAdsError: error_code: <Google::Ads::GoogleAds::V2::Errors::ErrorCode: request_error: :UNSPECIFIED, bidding_strategy_error: :UNSPECIFIED, url_field_error: :UNSPECIFIED, list_operation_error: :UNSPECIFIED, query_error: :UNSPECIFIED, mutate_error: :UNSPECIFIED, field_mask_error: :UNSPECIFIED, authorization_error: :UNSPECIFIED, internal_error: :UNSPECIFIED, quota_error: :UNSPECIFIED, ad_error: :UNSPECIFIED, ad_group_error: :UNSPECIFIED, campaign_budget_error: :DUPLICATE_NAME, campaign_error: :UNSPECIFIED, authentication_error: :UNSPECIFIED, ad_group_criterion_error: :UNSPECIFIED, ad_customizer_error: :UNSPECIFIED, ad_group_ad_error: :UNSPECIFIED, ad_sharing_error: :UNSPECIFIED, adx_error: :UNSPECIFIED, bidding_error: :UNSPECIFIED, campaign_criterion_error: :UNSPECIFIED, collection_size_error: :UNSPECIFIED, criterion_error: :UNSPECIFIED, date_error: :UNSPECIFIED, date_range_error: :UNSPECIFIED, distinct_error: :UNSPECIFIED, feed_attribute_reference_error: :UNSPECIFIED, function_error: :UNSPECIFIED, function_parsing_error: :UNSPECIFIED, id_error: :UNSPECIFIED, image_error: :UNSPECIFIED, media_bundle_error: :UNSPECIFIED, multiplier_error: :UNSPECIFIED, new_resource_creation_error: :UNSPECIFIED, not_empty_error: :UNSPECIFIED, null_error: :UNSPECIFIED, operator_error: :UNSPECIFIED, range_error: :UNSPECIFIED, region_code_error: :UNSPECIFIED, setting_error: :UNSPECIFIED, string_format_error: :UNSPECIFIED, string_length_error: :UNSPECIFIED, operation_access_denied_error: :UNSPECIFIED, resource_access_denied_error: :UNSPECIFIED, resource_count_limit_exceeded_error: :UNSPECIFIED, recommendation_error: :UNSPECIFIED, ad_group_bid_modifier_error: :UNSPECIFIED, context_error: :UNSPECIFIED, field_error: :UNSPECIFIED, shared_set_error: :UNSPECIFIED, shared_criterion_error: :UNSPECIFIED, campaign_shared_set_error: :UNSPECIFIED, conversion_action_error: :UNSPECIFIED, header_error: :UNSPECIFIED, database_error: :UNSPECIFIED, policy_finding_error: :UNSPECIFIED, enum_error: :UNSPECIFIED, keyword_plan_error: :UNSPECIFIED, keyword_plan_campaign_error: :UNSPECIFIED, keyword_plan_negative_keyword_error: :UNSPECIFIED, keyword_plan_ad_group_error: :UNSPECIFIED, keyword_plan_keyword_error: :UNSPECIFIED, keyword_plan_idea_error: :UNSPECIFIED, account_budget_proposal_error: :UNSPECIFIED, user_list_error: :UNSPECIFIED, change_status_error: :UNSPECIFIED, feed_error: :UNSPECIFIED, geo_target_constant_suggestion_error: :UNSPECIFIED, campaign_draft_error: :UNSPECIFIED, feed_item_error: :UNSPECIFIED, label_error: :UNSPECIFIED, media_file_error: :UNSPECIFIED, billing_setup_error: :UNSPECIFIED, customer_client_link_error: :UNSPECIFIED, customer_error: :UNSPECIFIED, customer_manager_link_error: :UNSPECIFIED, feed_mapping_error: :UNSPECIFIED, customer_feed_error: :UNSPECIFIED, ad_group_feed_error: :UNSPECIFIED, campaign_feed_error: :UNSPECIFIED, custom_interest_error: :UNSPECIFIED, campaign_experiment_error: :UNSPECIFIED, extension_feed_item_error: :UNSPECIFIED, ad_parameter_error: :UNSPECIFIED, feed_item_validation_error: :UNSPECIFIED, extension_setting_error: :UNSPECIFIED, feed_item_target_error: :UNSPECIFIED, policy_violation_error: :UNSPECIFIED, asset_error: :UNSPECIFIED, mutate_job_error: :UNSPECIFIED, country_code_error: :UNSPECIFIED, language_code_error: :UNSPECIFIED, conversion_upload_error: :UNSPECIFIED, partial_failure_error: :UNSPECIFIED, policy_validation_parameter_error: :UNSPECIFIED, conversion_adjustment_upload_error: :UNSPECIFIED, media_upload_error: :UNSPECIFIED, youtube_video_registration_error: :UNSPECIFIED, size_limit_error: :UNSPECIFIED, not_whitelisted_error: :UNSPECIFIED, manager_link_error: :UNSPECIFIED, currency_code_error: :UNSPECIFIED, access_invitation_error: :UNSPECIFIED, reach_plan_error: :UNSPECIFIED, invoice_error: :UNSPECIFIED>, message: "A campaign budget with this name already exists.", trigger: <Google::Ads::GoogleAds::V2::Common::Value: boolean_value: false, int64_value: 0, float_value: 0.0, double_value: 0.0, string_value: "">, location: <Google::Ads::GoogleAds::V2::Errors::ErrorLocation: field_path_elements: [<Google::Ads::GoogleAds::V2::Errors::ErrorLocation::FieldPathElement: field_name: "operations", index: nil>, <Google::Ads::GoogleAds::V2::Errors::ErrorLocation::FieldPathElement: field_name: "create", index: nil>, <Google::Ads::GoogleAds::V2::Errors::ErrorLocation::FieldPathElement: field_name: "name", index: nil>]>, details: nil>>]

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdifficulty: mediumIntermediate difficulty; some experience with codebase may be helpful

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions