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.
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 do |s|
s.include_lead_form = false
end
end
If I set include_lead_form as true it returns success. I also tried:
scs.ad_optimized_business_profile_setting = client.resource.
ad_optimized_business_profile_setting
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
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/ccbde47d-ec57-445d-865a-1a7d85fc5cd3n%40googlegroups.com.