Hi,
On Friday, April 29, 2016 at 9:57:41 AM UTC-4, Janak Prajapati wrote:
-- An important distinction with feeds is between two fields on AttributeFieldMapping:
- fieldId - The placeholder field ID that maps to the values on the Feed Placeholders page. This field ID does not appear on individual FeedItemAttributeValues.
- feedAttributeId - The ID of the field as it will appear on FeedItemAttributeValues, e.g., on individual FeedItems. This ID is automatically generated by AdWords, and may not be the same as the fieldId above.
So when you are looking at an individual FeedItem, you should not assume that the feedAttributeId will be one of the values on the Feed Placeholders page. In order to determine which placeholder field ID (fieldId) corresponds to a feedAttributeId for a given Feed, you need to look at the FeedMapping.attributeFieldMappings for the feedId and placeholderType.
Hope that clears things up.
Cheers,
Josh, AdWords API Team
On Friday, April 29, 2016 at 9:57:41 AM UTC-4, Janak Prajapati wrote:
Additional details to the same query -
This is the API response of one of the Sitelink feed item, we are receiving,
object(FeedItem)#4446 (14) {
["feedId"]=>
string(8) "10270XXX"
["feedItemId"]=>
string(9) "124967XXX"
["status"]=>
string(7) "ENABLED"
["startTime"]=>
NULL
["endTime"]=>
NULL
["attributeValues"]=>
array(5) {
[0]=>
object(FeedItemAttributeValue)#4438 (9) {
["feedAttributeId"]=>
string(1) "1"
["integerValue"]=>
NULL
["doubleValue"]=>
NULL
["booleanValue"]=>
NULL
["stringValue"]=>
string(25) "What's New TEST"
["integerValues"]=>
NULL
["doubleValues"]=>
NULL
["booleanValues"]=>
NULL
["stringValues"]=>
NULL
}
[1]=>
object(FeedItemAttributeValue)#4429 (9) {
["feedAttributeId"]=>
string(1) "3"
["integerValue"]=>
NULL
["doubleValue"]=>
NULL
["booleanValue"]=>
NULL
["stringValue"]=>
string(35) "Wholesale Prices Boots"
["integerValues"]=>
NULL
["doubleValues"]=>
NULL
["booleanValues"]=>
NULL
["stringValues"]=>
NULL
}
[2]=>
object(FeedItemAttributeValue)#4432 (9) {
["feedAttributeId"]=>
string(1) "4"
["integerValue"]=>
NULL
["doubleValue"]=>
NULL
["booleanValue"]=>
NULL
["stringValue"]=>
string(31) "Buy all Boots TEST TEXT"
["integerValues"]=>
NULL
["doubleValues"]=>
NULL
["booleanValues"]=>
NULL
["stringValues"]=>
NULL
}
[3]=>
object(FeedItemAttributeValue)#4416 (9) {
["feedAttributeId"]=>
string(1) "7"
["integerValue"]=>
NULL
["doubleValue"]=>
NULL
["booleanValue"]=>
NULL
["stringValue"]=>
string(118) "http://secure.mydomain.com/tracking/track.php?c=test&d= "120&e=test%40gmail.com&u={ lpurl}
["integerValues"]=>
NULL
["doubleValues"]=>
NULL
["booleanValues"]=>
NULL
["stringValues"]=>
NULL
}
[4]=>
object(FeedItemAttributeValue)#4417 (9) {
["feedAttributeId"]=>
string(1) "8"
["integerValue"]=>
NULL
["doubleValue"]=>
NULL
["booleanValue"]=>
NULL
["stringValue"]=>
NULL
["integerValues"]=>
NULL
["doubleValues"]=>
NULL
["booleanValues"]=>
NULL
["stringValues"]=>
array(1) {
[0]=>
string(148) "http://www.mydomain.com/collections/Boot?utm_source= "google&utm_medium=ppc&utm_ content={_sitelink}&utm_ campaign={_mycampaign}
}
}
}
["policyData"]=>
NULL
["devicePreference"]=>
NULL
["scheduling"]=>
NULL
["campaignTargeting"]=>
NULL
["adGroupTargeting"]=>
NULL
["keywordTargeting"]=>
NULL
["geoTargeting"]=>
NULL
["urlCustomParameters"]=>
NULL
}
On Friday, April 29, 2016 at 7:03:07 PM UTC+5:30, Anil wrote:Hello,According to https://developers.google.com/adwords/api/docs/appendix/ there are only 7 placeholders available in Sitelink Feed.placeholders#sitelinks API Documentation says Final URL should be linked with placeholder 5 and it seems correct when we check for our clients.But we have one client where Final url comes under Placeholder 8. While changing final url through through API we have applied Final url with placeholder 5 still next time it comes under placeholder 8.Is there any issues?Thanks
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/cfbfa98a-2149-4717-9e23-9ab361aef89c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment