RE: CampaignCriterionStatus is missing

11 views
Skip to first unread message

Google Ads API Forum Advisor Prod

unread,
Jun 24, 2019, 3:18:17 AM6/24/19
to integr...@bidalgo.ai, adwor...@googlegroups.com
Hi there,

Thank you for reaching out to us.

You may access the status field of CampaignCriterion, which will then give you a CampaignCriterionStatus enum to work with. Taking this sample code as an example, you may try using getStatusValue() to retrieve the CampaignCriterionStatus.

Let me know if this works for you.

Regards,
Ziv Yves Sanchez
Google Ads API Team

ref:_00D1U1174p._5001UCZ1Mq:ref

integrations bidalgo

unread,
Jun 24, 2019, 9:26:19 AM6/24/19
to AdWords API and Google Ads API Forum
Hi Ziv,

There is no getStatusVlue method in CampaignCriterion:

 Call to undefined method Google\Ads\GoogleAds\V1\Resources\CampaignCriterion::getStatusValue()
I'm using "googleads/google-ads-php": "^1.2.0"
Is it OK?
Message has been deleted

integrations bidalgo

unread,
Jun 24, 2019, 10:09:40 AM6/24/19
to AdWords API and Google Ads API Forum
I upgraded to 1.4.1 and can get criterion status now. Thanks!
Reply all
Reply to author
Forward
0 new messages