I’m trying to create smart campaign without final_url. When I set ad_optimized_business_profile_setting like below it throws FIELD_HAS_SUBFIELDS error.
If I set include_lead_form as true it returns success. I also tried:
Error with message: The field mask updated a field with subfields: 'ad_optimized_business_profile_setting'.
On field: mutate_operations
On field: smart_campaign_setting_operation
Type: field_mask_error
Code: FIELD_HAS_SUBFIELDS
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,
![]() |
Google Ads API Team |