Hi,

For anyone who this might be helpful, I found the cause of that error, the 
campaign had the setting "keyword_match_type" set to "BROAD", so only broad 
keywords were allowed.

Thanks,
Berto
On Friday 21 June 2024 at 12:48:14 UTC+2 be...@hootinteractive.com wrote:

> Hi,
>
> Has this been resolved? I have the same issue and it seems a bit random as 
> I have a campaign in which I upload the same data and no errors came up.
>
> Here is the error:
>
> partial_failure_error {
>   code: 3
>   message: "The error code is not in this version., at 
> mutate_operations[0].ad_group_criterion_operation.create.keyword.match_type"
>   details {
>     type_url: "
> type.googleapis.com/google.ads.googleads.v17.errors.GoogleAdsFailure"
>     value: "\n\300\001\n\003\200\002\001\022&The error code is not in this 
> version.\032\010*\006PHRASE\"Z\022\025\n\021mutate_operations\030\000\022\036\n\034ad_group_criterion_operation\022\010\n\006create\022\t\n\007keyword\022\014\n\nmatch_type*+\n)CriterionError.KEYWORD_MATCH_TYPE_INVALID\022\026GShrECOBszUTj-1nMZgdHQ"
>   }
> }
> mutate_operation_responses {
>   ad_group_criterion_result {
>   }
> }
>
>
> Here is the info I'm sending to Google Ads 
> API(mutate_request.mutate_operations):
>
> Operations:
> [ad_group_criterion_operation {
>    create {
>      ad_group: "customers/XXXXXXXXX/adGroups/XXXXXXXXX"
>      type_: KEYWORD
>      keyword {
>        text: "Ford Bronco Sport For Sale"
>        match_type: PHRASE
>      }
>    }
>  }]
>
> The error says "KEYWORD_MATCH_TYPE_INVALID" but the match type is correct. 
> I tried changing the match type from "PHRASE" (<KeywordMatchType.PHRASE: 
> 3>) to "BROAD"(<KeywordMatchType.BROAD: 4>) and it worked, so it seems the 
> PHRASE match type is not found.
>
>
> Python library: google.ads.googleads.v17
> Version: 24.1.0
>
> Thanks,
> Berto
> On Tuesday 12 December 2023 at 18:25:18 UTC+1 Google Ads API Forum Advisor 
> wrote:
>
>> Hi Shipra,
>>
>> Thank you for reaching out to the Google Ads API support team.
>>
>> After reviewing your concern, I understand that you are encountering an 
>> error "The error code is not in this version" while using Google Ads API.
>>
>> In order to investigate the issue further, could you please please 
>> provide us with the complete API logs (request 
>> <https://developers.google.com/google-ads/api/docs/concepts/field-service#request>
>>  and response 
>> <https://developers.google.com/google-ads/api/docs/concepts/field-service#response>
>>  with request-id 
>> <https://developers.google.com/google-ads/api/docs/concepts/call-structure#request-id>
>>  and request header 
>> <https://developers.google.com/google-ads/api/docs/concepts/call-structure#request_headers>)
>>  
>> generated at your end. 
>>
>> If you are using a client library and haven't enabled the logging yet, I 
>> would request you to enable logging for the specific client library that 
>> you are using. You can refer to the guides Java 
>> <https://developers.google.com/google-ads/api/docs/client-libs/java/logging>,
>>  
>> .Net 
>> <https://developers.google.com/google-ads/api/docs/client-libs/dotnet/logging>
>> , PHP 
>> <https://developers.google.com/google-ads/api/docs/client-libs/php/logging>
>> , Python 
>> <https://developers.google.com/google-ads/api/docs/client-libs/python/logging>
>> , Ruby 
>> <https://developers.google.com/google-ads/api/docs/client-libs/ruby/logging>
>>  or Perl 
>> <https://developers.google.com/google-ads/api/docs/client-libs/perl/logging> 
>> to 
>> enable logging at your end. For REST interface requests, you can 
>> enable logging via the curl command by using the -i flag.
>>
>> You can send the details via *Reply privately to the author option*, or 
>> *direct 
>> private reply* to this email.
>>   
>> This message is in relation to case "ref:!00D1U01174p.!5004Q02r1Kru:ref"
>>
>> Thanks,
>>   
>> [image: Google Logo] Google Ads API Team 
>>
>>
>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/f422e830-bd11-44d8-8ea3-9ed2a7015bc2n%40googlegroups.com.
  • Ge... 'Shipra' via Google Ads API and AdWords API Forum
    • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
      • ... 'be...@hootinteractive.com' via Google Ads API and AdWords API Forum

Reply via email to