How to fetch search campaigns without DSA ones?

18 views
Skip to first unread message

Tumer Altunbas

unread,
Mar 21, 2025, 12:31:37 PM3/21/25
to Google Ads API and AdWords API Forum
Hey everyone, 

First of all, I know DSA is a kind of 'Search' campaign. When I try to fetch only DSA campaigns without search ones, I'm just passing "campaign.dynamic_search_ads_setting.domain_name IS NOT NULL" condition to the query, and it works.

But, when I want to fetch just search campaigns (without DSA ones), I'm adding  "campaign.dynamic_search_ads_setting.domain_name IS NULL"  condition to the query and I get nothing except 'fieldMask'.

Is it possible to get only DSA campaigns without search ones?

All the best,
Tumer

Google Ads API Forum Advisor

unread,
Mar 21, 2025, 4:49:28 PM3/21/25
to adwor...@googlegroups.com
Hi,

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

Could you please provide us with the uncropped UI screenshot of the DSA campaigns and search campaigns that you want to fetch via Google Ads API. Also, provide us with the complete API logs (request and response with request-id and request header) generated at your end while fetching both DSA campaigns and search campaigns. This would help us assist you better.

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.

Thanks,
 
Google Logo Google Ads API Team

Feedback
How was our support today?

rating1    rating2    rating3    rating4    rating5
[2025-03-21 20:48:33Z GMT] This message is in relation to case "ref:!00D1U01174p.!5004Q02vHBql:ref" (ADR-00295938)



Reply all
Reply to author
Forward
0 new messages