API Calls Return Incorrect Status for Sitelinks

57 views
Skip to first unread message

Hao Yang

unread,
Sep 26, 2022, 2:16:32 PM9/26/22
to Google Ads API and AdWords API Forum
Hi Google Team,


When I try to pull the attributes for sitelinks in our account, the status (extension_feed_item.status) of all sitelinks are shown as 'ENABLED', even though some of them are shown correctly as 'REMOVED' in the UI. This feels like a bug returning the wrong data.

Here is my query to pull the sitelinks:
"    SELECT
        campaign.name,
        campaign.status,
        ad_group.name,
        ad_group.id,
        ad_group.status,
        extension_feed_item.sitelink_feed_item.final_urls,
        extension_feed_item.sitelink_feed_item.link_text,
        extension_feed_item.sitelink_feed_item.line1,
        extension_feed_item.sitelink_feed_item.line2,
        extension_feed_item.status,
        extension_feed_item.id
    FROM extension_feed_item
    WHERE
        extension_feed_item.extension_type='SITELINK'
        AND campaign.status='ENABLED'
        AND ad_group.status='ENABLED'
'"

Another thing I noticed is that the extension_feed_item.id returned via the API is totally different from the 'Item ID' in the UI. Could you help me understand why? Are those just IDs for totally different entities?

One final question, currently the status of the extensions are read-only. Is the functionality to update the status of extensions using the API on the near-term roadmap? 

Appreciate your assistance with my questions!



Thanks,
Hao
 

Google Ads API Forum Advisor

unread,
Sep 26, 2022, 4:14:57 PM9/26/22
to hao....@carvana.com, adwor...@googlegroups.com
Hi Hao,

Thank you for reaching out to our support team.

We would like to take a closer look at the reporting issue you observed. To do so, could you share both the Google Ads UI screenshot and the complete (request and response logs, request-id) logs being compared at your end?

You may then send the requested information via the Reply privately to author option. If this option is not available, you may send the details directly to our googleadsa...@google.com alias instead.

As for you question "Is the functionality to update the status of extensions using the API on the near-term roadmap?", if you are referring to feed item resources, then these are already deprecated. You may refer to this guide for more information on what is currently supported and what we recommend you use moving forward. 

Best regards,

Google Logo
Peter Laurence
Google Ads API Team
 


ref:_00D1U1174p._5004Q2egcpk:ref

Zweitze

unread,
Sep 27, 2022, 3:03:29 AM9/27/22
to Google Ads API and AdWords API Forum
Does the UI show these site links as "legacy"?
If not, you have auto-migrated site links. (Note: that topic states site links should all have been migrated, but in July I still had accounts with legacy site links. Do check this)

For migrated site links, learn about asset-based extensions.
Also read this topic about retrieving all site links, legacy and migrated.

Google Ads API Forum Advisor

unread,
Sep 28, 2022, 1:46:19 PM9/28/22
to zwe...@gmail.com, adwor...@googlegroups.com

Hi Hao,

Thank your for your patience. I’ve received the updates from my team. It appears that your account has been migrated to assets. 

@Zweitze - Thank you so much for your reply here, and I agree that if the UI doesn’t show these site links as "legacy", then they have auto-migrated site links. You may learn more on the migrated site links here. Also, as a side note that Asset-based extension performance statistics can be requested from the asset_field_type_view report. I’d also recommend referring to this forum thread for the discussion on retrieving all site links, legacy and migrated.

Regards,

Google Logo
Yasar
Google Ads API Team
 


ref:_00D1U1174p._5004Q2egcpk:ref

Hao Yang

unread,
Sep 28, 2022, 3:30:36 PM9/28/22
to Google Ads API and AdWords API Forum
Thank you both!

Super helpful! We will look into the asset-based extensions.


Thanks,
Hao

Reply all
Reply to author
Forward
0 new messages