Same ad ID in different campaigns

314 views
Skip to first unread message

Harsha Nandiwada

unread,
Jul 13, 2022, 11:17:27 AM7/13/22
to Google Ads API and AdWords API Forum
Hi,
I am querying a customer's ad data and I'm seeing the same ad ID showing up in different campaigns + ad groups. I'm wondering how this is possible and what the unique identifier for an ad is. I'm failing to recreate the same behavior with ad variations. Why is this happening, and how do I differentiate between the two ad instances?
My query is below.
        SELECT
        ad_group_ad.ad.id,
        ad_group_ad.ad.name,
        ad_group_ad.ad.type,
        ad_group_ad.status,
        ad_group_ad.ad.final_urls,
        ad_group_ad.policy_summary.approval_status,
        ad_group_ad.policy_summary.policy_topic_entries,
        ad_group.id,
        campaign.id,
        ad_group_ad.ad.legacy_responsive_display_ad.short_headline,
        ad_group_ad.ad.text_ad.headline,
        ad_group_ad.ad.expanded_text_ad.headline_part1,
        ad_group_ad.ad.expanded_text_ad.headline_part2,
        ad_group_ad.ad.expanded_text_ad.headline_part3
        FROM ad_group_ad


Thanks!

Google Ads API Forum Advisor

unread,
Jul 13, 2022, 12:02:02 PM7/13/22
to har...@trackstarhq.com, adwor...@googlegroups.com
Hi Harsha,

Thanks for reaching out. Please note that ad IDs are not unique. The unique identifier for an ad is its composite, ad group ID and ad ID. Please let us know if you have any further questions on this. 

Regards,

Google Logo
Matt
Google Ads API Team
 


ref:_00D1U1174p._5004Q2cVfvD:ref
Reply all
Reply to author
Forward
0 new messages