Show / Hide Table of Contents

Class AdReviewCenterAdServiceClient

AdReviewCenterAdService client wrapper, for convenient use.

Inheritance
object
AdReviewCenterAdServiceClient
AdReviewCenterAdServiceClientImpl
Inherited Members
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ToString()
Namespace: Google.Ads.AdManager.V1
Assembly: Google.Ads.AdManager.V1.dll
Syntax
public abstract class AdReviewCenterAdServiceClient
Remarks

Provides methods for handling AdReviewCenterAd objects.

Properties

BatchAllowAdReviewCenterAdsOperationsClient

The long-running operations client for BatchAllowAdReviewCenterAds.

Declaration
public virtual OperationsClient BatchAllowAdReviewCenterAdsOperationsClient { get; }
Property Value
Type Description
OperationsClient

BatchBlockAdReviewCenterAdsOperationsClient

The long-running operations client for BatchBlockAdReviewCenterAds.

Declaration
public virtual OperationsClient BatchBlockAdReviewCenterAdsOperationsClient { get; }
Property Value
Type Description
OperationsClient

DefaultEndpoint

The default endpoint for the AdReviewCenterAdService service, which is a host of "admanager.googleapis.com" and a port of 443.

Declaration
public static string DefaultEndpoint { get; }
Property Value
Type Description
string

DefaultScopes

The default AdReviewCenterAdService scopes.

Declaration
public static IReadOnlyList<string> DefaultScopes { get; }
Property Value
Type Description
IReadOnlyList<string>
Remarks

The default AdReviewCenterAdService scopes are:

  • https://www.googleapis.com/auth/admanager

GrpcClient

The underlying gRPC AdReviewCenterAdService client

Declaration
public virtual AdReviewCenterAdService.AdReviewCenterAdServiceClient GrpcClient { get; }
Property Value
Type Description
AdReviewCenterAdService.AdReviewCenterAdServiceClient

ServiceMetadata

The service metadata associated with this client type.

Declaration
public static ServiceMetadata ServiceMetadata { get; }
Property Value
Type Description
ServiceMetadata

Methods

BatchAllowAdReviewCenterAds(BatchAllowAdReviewCenterAdsRequest, CallSettings)

API to batch allow AdReviewCenterAds. This method supports partial success. Some operations may succeed while others fail. Callers should check the failedRequests field in the response to determine which operations failed.

