In given Feed Item there are 10 Feed Item Targets, in each request we would like to get all of them.
W dniu czwartek, 12 lipca 2018 09:53:13 UTC+2 użytkownik Adam Orczyk napisał: > > 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 > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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/b57959ea-7bb7-4b38-b849-925baa3517d7%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.