Ads API .NET library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Google.Api.Ads.AdManager.v202208.InventoryService Class Reference

Provides operations for creating, updating and retrieving AdUnit objects. More...

Inheritance diagram for Google.Api.Ads.AdManager.v202208.InventoryService:
Google.Api.Ads.AdManager.v202208.IInventoryService Google.Api.Ads.AdManager.v202208.InventoryServiceInterface

Public Member Functions

 InventoryService ()
 Creates a new instance of the InventoryService class. More...
 
 InventoryService (string endpointConfigurationName)
 Creates a new instance of the InventoryService class. More...
 
 InventoryService (string endpointConfigurationName, string remoteAddress)
 Creates a new instance of the InventoryService class. More...
 
 InventoryService (string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress)
 Creates a new instance of the InventoryService class. More...
 
 InventoryService (System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress)
 Creates a new instance of the InventoryService class. More...
 
virtual
Google.Api.Ads.AdManager.v202208.AdUnit[] 
createAdUnits (Google.Api.Ads.AdManager.v202208.AdUnit[] adUnits)
 Creates new AdUnit objects. More...
 
virtual
System.Threading.Tasks.Task
< Google.Api.Ads.AdManager.v202208.AdUnit[]> 
createAdUnitsAsync (Google.Api.Ads.AdManager.v202208.AdUnit[] adUnits)
 
virtual
Google.Api.Ads.AdManager.v202208.AdUnitSize[] 
getAdUnitSizesByStatement (Google.Api.Ads.AdManager.v202208.Statement filterStatement)
 Returns a set of all relevant AdUnitSize objects. More...
 
virtual
System.Threading.Tasks.Task
< Google.Api.Ads.AdManager.v202208.AdUnitSize[]> 
getAdUnitSizesByStatementAsync (Google.Api.Ads.AdManager.v202208.Statement filterStatement)
 
virtual
Google.Api.Ads.AdManager.v202208.AdUnitPage 
getAdUnitsByStatement (Google.Api.Ads.AdManager.v202208.Statement filterStatement)
 Gets a AdUnitPage of AdUnit objects that satisfy the given Statement::query. The following fields are supported for filtering: More...
 
virtual
System.Threading.Tasks.Task
< Google.Api.Ads.AdManager.v202208.AdUnitPage
getAdUnitsByStatementAsync (Google.Api.Ads.AdManager.v202208.Statement filterStatement)
 
virtual
Google.Api.Ads.AdManager.v202208.UpdateResult 
performAdUnitAction (Google.Api.Ads.AdManager.v202208.AdUnitAction adUnitAction, Google.Api.Ads.AdManager.v202208.Statement filterStatement)
 Performs actions on AdUnit objects that match the given Statement::query. More...
 
virtual
System.Threading.Tasks.Task
< Google.Api.Ads.AdManager.v202208.UpdateResult
performAdUnitActionAsync (Google.Api.Ads.AdManager.v202208.AdUnitAction adUnitAction, Google.Api.Ads.AdManager.v202208.Statement filterStatement)
 
virtual
Google.Api.Ads.AdManager.v202208.AdUnit[] 
updateAdUnits (Google.Api.Ads.AdManager.v202208.AdUnit[] adUnits)
 Updates the specified AdUnit objects. More...
 
virtual
System.Threading.Tasks.Task
< Google.Api.Ads.AdManager.v202208.AdUnit[]> 
updateAdUnitsAsync (Google.Api.Ads.AdManager.v202208.AdUnit[] adUnits)
 

Detailed Description

Provides operations for creating, updating and retrieving AdUnit objects.

Line items connect a creative with its associated ad unit through targeting.

An ad unit represents a piece of inventory within a publisher. It contains all the settings that need to be associated with the inventory in order to serve ads. For example, the ad unit contains creative size restrictions and AdSense settings.

Constructor & Destructor Documentation

Google.Api.Ads.AdManager.v202208.InventoryService.InventoryService ( )
inline

Creates a new instance of the InventoryService class.

Google.Api.Ads.AdManager.v202208.InventoryService.InventoryService ( string  endpointConfigurationName)
inline

Creates a new instance of the InventoryService class.

Google.Api.Ads.AdManager.v202208.InventoryService.InventoryService ( string  endpointConfigurationName,
string  remoteAddress 
)
inline

Creates a new instance of the InventoryService class.

Google.Api.Ads.AdManager.v202208.InventoryService.InventoryService ( string  endpointConfigurationName,
System.ServiceModel.EndpointAddress  remoteAddress 
)
inline

Creates a new instance of the InventoryService class.

Google.Api.Ads.AdManager.v202208.InventoryService.InventoryService ( System.ServiceModel.Channels.Binding  binding,
System.ServiceModel.EndpointAddress  remoteAddress 
)
inline