Declaration
public virtual Operation<BatchAllowAdReviewCenterAdsResponse, BatchAdReviewCenterAdsOperationMetadata> BatchAllowAdReviewCenterAds(BatchAllowAdReviewCenterAdsRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
BatchAllowAdReviewCenterAdsRequest request

The request object containing all of the parameters for the API call.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Operation<BatchAllowAdReviewCenterAdsResponse, BatchAdReviewCenterAdsOperationMetadata>

The RPC response.

Sample code
// Create client
AdReviewCenterAdServiceClient adReviewCenterAdServiceClient = AdReviewCenterAdServiceClient.Create();
// Initialize request argument(s)
BatchAllowAdReviewCenterAdsRequest request = new BatchAllowAdReviewCenterAdsRequest
{
    ParentAsWebPropertyName = WebPropertyName.FromNetworkCodeWebProperty("[NETWORK_CODE]", "[WEB_PROPERTY]"),
    AdReviewCenterAdNames =
    {
        AdReviewCenterAdName.FromNetworkCodeWebPropertyCodeAdReviewCenterAd("[NETWORK_CODE]", "[WEB_PROPERTY_CODE]", "[AD_REVIEW_CENTER_AD]"),
    },
};
// Make the request
Operation<BatchAllowAdReviewCenterAdsResponse, BatchAdReviewCenterAdsOperationMetadata> response = adReviewCenterAdServiceClient.BatchAllowAdReviewCenterAds(request);

// Poll until the returned long-running operation is complete
Operation<BatchAllowAdReviewCenterAdsResponse, BatchAdReviewCenterAdsOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
BatchAllowAdReviewCenterAdsResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BatchAllowAdReviewCenterAdsResponse, BatchAdReviewCenterAdsOperationMetadata> retrievedResponse = adReviewCenterAdServiceClient.PollOnceBatchAllowAdReviewCenterAds(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    BatchAllowAdReviewCenterAdsResponse retrievedResult = retrievedResponse.Result;
}

BatchAllowAdReviewCenterAds(WebPropertyName, CallSettings)

API to batch allow AdReviewCenterAds. This method supports partial success. Some operations may succeed while others fail. Callers should check the failedRequests field in the response to determine which operations failed.

Declaration
public virtual Operation<BatchAllowAdReviewCenterAdsResponse, BatchAdReviewCenterAdsOperationMetadata> BatchAllowAdReviewCenterAds(WebPropertyName parent, CallSettings callSettings = null)
Parameters
Type Name Description
WebPropertyName parent

Required. The parent, which owns this collection of AdReviewCenterAds. Format: networks/{network_code}/webProperties/{web_property_code}

Since a network can only have a single web property of each ExchangeSyndicationProduct, you can use the ExchangeSyndicationProduct as an alias for the web property code:

networks/{network_code}/webProperties/display

networks/{network_code}/webProperties/videoAndAudio

networks/{network_code}/webProperties/mobileApp

networks/{network_code}/webProperties/games

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Operation<BatchAllowAdReviewCenterAdsResponse, BatchAdReviewCenterAdsOperationMetadata>

The RPC response.

Sample code
// Create client
AdReviewCenterAdServiceClient adReviewCenterAdServiceClient = AdReviewCenterAdServiceClient.Create();
// Initialize request argument(s)
WebPropertyName parent = WebPropertyName.FromNetworkCodeWebProperty("[NETWORK_CODE]", "[WEB_PROPERTY]");
// Make the request
Operation<BatchAllowAdReviewCenterAdsResponse, BatchAdReviewCenterAdsOperationMetadata> response = adReviewCenterAdServiceClient.BatchAllowAdReviewCenterAds(parent);

// Poll until the returned long-running operation is complete
Operation<BatchAllowAdReviewCenterAdsResponse, BatchAdReviewCenterAdsOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
BatchAllowAdReviewCenterAdsResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BatchAllowAdReviewCenterAdsResponse, BatchAdReviewCenterAdsOperationMetadata> retrievedResponse = adReviewCenterAdServiceClient.PollOnceBatchAllowAdReviewCenterAds(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    BatchAllowAdReviewCenterAdsResponse retrievedResult = retrievedResponse.Result;
}

BatchAllowAdReviewCenterAds(string, CallSettings)

API to batch allow AdReviewCenterAds. This method supports partial success. Some operations may succeed while others fail. Callers should check the failedRequests field in the response to determine which operations failed.

Declaration
public virtual Operation<BatchAllowAdReviewCenterAdsResponse, BatchAdReviewCenterAdsOperationMetadata> BatchAllowAdReviewCenterAds(string parent, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. The parent, which owns this collection of AdReviewCenterAds. Format: networks/{network_code}/webProperties/{web_property_code}

Since a network can only have a single web property of each ExchangeSyndicationProduct, you can use the ExchangeSyndicationProduct as an alias for the web property code:

networks/{network_code}/webProperties/display

networks/{network_code}/webProperties/videoAndAudio

networks/{network_code}/webProperties/mobileApp

networks/{network_code}/webProperties/games

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Operation<BatchAllowAdReviewCenterAdsResponse, BatchAdReviewCenterAdsOperationMetadata>

The RPC response.

Sample code
// Create client
AdReviewCenterAdServiceClient adReviewCenterAdServiceClient = AdReviewCenterAdServiceClient.Create();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]/webProperties/[WEB_PROPERTY]";
// Make the request
Operation<BatchAllowAdReviewCenterAdsResponse, BatchAdReviewCenterAdsOperationMetadata> response = adReviewCenterAdServiceClient.BatchAllowAdReviewCenterAds(parent);

// Poll until the returned long-running operation is complete
Operation<BatchAllowAdReviewCenterAdsResponse, BatchAdReviewCenterAdsOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
BatchAllowAdReviewCenterAdsResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BatchAllowAdReviewCenterAdsResponse, BatchAdReviewCenterAdsOperationMetadata> retrievedResponse = adReviewCenterAdServiceClient.PollOnceBatchAllowAdReviewCenterAds(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    BatchAllowAdReviewCenterAdsResponse retrievedResult = retrievedResponse.Result;
}

BatchAllowAdReviewCenterAdsAsync(BatchAllowAdReviewCenterAdsRequest, CallSettings)

API to batch allow AdReviewCenterAds. This method supports partial success. Some operations may succeed while others fail. Callers should check the failedRequests field in the response to determine which operations failed.

Declaration
public virtual Task<Operation<BatchAllowAdReviewCenterAdsResponse, BatchAdReviewCenterAdsOperationMetadata>> BatchAllowAdReviewCenterAdsAsync(BatchAllowAdReviewCenterAdsRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
BatchAllowAdReviewCenterAdsRequest request

The request object containing all of the parameters for the API call.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<Operation<BatchAllowAdReviewCenterAdsResponse, BatchAdReviewCenterAdsOperationMetadata>>

A Task containing the RPC response.

Sample code
// Create client
AdReviewCenterAdServiceClient adReviewCenterAdServiceClient = await AdReviewCenterAdServiceClient.CreateAsync();
// Initialize request argument(s)
BatchAllowAdReviewCenterAdsRequest request = new BatchAllowAdReviewCenterAdsRequest
{
    ParentAsWebPropertyName = WebPropertyName.FromNetworkCodeWebProperty("[NETWORK_CODE]", "[WEB_PROPERTY]"),
    AdReviewCenterAdNames =
    {
        AdReviewCenterAdName.FromNetworkCodeWebPropertyCodeAdReviewCenterAd("[NETWORK_CODE]", "[WEB_PROPERTY_CODE]", "[AD_REVIEW_CENTER_AD]"),
    },
};
// Make the request
Operation<BatchAllowAdReviewCenterAdsResponse, BatchAdReviewCenterAdsOperationMetadata> response = await adReviewCenterAdServiceClient.BatchAllowAdReviewCenterAdsAsync(request);

// Poll until the returned long-running operation is complete
Operation<BatchAllowAdReviewCenterAdsResponse, BatchAdReviewCenterAdsOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BatchAllowAdReviewCenterAdsResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BatchAllowAdReviewCenterAdsResponse, BatchAdReviewCenterAdsOperationMetadata> retrievedResponse = await adReviewCenterAdServiceClient.PollOnceBatchAllowAdReviewCenterAdsAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    BatchAllowAdReviewCenterAdsResponse retrievedResult = retrievedResponse.Result;
}

BatchAllowAdReviewCenterAdsAsync(BatchAllowAdReviewCenterAdsRequest, CancellationToken)

API to batch allow AdReviewCenterAds. This method supports partial success. Some operations may succeed while others fail. Callers should check the failedRequests field in the response to determine which operations failed.

Declaration
public virtual Task<Operation<BatchAllowAdReviewCenterAdsResponse, BatchAdReviewCenterAdsOperationMetadata>> BatchAllowAdReviewCenterAdsAsync(BatchAllowAdReviewCenterAdsRequest request, CancellationToken cancellationToken)
Parameters
Type Name Description
BatchAllowAdReviewCenterAdsRequest request

The request object containing all of the parameters for the API call.

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<Operation<BatchAllowAdReviewCenterAdsResponse, BatchAdReviewCenterAdsOperationMetadata>>

A Task containing the RPC response.

Sample code
// Create client
AdReviewCenterAdServiceClient adReviewCenterAdServiceClient = await AdReviewCenterAdServiceClient.CreateAsync();
// Initialize request argument(s)
BatchAllowAdReviewCenterAdsRequest request = new BatchAllowAdReviewCenterAdsRequest
{
    ParentAsWebPropertyName = WebPropertyName.FromNetworkCodeWebProperty("[NETWORK_CODE]", "[WEB_PROPERTY]"),
    AdReviewCenterAdNames =
    {
        AdReviewCenterAdName.FromNetworkCodeWebPropertyCodeAdReviewCenterAd("[NETWORK_CODE]", "[WEB_PROPERTY_CODE]", "[AD_REVIEW_CENTER_AD]"),
    },
};
// Make the request
Operation<BatchAllowAdReviewCenterAdsResponse, BatchAdReviewCenterAdsOperationMetadata> response = await adReviewCenterAdServiceClient.BatchAllowAdReviewCenterAdsAsync(request);

// Poll until the returned long-running operation is complete
Operation<BatchAllowAdReviewCenterAdsResponse, BatchAdReviewCenterAdsOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BatchAllowAdReviewCenterAdsResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BatchAllowAdReviewCenterAdsResponse, BatchAdReviewCenterAdsOperationMetadata> retrievedResponse = await adReviewCenterAdServiceClient.PollOnceBatchAllowAdReviewCenterAdsAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    BatchAllowAdReviewCenterAdsResponse retrievedResult = retrievedResponse.Result;
}

BatchAllowAdReviewCenterAdsAsync(WebPropertyName, CallSettings)

API to batch allow AdReviewCenterAds. This method supports partial success. Some operations may succeed while others fail. Callers should check the failedRequests field in the response to determine which operations failed.

Declaration
public virtual Task<Operation<BatchAllowAdReviewCenterAdsResponse, BatchAdReviewCenterAdsOperationMetadata>> BatchAllowAdReviewCenterAdsAsync(WebPropertyName parent, CallSettings callSettings = null)
Parameters
Type Name Description
WebPropertyName parent

Required. The parent, which owns this collection of AdReviewCenterAds. Format: networks/{network_code}/webProperties/{web_property_code}

