I tried with adding subfields to field mask manually but still getting same 
error.

Request ID: 7vWv2ujN4BNJB0GVLIE7AA

Mutate request:

client.operation.mutate do |m|
m.smart_campaign_setting_operation =
client.operation.update_resource.smart_campaign_setting(client.path.
smart_campaign_setting(customer_id, SMART_CAMPAIGN_TEMPORARY_ID)) do |scs| 
scs.phone_number = client.resource.phone_number do |p|
p.country_code = COUNTRY_CODE
p.phone_number = PHONE_NUMBER
end
scs.advertising_language_code = LANGUAGE_CODE
scs.business_profile_location = business_profile_location
scs.ad_optimized_business_profile_setting = client.resource.
ad_optimized_business_profile_setting
end
m.smart_campaign_setting_operation.update_mask.paths << "
ad_optimized_business_profile_setting.include_lead_form"
end

Update mask:

<Google::Protobuf::FieldMask: paths: ["phone_number.phone_number", "
phone_number.country_code", "advertising_language_code", "
ad_optimized_business_profile_setting", "business_profile_location", "
ad_optimized_business_profile_setting.include_lead_form"]> 

11 Mayıs 2023 Perşembe tarihinde saat 19:59:56 UTC+3 itibarıyla Google Ads 
API Forum Advisor şunları yazdı:

> Hi Oktay,
>
> Thank you for reaching out to us.
>
> With regard to the error you've encountered, the "FIELD_HAS_SUBFIELDS" 
> means that the field mask updated a field with subfields. Fields with 
> subfields may be cleared, but not updated. To fix this, the field mask 
> should select all the subfields of the invalid field. Upon further 
> checking, I've seen this documentation for Field Masks (
> https://developers.google.com/google-ads/api/docs/client-libs/ruby/field-masks),
>  
> which has explained and has an example of how to avoid this error (
> https://developers.google.com/google-ads/api/docs/client-libs/ruby/field-masks#message_fields_with_defined_subfields).
>  
> Kindly check it and try it on your end.
>
> Regards,
> [image: Google Logo] Google Ads API Team 
>
> ref:_00D1U1174p._5004Q2lGto8:ref
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/7c273207-8a46-41e3-b135-c4db8f1a2929n%40googlegroups.com.
  • Sm... Oktay Donmez
    • ... Oktay Donmez
      • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum

Reply via email to