Ads API .NET library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Google.Api.Ads.AdWords.Examples.CSharp.v201809.AddCampaignTargetingCriteria Class Reference

This code example adds various types of targeting criteria to a campaign. To get a list of campaigns, run GetCampaigns.cs. More...

Inheritance diagram for Google.Api.Ads.AdWords.Examples.CSharp.v201809.AddCampaignTargetingCriteria:
Google.Api.Ads.AdWords.Examples.CSharp.ExampleBase

Public Member Functions

void Run (AdWordsUser user, long campaignId, long?feedId)
 Runs the code example. More...
 

Static Public Member Functions

static void Main (string[] args)
 Main method, to run this code example as a standalone application. More...
 

Properties

override string Description [get]
 Returns a description about the code example. More...
 
- Properties inherited from Google.Api.Ads.AdWords.Examples.CSharp.ExampleBase
abstract string Description [get]
 Returns a description about the code example. More...
 

Detailed Description

This code example adds various types of targeting criteria to a campaign. To get a list of campaigns, run GetCampaigns.cs.

Member Function Documentation

static void Google.Api.Ads.AdWords.Examples.CSharp.v201809.AddCampaignTargetingCriteria.Main ( string[]  args)
inlinestatic

Main method, to run this code example as a standalone application.

Parameters
argsThe command line arguments.
void Google.Api.Ads.AdWords.Examples.CSharp.v201809.AddCampaignTargetingCriteria.Run ( AdWordsUser  user,
long  campaignId,
long?  feedId 
)
inline

Runs the code example.

Parameters
userThe AdWords user.
campaignIdId of the campaign to which targeting criteria are added.
feedIdID of a feed that has been configured for location targeting, meaning it has an ENABLED FeedMapping with criterionType of
  1. Feeds linked to a GMB account automatically have this FeedMapping. If you don't have such a feed, set this value to null.

References Google.Api.Ads.Common.Lib.AdsUser.GetService(), and Google.Api.Ads.AdWords.v201809.CampaignCriterionReturnValue.value.

Property Documentation

override string Google.Api.Ads.AdWords.Examples.CSharp.v201809.AddCampaignTargetingCriteria.Description
get

Returns a description about the code example.


The documentation for this class was generated from the following file: