campaign.status retuning integer instead of 'ENABLED' or 'PAUSED'

404 views
Skip to first unread message

Michael

unread,
Jan 3, 2023, 1:37:54 PM1/3/23
to Google Ads API and AdWords API Forum
Hello!

I am struggling to use the campaign.status resource in my python reports because the values returned are numbers which are not constant...

Today Status = 6 means it's Enabled, but yesterday, Status = 4 meant Enabled. 

After reading the same question in this Group (link here), I understand the enum values of the campaign.status resource are supposed to/can be mapped to 'campaign_status.proto', however that link is broken & I have no idea what is going on.

Is there a simple way to get this value consistently with the campaign.status resource?

Thanks!

 

Google Ads API Forum Advisor

unread,
Jan 3, 2023, 2:38:07 PM1/3/23
to mic...@appaloosa-marketing.com, adwor...@googlegroups.com
Hi Michael,

Thank you for reaching out to our API support team.

The values you are retrieving being different could be due to how it is processed based on the client library you are using. For context, performing curl requests should follow the values as listed in the campaign report documentation wherein you should get values such as ENABLED or PAUSED.

That said, for handling the response in Python and ensuring you get values consistent with the documentation, I would recommend that you raise this to their client library owners via this link. I hope this helps.

Best regards,

Google Logo
Peter Laurence
Google Ads API Team
 


ref:_00D1U1174p._5004Q2hZ9hj:ref

Michael

unread,
Jan 3, 2023, 7:13:47 PM1/3/23
to Google Ads API and AdWords API Forum

Hi, thanks. This was 100% my fault. Was accidentally summing value of my status codes w/ Pandas Groupby...embarassing.

Google Ads API Forum Advisor

unread,
Jan 3, 2023, 8:45:53 PM1/3/23
to mic...@appaloosa-marketing.com, adwor...@googlegroups.com
Hi Michael,

Thank you for getting back to our team.

Please feel free to get back to our team if you have further concerns related to Google Ads API. Our team is more than happy to provide support to you.

Regards,
Google Logo
Carmela
Google Ads API Team
 


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