We are running a query using AWQL with the FeedItemService but want to filter 
the results by EndTime. 

Previously using the old googleads-php-lib we were able to do it like this


$awql = 'SELECT KeywordText,TargetingAdGroupId,TargetingCampaignId,FeedItemId, 
FeedId, Status, AttributeValues, 
 EndTime
WHERE Status IN[ENABLED] AND EndTime > ' . date('Ymd', strtotime(' -1 day'));


We have updated to the new version and now our code is


$query = (new ServiceQueryBuilder())
    ->select([
        'KeywordTargetingText',
        'TargetingAdGroupId',
        'TargetingCampaignId',
        'FeedItemId',
        'FeedId',
        'Status',
        'AttributeValues',
        'EndTime'
    ])
    ->where('Status')->in(['ENABLED'])
    ->where('EndTime')->greater_than([date('Ymd', strtotime(' -1 day'))])
    ->build();


The greater than syntax does not work so how can we perform this same action?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/15d55659-9704-4d83-beb2-5d98b9d572f1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • ... Leon Pidgeon
    • ... 'Dhanya Sundararaju (AdWords API Team)' via AdWords API and Google Ads API Forum
      • ... Leon AI
        • ... 'Dhanya Sundararaju (AdWords API Team)' via AdWords API and Google Ads API Forum

Reply via email to