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

Classes

class  AcceptServiceLink
 This code example accepts a pending invitation to link your AdWords account to a Google Merchant Center account. More...
 
class  CreateAccount
 This code example illustrates how to create an account. Note by default, this account will only be accessible via its parent AdWords manager account. More...
 
class  GetAccountChanges
 This code example gets the changes in the account during the last 24 hours. More...
 
class  GetAccountHierarchy
 This code example illustrates how to retrieve the account hierarchy under an account. This code example won't work with Test Accounts. See https://developers.google.com/adwords/api/docs/test-accounts More...
 
class  AddAdCustomizers
 This code example adds an ad customizer feed. Then it adds an ad in two different ad groups that uses the feed to populate dynamic data. More...
 
class  AddAdGroupBidModifier
 This code example illustrates how to add ad group level mobile bid modifier override. More...
 
class  AddClickToDownloadAd
 This code example creates a click-to-download ad, also known as an app promotion ad to a given ad group. To list ad groups, run GetAdGroups.cs. More...
 
class  AddDynamicPageFeed
 This code example adds a page feed to specify precisely which URLs to use with your Dynamic Search Ads campaign. To create a Dynamic Search Ads campaign, run AddDynamicSearchAdsCampaign.cs. To get campaigns, run GetCampaigns.cs. More...
 
class  AddDynamicSearchAdsCampaign
 This code example adds a Dynamic Search Ads campaign. To get campaigns, run GetCampaigns.cs. More...
 
class  AddExpandedTextAdWithUpgradedUrls
 This code example adds an expanded text ad that uses advanced features of upgraded URLs. More...
 
class  AddGmailAd
 This code example adds a Gmail ad to a given ad group. The ad group's campaign needs to have an AdvertisingChannelType of DISPLAY and AdvertisingChannelSubType of DISPLAY_GMAIL_AD. To get ad groups, run GetAdGroups.cs. More...
 
class  AddHtml5Ad
 This code example adds an HTML5 ad to a given ad group. To get ad groups, run GetAdGroups.cs. More...
 
class  AddMultiAssetResponsiveDisplayAd
 This code example adds a responsive display ad (MultiAssetResponsiveDisplayAd) to an ad group. Image assets are uploaded using AssetService. To get ad groups, run GetAdGroups.cs. More...
 
class  AddResponsiveDisplayAd
 This code example adds an image representing the ad using the MediaService and then adds a responsive display ad to an ad group. To get ad groups, run GetAdGroups.cs. More...
 
class  AddShoppingDynamicRemarketingCampaign
 This code example adds a Shopping dynamic remarketing campaign for the Display Network via the following steps:

  • Creates a new Display Network campaign.
  • Links the campaign with Merchant Center.
  • Links the user list to the ad group.
  • Creates a responsive display ad to render the dynamic text.
More...
 
class  AddUniversalAppCampaign
 This code example adds a universal app campaign. To get campaigns, run GetCampaigns.cs. To upload image assets for this campaign, use UploadImage.cs. More...
 
class  CreateAndAttachSharedKeywordSet
 This code example creates a shared keyword list, adds keywords to the list and attaches it to an existing campaign. To get the list of campaigns, run GetCampaigns.cs. More...
 
class  FindAndRemoveCriteriaFromSharedSet
 This code example demonstrates how to find and remove shared sets and shared set criteria. More...
 
class  GetAdGroupBidModifiers
 This code example illustrates how to retrieve ad group level mobile bid modifiers for a campaign. More...
 
class  UsePortfolioBiddingStrategy
 This code example adds a portfolio bidding strategy and uses it to construct a campaign. More...
 
class  AddAdGroupDemographicCriteria
 This code example adds demographic target criteria to an ad group. To get ad groups, run AddAdGroup.cs. More...
 
class  AddAdGroups
 This code example illustrates how to create ad groups. To create campaigns, run AddCampaigns.cs. More...
 
class  AddCampaigns
 This code example adds campaigns. To get campaigns, run GetCampaigns.cs. More...
 
class  AddExpandedTextAds
 This code example adds expanded text ads to a given ad group. To list ad groups, run GetAdGroups.cs. More...
 
class  AddKeywords
 This code example adds keywords to an ad group. To get ad groups, run GetAdGroups.cs. More...
 
class  AddResponsiveSearchAd
 This code example adds a responsive search ad to a given ad group. To get ad groups, run GetAdGroups.cs. More...
 
class  GetAdGroups
 This code example illustrates how to retrieve all the ad groups for a campaign. To create an ad group, run AddAdGroup.cs. More...
 
class  GetCampaigns
 This code example lists all campaigns. To add a campaign, run AddCampaign.cs. More...
 
class  GetCampaignsWithAwql
 This code example lists all campaigns using an AWQL query. See https://developers.google.com/adwords/api/docs/guides/awql for AWQL documentation. To add a campaign, run AddCampaign.cs. More...
 
class  GetExpandedTextAds
 This code example retrieves all expanded text ads given an existing ad group. To add expanded text ads to an existing ad group, run AddExpandedTextAds.cs. More...
 
class  GetKeywords
 This code example gets all keywords in an ad group. To add keywords, run AddKeywords.cs. More...
 
class  GetResponsiveSearchAds
 This code example gets non-removed responsive search ads in an ad group. To add responsive search ads, run AddResponsiveSearchAd.cs. To get ad groups, run GetAdGroups.cs. More...
 
class  PauseAd
 This code example pauses a given ad. To list all ads, run GetExpandedTextAds.cs. More...
 
class  RemoveAd
 This code example removes an ad using the 'REMOVE' operator. To list ads, run GetTextAds.cs. More...
 
class  RemoveAdGroup
 This code example removes an ad group by setting the status to 'REMOVED'. To get ad groups, run GetAdGroups.cs. More...
 
class  RemoveCampaign
 This code example removes a campaign by setting the status to 'REMOVED'. To get campaigns, run GetCampaigns.cs. More...
 
class  RemoveKeyword
 This code example removes a keyword using the 'REMOVE' operator. To get keywords, run GetKeywords.cs. More...
 
class  UpdateAdGroup
 This code example illustrates how to update an ad group, setting its status to 'PAUSED', and its CPC bid to a new value if specified. To create an ad group, run AddAdGroup.cs. More...
 
class  UpdateCampaign
 This code example updates a campaign. To get campaigns, run GetCampaigns.cs. More...
 
class  UpdateExpandedTextAd
 This code example updates an expanded text ad. To get expanded text ads, run GetExpandedTextAds.cs. More...
 
class  UpdateKeyword
 This code example updates the bid of a keyword. To get keyword, run GetKeywords.cs. More...
 
class  AddCampaignGroupsAndPerformanceTargets
 This code example adds a campaign group and sets a performance target for that group. To get campaigns, run GetCampaigns.cs. To download reports, run DownloadCriteriaReportWithAwql.cs. More...
 
class  AddCampaignLabels
 This code example adds a label to multiple campaigns. More...
 
class  AddCompleteCampaignsUsingBatchJob
 This code sample illustrates how to use BatchJobService to create multiple complete campaigns, including ad groups and keywords. More...
 
class  AddCompleteCampaignsUsingStreamingBatchJob
 This code sample illustrates how to use BatchJobService to create multiple complete campaigns, including ad groups and keywords. More...
 
class  AddDraft
 This code example illustrates how to create a draft and access its associated draft campaign. See the Campaign Drafts and Experiments guide for more information: https://developers.google.com/adwords/api/docs/guides/campaign-drafts-experiments More...
 
class  AddKeywordsUsingIncrementalBatchJob
 This code sample illustrates how to perform asynchronous requests using BatchJobService and incremental uploads of operations. It also demonstrates how to cancel a running batch job. More...
 
