Google.Api.Ads.AdWords.Examples.CSharp.v201710.AddDynamicPageFeed.CreateFeed(AdWordsUser)

Here are the examples of the csharp api class Google.Api.Ads.AdWords.Examples.CSharp.v201710.AddDynamicPageFeed.CreateFeed(AdWordsUser) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Example 7

1. Example

Project: googleads-dotnet-lib
Source File: AddDynamicPageFeed.cs
public void Run(AdWordsUser user, long campaignId, long adGroupId) {
      string dsaPageUrlLabel = "discounts";

      // Get the page feed details. This code example creates a new feed, but you can
      // fetch and re-use an existing feed.
      DSAFeedDetails feedDetails = CreateFeed(user);
      CreateFeedMapping(user, feedDetails);
      CreateFeedItems(user, feedDetails, dsaPageUrlLabel);

      // Associate the page feed with the campaign.
      UpdateCampaignDsaSetting(user, campaignId, feedDetails.feedId);

      // Optional: Target web pages matching the feed's label in the ad group.
      AddDsaTargeting(user, adGroupId, dsaPageUrlLabel);

      Console.WriteLine("Dynamic page feed setup is complete for campaign ID '{0}'.",
          campaignId);
    }