Class CustomBiddingAlgorithmsResource
The "customBiddingAlgorithms" collection of methods.
Inherited Members
Namespace: Google.Apis.DisplayVideo .v2
Assembly: Google.Apis.DisplayVideo.v2.dll
Syntax
public class CustomBiddingAlgorithmsResource
Constructors
CustomBiddingAlgorithmsResource(IClientService)
Constructs a new resource.
Declaration
public CustomBiddingAlgorithmsResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClient |
service |
Properties
Scripts
Gets the Scripts resource.
Declaration
public virtual CustomBiddingAlgorithmsResource.ScriptsResource Scripts { get; }
Property Value
Type | Description |
---|---|
Custom |
Methods
Create(CustomBiddingAlgorithm)
Creates a new custom bidding algorithm. Returns the newly created custom bidding algorithm if successful.
Declaration
public virtual CustomBiddingAlgorithmsResource.CreateRequest Create(CustomBiddingAlgorithm body)
Parameters
Type | Name | Description |
---|---|---|
Custom |
body | The body of the request. |
Returns
Type | Description |
---|---|
Custom |
Get(long)
Gets a custom bidding algorithm.
Declaration
public virtual CustomBiddingAlgorithmsResource.GetRequest Get(long customBiddingAlgorithmId)
Parameters
Type | Name | Description |
---|---|---|
long | customBiddingAlgorithmId | Required. The ID of the custom bidding algorithm to fetch. |
Returns
Type | Description |
---|---|
Custom |
List()
Lists custom bidding algorithms that are accessible to the current user and can be used in bidding stratgies. The order is defined by the order_by parameter.
Declaration
public virtual CustomBiddingAlgorithmsResource.ListRequest List()
Returns
Type | Description |
---|---|
Custom |
Patch(CustomBiddingAlgorithm, long)
Updates an existing custom bidding algorithm. Returns the updated custom bidding algorithm if successful. Warning: Starting April 1, 2025, requests updating custom bidding algorithms that are assigned to line items will return an error. Read more about this announced change.
Declaration
public virtual CustomBiddingAlgorithmsResource.PatchRequest Patch(CustomBiddingAlgorithm body, long customBiddingAlgorithmId)
Parameters
Type | Name | Description |
---|---|---|
Custom |
body | The body of the request. |
long | customBiddingAlgorithmId | Output only. The unique ID of the custom bidding algorithm. Assigned by the system. |
Returns
Type | Description |
---|---|
Custom |
UploadScript(long)
Creates a custom bidding script reference object for a script file. The resulting reference object provides a resource path to which the script file should be uploaded. This reference object should be included in when creating a new custom bidding script object.
Declaration
public virtual CustomBiddingAlgorithmsResource.UploadScriptRequest UploadScript(long customBiddingAlgorithmId)
Parameters
Type | Name | Description |
---|---|---|
long | customBiddingAlgorithmId | Required. The ID of the custom bidding algorithm owns the script. |
Returns
Type | Description |
---|---|
Custom |