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(
      AdWordsService.v201409.CampaignFeedService);
 
  CampaignFeedPage page = campaignFeedService.query(string.Format(
      "SELECT CampaignId, FeedId, MatchingFunction where " + 
      "Status='ENABLED'and FeedId = '{0}' and PlaceholderTypes=1", feed.id
));

  List<long> feedIds = new List<long>();
  foreach (CampaignFeed campaignFeed in page.entries) {
    feedIds.Add(campaignFeed.feedId);
  }
  return feedIds.ToArray();;
}

Cheers,
Anash

On Thursday, December 4, 2014 9:46:13 AM UTC-5, Visar wrote:
>
> 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 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 which could be placed into a table of the form:
>>
>> CampaignID   SitelinkID
>> 0000000001   1123412
>> 0000000001   1232349
>> 0000000002   2342342
>> etc..
>>
>> Given that I have an exhaustive list of all the campaign IDs and sitelink 
>> IDs (as placeholder feed item IDs), could someone please illustrate how 
>> this could be done, i.e which services to use and how to actually use them. 
>> Please be as detailed as possible. I'm currently using PHP but can work 
>> with any language.
>>
>> Cheers
>>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/0fbade20-9888-4191-84c3-861729ed42a2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to