However, using the OR operator returns [PublisherQueryLanguageContextError.UNEXECUTABLE @ 'OR' is unsupported.]
Sample code:
$statementBuilder = (new StatementBuilder())
->where('AD_UNIT_NAME LIKE :pattern1 OR AD_UNIT_NAME LIKE :pattern2')
->withBindVariableValue(
'pattern1',
'%_NP_%'
)
->withBindVariableValue(
'pattern2',
'%_content_%'
);
Using "googleads/googleads-php-lib": "^56.0", and v202202
As per Publisher Query Language (PQL) a WHERE statement should be able to handle [AND | OR]
However, using the OR operator returns
[PublisherQueryLanguageContextError.UNEXECUTABLE @ 'OR' is unsupported.]
Sample code:
Using
"googleads/googleads-php-lib": "^56.0",
andv202202
Is there any workaround for this?