Since a network can only have a single web property of each ExchangeSyndicationProduct, you can use the ExchangeSyndicationProduct as an alias for the web property code:

networks/{network_code}/webProperties/display

networks/{network_code}/webProperties/videoAndAudio

networks/{network_code}/webProperties/mobileApp

networks/{network_code}/webProperties/games

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<Operation<BatchAllowAdReviewCenterAdsResponse, BatchAdReviewCenterAdsOperationMetadata>>

A Task containing the RPC response.

Sample code
// Create client
AdReviewCenterAdServiceClient adReviewCenterAdServiceClient = await AdReviewCenterAdServiceClient.CreateAsync();
// Initialize request argument(s)
WebPropertyName parent = WebPropertyName.FromNetworkCodeWebProperty("[NETWORK_CODE]", "[WEB_PROPERTY]");
// Make the request
Operation<BatchAllowAdReviewCenterAdsResponse, BatchAdReviewCenterAdsOperationMetadata> response = await adReviewCenterAdServiceClient.BatchAllowAdReviewCenterAdsAsync(parent);

// Poll until the returned long-running operation is complete
Operation<BatchAllowAdReviewCenterAdsResponse, BatchAdReviewCenterAdsOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BatchAllowAdReviewCenterAdsResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BatchAllowAdReviewCenterAdsResponse, BatchAdReviewCenterAdsOperationMetadata> retrievedResponse = await adReviewCenterAdServiceClient.PollOnceBatchAllowAdReviewCenterAdsAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    BatchAllowAdReviewCenterAdsResponse retrievedResult = retrievedResponse.Result;
}

BatchAllowAdReviewCenterAdsAsync(WebPropertyName, CancellationToken)

API to batch allow AdReviewCenterAds. This method supports partial success. Some operations may succeed while others fail. Callers should check the failedRequests field in the response to determine which operations failed.

Declaration
public virtual Task<Operation<BatchAllowAdReviewCenterAdsResponse, BatchAdReviewCenterAdsOperationMetadata>> BatchAllowAdReviewCenterAdsAsync(WebPropertyName parent, CancellationToken cancellationToken)
Parameters
Type Name Description
WebPropertyName parent

Required. The parent, which owns this collection of AdReviewCenterAds. Format: networks/{network_code}/webProperties/{web_property_code}

Since a network can only have a single web property of each ExchangeSyndicationProduct, you can use the ExchangeSyndicationProduct as an alias for the web property code:

networks/{network_code}/webProperties/display

networks/{network_code}/webProperties/videoAndAudio

networks/{network_code}/webProperties/mobileApp

networks/{network_code}/webProperties/games

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<Operation<BatchAllowAdReviewCenterAdsResponse, BatchAdReviewCenterAdsOperationMetadata>>

A Task containing the RPC response.

Sample code
// Create client
AdReviewCenterAdServiceClient adReviewCenterAdServiceClient = await AdReviewCenterAdServiceClient.CreateAsync();
// Initialize request argument(s)
WebPropertyName parent = WebPropertyName.FromNetworkCodeWebProperty("[NETWORK_CODE]", "[WEB_PROPERTY]");
// Make the request
Operation<BatchAllowAdReviewCenterAdsResponse, BatchAdReviewCenterAdsOperationMetadata> response = await adReviewCenterAdServiceClient.BatchAllowAdReviewCenterAdsAsync(parent);

// Poll until the returned long-running operation is complete
Operation<BatchAllowAdReviewCenterAdsResponse, BatchAdReviewCenterAdsOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BatchAllowAdReviewCenterAdsResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BatchAllowAdReviewCenterAdsResponse, BatchAdReviewCenterAdsOperationMetadata> retrievedResponse = await adReviewCenterAdServiceClient.PollOnceBatchAllowAdReviewCenterAdsAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    BatchAllowAdReviewCenterAdsResponse retrievedResult = retrievedResponse.Result;
}

BatchAllowAdReviewCenterAdsAsync(string, CallSettings)

API to batch allow AdReviewCenterAds. This method supports partial success. Some operations may succeed while others fail. Callers should check the failedRequests field in the response to determine which operations failed.

Declaration
public virtual Task<Operation<BatchAllowAdReviewCenterAdsResponse, BatchAdReviewCenterAdsOperationMetadata>> BatchAllowAdReviewCenterAdsAsync(string parent, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. The parent, which owns this collection of AdReviewCenterAds. Format: networks/{network_code}/webProperties/{web_property_code}

Since a network can only have a single web property of each ExchangeSyndicationProduct, you can use the ExchangeSyndicationProduct as an alias for the web property code:

networks/{network_code}/webProperties/display

networks/{network_code}/webProperties/videoAndAudio

networks/{network_code}/webProperties/mobileApp

networks/{network_code}/webProperties/games

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<Operation<BatchAllowAdReviewCenterAdsResponse, BatchAdReviewCenterAdsOperationMetadata>>

A Task containing the RPC response.

Sample code
// Create client
AdReviewCenterAdServiceClient adReviewCenterAdServiceClient = await AdReviewCenterAdServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]/webProperties/[WEB_PROPERTY]";
// Make the request
Operation<BatchAllowAdReviewCenterAdsResponse, BatchAdReviewCenterAdsOperationMetadata> response = await adReviewCenterAdServiceClient.BatchAllowAdReviewCenterAdsAsync(parent);

// Poll until the returned long-running operation is complete
Operation<BatchAllowAdReviewCenterAdsResponse, BatchAdReviewCenterAdsOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BatchAllowAdReviewCenterAdsResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BatchAllowAdReviewCenterAdsResponse, BatchAdReviewCenterAdsOperationMetadata> retrievedResponse = await adReviewCenterAdServiceClient.PollOnceBatchAllowAdReviewCenterAdsAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    BatchAllowAdReviewCenterAdsResponse retrievedResult = retrievedResponse.Result;
}

BatchAllowAdReviewCenterAdsAsync(string, CancellationToken)

API to batch allow AdReviewCenterAds. This method supports partial success. Some operations may succeed while others fail. Callers should check the failedRequests field in the response to determine which operations failed.

Declaration
public virtual Task<Operation<BatchAllowAdReviewCenterAdsResponse, BatchAdReviewCenterAdsOperationMetadata>> BatchAllowAdReviewCenterAdsAsync(string parent, CancellationToken cancellationToken)
Parameters
Type Name Description
string parent

Required. The parent, which owns this collection of AdReviewCenterAds. Format: networks/{network_code}/webProperties/{web_property_code}

Since a network can only have a single web property of each ExchangeSyndicationProduct, you can use the ExchangeSyndicationProduct as an alias for the web property code:

networks/{network_code}/webProperties/display

networks/{network_code}/webProperties/videoAndAudio

networks/{network_code}/webProperties/mobileApp

networks/{network_code}/webProperties/games

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<Operation<BatchAllowAdReviewCenterAdsResponse, BatchAdReviewCenterAdsOperationMetadata>>