Creates a new instance of the InventoryService class.

Member Function Documentation

virtual Google.Api.Ads.AdManager.v202208.AdUnit [] Google.Api.Ads.AdManager.v202208.InventoryService.createAdUnits ( Google.Api.Ads.AdManager.v202208.AdUnit[]  adUnits)
inlinevirtual

Creates new AdUnit objects.

Parameters
adUnitsthe ad units to create
Returns
the created ad units, with their IDs filled in

Implements Google.Api.Ads.AdManager.v202208.IInventoryService.

virtual System.Threading.Tasks.Task<Google.Api.Ads.AdManager.v202208.AdUnit[]> Google.Api.Ads.AdManager.v202208.InventoryService.createAdUnitsAsync ( Google.Api.Ads.AdManager.v202208.AdUnit[]  adUnits)
inlinevirtual
virtual Google.Api.Ads.AdManager.v202208.AdUnitPage Google.Api.Ads.AdManager.v202208.InventoryService.getAdUnitsByStatement ( Google.Api.Ads.AdManager.v202208.Statement  filterStatement)
inlinevirtual

Gets a AdUnitPage of AdUnit objects that satisfy the given Statement::query. The following fields are supported for filtering:

PQL Property Object Property
adUnitCode AdUnit::adUnitCode
id AdUnit::id
name AdUnit::name
parentId AdUnit::parentId
status AdUnit::status
lastModifiedDateTime AdUnit::lastModifiedDateTime
Parameters
filterStatementa Publisher Query Language statement used to filter a set of ad units
Returns
the ad units that match the given filter

Implements Google.Api.Ads.AdManager.v202208.InventoryServiceInterface.

virtual System.Threading.Tasks.Task<Google.Api.Ads.AdManager.v202208.AdUnitPage> Google.Api.Ads.AdManager.v202208.InventoryService.getAdUnitsByStatementAsync ( Google.Api.Ads.AdManager.v202208.Statement  filterStatement)
inlinevirtual
virtual Google.Api.Ads.AdManager.v202208.AdUnitSize [] Google.Api.Ads.AdManager.v202208.InventoryService.getAdUnitSizesByStatement ( Google.Api.Ads.AdManager.v202208.Statement  filterStatement)
inlinevirtual

Returns a set of all relevant AdUnitSize objects.

The given Statement is currently ignored but may be honored in future versions.

Parameters
filterStatementcurrently ignored but may be honored in future versions
Returns
the ad unit sizes

Implements Google.Api.Ads.AdManager.v202208.IInventoryService.

virtual System.Threading.Tasks.Task<Google.Api.Ads.AdManager.v202208.AdUnitSize[]> Google.Api.Ads.AdManager.v202208.InventoryService.getAdUnitSizesByStatementAsync ( Google.Api.Ads.AdManager.v202208.Statement  filterStatement)
inlinevirtual
virtual Google.Api.Ads.AdManager.v202208.UpdateResult Google.Api.Ads.AdManager.v202208.InventoryService.performAdUnitAction ( Google.Api.Ads.AdManager.v202208.AdUnitAction  adUnitAction,
Google.Api.Ads.AdManager.v202208.Statement  filterStatement 
)
inlinevirtual

Performs actions on AdUnit objects that match the given Statement::query.

Parameters
adUnitActionthe action to perform
filterStatementa Publisher Query Language statement used to filter a set of ad units
Returns
the result of the action performed

Implements Google.Api.Ads.AdManager.v202208.InventoryServiceInterface.

virtual System.Threading.Tasks.Task<Google.Api.Ads.AdManager.v202208.UpdateResult> Google.Api.Ads.AdManager.v202208.InventoryService.performAdUnitActionAsync ( Google.Api.Ads.AdManager.v202208.AdUnitAction  adUnitAction,
Google.Api.Ads.AdManager.v202208.Statement  filterStatement 
)
inlinevirtual
virtual Google.Api.Ads.AdManager.v202208.AdUnit [] Google.Api.Ads.AdManager.v202208.InventoryService.updateAdUnits ( Google.Api.Ads.AdManager.v202208.AdUnit[]  adUnits)
inlinevirtual

Updates the specified AdUnit objects.

Parameters
adUnitsthe ad units to update
Returns
the updated ad units

Implements Google.Api.Ads.AdManager.v202208.IInventoryService.

virtual System.Threading.Tasks.Task<Google.Api.Ads.AdManager.v202208.AdUnit[]> Google.Api.Ads.AdManager.v202208.InventoryService.updateAdUnitsAsync ( Google.Api.Ads.AdManager.v202208.AdUnit[]  adUnits)
inlinevirtual

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