How can I select a FeedItemTarget Criterion by CriteriaType? (e.g. AD_SCHEDULE)

34 views
Skip to first unread message

Zorion Arrizabalaga Aguirre

unread,
Dec 4, 2018, 6:06:00 PM12/4/18
to adwor...@googlegroups.com
Hi Experts,

We have an issue with the AdWords API.
When we try to get the FeedItemTargets from FeedItemTargetService restricted to the Criterion with type AdSchedule we can not filter. Although the documentation specify that we should be able[1].
So I don't know what I'm doing wrong.

Sending the request with a filter on "CriteriaType" IN ["AD_SCHEDULE"] we receive NO results.
See request1.xml and reply1.xml attached.

Sending the same request without filtering on "CriteriaType" we receive the TWO results we expected.
See request2.xml and reply2.xml.
image.png

We also tried the request with filter on "CriteriaType" EQUALS "AD_SCHEDULE" and we also received NO results.
See request3.xml and reply3.xml.

In short, the differences between requests are only the CriteriaType.

image.png


$ diff request2.xml request1.xml 

33a34,38

          <ns0:field>CriteriaType</ns0:field>

          <ns0:operator>IN</ns0:operator>

          <ns0:values>AD_SCHEDULE</ns0:values>

        </ns0:predicates>

        <ns0:predicates>


By the way, trying other values like "AdSchedule" (instead of "AD_SCHEDULE") we receive an error:
SelectorError.INVALID_PREDICATE_ENUM_VALUE @ selector; trigger:'AdSchedule'

Same happens getting "LOCATION" instead of "AD_SCHEDULE"

What am I doing wrong?



Many thanks in advance.
Zorion


request1.xml
reply1.xml
request2.xml
reply2.xml
request3.xml
reply3.xml

Luis Xander Talag (AdWords API Team)

unread,
Dec 5, 2018, 1:48:46 AM12/5/18
to AdWords API and Google Ads API Forum
Hi Zorion,

Thank you for providing detailed information on your concern. I will check this issue with the team and we will provide you an update as soon as available.

Thanks and regards,
Luis
AdWords API Team

Zorion

unread,
Dec 13, 2018, 9:46:58 AM12/13/18
to AdWords API and Google Ads API Forum
Hi Luis,

Do you have any news on this?

In the meanwhile I am getting all FeedItemTargeting Criterions, looping them, and selecting only the relevant (AD_SCHEDULE, for instance), but I think it would be more effective filtering them in the request.

Thanks!
Zorion
Reply all
Reply to author
Forward
0 new messages