A Task containing the RPC response.

Sample code
// Create client
AdReviewCenterAdServiceClient adReviewCenterAdServiceClient = await AdReviewCenterAdServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]/webProperties/[WEB_PROPERTY]";
// Make the request
Operation<BatchAllowAdReviewCenterAdsResponse, BatchAdReviewCenterAdsOperationMetadata> response = await adReviewCenterAdServiceClient.BatchAllowAdReviewCenterAdsAsync(parent);

// Poll until the returned long-running operation is complete
Operation<BatchAllowAdReviewCenterAdsResponse, BatchAdReviewCenterAdsOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BatchAllowAdReviewCenterAdsResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BatchAllowAdReviewCenterAdsResponse, BatchAdReviewCenterAdsOperationMetadata> retrievedResponse = await adReviewCenterAdServiceClient.PollOnceBatchAllowAdReviewCenterAdsAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    BatchAllowAdReviewCenterAdsResponse retrievedResult = retrievedResponse.Result;
}

BatchBlockAdReviewCenterAds(BatchBlockAdReviewCenterAdsRequest, CallSettings)

API to batch block AdReviewCenterAds. This method supports partial success. Some operations may succeed while others fail. Callers should check the failedRequests field in the response to determine which operations failed.

Declaration
public virtual Operation<BatchBlockAdReviewCenterAdsResponse, BatchAdReviewCenterAdsOperationMetadata> BatchBlockAdReviewCenterAds(BatchBlockAdReviewCenterAdsRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
BatchBlockAdReviewCenterAdsRequest request

The request object containing all of the parameters for the API call.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Operation<BatchBlockAdReviewCenterAdsResponse, BatchAdReviewCenterAdsOperationMetadata>

The RPC response.

Sample code
// Create client
AdReviewCenterAdServiceClient adReviewCenterAdServiceClient = AdReviewCenterAdServiceClient.Create();
// Initialize request argument(s)
BatchBlockAdReviewCenterAdsRequest request = new BatchBlockAdReviewCenterAdsRequest
{
    ParentAsWebPropertyName = WebPropertyName.FromNetworkCodeWebProperty("[NETWORK_CODE]", "[WEB_PROPERTY]"),
    AdReviewCenterAdNames =
    {
        AdReviewCenterAdName.FromNetworkCodeWebPropertyCodeAdReviewCenterAd("[NETWORK_CODE]", "[WEB_PROPERTY_CODE]", "[AD_REVIEW_CENTER_AD]"),
    },
};
// Make the request
Operation<BatchBlockAdReviewCenterAdsResponse, BatchAdReviewCenterAdsOperationMetadata> response = adReviewCenterAdServiceClient.BatchBlockAdReviewCenterAds(request);

// Poll until the returned long-running operation is complete
Operation<BatchBlockAdReviewCenterAdsResponse, BatchAdReviewCenterAdsOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
BatchBlockAdReviewCenterAdsResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BatchBlockAdReviewCenterAdsResponse, BatchAdReviewCenterAdsOperationMetadata> retrievedResponse = adReviewCenterAdServiceClient.PollOnceBatchBlockAdReviewCenterAds(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    BatchBlockAdReviewCenterAdsResponse retrievedResult = retrievedResponse.Result;
}

BatchBlockAdReviewCenterAds(WebPropertyName, CallSettings)

API to batch block AdReviewCenterAds. This method supports partial success. Some operations may succeed while others fail. Callers should check the failedRequests field in the response to determine which operations failed.

Declaration
public virtual Operation<BatchBlockAdReviewCenterAdsResponse, BatchAdReviewCenterAdsOperationMetadata> BatchBlockAdReviewCenterAds(WebPropertyName parent, CallSettings callSettings = null)
Parameters
Type Name Description
WebPropertyName parent

Required. The parent, which owns this collection of AdReviewCenterAds. Format: networks/{network_code}/webProperties/{web_property_code}

Since a network can only have a single web property of each ExchangeSyndicationProduct, you can use the ExchangeSyndicationProduct as an alias for the web property code:

networks/{network_code}/webProperties/display

networks/{network_code}/webProperties/videoAndAudio

networks/{network_code}/webProperties/mobileApp

networks/{network_code}/webProperties/games

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Operation<BatchBlockAdReviewCenterAdsResponse, BatchAdReviewCenterAdsOperationMetadata>

The RPC response.

Sample code
// Create client
AdReviewCenterAdServiceClient adReviewCenterAdServiceClient = AdReviewCenterAdServiceClient.Create();
// Initialize request argument(s)
WebPropertyName parent = WebPropertyName.FromNetworkCodeWebProperty("[NETWORK_CODE]", "[WEB_PROPERTY]");
// Make the request
Operation<BatchBlockAdReviewCenterAdsResponse, BatchAdReviewCenterAdsOperationMetadata> response = adReviewCenterAdServiceClient.BatchBlockAdReviewCenterAds(parent);

// Poll until the returned long-running operation is complete
Operation<BatchBlockAdReviewCenterAdsResponse, BatchAdReviewCenterAdsOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
BatchBlockAdReviewCenterAdsResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BatchBlockAdReviewCenterAdsResponse, BatchAdReviewCenterAdsOperationMetadata> retrievedResponse = adReviewCenterAdServiceClient.PollOnceBatchBlockAdReviewCenterAds(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    BatchBlockAdReviewCenterAdsResponse retrievedResult = retrievedResponse.Result;
}

BatchBlockAdReviewCenterAds(string, CallSettings)

API to batch block AdReviewCenterAds. This method supports partial success. Some operations may succeed while others fail. Callers should check the failedRequests field in the response to determine which operations failed.

Declaration
public virtual Operation<BatchBlockAdReviewCenterAdsResponse, BatchAdReviewCenterAdsOperationMetadata> BatchBlockAdReviewCenterAds(string parent, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. The parent, which owns this collection of AdReviewCenterAds. Format: networks/{network_code}/webProperties/{web_property_code}

Since a network can only have a single web property of each ExchangeSyndicationProduct, you can use the ExchangeSyndicationProduct as an alias for the web property code:

networks/{network_code}/webProperties/display

networks/{network_code}/webProperties/videoAndAudio

networks/{network_code}/webProperties/mobileApp

networks/{network_code}/webProperties/games

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Operation<BatchBlockAdReviewCenterAdsResponse, BatchAdReviewCenterAdsOperationMetadata>

The RPC response.

Sample code
// Create client
AdReviewCenterAdServiceClient adReviewCenterAdServiceClient = AdReviewCenterAdServiceClient.Create();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]/webProperties/[WEB_PROPERTY]";
// Make the request
Operation<BatchBlockAdReviewCenterAdsResponse, BatchAdReviewCenterAdsOperationMetadata> response = adReviewCenterAdServiceClient.BatchBlockAdReviewCenterAds(parent);

// Poll until the returned long-running operation is complete
Operation<BatchBlockAdReviewCenterAdsResponse, BatchAdReviewCenterAdsOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
BatchBlockAdReviewCenterAdsResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BatchBlockAdReviewCenterAdsResponse, BatchAdReviewCenterAdsOperationMetadata> retrievedResponse = adReviewCenterAdServiceClient.PollOnceBatchBlockAdReviewCenterAds(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    BatchBlockAdReviewCenterAdsResponse retrievedResult = retrievedResponse.Result;
}

BatchBlockAdReviewCenterAdsAsync(BatchBlockAdReviewCenterAdsRequest, CallSettings)

API to batch block AdReviewCenterAds. This method supports partial success. Some operations may succeed while others fail. Callers should check the failedRequests field in the response to determine which operations failed.

Declaration
public virtual Task<Operation<BatchBlockAdReviewCenterAdsResponse, BatchAdReviewCenterAdsOperationMetadata>> BatchBlockAdReviewCenterAdsAsync(BatchBlockAdReviewCenterAdsRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
BatchBlockAdReviewCenterAdsRequest request

The request object containing all of the parameters for the API call.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<Operation<BatchBlockAdReviewCenterAdsResponse, BatchAdReviewCenterAdsOperationMetadata>>

A Task containing the RPC response.

Sample code
// Create client
AdReviewCenterAdServiceClient adReviewCenterAdServiceClient = await AdReviewCenterAdServiceClient.CreateAsync();
// Initialize request argument(s)
BatchBlockAdReviewCenterAdsRequest request = new BatchBlockAdReviewCenterAdsRequest
{
    ParentAsWebPropertyName = WebPropertyName.FromNetworkCodeWebProperty("[NETWORK_CODE]", "[WEB_PROPERTY]"),
    AdReviewCenterAdNames =
    {
        AdReviewCenterAdName.FromNetworkCodeWebPropertyCodeAdReviewCenterAd("[NETWORK_CODE]", "[WEB_PROPERTY_CODE]", "[AD_REVIEW_CENTER_AD]"),
    },
};
// Make the request
Operation<BatchBlockAdReviewCenterAdsResponse, BatchAdReviewCenterAdsOperationMetadata> response = await adReviewCenterAdServiceClient.BatchBlockAdReviewCenterAdsAsync(request);

// Poll until the returned long-running operation is complete
Operation<BatchBlockAdReviewCenterAdsResponse, BatchAdReviewCenterAdsOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BatchBlockAdReviewCenterAdsResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BatchBlockAdReviewCenterAdsResponse, BatchAdReviewCenterAdsOperationMetadata> retrievedResponse = await adReviewCenterAdServiceClient.PollOnceBatchBlockAdReviewCenterAdsAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    BatchBlockAdReviewCenterAdsResponse retrievedResult = retrievedResponse.Result;
}

BatchBlockAdReviewCenterAdsAsync(BatchBlockAdReviewCenterAdsRequest, CancellationToken)

API to batch block AdReviewCenterAds. This method supports partial success. Some operations may succeed while others fail. Callers should check the failedRequests field in the response to determine which operations failed.

Declaration
public virtual Task<Operation<BatchBlockAdReviewCenterAdsResponse, BatchAdReviewCenterAdsOperationMetadata>> BatchBlockAdReviewCenterAdsAsync(BatchBlockAdReviewCenterAdsRequest request, CancellationToken cancellationToken)
Parameters
Type Name Description
BatchBlockAdReviewCenterAdsRequest request

The request object containing all of the parameters for the API call.

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<Operation<BatchBlockAdReviewCenterAdsResponse, BatchAdReviewCenterAdsOperationMetadata>>

A Task containing the RPC response.

Sample code
// Create client
AdReviewCenterAdServiceClient adReviewCenterAdServiceClient = await AdReviewCenterAdServiceClient.CreateAsync();
// Initialize request argument(s)
BatchBlockAdReviewCenterAdsRequest request = new BatchBlockAdReviewCenterAdsRequest
{
    ParentAsWebPropertyName = WebPropertyName.FromNetworkCodeWebProperty("[NETWORK_CODE]", "[WEB_PROPERTY]"),
    AdReviewCenterAdNames =
    {
        AdReviewCenterAdName.FromNetworkCodeWebPropertyCodeAdReviewCenterAd("[NETWORK_CODE]", "[WEB_PROPERTY_CODE]", "[AD_REVIEW_CENTER_AD]"),
    },
};
// Make the request
Operation<BatchBlockAdReviewCenterAdsResponse, BatchAdReviewCenterAdsOperationMetadata> response = await adReviewCenterAdServiceClient.BatchBlockAdReviewCenterAdsAsync(request);

// Poll until the returned long-running operation is complete
Operation<BatchBlockAdReviewCenterAdsResponse, BatchAdReviewCenterAdsOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BatchBlockAdReviewCenterAdsResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BatchBlockAdReviewCenterAdsResponse, BatchAdReviewCenterAdsOperationMetadata> retrievedResponse = await adReviewCenterAdServiceClient.PollOnceBatchBlockAdReviewCenterAdsAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    BatchBlockAdReviewCenterAdsResponse retrievedResult = retrievedResponse.Result;
}

