Re: Retreiving structural data for sitelinks

2015-02-12 Thread Visar
Josh, Adding *Status = 'ENABLED' *sorted it. Thanks On Wednesday, February 11, 2015 at 2:01:29 PM UTC, Josh Radcliff (AdWords API Team) wrote: Hi Visar, When you removed all sitelinks from CampaignA, did you do so using the UI? I ask because it may be that the UI may be simply setting

Re: Retreiving structural data for sitelinks

2015-02-11 Thread Josh Radcliff (AdWords API Team)
Hi Visar, When you removed all sitelinks from CampaignA, did you do so using the UI? I ask because it may be that the UI may be simply setting the CampaignFeed.status https://developers.google.com/adwords/api/docs/reference/v201409/CampaignFeedService.CampaignFeed#status to *REMOVED* in that

Re: Retreiving structural data for sitelinks

2015-02-11 Thread Visar
Hi again Anash, I've been trying to implement the code you've illustrated but I'm having a few problems. Problem 1) When you use: campaignFeed.matchingFunction.@operator == FunctionOperator.IN this only picks out those campaigns with more than one sitelink ad extension. Those with only one

Re: Retreiving structural data for sitelinks

2014-12-04 Thread Anash P. Oommen (AdWords API Team)
Hi Visar, Yes, if you don't filter by feedId, then GetCampaignFeeds will give you ALL the campaign feeds where placeholdertype = 1 (i.e. sitelinks). Just pick the FeedId from the CampaignFeed. There's a caveat to this: By definition, a Feed doesn't have an extension type associated with it,

Re: Retreiving structural data for sitelinks

2014-12-04 Thread Visar
Hi Anash, I don't really understand what you mean. How could I go about doing that? Visar On Wednesday, November 26, 2014 11:23:50 AM UTC, Visar wrote: Hi, I'm having a little trouble using the API to retrieve structural data on sitelinks within an account. What I'm looking to do is to

Re: Retreiving structural data for sitelinks

2014-12-04 Thread Anash P. Oommen (AdWords API Team)
Hi Visar, Since you are looking for feed ids only, the caveat I mentioned on the previous message shouldn't apply to you. private CampaignFeed[] GetSitelinkFeeds(AdWordsUser user) { CampaignFeedService campaignFeedService = (CampaignFeedService) user. GetService(

Re: Retreiving structural data for sitelinks

2014-12-02 Thread Visar
Anash, Thanks for your response. If I modify the GetCampaignFeeds method to return all the FeedIDs (i.e not filtering on FeedID) is there anyway to know which FeedIDs correspond to sitelinks? Visar On Wednesday, November 26, 2014 11:23:50 AM UTC, Visar wrote: Hi, I'm having a little

Re: Retreiving structural data for sitelinks

2014-12-01 Thread Visar
Hi Anash, I just have a couple more questions. 1) Usually in the example API scripts, when entries in a get request are cycled through they are done so with the use of the AdWords recommend page size stuff. Is there a reason you left this out in your C# example, and more importantly should I

Re: Retreiving structural data for sitelinks

2014-12-01 Thread Anash P. Oommen (AdWords API Team)
Hi Visar, 1. Nope, The code snippet is to illustrate how the API call is to be made; you should be using paging in your production code. 2. Not from the report directly, but you could modify the GetCampaignFeeds method so as to not filter by FeedId and you'd get all the FeedIds of a specific

Retreiving structural data for sitelinks

2014-11-26 Thread Visar
Hi, I'm having a little trouble using the API to retrieve structural data on sitelinks within an account. What I'm looking to do is to construct a list of which sitelinks belong to which campaigns (this is unavailable in the reports due to the lack of Zero Impressions support). Ideally data

Re: Retreiving structural data for sitelinks

2014-11-26 Thread Anash P. Oommen (AdWords API Team)
Hi Visar, You need to use the CampaignFeedService to retrieve the MatchingFunction and then parse it to identify the FeedItems that are associated with a campaign. The C# code to do this looks : private CampaignFeed[] GetCampaignFeeds(AdWordsUser user, Feed feed) { CampaignFeedService

Re: Retreiving structural data for sitelinks

2014-11-26 Thread Visar
Hi Anash, That's exactly what I needed, thanks. Visar On Wednesday, November 26, 2014 11:53:00 AM UTC, Anash P. Oommen (AdWords API Team) wrote: Hi Visar, You need to use the CampaignFeedService to retrieve the MatchingFunction and then parse it to identify the FeedItems that are