class  AddTrial
 This code example illustrates how to create a trial and wait for it to complete. See the Campaign Drafts and Experiments guide for more information: https://developers.google.com/adwords/api/docs/guides/campaign-drafts-experiments More...
 
class  GetAllDisapprovedAds
 This code example retrieves all the disapproved ads in a given campaign. More...
 
class  GetAllDisapprovedAdsWithAwql
 This code example retrieves all the disapproved ads in a given campaign using AWQL. See https://developers.google.com/adwords/api/docs/guides/awql for AWQL documentation. More...
 
class  GetCampaignsByLabel
 This code example gets all campaigns with a specific label. To add a label to campaigns, run AddCampaignLabels.cs. More...
 
class  GraduateTrial
 This code example illustrates how to graduate a trial. See the Campaign Drafts and Experiments guide for more information: https://developers.google.com/adwords/api/docs/guides/campaign-drafts-experiments More...
 
class  SetAdParameters
 This code example illustrates how to create a text ad with ad parameters. To add an ad group, run AddAdGroup.cs. To add a keyword, run run AddKeyword.cs. More...
 
class  SetBidModifier
 This code example sets a bid modifier for the mobile platform on given campaign. The campaign must be an enhanced type of campaign. To get campaigns, run GetCampaigns.cs. To enhance a campaign, run SetCampaignEnhanced.cs. More...
 
class  ValidateTextAd
 This code example shows how to use the validateOnly header to validate an expanded text ad. No objects will be created, but exceptions will still be thrown. More...
 
class  HandlePartialFailures
 This code example demonstrates how to handle partial failures. More...
 
class  HandleRateExceededError
 This code example shows how to handle RateExceededError in your application. To trigger the rate exceeded error, this code example runs 100 threads in parallel, each thread attempting to validate 100 keywords in a single request. Note that spawning 100 parallel threads is for illustrative purposes only, you shouldn't do this in your application. More...
 
class  AddGoogleMyBusinessLocationExtensions
 This code example adds a feed that syncs feed items from a Google My Business (GMB) account and associates the feed with a customer. More...
 
class  AddPrices
 This code example adds a price extension and associates it with an account. Campaign targeting is also set using the specified campaign ID. To get campaigns, run AddCampaigns.cs. More...
 
class  AddSitelinks
 This code example adds sitelinks to a campaign. To create a campaign, run AddCampaign.cs. More...
 
class  AddSitelinksUsingFeeds
 This code example adds sitelinks to a campaign using feed services. To create a campaign, run AddCampaign.cs. To add sitelinks using the simpler ExtensionSetting services, see AddSitelinks.cs. More...
 
class  MigrateToExtensionSettings
 This code example migrates your feed based sitelinks at campaign level to use extension settings. To learn more about extensionsettings, see https://developers.google.com/adwords/api/docs/guides/extension-settings. To learn more about migrating Feed based extensions to extension settings, see https://developers.google.com/adwords/api/docs/guides/migrate-to-extension-settings. More...
 
class  GetAllImageAssets
 This code example gets all image assets. To upload an image asset, run UploadImageAsset.cs. More...
 
class  GetAllVideosAndImages
 This code example gets all videos and images. Use the Google Ads website to upload new videos. To upload image, run UploadImage.cs. More...
 
class  UploadImage
 This code example uploads an image. To get images, run GetAllVideosAndImages.cs. More...
 
class  UploadImageAsset
 This code example uploads an image asset. To get images, run GetAllImageAssets.cs. More...
 
class  UploadMediaBundle
 This code example uploads an HTML5 zip file. More...
 
class  EstimateKeywordTraffic
 This code example gets keyword traffic estimates. More...
 
class  GetAdGroupBidSimulations
 This code example gets bid landscapes for an ad group. To get ad groups, run GetAdGroups.cs. More...
 
class  GetCampaignCriterionBidModifierSimulations
 This code example gets all available campaign mobile bid modifier landscapes for a given campaign. To get campaigns, run GetCampaigns.cs. More...
 