BatchBlockAdReviewCenterAdsAsync(WebPropertyName, CallSettings)

API to batch block AdReviewCenterAds. This method supports partial success. Some operations may succeed while others fail. Callers should check the failedRequests field in the response to determine which operations failed.

Declaration
public virtual Task<Operation<BatchBlockAdReviewCenterAdsResponse, BatchAdReviewCenterAdsOperationMetadata>> BatchBlockAdReviewCenterAdsAsync(WebPropertyName parent, CallSettings callSettings = null)
Parameters
Type Name Description
WebPropertyName parent

Required. The parent, which owns this collection of AdReviewCenterAds. Format: networks/{network_code}/webProperties/{web_property_code}

Since a network can only have a single web property of each ExchangeSyndicationProduct, you can use the ExchangeSyndicationProduct as an alias for the web property code:

networks/{network_code}/webProperties/display

networks/{network_code}/webProperties/videoAndAudio

networks/{network_code}/webProperties/mobileApp

networks/{network_code}/webProperties/games

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<Operation<BatchBlockAdReviewCenterAdsResponse, BatchAdReviewCenterAdsOperationMetadata>>

A Task containing the RPC response.

Sample code
// Create client
AdReviewCenterAdServiceClient adReviewCenterAdServiceClient = await AdReviewCenterAdServiceClient.CreateAsync();
// Initialize request argument(s)
WebPropertyName parent = WebPropertyName.FromNetworkCodeWebProperty("[NETWORK_CODE]", "[WEB_PROPERTY]");
// Make the request
Operation<BatchBlockAdReviewCenterAdsResponse, BatchAdReviewCenterAdsOperationMetadata> response = await adReviewCenterAdServiceClient.BatchBlockAdReviewCenterAdsAsync(parent);

