image ad extension creation not possible

41 views
Skip to first unread message

Adam Muszalik

unread,
Dec 4, 2023, 4:58:34 AM12/4/23
to Google Ads API and AdWords API Forum
Hello Api Team!

In the past we used the feed services to create image ad extensions at campaign level.
Some time ago it stopped working and the info was that this is depricated and read-only.

I checked the documentation and found following sample from V15 (we are using V13 right now):

I implemented the ExtensionFeedItemService and made a test call

Method Name: /google.ads.googleads.v13.services.ExtensionFeedItemService/MutateExtensionFeedItems

{ "customerId": "XXXX", "operations": [ { "create": { "imageFeedItem": { "imageAsset": "customers/XXXX/assets/YYYY" } } } ], "partialFailure": true, "responseContentType": "MUTABLE_RESOURCE" }

But get an error:

Response
--------
Headers: {
  "content-disposition": "attachment",
  "request-id": "eaZ7I2hgVssiA-iMhZ0mPA",
  "date": "Mon, 04 Dec 2023 09:26:10 GMT",
  "alt-svc": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000"
}

{ "results": [ { } ], "partialFailureError": { "code": 3, "message": "Feed-based extension is read-only for this extension type., at operations[0].create.resource_name", "details": [ { "@type": "type.googleapis.com/google.ads.googleads.v13.errors.GoogleAdsFailure", "@value": "CnYKA4AFGBI6RmVlZC1iYXNlZCBleHRlbnNpb24gaXMgcmVhZC1vbmx5IGZvciB0aGlzIGV4dGVuc2lvbiB0eXBlLhoGKgRbNDhdIisSDgoKb3BlcmF0aW9ucxgAEggKBmNyZWF0ZRIPCg1yZXNvdXJjZV9uYW1lEhZlYVo3STJoZ1Zzc2lBLWlNaFowbVBB" } ] } }

I think it is the same as if I used the old feed/feeditem service.
Are there any other steps needed so that I can start using this service?
I took a customer where we had a feed related image extensions before - could this be a reason for the error?

thanks a lot!
Adam



Google Ads API Forum Advisor

unread,
Dec 5, 2023, 3:47:33 AM12/5/23
to amus...@gmail.com, adwor...@googlegroups.com
Hi Adam,

Thank you for reaching out to the Google Ads API support team.

By reviewing your query, I understand that you are getting the error "LEGACY_EXTENSION_TYPE_READ_ONLY". It means that the Feed-based extension is read-only for this extension type. 

As per the blog post, once the image and location extensions have been migrated to assets, you won’t be able to mutate the image and location extensions. The image and location assets will be the entities that are served. Note that you wont be able to do any mutate (remove and create) operation to assets which are auto migrated. Kindly note that the image and location migrations are not synchronized. It is likely they will occur at different times for each account. Auto-migration will happen automatically, you no need to do any changes manually. 

If your account has been migrated or is new and you attempt to create an extension the mutate request will be rejected and you will receive the error LEGACY_EXTENSION_TYPE_READ_ONLY. For more details, you may refer to this blog post.

Kindly note that the 'v13' is deprecated and about to sunset at the end of January 2024. I would recommend migrating to the latest version v15 and you may follow this link to Upgrade to the latest version.
 
This message is in relation to case "ref:!00D1U01174p.!5004Q02qWTTr:ref"

Thanks,
 
Google Logo Google Ads API Team


Reply all
Reply to author
Forward
0 new messages