How to get ad group status text?

30 views
Skip to first unread message

Yang Wenjun

unread,
Nov 9, 2019, 12:18:21 AM11/9/19
to AdWords API and Google Ads API Forum
Hi Team,

to get AdGroup data. 
But I found that all groups' status is 0.

results = ga_service.search(customer_id, query=query, page_size=page_size)
for row in results:
print('Ad group with ID %d and name "%s" was found in campaign '
'with ID %d. status=%s'
% (row.ad_group.id.value, row.ad_group.name.value,
row.campaign.id.value, row.ad_group.status))


My questions:
1. Some groups are enabled and some are disabled manually in UI. Why all are 0?
2. How to get status text value? example: ENABLED or PAUSED

Thanks!
Wenjun

Google Ads API Forum Advisor Prod

unread,
Nov 11, 2019, 9:28:58 AM11/11/19
to yang.ra...@gmail.com, adwor...@googlegroups.com
Hi Wenjun, 

Please find the response inline below for your concerns:


1. Some groups are enabled and some are disabled manually in UI. Why all are 0?
Could you please share the request and response logs for this operation, so I can check this further? You can share the details privately via Reply privately to author option. 


2. How to get status text value? example: ENABLED or PAUSED
You may include the field: ad_group.status in your query to retrieve the status enum values. 

Thanks,
Bharani, Google Ads API Team

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