// Poll until the returned long-running operation is complete
Operation<BatchBlockAdReviewCenterAdsResponse, BatchAdReviewCenterAdsOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BatchBlockAdReviewCenterAdsResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BatchBlockAdReviewCenterAdsResponse, BatchAdReviewCenterAdsOperationMetadata> retrievedResponse = await adReviewCenterAdServiceClient.PollOnceBatchBlockAdReviewCenterAdsAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    BatchBlockAdReviewCenterAdsResponse retrievedResult = retrievedResponse.Result;
}

BatchBlockAdReviewCenterAdsAsync(WebPropertyName, CancellationToken)

API to batch block AdReviewCenterAds. This method supports partial success. Some operations may succeed while others fail. Callers should check the failedRequests field in the response to determine which operations failed.

Declaration
public virtual Task<Operation<BatchBlockAdReviewCenterAdsResponse, BatchAdReviewCenterAdsOperationMetadata>> BatchBlockAdReviewCenterAdsAsync(WebPropertyName parent, CancellationToken cancellationToken)
Parameters
Type Name Description
WebPropertyName parent

Required. The parent, which owns this collection of AdReviewCenterAds. Format: networks/{network_code}/webProperties/{web_property_code}

Since a network can only have a single web property of each ExchangeSyndicationProduct, you can use the ExchangeSyndicationProduct as an alias for the web property code:

networks/{network_code}/webProperties/display

networks/{network_code}/webProperties/videoAndAudio

networks/{network_code}/webProperties/mobileApp

networks/{network_code}/webProperties/games

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<Operation<BatchBlockAdReviewCenterAdsResponse, BatchAdReviewCenterAdsOperationMetadata>>

A Task containing the RPC response.

Sample code
// Create client
AdReviewCenterAdServiceClient adReviewCenterAdServiceClient = await AdReviewCenterAdServiceClient.CreateAsync();
// Initialize request argument(s)
WebPropertyName parent = WebPropertyName.FromNetworkCodeWebProperty("[NETWORK_CODE]", "[WEB_PROPERTY]");
// Make the request
Operation<BatchBlockAdReviewCenterAdsResponse, BatchAdReviewCenterAdsOperationMetadata> response = await adReviewCenterAdServiceClient.BatchBlockAdReviewCenterAdsAsync(parent);

// Poll until the returned long-running operation is complete
Operation<BatchBlockAdReviewCenterAdsResponse, BatchAdReviewCenterAdsOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BatchBlockAdReviewCenterAdsResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BatchBlockAdReviewCenterAdsResponse, BatchAdReviewCenterAdsOperationMetadata> retrievedResponse = await adReviewCenterAdServiceClient.PollOnceBatchBlockAdReviewCenterAdsAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    BatchBlockAdReviewCenterAdsResponse retrievedResult = retrievedResponse.Result;
}

BatchBlockAdReviewCenterAdsAsync(string, CallSettings)

API to batch block AdReviewCenterAds. This method supports partial success. Some operations may succeed while others fail. Callers should check the failedRequests field in the response to determine which operations failed.

Declaration
public virtual Task<Operation<BatchBlockAdReviewCenterAdsResponse, BatchAdReviewCenterAdsOperationMetadata>> BatchBlockAdReviewCenterAdsAsync(string parent, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. The parent, which owns this collection of AdReviewCenterAds. Format: networks/{network_code}/webProperties/{web_property_code}

Since a network can only have a single web property of each ExchangeSyndicationProduct, you can use the ExchangeSyndicationProduct as an alias for the web property code:

networks/{network_code}/webProperties/display

networks/{network_code}/webProperties/videoAndAudio

networks/{network_code}/webProperties/mobileApp

networks/{network_code}/webProperties/games

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<Operation<BatchBlockAdReviewCenterAdsResponse, BatchAdReviewCenterAdsOperationMetadata>>

A Task containing the RPC response.

Sample code
// Create client
AdReviewCenterAdServiceClient adReviewCenterAdServiceClient = await AdReviewCenterAdServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]/webProperties/[WEB_PROPERTY]";
// Make the request
Operation<BatchBlockAdReviewCenterAdsResponse, BatchAdReviewCenterAdsOperationMetadata> response = await adReviewCenterAdServiceClient.BatchBlockAdReviewCenterAdsAsync(parent);

// Poll until the returned long-running operation is complete
Operation<BatchBlockAdReviewCenterAdsResponse, BatchAdReviewCenterAdsOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BatchBlockAdReviewCenterAdsResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BatchBlockAdReviewCenterAdsResponse, BatchAdReviewCenterAdsOperationMetadata> retrievedResponse = await adReviewCenterAdServiceClient.PollOnceBatchBlockAdReviewCenterAdsAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    BatchBlockAdReviewCenterAdsResponse retrievedResult = retrievedResponse.Result;
}

BatchBlockAdReviewCenterAdsAsync(string, CancellationToken)

API to batch block AdReviewCenterAds. This method supports partial success. Some operations may succeed while others fail. Callers should check the failedRequests field in the response to determine which operations failed.

Declaration
public virtual Task<Operation<BatchBlockAdReviewCenterAdsResponse, BatchAdReviewCenterAdsOperationMetadata>> BatchBlockAdReviewCenterAdsAsync(string parent, CancellationToken cancellationToken)
Parameters
Type Name Description
string parent

Required. The parent, which owns this collection of AdReviewCenterAds. Format: networks/{network_code}/webProperties/{web_property_code}

Since a network can only have a single web property of each ExchangeSyndicationProduct, you can use the ExchangeSyndicationProduct as an alias for the web property code:

networks/{network_code}/webProperties/display

networks/{network_code}/webProperties/videoAndAudio

networks/{network_code}/webProperties/mobileApp

networks/{network_code}/webProperties/games

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<Operation<BatchBlockAdReviewCenterAdsResponse, BatchAdReviewCenterAdsOperationMetadata>>

A Task containing the RPC response.

Sample code
// Create client
AdReviewCenterAdServiceClient adReviewCenterAdServiceClient = await AdReviewCenterAdServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]/webProperties/[WEB_PROPERTY]";
// Make the request
Operation<BatchBlockAdReviewCenterAdsResponse, BatchAdReviewCenterAdsOperationMetadata> response = await adReviewCenterAdServiceClient.BatchBlockAdReviewCenterAdsAsync(parent);

// Poll until the returned long-running operation is complete
Operation<BatchBlockAdReviewCenterAdsResponse, BatchAdReviewCenterAdsOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BatchBlockAdReviewCenterAdsResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BatchBlockAdReviewCenterAdsResponse, BatchAdReviewCenterAdsOperationMetadata> retrievedResponse = await adReviewCenterAdServiceClient.PollOnceBatchBlockAdReviewCenterAdsAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    BatchBlockAdReviewCenterAdsResponse retrievedResult = retrievedResponse.Result;
}

Create()

