Hi, I've modified the code example to use Line1 and Line2, and I've got an error when I try to create my FeedMapping. The service returns two FeedMappingError.INVALID_PLACEHOLDER_FIELD, for the placeholders line1 and line2. If I use only Url and Text, it works perfectly.
Thank you Le lundi 15 juillet 2013 09:50:05 UTC+2, james a écrit : > > Thanks Anash > I must have been looking in the wrong place or had an old version. > Thanks again, very much appreciated. > > James > > > On Monday, July 15, 2013 4:58:18 PM UTC+10, Anash P. Oommen (AdWords API > Team) wrote: > >> LINE1 and LINE2 constants are what you need, the code example uses only >> TEXT and URL constants in the code >> >> private static final int PLACEHOLDER_FIELD_SITELINK_LINK_TEXT = 1; >> private static final int PLACEHOLDER_FIELD_SITELINK_URL = 2; >> >> Cheers, >> Anash >> >> On Monday, July 15, 2013 12:25:37 PM UTC+5:30, Anash P. Oommen (AdWords >> API Team) wrote: >>> >>> Hi James, >>> >>> I thought you *were* looking for a user-defined field, sorry about that. >>> See https://developers.google.com/adwords/api/docs/guides/feed-services, >>> under the section that says, "3. Map the feed and placeholder fields.". >>> This is where you tell that a particular feed column is sitelink text, >>> description, etc. The relevant feed placeholder constants are here: >>> https://developers.google.com/adwords/api/docs/appendix/placeholders >>> >>> Cheers, >>> Anash >>> >>> On Monday, July 15, 2013 9:56:31 AM UTC+5:30, james wrote: >>>> >>>> Thanks Anash, >>>> Do you mean that specifying an attribute name of SitelinkDescription1 >>>> or SitelinkDescription2 makes a difference? I thought the names were >>>> completely "user defined" and had no meaning? >>>> >>>> Sorry, if I haven't been properly clear here. I'll try again. >>>> >>>> In the sample here: >>>> *https://developers.google.com/adwords/api/docs/guides/feed-services*<https://developers.google.com/adwords/api/docs/guides/feed-services> >>>> They specify text and url attributes, and then mappings for these >>>> attributes which I thought made the attributes "mean something". In this >>>> example they do not use the description attributes at all. >>>> >>>> In the UI a sitelink can also have two description lines. But on this >>>> page >>>> https://developers.google.com/adwords/api/docs/appendix/placeholders >>>> There is no placeholder field for description1 or description2. So is >>>> providing a specific attribute name (e.g. SitelinkDescription1) enough to >>>> make it "mean something" or am I missing something? Sorry if I'm being >>>> thick. >>>> >>>> Thanks again >>>> James >>>> >>>> On Thursday, July 11, 2013 6:05:03 PM UTC+10, Anash P. Oommen (AdWords >>>> API Team) wrote: >>>> >>>>> Hi James, >>>>> >>>>> I guess you are looking for >>>>> https://developers.google.com/adwords/api/docs/reference/v201306/FeedService.FeedAttribute?hl=en#name >>>>> ? >>>>> >>>>> Cheers, >>>>> Anash >>>>> >>>>> On Thursday, July 11, 2013 10:06:00 AM UTC+5:30, james wrote: >>>>>> >>>>>> Thanks Anash >>>>>> I have read the guide and understand it. >>>>>> >>>>>> The problem is if I create my own feed for sitelinks, how do I >>>>>> specify the description attributes? I can do the mappings for the link >>>>>> text >>>>>> and link URL, but there are no field ID constants for the description >>>>>> attributes. >>>>>> >>>>>> Have fun, >>>>>> James >>>>>> >>>>>> On Wednesday, July 10, 2013 4:17:29 PM UTC+10, Anash P. Oommen >>>>>> (AdWords API Team) wrote: >>>>>> >>>>>>> Hi James, >>>>>>> >>>>>>> Your notion of Feed*Services is correct. The only additional thing >>>>>>> I'd add is that CampaignFeedService maps a FeedItem to a campaign, so >>>>>>> that >>>>>>> the data actually gets used in the context of a campaign. >>>>>>> >>>>>>> See >>>>>>> https://developers.google.com/adwords/api/docs/guides/feed-services for >>>>>>> a guide that shows how to create your own feed and map your own fields >>>>>>> to >>>>>>> Google attributes. Also, Offer Extensions are not supported through >>>>>>> AdWords >>>>>>> API. >>>>>>> >>>>>>> Cheers, >>>>>>> Anash P. Oommen, >>>>>>> AdWords API Advisor. >>>>>>> >>>>>>> On Monday, July 8, 2013 8:17:09 PM UTC+5:30, james wrote: >>>>>>>> >>>>>>>> Hi, >>>>>>>> Looking at implementing enhanced sitelinks using the Feed*Services. >>>>>>>> >>>>>>>> In the Adwords UI, we can enter description lines for the sitelink. >>>>>>>> These descriptions do come back in FeedItemService::get as expected. >>>>>>>> >>>>>>>> But the FeedMappingService::get does not return mappings for the >>>>>>>> two description attributes. So if we were to create our own feed >>>>>>>> (instead >>>>>>>> of adding items to the feed created by the adwords UI), how would we >>>>>>>> specify the description attributes for our own feed? Do I need to use >>>>>>>> the >>>>>>>> same attribute names as the UI feed? >>>>>>>> >>>>>>>> In a similar vein there were no mappings at all returned by the >>>>>>>> FeedMappingService::get method for the "Main offer feed" which was >>>>>>>> created >>>>>>>> by the UI. So once again, how would I create offer ad extensions with >>>>>>>> the >>>>>>>> API if there is no pre-existing offer feed to add the items to? >>>>>>>> >>>>>>>> Just trying to get my head around how all this feed stuff hangs >>>>>>>> together. What I have so far: >>>>>>>> - a feed is metadata which defines a structure of user defined names >>>>>>>> - a FeedItem is real data which supplies values to these names >>>>>>>> - a FeedMapping maps the user defined names to google attributes >>>>>>>> which actually "do something" >>>>>>>> >>>>>>>> Now that is just my kind-of-guess on what is going on, and I am >>>>>>>> probably miles off the mark. But this is why I am very confused about >>>>>>>> the >>>>>>>> "missing" mappings. Is there some part of the picture I am missing? >>>>>>>> Other >>>>>>>> services I need to look into? Or is this just early days of a bigger >>>>>>>> plan? >>>>>>>> >>>>>>> -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API Forum" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] 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 [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
