Re: Convert this SQL code to adwords PHP

2018-01-07 Thread 'Peter Oliquino' via AdWords API Forum
Hi Ken, My recommendation would be that you provide a completely different query and use it on a separate request in order to mimic the query and the results that would be retrieved from your supposed OR condition. Best regards, Peter Laurence N. Oliquino AdWords API Team -- -- =~=~=~=~=~=~=

Re: Convert this SQL code to adwords PHP

2018-01-05 Thread kendan
> > Like for example how? > Like this? $selector->setPredicates([ new Predicate('Status', PredicateOperator::NOT_IN, ['PAUSED']), new Predicate('Status', PredicateOperator::NOT_IN, ['PAUSED']), new Predicate('Status', PredicateOperator::NOT_IN, ['PAUSED']) ]); -- -

Re: Convert this SQL code to adwords PHP

2018-01-04 Thread 'Peter Oliquino' via AdWords API Forum
Hi Ken, As seen in this section of our AWQL guide, the OR condition is currently not supported in the AWQL used by the AdWords API in its reports and services. You will need to create a separate request for the records

Convert this SQL code to adwords PHP

2018-01-04 Thread kendan
// Create selector. $selector = new Selector(); $selector->setFields(['CampaignId', 'AdGroupId', 'Id', 'Criteria', 'CriteriaType', 'Impressions', 'Clicks', 'Cost']); // Use a predicate to filter out paused criteria (this is optional). $selector->setPredicates([