Hi Sarthak,

Unfortunately, the AdService 
<https://developers.google.com/adwords/api/docs/reference/v201806/AdService> 
does 
not have a filter for you to set for the ad status. However, you could use 
the AdGroupAdService 
<https://developers.google.com/adwords/api/docs/reference/v201806/AdGroupAdService>
 to 
get the AdGroupAd.Status 
<https://developers.google.com/adwords/api/docs/reference/v201806/AdGroupAdService.AdGroupAd#status>
 and 
set it to *ENABLED. *If you just wish to retrieve a list of ENABLED ads, 
you could use the AD_PERFORMANCE_REPORT 
<https://developers.google.com/adwords/api/docs/appendix/reports/ad-performance-report>
 and 
set the Status 
<https://developers.google.com/adwords/api/docs/appendix/reports/ad-performance-report#status>
 field 
to *ENABLED *only. This way, only ads that are ENABLED will be retrieved. 

Let me know if you have further clarifications.

Regards,
Dannison
AdWords API Team

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/8cec7c73-46bd-4137-b614-fec3b1875d14%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • ... sarthakadwords111
    • ... 'Dannison Yao (AdWords API Team)' via AdWords API and Google Ads API Forum
      • ... sarthakadwords111
        • ... sarthakadwords111
    • ... sarthakadwords111

Reply via email to