Synchronously creates a AdReviewCenterAdServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use AdReviewCenterAdServiceClientBuilder.

Declaration
public static AdReviewCenterAdServiceClient Create()
Returns
Type Description
AdReviewCenterAdServiceClient

The created AdReviewCenterAdServiceClient.

CreateAsync(CancellationToken)

Asynchronously creates a AdReviewCenterAdServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use AdReviewCenterAdServiceClientBuilder.

Declaration
public static Task<AdReviewCenterAdServiceClient> CreateAsync(CancellationToken cancellationToken = default)
Parameters
Type Name Description
CancellationToken cancellationToken

The CancellationToken to use while creating the client.

Returns
Type Description
Task<AdReviewCenterAdServiceClient>

The task representing the created AdReviewCenterAdServiceClient.

PollOnceBatchAllowAdReviewCenterAds(string, CallSettings)

Poll an operation once, using an operationName from a previous invocation of BatchAllowAdReviewCenterAds.

Declaration
public virtual Operation<BatchAllowAdReviewCenterAdsResponse, BatchAdReviewCenterAdsOperationMetadata> PollOnceBatchAllowAdReviewCenterAds(string operationName, CallSettings callSettings = null)
Parameters
Type Name Description
string operationName

The name of a previously invoked operation. Must not be null or empty.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Operation<BatchAllowAdReviewCenterAdsResponse, BatchAdReviewCenterAdsOperationMetadata>

The result of polling the operation.

PollOnceBatchAllowAdReviewCenterAdsAsync(string, CallSettings)

Asynchronously poll an operation once, using an operationName from a previous invocation of BatchAllowAdReviewCenterAds.

Declaration
public virtual Task<Operation<BatchAllowAdReviewCenterAdsResponse, BatchAdReviewCenterAdsOperationMetadata>> PollOnceBatchAllowAdReviewCenterAdsAsync(string operationName, CallSettings callSettings = null)
Parameters
Type Name Description
string operationName

The name of a previously invoked operation. Must not be null or empty.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<Operation<BatchAllowAdReviewCenterAdsResponse, BatchAdReviewCenterAdsOperationMetadata>>

A task representing the result of polling the operation.

PollOnceBatchBlockAdReviewCenterAds(string, CallSettings)

Poll an operation once, using an operationName from a previous invocation of BatchBlockAdReviewCenterAds.

Declaration
public virtual Operation<BatchBlockAdReviewCenterAdsResponse, BatchAdReviewCenterAdsOperationMetadata> PollOnceBatchBlockAdReviewCenterAds(string operationName, CallSettings callSettings = null)
Parameters
Type Name Description
string operationName

The name of a previously invoked operation. Must not be null or empty.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Operation<BatchBlockAdReviewCenterAdsResponse, BatchAdReviewCenterAdsOperationMetadata>

The result of polling the operation.

PollOnceBatchBlockAdReviewCenterAdsAsync(string, CallSettings)

Asynchronously poll an operation once, using an operationName from a previous invocation of BatchBlockAdReviewCenterAds.

Declaration
public virtual Task<Operation<BatchBlockAdReviewCenterAdsResponse, BatchAdReviewCenterAdsOperationMetadata>> PollOnceBatchBlockAdReviewCenterAdsAsync(string operationName, CallSettings callSettings = null)
Parameters
Type Name Description
string operationName

The name of a previously invoked operation. Must not be null or empty.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<Operation<BatchBlockAdReviewCenterAdsResponse, BatchAdReviewCenterAdsOperationMetadata>>

A task representing the result of polling the operation.

SearchAdReviewCenterAds(SearchAdReviewCenterAdsRequest, CallSettings)

API to search for AdReviewCenterAds.

Declaration
public virtual PagedEnumerable<SearchAdReviewCenterAdsResponse, AdReviewCenterAd> SearchAdReviewCenterAds(SearchAdReviewCenterAdsRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
SearchAdReviewCenterAdsRequest request

The request object containing all of the parameters for the API call.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerable<SearchAdReviewCenterAdsResponse, AdReviewCenterAd>

A pageable sequence of AdReviewCenterAd resources.

Sample code
// Create client
AdReviewCenterAdServiceClient adReviewCenterAdServiceClient = AdReviewCenterAdServiceClient.Create();
// Initialize request argument(s)
SearchAdReviewCenterAdsRequest request = new SearchAdReviewCenterAdsRequest
{
    ParentAsWebPropertyName = WebPropertyName.FromNetworkCodeWebProperty("[NETWORK_CODE]", "[WEB_PROPERTY]"),
    Status = AdReviewCenterAdStatusEnum.Types.AdReviewCenterAdStatus.Unspecified,
    AdReviewCenterAdId = { "", },
    DateTimeRange = new Interval(),
    SearchText = { "", },
    BuyerAccountId = { 0L, },
};
// Make the request
PagedEnumerable<SearchAdReviewCenterAdsResponse, AdReviewCenterAd> response = adReviewCenterAdServiceClient.SearchAdReviewCenterAds(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (AdReviewCenterAd item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (SearchAdReviewCenterAdsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (AdReviewCenterAd item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<AdReviewCenterAd> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (AdReviewCenterAd item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

SearchAdReviewCenterAds(WebPropertyName, string, int?, CallSettings)

API to search for AdReviewCenterAds.

Declaration
public virtual PagedEnumerable<SearchAdReviewCenterAdsResponse, AdReviewCenterAd> SearchAdReviewCenterAds(WebPropertyName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
Type Name Description
WebPropertyName parent

Required. The parent, which owns this collection of AdReviewCenterAds. Format: networks/{network_code}/webProperties/{web_property_code}

Since a network can only have a single web property of each ExchangeSyndicationProduct, you can use the ExchangeSyndicationProduct as an alias for the web property code:

networks/{network_code}/webProperties/display

networks/{network_code}/webProperties/videoAndAudio

networks/{network_code}/webProperties/mobileApp

networks/{network_code}/webProperties/games

string pageToken

The token returned from the previous request. A value of null or an empty string retrieves the first page.

int? pageSize

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerable<SearchAdReviewCenterAdsResponse, AdReviewCenterAd>

A pageable sequence of AdReviewCenterAd resources.

Sample code
// Create client
AdReviewCenterAdServiceClient adReviewCenterAdServiceClient = AdReviewCenterAdServiceClient.Create();
// Initialize request argument(s)
WebPropertyName parent = WebPropertyName.FromNetworkCodeWebProperty("[NETWORK_CODE]", "[WEB_PROPERTY]");
// Make the request
PagedEnumerable<SearchAdReviewCenterAdsResponse, AdReviewCenterAd> response = adReviewCenterAdServiceClient.SearchAdReviewCenterAds(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (AdReviewCenterAd item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (SearchAdReviewCenterAdsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (AdReviewCenterAd item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<AdReviewCenterAd> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (AdReviewCenterAd item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

SearchAdReviewCenterAds(string, string, int?, CallSettings)

API to search for AdReviewCenterAds.

Declaration
public virtual PagedEnumerable<SearchAdReviewCenterAdsResponse, AdReviewCenterAd> SearchAdReviewCenterAds(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. The parent, which owns this collection of AdReviewCenterAds. Format: networks/{network_code}/webProperties/{web_property_code}

Since a network can only have a single web property of each ExchangeSyndicationProduct, you can use the ExchangeSyndicationProduct as an alias for the web property code:

networks/{network_code}/webProperties/display

networks/{network_code}/webProperties/videoAndAudio

networks/{network_code}/webProperties/mobileApp

networks/{network_code}/webProperties/games

string pageToken

The token returned from the previous request. A value of null or an empty string retrieves the first page.

int? pageSize

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerable<SearchAdReviewCenterAdsResponse, AdReviewCenterAd>

A pageable sequence of AdReviewCenterAd resources.

Sample code
// Create client
AdReviewCenterAdServiceClient adReviewCenterAdServiceClient = AdReviewCenterAdServiceClient.Create();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]/webProperties/[WEB_PROPERTY]";
// Make the request
PagedEnumerable<SearchAdReviewCenterAdsResponse, AdReviewCenterAd> response = adReviewCenterAdServiceClient.SearchAdReviewCenterAds(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (AdReviewCenterAd item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (SearchAdReviewCenterAdsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (AdReviewCenterAd item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<AdReviewCenterAd> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (AdReviewCenterAd item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

SearchAdReviewCenterAdsAsync(SearchAdReviewCenterAdsRequest, CallSettings)

API to search for AdReviewCenterAds.

Declaration
public virtual PagedAsyncEnumerable<SearchAdReviewCenterAdsResponse, AdReviewCenterAd> SearchAdReviewCenterAdsAsync(SearchAdReviewCenterAdsRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
SearchAdReviewCenterAdsRequest request

The request object containing all of the parameters for the API call.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerable<SearchAdReviewCenterAdsResponse, AdReviewCenterAd>

A pageable asynchronous sequence of AdReviewCenterAd resources.

Sample code
// Create client
AdReviewCenterAdServiceClient adReviewCenterAdServiceClient = await AdReviewCenterAdServiceClient.CreateAsync();
// Initialize request argument(s)
SearchAdReviewCenterAdsRequest request = new SearchAdReviewCenterAdsRequest
{
    ParentAsWebPropertyName = WebPropertyName.FromNetworkCodeWebProperty("[NETWORK_CODE]", "[WEB_PROPERTY]"),
    Status = AdReviewCenterAdStatusEnum.Types.AdReviewCenterAdStatus.Unspecified,
    AdReviewCenterAdId = { "", },
    DateTimeRange = new Interval(),
    SearchText = { "", },
    BuyerAccountId = { 0L, },
};
// Make the request
PagedAsyncEnumerable<SearchAdReviewCenterAdsResponse, AdReviewCenterAd> response = adReviewCenterAdServiceClient.SearchAdReviewCenterAdsAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((AdReviewCenterAd item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((SearchAdReviewCenterAdsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (AdReviewCenterAd item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<AdReviewCenterAd> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (AdReviewCenterAd item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

SearchAdReviewCenterAdsAsync(WebPropertyName, string, int?, CallSettings)

API to search for AdReviewCenterAds.

Declaration
public virtual PagedAsyncEnumerable<SearchAdReviewCenterAdsResponse, AdReviewCenterAd> SearchAdReviewCenterAdsAsync(WebPropertyName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
Type Name Description
WebPropertyName parent

Required. The parent, which owns this collection of AdReviewCenterAds. Format: networks/{network_code}/webProperties/{web_property_code}

Since a network can only have a single web property of each ExchangeSyndicationProduct, you can use the ExchangeSyndicationProduct as an alias for the web property code:

networks/{network_code}/webProperties/display

networks/{network_code}/webProperties/videoAndAudio

networks/{network_code}/webProperties/mobileApp

networks/{network_code}/webProperties/games

string pageToken

The token returned from the previous request. A value of null or an empty string retrieves the first page.

int? pageSize

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerable<SearchAdReviewCenterAdsResponse, AdReviewCenterAd>

A pageable asynchronous sequence of AdReviewCenterAd resources.

Sample code
// Create client
AdReviewCenterAdServiceClient adReviewCenterAdServiceClient = await AdReviewCenterAdServiceClient.CreateAsync();
// Initialize request argument(s)
WebPropertyName parent = WebPropertyName.FromNetworkCodeWebProperty("[NETWORK_CODE]", "[WEB_PROPERTY]");
// Make the request
PagedAsyncEnumerable<SearchAdReviewCenterAdsResponse, AdReviewCenterAd> response = adReviewCenterAdServiceClient.SearchAdReviewCenterAdsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((AdReviewCenterAd item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((SearchAdReviewCenterAdsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (AdReviewCenterAd item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<AdReviewCenterAd> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (AdReviewCenterAd item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

SearchAdReviewCenterAdsAsync(string, string, int?, CallSettings)

API to search for AdReviewCenterAds.

Declaration
public virtual PagedAsyncEnumerable<SearchAdReviewCenterAdsResponse, AdReviewCenterAd> SearchAdReviewCenterAdsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. The parent, which owns this collection of AdReviewCenterAds. Format: networks/{network_code}/webProperties/{web_property_code}

Since a network can only have a single web property of each ExchangeSyndicationProduct, you can use the ExchangeSyndicationProduct as an alias for the web property code:

networks/{network_code}/webProperties/display

networks/{network_code}/webProperties/videoAndAudio

networks/{network_code}/webProperties/mobileApp

networks/{network_code}/webProperties/games

string pageToken

The token returned from the previous request. A value of null or an empty string retrieves the first page.

int? pageSize

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerable<SearchAdReviewCenterAdsResponse, AdReviewCenterAd>

A pageable asynchronous sequence of AdReviewCenterAd resources.

Sample code
// Create client
AdReviewCenterAdServiceClient adReviewCenterAdServiceClient = await AdReviewCenterAdServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]/webProperties/[WEB_PROPERTY]";
// Make the request
PagedAsyncEnumerable<SearchAdReviewCenterAdsResponse, AdReviewCenterAd> response = adReviewCenterAdServiceClient.SearchAdReviewCenterAdsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((AdReviewCenterAd item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((SearchAdReviewCenterAdsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (AdReviewCenterAd item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<AdReviewCenterAd> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (AdReviewCenterAd item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ShutdownDefaultChannelsAsync()

Shuts down any channels automatically created by Create() and CreateAsync(CancellationToken). Channels which weren't automatically created are not affected.

Declaration
public static Task ShutdownDefaultChannelsAsync()
Returns
Type Description
Task

A task representing the asynchronous shutdown operation.

Remarks

After calling this method, further calls to Create() and CreateAsync(CancellationToken) will create new channels, which could in turn be shut down by another call to this method.

In this article
Back to top Generated by DocFX