Hi Justin,
-- You could include in the selector fields of the FeedItemService.get the FeedItemAttributeValue field and iterate through its results to get the feedAttributeId and the stringValue fields. Your SOAP request and response should look something like the one below :
<?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_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>FeedId</fields>
<fields>FeedItemId</fields>
<fields>AttributeValues</fields>
<predicates>
<field>FeedId</field>
<operator>EQUALS</operator>
<values>THE_FEED_ID</values>
</predicates>
<ordering>
<field>FeedId</field>
<sortOrder>ASCENDING</sortOrder>
</ordering>
<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>142</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>THE_FEED_ID</feedId>
<feedItemId>THE_FEED_ITEM_ID</feedItemId>
<attributeValues>
<feedAttributeId>1</feedAttributeId>
<stringValue>Services</stringValue>
</attributeValues>
<attributeValues>
<feedAttributeId>2</feedAttributeId>
<stringValue>From</stringValue>
</attributeValues>
<attributeValues>
<feedAttributeId>3</feedAttributeId>
<stringValue>http://tracker.example.com/?u={lpurl}</stringValue>
</attributeValues>
<attributeValues>
<feedAttributeId>4</feedAttributeId>
<stringValue>en</stringValue>
</attributeValues>
<attributeValues>
<feedAttributeId>5</feedAttributeId>
<stringValue>Scrubs</stringValue>
</attributeValues>
<attributeValues>
<feedAttributeId>6</feedAttributeId>
<stringValue>Body Scrub, Salt Scrub</stringValue>
</attributeValues>
<attributeValues>
<feedAttributeId>7</feedAttributeId>
<moneyWithCurrencyValue>
<ComparableValue.Type>MoneyWithCurrency</ComparableValue.Type>
<money>
<ComparableValue.Type>Money</ComparableValue.Type>
<microAmount>60000000</microAmount>
</money>
<currencyCode>USD</currencyCode>
</moneyWithCurrencyValue>
</attributeValues>
<attributeValues>
<feedAttributeId>8</feedAttributeId>
<stringValue>Per hour</stringValue>
</attributeValues>
<attributeValues>
<feedAttributeId>9</feedAttributeId>
<stringValues>http://www.example.com/scrubs</stringValues>
</attributeValues>
<attributeValues>
<feedAttributeId>10</feedAttributeId>
<stringValue>Hair Cuts</stringValue>
</attributeValues>
<attributeValues>
<feedAttributeId>11</feedAttributeId>
<stringValue>Once a month</stringValue>
</attributeValues>
<attributeValues>
<feedAttributeId>12</feedAttributeId>
<moneyWithCurrencyValue>
<ComparableValue.Type>MoneyWithCurrency</ComparableValue.Type>
<money>
<ComparableValue.Type>Money</ComparableValue.Type>
<microAmount>75000000</microAmount>
</money>
<currencyCode>USD</currencyCode>
</moneyWithCurrencyValue>
</attributeValues>
<attributeValues>
<feedAttributeId>13</feedAttributeId>
<stringValue>Per month</stringValue>
</attributeValues>
<attributeValues>
<feedAttributeId>14</feedAttributeId>
<stringValues>http://www.example.com/haircuts</stringValues>
</attributeValues>
<attributeValues>
<feedAttributeId>15</feedAttributeId>
<stringValue>Skin Care Package</stringValue>
</attributeValues>
<attributeValues>
<feedAttributeId>16</feedAttributeId>
<stringValue>Four times a month</stringValue>
</attributeValues>
<attributeValues>
<feedAttributeId>17</feedAttributeId>
<moneyWithCurrencyValue>
<ComparableValue.Type>MoneyWithCurrency</ComparableValue.Type>
<money>
<ComparableValue.Type>Money</ComparableValue.Type>
<microAmount>250000000</microAmount>
</money>
<currencyCode>USD</currencyCode>
</moneyWithCurrencyValue>
</attributeValues>
<attributeValues>
<feedAttributeId>18</feedAttributeId>
<stringValue>Per month</stringValue>
</attributeValues>
<attributeValues>
<feedAttributeId>19</feedAttributeId>
<stringValues>http://www.example.com/skincarepackage</stringValues>
</attributeValues>
</entries>
</rval>
</getResponse>
</soap:Body>
</soap:Envelope>
Please note that the values returned are all taken from my test account. Let me know if this helps.
Best regards,
Peter
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+unsubscribe@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+unsubscribe@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/ebb8f161-8457-4467-a5c4-3b4a16850c20%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment