I am attempting to add a Structure Snippet asset to a Performance Max Asset 
Group using the code sample below.  

I get this error when I attempt to execute the code
*FaultMessage: The given field type is not supported to be added directly 
through asset links.*

The Python code running us is below. From research I have done so far it 
seems to indicate that for STRUCTURED_SNIPPET AssetFieldType *The asset is 
linked for use as a Structured Snippet extension*

How do I setup a Structured Snippet *extension*

# Creates a new mutate operation for a suggested structured-snippet asset 
and link it to the asset group.
asset_mutate_operation = client.get_type("MutateOperation")
asset = asset_mutate_operation.asset_operation.create
asset.resource_name = googleads_service.asset_path(
customer_id, hotels_next_temp_id
)
asset.structured_snippet_asset.header = "Amenities"
asset.structured_snippet_asset.values.extend(['Pool', 'Business Center', "Free 
Parking", "Airport Shuttle"])
operations.append(asset_mutate_operation)

# Creates a new mutate operation for a structured-snippet asset group.
asset_group_asset_mutate_operation = client.get_type("MutateOperation")
asset_group_asset = (
asset_group_asset_mutate_operation.asset_group_asset_operation.create
)
asset_group_asset.asset = googleads_service.asset_path(
customer_id, hotels_next_temp_id
)
asset_group_asset.asset_group = asset_group_resource_name
asset_group_asset.field_type = 
client.enums.AssetFieldTypeEnum.STRUCTURED_SNIPPET

operations.append(asset_group_asset_mutate_operation)

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/bdead093-7724-4ea3-a459-2f8ef7c6ee8cn%40googlegroups.com.
  • Th... Antony Kyalo Musyoki
    • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum

Reply via email to