FeedItemTargetService (v201806) - strange behaviour

74 views
Skip to first unread message

Adam Orczyk

unread,
Jul 12, 2018, 3:53:13 AM7/12/18
to AdWords API and Google Ads API Forum
Hi,
We found two strange behaviours in FeedItemTargetService.

1. Select fields ex.: "Status","Id","CriteriaType"

Request:
<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Header><ns1:RequestHeader soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next" soapenv:mustUnderstand="0" xmlns:ns1="https://adwords.google.com/api/adwords/cm/v201806"><ns1:clientCustomerId soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next" soapenv:mustUnderstand="0">7631750729</ns1:clientCustomerId><ns1:userAgent soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next" soapenv:mustUnderstand="0">Hurra Communications</ns1:userAgent><ns1:partialFailure soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next" soapenv:mustUnderstand="0"/></ns1:RequestHeader></soapenv:Header><soapenv:Body><get xmlns="https://adwords.google.com/api/adwords/cm/v201806"><selector><fields>Status</fields><fields>Id</fields><fields>CriteriaType</fields><predicates><field>FeedId</field><operator>IN</operator><values>45551970</values></predicates><predicates><field>FeedItemId</field><operator>IN</operator><values>25939292902</values></predicates></selector></get></soapenv:Body></soapenv:Envelope>

Response:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Header><ResponseHeader xmlns="https://adwords.google.com/api/adwords/cm/v201806"><requestId>000570b8f91c3cc10a37854760082eba</requestId><serviceName>FeedItemTargetService</serviceName><methodName>get</methodName><operations>1</operations><responseTime>254</responseTime></ResponseHeader></soap:Header><soap:Body><getResponse xmlns="https://adwords.google.com/api/adwords/cm/v201806"><rval><totalNumEntries>10</totalNumEntries><Page.Type>FeedItemTargetPage</Page.Type></rval></getResponse></soap:Body></soap:Envelope>

Selecting only "Status" and "Id" works fine.

2. Use "IN" operator ex.:
operator => "IN",
field => "CriteriaType",
values => ['AD_SCHEDULE']

Request:
<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Header><ns1:RequestHeader soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next" soapenv:mustUnderstand="0" xmlns:ns1="https://adwords.google.com/api/adwords/cm/v201806"><ns1:clientCustomerId soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next" soapenv:mustUnderstand="0">7631750729</ns1:clientCustomerId><ns1:userAgent soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next" soapenv:mustUnderstand="0">Hurra Communications</ns1:userAgent><ns1:partialFailure soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next" soapenv:mustUnderstand="0"/></ns1:RequestHeader></soapenv:Header><soapenv:Body><get xmlns="https://adwords.google.com/api/adwords/cm/v201806"><selector><fields>Status</fields><fields>Id</fields><predicates><field>FeedId</field><operator>IN</operator><values>45551970</values></predicates><predicates><field>FeedItemId</field><operator>IN</operator><values>25939292902</values></predicates><predicates><field>CriteriaType</field><operator>IN</operator><values>AD_SCHEDULE</values></predicates></selector></get></soapenv:Body></soapenv:Envelope>

Response:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Header><ResponseHeader xmlns="https://adwords.google.com/api/adwords/cm/v201806"><requestId>000570b9063f5db00a374846270138c2</requestId><serviceName>FeedItemTargetService</serviceName><methodName>get</methodName><operations>1</operations><responseTime>260</responseTime></ResponseHeader></soap:Header><soap:Body><getResponse xmlns="https://adwords.google.com/api/adwords/cm/v201806"><rval><totalNumEntries>0</totalNumEntries><Page.Type>FeedItemTargetPage</Page.Type></rval></getResponse></soap:Body></soap:Envelope>

When you use operator "NOT_IN" instead, you get proper response contains 'AD_SCHEDULE' objects only.

Regards,
Adam

Adam Orczyk

unread,
Jul 12, 2018, 4:11:45 AM7/12/18
to AdWords API and Google Ads API Forum
In given Feed Item there are 10 Feed Item Targets, in each request we would like to get all of them.

Bharani Cherukuri (AdWords API Team)

unread,
Jul 12, 2018, 3:45:34 PM7/12/18
to AdWords API and Google Ads API Forum
Hello Adam, 

I was able to replicate the issue. I have shared this information with the team. I will keep you posted as soon as I have an update. As a workaround, you will be able to filter based on the TargetType as Criterion which will return all the Criteria and then look up for the Ad schedule criteria.
  
Thanks,
Bharani, AdWords API Team
Reply all
Reply to author
Forward
0 new messages