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

Use this service to manage campaigns. A campaign organizes one or more ad groups together and has its own budget, bidding strategy, serving date range, and targeting settings (managed using CampaignCriterionService). You can also set campaign-wide ad extensions using CampaignExtensionSettingService. More...

Inheritance diagram for Google.Api.Ads.AdWords.v201809.CampaignService:
Google.Api.Ads.AdWords.v201809.ICampaignService Google.Api.Ads.AdWords.v201809.CampaignServiceInterface

Public Member Functions

 CampaignService ()
 Creates a new instance of the CampaignService class. More...
 
 CampaignService (string endpointConfigurationName)
 Creates a new instance of the CampaignService class. More...
 
 CampaignService (string endpointConfigurationName, string remoteAddress)
 Creates a new instance of the CampaignService class. More...
 
 CampaignService (string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress)
 Creates a new instance of the CampaignService class. More...
 
 CampaignService (System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress)
 Creates a new instance of the CampaignService class. More...
 
virtual
Google.Api.Ads.AdWords.v201809.CampaignPage 
get (Google.Api.Ads.AdWords.v201809.Selector serviceSelector)
 Returns the list of campaigns that meet the selector criteria. More...
 
virtual
System.Threading.Tasks.Task
< Google.Api.Ads.AdWords.v201809.CampaignPage
getAsync (Google.Api.Ads.AdWords.v201809.Selector serviceSelector)
 
virtual
Google.Api.Ads.AdWords.v201809.CampaignReturnValue 
mutate (Google.Api.Ads.AdWords.v201809.CampaignOperation[] operations)
 Adds, updates, or removes campaigns. More...
 
virtual
System.Threading.Tasks.Task
< Google.Api.Ads.AdWords.v201809.CampaignReturnValue
mutateAsync (Google.Api.Ads.AdWords.v201809.CampaignOperation[] operations)
 
virtual
Google.Api.Ads.AdWords.v201809.CampaignLabelReturnValue 
mutateLabel (Google.Api.Ads.AdWords.v201809.CampaignLabelOperation[] operations)
 Adds labels to the campaign or removes labels from the campaign. More...
 
virtual
System.Threading.Tasks.Task
< Google.Api.Ads.AdWords.v201809.CampaignLabelReturnValue
mutateLabelAsync (Google.Api.Ads.AdWords.v201809.CampaignLabelOperation[] operations)
 
virtual
Google.Api.Ads.AdWords.v201809.CampaignPage 
query (string query1)
 Returns the list of campaigns that match the query. More...
 
virtual
System.Threading.Tasks.Task
< Google.Api.Ads.AdWords.v201809.CampaignPage
queryAsync (string query)
 

Detailed Description

Use this service to manage campaigns. A campaign organizes one or more ad groups together and has its own budget, bidding strategy, serving date range, and targeting settings (managed using CampaignCriterionService). You can also set campaign-wide ad extensions using CampaignExtensionSettingService.

Note: CampaignService does not support video campaigns.

Constructor & Destructor Documentation

Google.Api.Ads.AdWords.v201809.CampaignService.CampaignService ( )
inline

Creates a new instance of the CampaignService class.

Google.Api.Ads.AdWords.v201809.CampaignService.CampaignService ( string  endpointConfigurationName)
inline

Creates a new instance of the CampaignService class.

Google.Api.Ads.AdWords.v201809.CampaignService.CampaignService ( string  endpointConfigurationName,
string  remoteAddress 
)
inline

Creates a new instance of the CampaignService class.

Google.Api.Ads.AdWords.v201809.CampaignService.CampaignService ( string  endpointConfigurationName,
System.ServiceModel.EndpointAddress  remoteAddress 
)
inline

Creates a new instance of the CampaignService class.

Google.Api.Ads.AdWords.v201809.CampaignService.CampaignService ( System.ServiceModel.Channels.Binding  binding,
System.ServiceModel.EndpointAddress  remoteAddress 
)
inline

Creates a new instance of the CampaignService class.

Member Function Documentation

virtual Google.Api.Ads.AdWords.v201809.CampaignPage Google.Api.Ads.AdWords.v201809.CampaignService.get ( Google.Api.Ads.AdWords.v201809.Selector  serviceSelector)
inlinevirtual

Returns the list of campaigns that meet the selector criteria.

Parameters
serviceSelectorthe selector specifying the Campaigns to return.
Returns
A list of campaigns.
Exceptions
AdWordsApiExceptionif problems occurred while fetching campaign information.

Implements Google.Api.Ads.AdWords.v201809.CampaignServiceInterface.

virtual System.Threading.Tasks.Task<Google.Api.Ads.AdWords.v201809.CampaignPage> Google.Api.Ads.AdWords.v201809.CampaignService.getAsync ( Google.Api.Ads.AdWords.v201809.Selector  serviceSelector)
inlinevirtual
virtual Google.Api.Ads.AdWords.v201809.CampaignReturnValue Google.Api.Ads.AdWords.v201809.CampaignService.mutate ( Google.Api.Ads.AdWords.v201809.CampaignOperation[]  operations)
inlinevirtual

Adds, updates, or removes campaigns.

Note: CampaignOperation does not support the REMOVE operator. To remove a campaign, set its status to REMOVED.

Parameters
operationsA list of unique operations. The same campaign cannot be specified in more than one operation.
Returns
The list of updated campaigns, returned in the same order as the operations array.
Exceptions
AdWordsApiExceptionif problems occurred while updating campaign information.

Implements Google.Api.Ads.AdWords.v201809.ICampaignService.

virtual System.Threading.Tasks.Task<Google.Api.Ads.AdWords.v201809.CampaignReturnValue> Google.Api.Ads.AdWords.v201809.CampaignService.mutateAsync ( Google.Api.Ads.AdWords.v201809.CampaignOperation[]  operations)
inlinevirtual
virtual Google.Api.Ads.AdWords.v201809.CampaignLabelReturnValue Google.Api.Ads.AdWords.v201809.CampaignService.mutateLabel ( Google.Api.Ads.AdWords.v201809.CampaignLabelOperation[]  operations)
inlinevirtual

Adds labels to the campaign or removes labels from the campaign.

Add - Apply an existing label to an existing campaign. The campaignId must reference an existing Campaign. The labelId must reference an existing label.

Remove - Removes the link between the specified campaign and label.

Parameters
operationsthe operations to apply.
Returns
a list of CampaignLabels where each entry in the list is the result of applying the operation in the input list with the same index. For an add operation, the returned CampaignLabel contains the CampaignId and the LabelId. In the case of a remove operation, the returned CampaignLabel will only have CampaignId.
Exceptions
AdWordsApiExceptionwhen there are one or more errors with the request.

Implements Google.Api.Ads.AdWords.v201809.ICampaignService.

virtual System.Threading.Tasks.Task<Google.Api.Ads.AdWords.v201809.CampaignLabelReturnValue> Google.Api.Ads.AdWords.v201809.CampaignService.mutateLabelAsync ( Google.Api.Ads.AdWords.v201809.CampaignLabelOperation[]  operations)
inlinevirtual
virtual Google.Api.Ads.AdWords.v201809.CampaignPage Google.Api.Ads.AdWords.v201809.CampaignService.query ( string  query1)
inlinevirtual

Returns the list of campaigns that match the query.

Parameters
query1The SQL-like AWQL query string.
Returns
A list of campaigns.
Exceptions
AdWordsApiExceptionif problems occur while parsing the query or fetching campaign information.

Implements Google.Api.Ads.AdWords.v201809.CampaignServiceInterface.

virtual System.Threading.Tasks.Task<Google.Api.Ads.AdWords.v201809.CampaignPage> Google.Api.Ads.AdWords.v201809.CampaignService.queryAsync ( string  query)
inlinevirtual

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