Issue Retrieving Ad IDs for Ad Variation Experiments

35 views
Skip to first unread message

Tayyab

unread,
Nov 19, 2024, 9:36:23 AM11/19/24
to Google Ads API and AdWords API Forum

Hi,

I am running Ad Variation experiments in my Google Ads account. In the experiment interface, I can see the original Ad IDs and modified Ad IDs for each variation.

I want to retrieve these Ad IDs programmatically to analyze their performance metrics for A/B testing. However, I am encountering an issue:

I cannot retrieve the original and modified Ad IDs from the experiment or experiment arm resources via the API.

Could you please assist me in understanding how to access the original and modified Ad IDs for an Ad Variation experiment?

Thank you for your support!

Google Ads API Forum Advisor

unread,
Nov 19, 2024, 1:48:32 PM11/19/24
to muhamma...@speqta.com, adwor...@googlegroups.com
Hi,

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

Kindly note that you can  get the ad_id using the ad_group_ad  resource, if you want to search for drafts, you must include a PARAMETERS include_drafts=true clause in your query. See the PARAMETERS documentation for more details. You can use the following query:
SELECT ad_group_ad.ad.id, ad_group_ad.ad.name FROM ad_group_ad PARAMETERS include_drafts=true
You can try making a request using the Search or SearchStream by passing the customer Id. Also, you can use Query Builder to create your query and Query Validator to validate your query. 

Also, I would recommend you to check the Reporting on experiments documentation for more information.

If this is not what you are looking for, kindly provide us the uncropped UI screenshot of the Google Ads account and also highlight the fields that you require to retrieve via the API.

You can send the details via Reply privately to the author option, or direct private reply to this email.

This message is in relation to case "ref:!00D1U01174p.!5004Q02vGl4C:ref" (ADR-00276071)

Thanks,
 
Google Logo Google Ads API Team

Feedback
How was our support today?

rating1    rating2    rating3    rating4    rating5



Reply all
Reply to author
Forward
0 new messages