I found it! Thanks. The data I was looking for shows after I added 'TargetingAdGroup' to the query selector: $selector->fields = array('FeedItemId', 'AttributeValues', 'Status', 'TargetingAdGroupId');
On Tuesday, December 27, 2016 at 7:45:06 PM UTC-8, Joyce Lava wrote: > > Hi, > > To get the FeedItems with the adGroupTargeting, you may use the > FeedItemService.get > <https://developers.google.com/adwords/api/docs/reference/v201609/FeedItemService#get>. > > Please refer to this sample SOAP request and response: > > <?xml version="1.0" encoding="UTF-8" standalone="no"?> > <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 xmlns:ns1=" > https://adwords.google.com/api/adwords/cm/v201609" > soapenv:mustUnderstand="0"> > > <ns1:clientCustomerId>YOUR_CLIENT_CUSTOMER_ID</ns1:clientCustomerId> > <ns1:developerToken>YOUR_DEVELOPER_TOKEN</ns1:developerToken> > <ns1:userAgent>YOUR_USER_AGENT</ns1:userAgent> > <ns1:validateOnly>false</ns1:validateOnly> > <ns1:partialFailure>false</ns1:partialFailure> > </ns1:RequestHeader> > </soapenv:Header> > <soapenv:Body> > <get xmlns="https://adwords.google.com/api/adwords/cm/v201609"> > <selector> > > <fields>AttributeValues</fields> > > <fields>FeedId</fields> > <fields>FeedItemId</fields> > <fields>TargetingAdGroupId</fields> > <paging> > <startIndex>0</startIndex> > <numberResults>100</numberResults> > </paging> > </selector> > </get> > </soapenv:Body> > </soapenv:Envelope> > > > > [main] INFO > com.google.api.ads.adwords.lib.client.AdWordsServiceClient.soapXmlLogger - > SOAP Response: > <?xml version="1.0" encoding="UTF-8" standalone="no"?> > <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> > <soap:Header> > <ResponseHeader xmlns=" > https://adwords.google.com/api/adwords/cm/v201609"> > <requestId>REQUEST_ID</requestId> > <serviceName>FeedItemService</serviceName> > <methodName>get</methodName> > <operations>1</operations> > <responseTime>149</responseTime> > </ResponseHeader> > </soap:Header> > <soap:Body> > <getResponse xmlns=" > https://adwords.google.com/api/adwords/cm/v201609"> > <rval> > <totalNumEntries>1</totalNumEntries> > <Page.Type>FeedItemPage</Page.Type> > <entries> > <feedId>FEED_ID</feedId> > <feedItemId>FEED_ITEM_ID</feedItemId> > <attributeValues> > <feedAttributeId>1</feedAttributeId> > <stringValue>Mars</stringValue> > </attributeValues> > <attributeValues> > <feedAttributeId>2</feedAttributeId> > <stringValue>$1</stringValue> > </attributeValues> > <attributeValues> > <feedAttributeId>3</feedAttributeId> > <stringValue>20160713 104100</stringValue> > </attributeValues> > <adGroupTargeting> > > <TargetingAdGroupId>TARGETING_ADGROUP_ID</TargetingAdGroupId> > </adGroupTargeting> > </entries> > </rval> > </getResponse> > </soap:Body> > </soap:Envelope> > > > The FeedId > <https://developers.google.com/adwords/api/docs/reference/v201609/FeedItemService.FeedItem#feedid> > and > the FeedItemId > <https://developers.google.com/adwords/api/docs/reference/v201609/FeedItemService.FeedItem#feeditemid> > should > make it unique. That way, you should be able to get the targeted adGroupId > of the feedItem. > > Best, > Joyce, AdWords API Team > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and Google+: https://googleadsdeveloper.blogspot.com/ https://plus.google.com/+GoogleAdsDevelopers/posts =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords 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 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/a87084b2-3a98-43ec-a0fa-41728f7375a4%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.