GETING NUMERICAL VALUES INSTEAD OF NAME OF ENUMS

32 views
Skip to first unread message

Akash Prajapati

unread,
Nov 23, 2021, 2:01:17 AM11/23/21
to AdWords API and Google Ads API Forum
Hello Team,

For the below query when I run it, in my result set I am getting 2,4,6 values in campaign.status column instead I should get ENABLED,PAUSED,REMOVED.
Kindly guide me on the same.
SELECT
campaign.id,
campaign.status,
campaign.name,
segments.date,
metrics.impressions
FROM campaign
WHERE segments.date = '2021-11-13' and metrics.impressions >= 0 and campaign.status IN ('ENABLED','PAUSED','REMOVED')
Thanks

Google Ads API Forum Advisor

unread,
Nov 23, 2021, 4:08:38 AM11/23/21
to akash.p...@kpipartners.com, adwor...@googlegroups.com
Hi Akash,

Thank you for raising your concern to our team.

To take a closer to the issue, could you provide the complete request and response logs with request ID and request header generated on your end where we can see the numbers instead of enum words?

You can provide it via Reply privately to author option. If this option is not available, then send it instead on this email address googleadsa...@google.com.

Regards,

Reminder: Share your feedback about the Google Ads (AdWords) API! Take the 2021 Google Ads API and AdWords API Annual Survey
 
Google Logo
Ernie John Blanca Tacata
Google Ads API Team
 


ref:_00D1U1174p._5004Q2RvVVZ:ref
Message has been deleted

Google Ads API Forum Advisor

unread,
Nov 23, 2021, 12:27:46 PM11/23/21
to akash.p...@kpipartners.com, adwor...@googlegroups.com
Hi Alex, 

We have not received the private mail. However, this issue has been brought up as a PHP client library specific issue previously. One user has overcome this issue by adding to their code:

  KeywordMatchType::name($keyword->getMatchType())

As this is a client library specific issue, please reach out to the client library owners for further assistance. 

Thanks,
Matt
Google Ads API Team



Reminder: Share your feedback about the Google Ads (AdWords) API! Take the 2021 Google Ads API and AdWords API Annual Survey
 
Google Logo
Matt
Google Ads API Team
 


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