Re: Google Ads Status values (And others) no longer display text value

42 views
Skip to first unread message
Message has been deleted

MATTHEW Dworkin

unread,
Jun 21, 2022, 4:50:06 PM6/21/22
to Google Ads API and AdWords API Forum
Hey Mike,

I think I've run into this before, try using:

use Google\Ads\GoogleAds\V10\Enums\CampaignStatusEnum\CampaignStatus;

And then do CampaignStatus::name($campaign->getStatus());

That should map the number to the name.

Hope that helps.

-Matt

On Tuesday, June 21, 2022 at 4:41:16 PM UTC-4 mjen...@qualitylogoproducts.com wrote:
I noticed starting around April or so? That certain values no longer display the text word variation for them...
For instance:
Campaign.status and Ad_Group.Status
ENABLED = 2
PAUSED = 3
REMOVED = 4

The items received from the query show as a numerical value...

This is also for...
segments.day_of_week
campaign.serving_status
segments.search_term_match_type
search_term_view.status

To name a few...
Is this working as intended or?
If it is, is there a key comparison we can use to match the values to what they used to be?

Any help would be greatly appreciated,
Mike Jenkins

Michael Jenkins

unread,
Jun 21, 2022, 6:59:38 PM6/21/22
to Google Ads API and AdWords API Forum
Turns out my issue was due to forcing 'use_proto_plus'=False within my python coding.

After changing that to True my values corrected themselves.

Thanks,
Mike Jenkins.

Google Ads API Forum Advisor

unread,
Jun 22, 2022, 12:57:35 AM6/22/22
to mdwor...@gmail.com, adwor...@googlegroups.com
Hi Matthew,

Hope you are doing fine.

Thank you for sharing your workaround in the issue discussed here. If you have Google Ads API / AdWords API related concerns, please feel free to add those in this email thread so our team can provide support to you.

Regards,
Google Logo
Carmela
Google Ads API Team
 


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