Hi,

The placeholder *type* will always be 1 for sitelinks, but the attribute 
IDs you get back in the JSON may vary by feed. There are two phases to 
setting up a feed:

1. Create the Feed 
<https://developers.google.com/adwords/api/docs/reference/v201509/FeedService.Feed>
 and 
specify the list of attributes 
<https://developers.google.com/adwords/api/docs/reference/v201509/FeedService.Feed#attributes>.
 
The order of these attributes can be *any order you choose*, so you could, 
for example, choose to make the LINE 1 attribute attribute ID 1 (the first 
attribute), the TEXT attribute attribute ID 2 (the second attribute), and 
so on.

2. Create a FeedMapping 
<https://developers.google.com/adwords/api/docs/reference/v201509/FeedMappingService.FeedMapping>,
 
which tells AdWords:
  a) For which placeholderType 
<https://developers.google.com/adwords/api/docs/reference/v201509/FeedMappingService.FeedMapping#placeholdertype>
 (e.g., 
extension type such as 1 for sitelinks) you want AdWords to use the feed.
  b) How each attribute maps to the predefined list of placeholder field IDs 
<https://developers.google.com/adwords/api/docs/appendix/placeholders#sitelinks>
 for 
the *placeholderType*.

Using the example above with the following attributes:
- LINE 1 : attribute ID = 1
- TEXT : attribute ID = 2
You would create the following AttributeFieldMapping 
<https://developers.google.com/adwords/api/docs/reference/v201509/FeedMappingService.FeedMapping#attributefieldmappings>s
 
on your *FeedMapping*:
- feedAttributeId = 1, fieldId = 3 (because LINE 1 corresponds to placeholder 
field ID 3 
<https://developers.google.com/adwords/api/docs/appendix/placeholders#sitelinks>
)
- feedAttributeId = 2, fieldId = 1 (because TEXT corresponds to placeholder 
field ID 1 
<https://developers.google.com/adwords/api/docs/appendix/placeholders#sitelinks>
)

Therefore, when running the PLACEHOLDER_FEED_ITEM_REPORT, the returned JSON 
objects, which have the *feedAttributeId*, would come back with:
  "1": *the value for LINE 1*
  "2": *the value for TEXT*

In other words, you need to look at the *FeedMapping* for the feed and 
placeholder type if you want to tie the JSON IDs back to placeholder fields.

Cheers,
Josh, AdWords API Team

On Thursday, January 21, 2016 at 1:00:30 PM UTC-5, Mark wrote:
>
> Hello Josh,
>
> Thanks for the information.
> So placeholder field ID = 1 always be sitelinks. And by looking at 
> respective Attribute values under feed item report I can get sitelink urls.
>
> I'm following correct path here?
>
> Thank,
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/bbb3b7ec-d097-45ea-88e9-b2045511c1f1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to