Class AdvertisersResource.ManualTriggersResource
The "manualTriggers" collection of methods.
Inheritance
Inherited Members
Namespace: Google.Apis.DisplayVideo.v1
Assembly: Google.Apis.DisplayVideo.v1.dll
Syntax
public class ManualTriggersResource
Constructors
ManualTriggersResource(IClientService)
Constructs a new resource.
Declaration
public ManualTriggersResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
Activate(ActivateManualTriggerRequest, Int64, Int64)
Activates a manual trigger. Each activation of the manual trigger must be at least 5 minutes apart, otherwise an error will be returned.
Declaration
public virtual AdvertisersResource.ManualTriggersResource.ActivateRequest Activate(ActivateManualTriggerRequest body, long advertiserId, long triggerId)
Parameters
Type | Name | Description |
---|---|---|
ActivateManualTriggerRequest | body | The body of the request. |
System.Int64 | advertiserId | Required. The ID of the advertiser that the manual trigger belongs. |
System.Int64 | triggerId | Required. The ID of the manual trigger to activate. |
Returns
Type | Description |
---|---|
AdvertisersResource.ManualTriggersResource.ActivateRequest |
Create(ManualTrigger, Int64)
Creates a new manual trigger. Returns the newly created manual trigger if successful.
Declaration
public virtual AdvertisersResource.ManualTriggersResource.CreateRequest Create(ManualTrigger body, long advertiserId)
Parameters
Type | Name | Description |
---|---|---|
ManualTrigger | body | The body of the request. |
System.Int64 | advertiserId | Required. Immutable. The unique ID of the advertiser that the manual trigger belongs to. |
Returns
Type | Description |
---|---|
AdvertisersResource.ManualTriggersResource.CreateRequest |
Deactivate(DeactivateManualTriggerRequest, Int64, Int64)
Deactivates a manual trigger.
Declaration
public virtual AdvertisersResource.ManualTriggersResource.DeactivateRequest Deactivate(DeactivateManualTriggerRequest body, long advertiserId, long triggerId)
Parameters
Type | Name | Description |
---|---|---|
DeactivateManualTriggerRequest | body | The body of the request. |
System.Int64 | advertiserId | Required. The ID of the advertiser that the manual trigger belongs. |
System.Int64 | triggerId | Required. The ID of the manual trigger to deactivate. |
Returns
Type | Description |
---|---|
AdvertisersResource.ManualTriggersResource.DeactivateRequest |
Get(Int64, Int64)
Gets a manual trigger.
Declaration
public virtual AdvertisersResource.ManualTriggersResource.GetRequest Get(long advertiserId, long triggerId)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | advertiserId | Required. The ID of the advertiser this manual trigger belongs to. |
System.Int64 | triggerId | Required. The ID of the manual trigger to fetch. |
Returns
Type | Description |
---|---|
AdvertisersResource.ManualTriggersResource.GetRequest |
List(Int64)
Lists manual triggers that are accessible to the current user for a given advertiser ID. The order is defined by the order_by parameter. A single advertiser_id is required.
Declaration
public virtual AdvertisersResource.ManualTriggersResource.ListRequest List(long advertiserId)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | advertiserId | Required. The ID of the advertiser that the fetched manual triggers belong to. |
Returns
Type | Description |
---|---|
AdvertisersResource.ManualTriggersResource.ListRequest |
Patch(ManualTrigger, Int64, Int64)
Updates a manual trigger. Returns the updated manual trigger if successful.
Declaration
public virtual AdvertisersResource.ManualTriggersResource.PatchRequest Patch(ManualTrigger body, long advertiserId, long triggerId)
Parameters
Type | Name | Description |
---|---|---|
ManualTrigger | body | The body of the request. |
System.Int64 | advertiserId | Required. Immutable. The unique ID of the advertiser that the manual trigger belongs to. |
System.Int64 | triggerId | Output only. The unique ID of the manual trigger. |
Returns
Type | Description |
---|---|
AdvertisersResource.ManualTriggersResource.PatchRequest |