Know if an account has Image Extensions enabled

146 views
Skip to first unread message

Florencia Pereira

unread,
May 4, 2023, 12:16:27 PM5/4/23
to Google Ads API and AdWords API Forum
Is there a way of knowing if an account has Image Extensions enabled using Google Ads API?
Thanks,
Florencia.

Google Ads API Forum Advisor

unread,
May 5, 2023, 1:36:39 AM5/5/23
to mflorenc...@gmail.com, adwor...@googlegroups.com

Hi Florencia,

Thank you for reaching out to us.

You may try out the asset (https://developers.google.com/google-ads/api/fields/v13/asset) report, select its status field, and filter its asset.type field to IMAGE.

Additionally, you may also check this guide (https://developers.google.com/google-ads/api/docs/reporting/overview) as it describes the steps necessary to create and submit a query to the Google Ads API to get back data.

Let me know if this is what you are looking for.

Regards,

Google Logo Google Ads API Team


ref:_00D1U1174p._5004Q2lAN9Z:ref

Florencia Pereira

unread,
May 5, 2023, 9:25:19 AM5/5/23
to Google Ads API and AdWords API Forum
Thanks for the reply.
Does this work if the extension still uses extension_feed_items and campaign_extension_settings?
Would it be reliable to determine if it is enable querying if the campaign has a campaign_extension_settings object of extension type IMAGE ?

Thanks

Google Ads API Forum Advisor

unread,
May 5, 2023, 3:24:13 PM5/5/23
to mflorenc...@gmail.com, adwor...@googlegroups.com

Hi,

You may query the extension_feed_item report type if you're trying to check the status of feed-based extensions. I suggest you check the extension_feed_item.status and extension_feed_item.extension_type fields for more information.

I hope this helps. Let us know if you have any further clarifications.

Reference links:
extension_feed_item - https://developers.google.com/google-ads/api/fields/v13/extension_feed_item
extension_feed_item.status - https://developers.google.com/google-ads/api/fields/v13/extension_feed_item#extension_feed_item.status
extension_feed_item.extension_type - https://developers.google.com/google-ads/api/fields/v13/extension_feed_item#extension_feed_item.extension_type

Regards,

Florencia Pereira

unread,
May 5, 2023, 3:43:07 PM5/5/23
to Google Ads API and AdWords API Forum
Actually, I am trying to check if a campaign has image extensions enabled. So that is why I was trying to use campaign_extension_setting for extension_type = IMAGE. Does this object exist if the campaign has image extensions? Can I suppose that if there is no campaign_extension_setting for the campaign and extension_type IMAGE, it means the campaign does not have image extensions enabled?

Google Ads API Forum Advisor

unread,
May 8, 2023, 3:21:09 AM5/8/23
to mflorenc...@gmail.com, adwor...@googlegroups.com

Hi, 

Thanks for getting back to us.

You may use the campaign_extension_setting report (https://developers.google.com/google-ads/api/fields/v13/campaign_extension_setting) and filter by campaign_extension_setting.extension_type (https://developers.google.com/google-ads/api/fields/v13/campaign_extension_setting#campaign_extension_setting.extension_type) is of value IMAGE.

You may check on this report and if there are no records found, then that specific campaign does not have image extensions created for the said campaign.

Regards,

Florencia Pereira

unread,
May 8, 2023, 8:57:39 AM5/8/23
to Google Ads API and AdWords API Forum
Thanks for your reply. Sorry for insisting but I still need some clarification. I want to know if a campaign has image extensions enabled or not, not if it has image extensions created or not. So, for example in the Google UI, if the campaign has Image extensions enabled I see this in the Asset section when I click + to created it:
Screen Shot 2023-05-08 at 09.53.49.png
If the campaign does not meet the requirements to have image extensions enabled I do not see this option for the campaign, just this options:
Screen Shot 2023-05-08 at 09.51.50.png
Also, if I try to insert image extension feed items I get the error "A mutate action is not allowed on this resource, from this client".
So, the question is, how can I know if the campaign has the Image extensions enabled without actually making the request (and getting the error)? I do not need to know if the campaign has image extensions created, only if the campaign meets the requirements to have the image extensions creation enabled.
Thanks.

Google Ads API Forum Advisor

unread,
May 8, 2023, 2:43:43 PM5/8/23
to mflorenc...@gmail.com, adwor...@googlegroups.com

Hello,

I see that you mentioned that you are getting an error when trying to insert image extension feed items “A mutate action is not allowed on this resource, from this client”. As per this blog post, Accounts that have been migrated will reject mutate calls for feed-based entities.

The API returns a FeedErrorEnum.FeedError.legacy_extension_type_read_only when attempting to modify extensions on an already migrated account. You can detect such accounts by constructing a trivial mutate operation to one of the feed services, for example, FeedItemService.

Set the validate_only field on the request to just check without applying the result. The response will indicate if the account has been auto-migrated.

The migration is happening in phases, so it is possible for some extensions to be migrated and others not. See the guidance above in the migration schedule for specific timings.

Please refer to this documentation(https://developers.google.com/google-ads/api/docs/extensions/assets/migrating-extensions#auto-migrated_accounts_detection) for more information.

Regards,

Florencia Pereira

unread,
May 9, 2023, 2:20:53 PM5/9/23
to Google Ads API and AdWords API Forum
Thanks for your reply.
So, the only reason why I am getting “A mutate action is not allowed on this resource, from this client” is because the account was migrated? or are there other situations where this error is returned. For example, if the campaign does not meet the requirements mentioned here https://support.google.com/google-ads/answer/9566341?hl=en, what error should I get?

Regards,
Florencia.

Google Ads API Forum Advisor

unread,
May 10, 2023, 2:56:04 AM5/10/23
to mflorenc...@gmail.com, adwor...@googlegroups.com

Hi Florencia,



Thanks for getting back to us.

To answer your question, yes, the reason for the error you encountered is because of the migration. Meanwhile please keep an eye on our developer blog (https://ads-developers.googleblog.com/search/label/google_ads_api) for news regarding the migration.

Regards,

Florencia Pereira

unread,
May 10, 2023, 8:49:28 AM5/10/23
to Google Ads API and AdWords API Forum
OK, thanks for the information.
Sorry to insist, but I still need to know what is the result in case the account does not meet the requirements to have image assets because I need to distinguish the case. What happens or what errors do we get when an account does not meet the following requirements from the page I sent before:

To use image asset, make sure you meet the following requirements:
  • Account has been open for more than 90 days.
  • Account has a good history of policy compliance.
  • Account has active campaigns.
  • Account has active text ads and has been accruing spend on Search campaigns for at least the last 28 days.
  • Account is in an eligible vertical or sub-vertical. Sensitive verticals or sub-verticals (for example, sexual content and gambling) aren't eligible for image assets.Note: Headlines or descriptions pinned to Headline position 1, Headline position 2, or Description position 1 will always show. Description position 2 may be truncated if an image asset is shown. If you have legally required text that should appear in every ad, then you must pin it to either Headline position 1, Headline position 2, or Description position 1.

Google Ads API Forum Advisor

unread,
May 10, 2023, 2:10:59 PM5/10/23
to mflorenc...@gmail.com, adwor...@googlegroups.com

Hi Florencia,

Thank you for your response.

With regard to your concern for what could happen or what errors you get when an account does not meet the following requirements, in API perspective, accounts that have been migrated will reject mutate calls for feed-based entities. Furthermore, these are the only supported assets (https://developers.google.com/google-ads/api/docs/extensions/assets/asset-extensions) in the API. Kindly note that image assets are not yet supported and cannot be created via API. In addition to that, there is no option to check if the account/campaign meets the requirements for image assets.

Florencia Pereira

unread,
May 10, 2023, 2:27:13 PM5/10/23
to Google Ads API and AdWords API Forum
Thanks for your response.
I have all the information I need now. 

Thanks,
Florencia

Reply all
Reply to author
Forward
0 new messages