Hi, Perhaps Aryeh try to elaborate we need to make one API call with each extensions with validate_only <https://developers.google.com/google-ads/api/reference/rpc/v11/MutateFeedItemsRequest#validate_only> , So It will return error and with error handling we might detect it was migrated or not.
Yes exactly as said by Zweitze. We just want to retrieve all ad extensions, legacy or migrated. and It is not really true with auto-migrated ad extensions detection. Thanks, On Tuesday, 13 September 2022 at 17:56:02 UTC+5:30 Zweitze wrote: > Hi Aryeh, > > Thanks for mentioning the auto-migrated ad extensions, and how to detect > them. Indeed my code always uses a lot of API requests to obtain legacy ad > extensions (get feed mappings, get feed items, get associations with > groups, campaigns, and account if we're not talking about sitelinks) even > on accounts that were automigrated. Your suggestion could reduce that > number of API requests. But... I'm not really sure. This detection guide > assumes I already have a feed and feed item, and suggests to modify an > item. But in my case, I don't know any item, or what a relevant mapping > could be. So I need API requests to obtain feeds, feed mappings, feed > items, and one API request to modify a feed item. > Which comes down to four API requests, exactly the same number of API > requests I'm using now for sitelinks. > > Can you elaborate? Also, will this work when the logged in user only has > Read-only access to the account? > > > You may realize that my code - and probably Chirag's - is not about > migrating ad extensions. We just want to retrieve all ad extensions, legacy > or migrated. > > > On Monday, September 12, 2022 at 4:41:22 PM UTC+2 adsapi wrote: > >> Hi Chirag and Zweitze, >> >> I want to add to the battle tested advice below that we have a Auto-migrated >> accounts detection >> <https://developers.google.com/google-ads/api/docs/extensions/assets/migrating-extensions#auto-migrated_accounts_detection> >> guide, >> as soon as you detect auto migrated feeds you will know that they won't >> continue to serve. For manual migration of extension links to ad groups and >> campaigns etc.. this won't work and we suggest you Remove the Feed-based >> extension >> <https://developers.google.com/google-ads/api/docs/extensions/assets/migrating-extensions#remove_the_feed-based_extension> >> entirely >> in one shot. >> >> It's recommended that you replace entirely an extension with all its >> links in one shot using Associate the asset with campaigns and ad groups >> <https://developers.google.com/google-ads/api/docs/extensions/assets/migrating-extensions#associate_the_asset_with_campaigns_and_ad_groups>, >> >> the sample code on the page shows all the campaign extension links being >> found, but if you look further in that sample it also gets all ad group >> links too. You can easily add for customer linked extensions >> <https://developers.google.com/google-ads/api/fields/v11/customer_extension_setting>. >> >> I can guess the reason for this advice is to easily and clearly keep track >> which extension feed items aren't serving anymore, while all others are >> still serving. >> >> It is possible that one or more ad groups were manually migrated from a >> specific extension feed item while others weren't, especially if >> experiments were done and/or haphazard upgrades occured and that could make >> things harder to track. You can modify the Associate the asset with >> campaigns and ad groups >> <https://developers.google.com/google-ads/api/docs/extensions/assets/migrating-extensions#associate_the_asset_with_campaigns_and_ad_groups> >> to >> just show all active links to the extension feed items you are >> investigating. >> >> Regards, >> >> [image: Google Logo] >> Aryeh >> Google Ads API Team >> >> >> ref:_00D1U1174p._5004Q2dwCSw:ref >> > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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/8ba5e30c-d8b0-4c2f-8308-b501028bb4can%40googlegroups.com.