class  GetKeywordBidSimulations
 This code example gets a bid landscape for an ad group and a keyword. To get ad groups, run GetAdGroups.cs. To get keywords, run GetKeywords.cs. More...
 
class  GetKeywordIdeas
 This code example retrieves keywords that are related to a given keyword. More...
 
class  AddAudience
 This code example illustrates how to create a user list a.k.a. audience. More...
 
class  AddConversionTrackers
 This code example adds an AdWords conversion tracker and an upload conversion tracker. More...
 
class  AddCrmBasedUserList
 This code example adds a user list (a.k.a. audience) and uploads hashed email addresses to populate the list. More...
 
class  AddRuleBasedRemarketingList
 This code example adds two rule-based remarketing user lists: one with no site visit date restrictions, and another that will only include users who visit your site in the next six months. See https://developers.google.com/adwords/api/docs/guides/rule-based-remarketing to learn more about rule based remarketing. More...
 
class  UploadOfflineCallConversions
 This code example imports offline call conversion values for calls related to the ads in your account. More...
 
class  UploadOfflineConversionAdjustments
 This code example demonstrates adjusting one conversion, but you can add more than one operation in a single mutate request. More...
 
class  UploadOfflineConversions
 This code example imports offline conversion values for specific clicks to your account. To get Google Click ID for a click, run CLICK_PERFORMANCE_REPORT. To set up a conversion tracker, run the AddConversionTrackers.cs example. More...
 
class  UploadOfflineData
 This code example shows how to upload offline data for store sales transactions. More...
 
class  DownloadCriteriaReportWithAwql
 This code example gets and downloads a criteria Ad Hoc report from an AWQL query. See https://developers.google.com/adwords/api/docs/guides/awql for AWQL documentation. More...
 
class  DownloadCriteriaReportWithSelector
 This code example gets and downloads a criteria Ad Hoc report from an XML report definition. More...
 
class  GetReportFields
 This code example gets report fields. More...
 
class  ParallelReportDownload
 This code example runs a report for every advertiser account under a given manager account, using multiple parallel threads. This code example needs to be run against an AdWords manager account. More...
 
class  StreamCriteriaReportResults
 This code example streams the results of an ad hoc report, collecting total impressions by network from each line. This demonstrates how you can extract data from a large report without holding the entire result set in memory or using files. More...
 
class  CriteriaReportRow
 The class that holds the data of one row of the report. More...
 
class  StreamCriteriaReportToPoco
 This code example streams the results of an ad hoc report, and returns the data in the report as objects of a given type. More...
 
class  StreamReportToPredefinedReportRowType
 This code example streams the results of an ad hoc report, and returns the data in the report as objects of a predefined report row type. More...
 
class  AddProductPartitionTree
 This code example creates a ProductPartition tree. More...
 
class  AddProductScope
 This code example restricts the products that will be included in the campaign by setting a ProductScope. More...
 
class  AddShoppingCampaign
 This code example adds a Shopping campaign. More...
 
class  AddSmartShoppingAd
 This code example adds a Smart Shopping campaign with an ad group and ad group ad. More...
 
class  GetProductCategoryTaxonomy
 This code example fetches the set of valid ProductBiddingCategories. More...
 
class  AddCampaignTargetingCriteria
 This code example adds various types of targeting criteria to a campaign. To get a list of campaigns, run GetCampaigns.cs. More...
 
class  AddCustomerNegativeCriteria
 This code example adds various types of negative criteria to a customer. These criteria will be applied to all campaigns for the customer. More...
 
class  GetCampaignTargetingCriteria
 This code example gets all targeting criteria for a campaign. To set campaign targeting criteria, run AddCampaignTargetingCriteria.cs. To get campaigns, run GetCampaigns.cs. More...
 
class  GetTargetableLanguagesAndCarriers
 This code example illustrates how to retrieve all carriers and languages available for targeting. More...
 
class  LookupLocation
 This code example gets location criteria by name. More...