Ad Group Ad returns empty from API occassionally

63 views
Skip to first unread message

Jimmy Li

unread,
Jan 18, 2024, 7:09:25 PM1/18/24
to Google Ads API and AdWords API Forum
Hello,

I am working on getting the descriptions and headlines for an ad group ad using the API. I am using golang API with the https://github.com/shenzhencenter/google-ads-pb library.

The query I send to the API is the following
```
SELECT ad_group_ad.ad.resource_name, ad_group_ad.ad.final_urls, ad_group_ad.ad.responsive_search_ad.descriptions, ad_group_ad.ad.responsive_search_ad.headlines
FROM ad_group_ad
WHERE ad_group_ad.status!='REMOVED'
AND ad_group.resource_name='{RESOURCE NAME}'
```

However, I've noticed that the majority of the time this returns no rows while sometimes it returns the correct rows. This is without changing anything about the query. Do you have any insights on what might be causing this?

Google Ads API Forum Advisor

unread,
Jan 19, 2024, 2:45:53 AM1/19/24
to ji...@usestyle.ai, adwor...@googlegroups.com
Hi,

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

To assist you better, please provide us the following information : If you are using a client library and haven't enabled the logging yet, I would request you to enable logging for the specific client library that you are using. You can refer to the guides Java, .NetPHPPythonRuby or Perl to enable logging at your end. For REST interface requests, you can enable logging via the curl command by using the -i flag.

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.!5004Q02rXUki:ref"

Thanks,
 
Google Logo Google Ads API Team


Reply all
Reply to author
Forward
0 new messages