Hello,
I use PHP SDK 202305 and I always have a parsing error when I try to
request multiple audience segments using the function
getAudienceSegmentsByStatement()
<https://developers.google.com/ad-manager/api/reference/v202305/AudienceSegmentService#getaudiencesegmentsbystatement>
.
With this statement I have a *ParseError.UNPARSABLE*:
$statementBuilder = (new StatementBuilder())
->where('name IN (:names) AND status = :status')
->withBindVariableValue('names', ['AAA', 'BBB'])
->withBindVariableValue('status', AudienceSegmentStatus::ACTIVE);
With this statement it works well:
$statementBuilder = (new StatementBuilder())
->where('name IN (\'AAA', \'BBB\') AND status = :status')
->withBindVariableValue('status', AudienceSegmentStatus::ACTIVE);
I don't understand why. I use this type of statement in various services
without errors.
Any idea? A bug?
Thanks for your help.
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
---
You received this message because you are subscribed to the Google Groups
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/b7295054-e6d0-4ff9-ad0f-73ff38220418n%40googlegroups.com.