Creating a feed_mapping (using python) throws LEGACY_FEED_TYPE_READ_ONLY error

108 views
Skip to first unread message

Kalyan Seshu

unread,
Mar 1, 2023, 1:10:58 AM3/1/23
to Google Ads API and AdWords API Forum
Hi, 

I am getting the following error while creating a feed_mapping for an existing feed. 

The placeholder_type for feed is --> DYNAMIC_CUSTOM

feed_mapping.placeholder_type = client.enums.PlaceholderTypeEnum.DYNAMIC_CUSTOM

request = client.get_type("MutateFeedMappingsRequest")
request.customer_id = f"{customer_id}"
request.operations.append(feed_mapping_operation)
request.partial_failure = False
request.validate_only = True
feed_mapping_response = feed_mapping_service.mutate_feed_mappings(
request=request
)

I get the following error: 

  error_code {
    feed_mapping_error: LEGACY_FEED_TYPE_READ_ONLY
  }
  message: "Feed is read only."
  trigger {
    string_value: "[14]"
  }
  location {
    field_path_elements {
      field_name: "operations"
      index: 0
    }
    field_path_elements {
      field_name: "create"
    }
    field_path_elements {
      field_name: "placeholder_type"
    }
  }

Any suggestions for fixing this issue?





















Google Ads API and AdWords API Forum

unread,
Mar 1, 2023, 12:16:46 PM3/1/23
to Google Ads API and AdWords API Forum
Re-posting the last inquiry (https://groups.google.com/g/adwords-api/c/DKG3cgPFxJg) from the forum as it wasn't routed to our support queue.

Regards,
Google Ads API Team

Google Ads API and AdWords API Forum

unread,
Mar 3, 2023, 7:13:41 AM3/3/23
to Google Ads API and AdWords API Forum

Hi,

 

Thank you for reaching out to the Google Ads API support team. I hope that you are doing well today.

 

It appears that the error you encountered is FeedItemError.LEGACY_FEED_TYPE_READ_ONLY. The possible reason why this error occurred is because this feed type is migrated over to asset. The feed type is already deprecated and read-only, so the user cannot modify it. For more information, you may check this blog post and this guide in Asset-based Extensions Migration. 

 

Let me know if you have further questions.

 

Kind regards, 

Google Ads API Team

Reply all
Reply to author
Forward
0 new messages