How can I differentiate (PAUSED, DELETED) and ACTIVE (campaign/adgroup/ad) through reporting response?

20 views
Skip to first unread message

Ankit Agarwal

unread,
Oct 9, 2019, 5:15:41 AM10/9/19
to AdWords API and Google Ads API Forum
I want to know whether the reporting which I am receiving belongs to active ad_entity or paused and deleted ad_entity. I assume if reporting 'cost' is greater than zero then it means that ad_entity is running else not. Is this the right way to differentiate between ad_entity status?

Google Ads API Forum Advisor Prod

unread,
Oct 9, 2019, 2:38:59 PM10/9/19
to ankit....@lsasoftware.com, adwor...@googlegroups.com
Hi Ankit, 

If you are using AdWords API/Google Ads API, you may use the status attribute to query only for the Ad status and get all the active ads. For instance, you may use Ad Performance Report, with Status field to check for the respective ad status. You will be able to use the CampaignStatus and AdGroupStatus to retrieve the ad group and campaign status too. Please refer to our reporting code samples which might be helpful. You will be able to use the equivalent Google Ads API resources to get the ad status. Let me know if you have any further questions. 

Thanks,
Bharani, Google Ads API Team

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