Show / Hide Table of Contents

Class CreativeWrapperServiceClient

CreativeWrapperService client wrapper, for convenient use.

Inheritance
object
CreativeWrapperServiceClient
CreativeWrapperServiceClientImpl
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 CreativeWrapperServiceClient
Remarks

Provides methods for handling CreativeWrapper objects.

Properties

DefaultEndpoint

The default endpoint for the CreativeWrapperService 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 CreativeWrapperService scopes.

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

The default CreativeWrapperService scopes are:

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

GrpcClient

The underlying gRPC CreativeWrapperService client

Declaration
public virtual CreativeWrapperService.CreativeWrapperServiceClient GrpcClient { get; }
Property Value
Type Description
CreativeWrapperService.CreativeWrapperServiceClient

ServiceMetadata

The service metadata associated with this client type.

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

Methods

BatchActivateCreativeWrappers(BatchActivateCreativeWrappersRequest, CallSettings)

Batch activates CreativeWrapper objects.

Declaration
public virtual BatchActivateCreativeWrappersResponse BatchActivateCreativeWrappers(BatchActivateCreativeWrappersRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
BatchActivateCreativeWrappersRequest 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
BatchActivateCreativeWrappersResponse

The RPC response.

Sample code
// Create client
CreativeWrapperServiceClient creativeWrapperServiceClient = CreativeWrapperServiceClient.Create();
// Initialize request argument(s)
BatchActivateCreativeWrappersRequest request = new BatchActivateCreativeWrappersRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    CreativeWrapperNames =
    {
        CreativeWrapperName.FromNetworkCodeCreativeWrapper("[NETWORK_CODE]", "[CREATIVE_WRAPPER]"),
    },
};
// Make the request
BatchActivateCreativeWrappersResponse response = creativeWrapperServiceClient.BatchActivateCreativeWrappers(request);

BatchActivateCreativeWrappers(NetworkName, IEnumerable<CreativeWrapperName>, CallSettings)

Batch activates CreativeWrapper objects.

Declaration
public virtual BatchActivateCreativeWrappersResponse BatchActivateCreativeWrappers(NetworkName parent, IEnumerable<CreativeWrapperName> names, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. Format: networks/{network_code}

IEnumerable<CreativeWrapperName> names

Required. The resource names of the CreativeWrapper objects to activate. Format: networks/{network_code}/creativeWrappers/{creative_wrapper_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchActivateCreativeWrappersResponse

The RPC response.

Sample code
// Create client
CreativeWrapperServiceClient creativeWrapperServiceClient = CreativeWrapperServiceClient.Create();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<CreativeWrapperName> names = new CreativeWrapperName[]
{
    CreativeWrapperName.FromNetworkCodeCreativeWrapper("[NETWORK_CODE]", "[CREATIVE_WRAPPER]"),
};
// Make the request
BatchActivateCreativeWrappersResponse response = creativeWrapperServiceClient.BatchActivateCreativeWrappers(parent, names);

BatchActivateCreativeWrappers(string, IEnumerable<string>, CallSettings)

Batch activates CreativeWrapper objects.

Declaration
public virtual BatchActivateCreativeWrappersResponse BatchActivateCreativeWrappers(string parent, IEnumerable<string> names, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. Format: networks/{network_code}

IEnumerable<string> names

Required. The resource names of the CreativeWrapper objects to activate. Format: networks/{network_code}/creativeWrappers/{creative_wrapper_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchActivateCreativeWrappersResponse

The RPC response.

Sample code
// Create client
CreativeWrapperServiceClient creativeWrapperServiceClient = CreativeWrapperServiceClient.Create();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
    "networks/[NETWORK_CODE]/creativeWrappers/[CREATIVE_WRAPPER]",
};
// Make the request
BatchActivateCreativeWrappersResponse response = creativeWrapperServiceClient.BatchActivateCreativeWrappers(parent, names);

BatchActivateCreativeWrappersAsync(BatchActivateCreativeWrappersRequest, CallSettings)

Batch activates CreativeWrapper objects.

Declaration
public virtual Task<BatchActivateCreativeWrappersResponse> BatchActivateCreativeWrappersAsync(BatchActivateCreativeWrappersRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
BatchActivateCreativeWrappersRequest 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<BatchActivateCreativeWrappersResponse>

A Task containing the RPC response.

Sample code
// Create client
CreativeWrapperServiceClient creativeWrapperServiceClient = await CreativeWrapperServiceClient.CreateAsync();
// Initialize request argument(s)
BatchActivateCreativeWrappersRequest request = new BatchActivateCreativeWrappersRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    CreativeWrapperNames =
    {
        CreativeWrapperName.FromNetworkCodeCreativeWrapper("[NETWORK_CODE]", "[CREATIVE_WRAPPER]"),
    },
};
// Make the request
BatchActivateCreativeWrappersResponse response = await creativeWrapperServiceClient.BatchActivateCreativeWrappersAsync(request);

BatchActivateCreativeWrappersAsync(BatchActivateCreativeWrappersRequest, CancellationToken)

Batch activates CreativeWrapper objects.

Declaration
public virtual Task<BatchActivateCreativeWrappersResponse> BatchActivateCreativeWrappersAsync(BatchActivateCreativeWrappersRequest request, CancellationToken cancellationToken)
Parameters
Type Name Description
BatchActivateCreativeWrappersRequest 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<BatchActivateCreativeWrappersResponse>

A Task containing the RPC response.

Sample code
// Create client
CreativeWrapperServiceClient creativeWrapperServiceClient = await CreativeWrapperServiceClient.CreateAsync();
// Initialize request argument(s)
BatchActivateCreativeWrappersRequest request = new BatchActivateCreativeWrappersRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    CreativeWrapperNames =
    {
        CreativeWrapperName.FromNetworkCodeCreativeWrapper("[NETWORK_CODE]", "[CREATIVE_WRAPPER]"),
    },
};
// Make the request
BatchActivateCreativeWrappersResponse response = await creativeWrapperServiceClient.BatchActivateCreativeWrappersAsync(request);

BatchActivateCreativeWrappersAsync(NetworkName, IEnumerable<CreativeWrapperName>, CallSettings)

Batch activates CreativeWrapper objects.

Declaration
public virtual Task<BatchActivateCreativeWrappersResponse> BatchActivateCreativeWrappersAsync(NetworkName parent, IEnumerable<CreativeWrapperName> names, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. Format: networks/{network_code}

IEnumerable<CreativeWrapperName> names

Required. The resource names of the CreativeWrapper objects to activate. Format: networks/{network_code}/creativeWrappers/{creative_wrapper_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<BatchActivateCreativeWrappersResponse>

A Task containing the RPC response.

Sample code
// Create client
CreativeWrapperServiceClient creativeWrapperServiceClient = await CreativeWrapperServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<CreativeWrapperName> names = new CreativeWrapperName[]
{
    CreativeWrapperName.FromNetworkCodeCreativeWrapper("[NETWORK_CODE]", "[CREATIVE_WRAPPER]"),
};
// Make the request
BatchActivateCreativeWrappersResponse response = await creativeWrapperServiceClient.BatchActivateCreativeWrappersAsync(parent, names);

BatchActivateCreativeWrappersAsync(NetworkName, IEnumerable<CreativeWrapperName>, CancellationToken)

Batch activates CreativeWrapper objects.

Declaration
public virtual Task<BatchActivateCreativeWrappersResponse> BatchActivateCreativeWrappersAsync(NetworkName parent, IEnumerable<CreativeWrapperName> names, CancellationToken cancellationToken)
Parameters
Type Name Description
NetworkName parent

Required. Format: networks/{network_code}

IEnumerable<CreativeWrapperName> names

Required. The resource names of the CreativeWrapper objects to activate. Format: networks/{network_code}/creativeWrappers/{creative_wrapper_id}

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchActivateCreativeWrappersResponse>

A Task containing the RPC response.

Sample code
// Create client
CreativeWrapperServiceClient creativeWrapperServiceClient = await CreativeWrapperServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<CreativeWrapperName> names = new CreativeWrapperName[]
{
    CreativeWrapperName.FromNetworkCodeCreativeWrapper("[NETWORK_CODE]", "[CREATIVE_WRAPPER]"),
};
// Make the request
BatchActivateCreativeWrappersResponse response = await creativeWrapperServiceClient.BatchActivateCreativeWrappersAsync(parent, names);

BatchActivateCreativeWrappersAsync(string, IEnumerable<string>, CallSettings)

Batch activates CreativeWrapper objects.

Declaration
public virtual Task<BatchActivateCreativeWrappersResponse> BatchActivateCreativeWrappersAsync(string parent, IEnumerable<string> names, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. Format: networks/{network_code}

IEnumerable<string> names

Required. The resource names of the CreativeWrapper objects to activate. Format: networks/{network_code}/creativeWrappers/{creative_wrapper_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<BatchActivateCreativeWrappersResponse>

A Task containing the RPC response.

Sample code
// Create client
CreativeWrapperServiceClient creativeWrapperServiceClient = await CreativeWrapperServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
    "networks/[NETWORK_CODE]/creativeWrappers/[CREATIVE_WRAPPER]",
};
// Make the request
BatchActivateCreativeWrappersResponse response = await creativeWrapperServiceClient.BatchActivateCreativeWrappersAsync(parent, names);

BatchActivateCreativeWrappersAsync(string, IEnumerable<string>, CancellationToken)

Batch activates CreativeWrapper objects.

Declaration
public virtual Task<BatchActivateCreativeWrappersResponse> BatchActivateCreativeWrappersAsync(string parent, IEnumerable<string> names, CancellationToken cancellationToken)
Parameters
Type Name Description
string parent

Required. Format: networks/{network_code}

IEnumerable<string> names

Required. The resource names of the CreativeWrapper objects to activate. Format: networks/{network_code}/creativeWrappers/{creative_wrapper_id}

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchActivateCreativeWrappersResponse>

A Task containing the RPC response.

Sample code
// Create client
CreativeWrapperServiceClient creativeWrapperServiceClient = await CreativeWrapperServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
    "networks/[NETWORK_CODE]/creativeWrappers/[CREATIVE_WRAPPER]",
};
// Make the request
BatchActivateCreativeWrappersResponse response = await creativeWrapperServiceClient.BatchActivateCreativeWrappersAsync(parent, names);

BatchCreateCreativeWrappers(BatchCreateCreativeWrappersRequest, CallSettings)

Creates CreativeWrapper objects.

Declaration
public virtual BatchCreateCreativeWrappersResponse BatchCreateCreativeWrappers(BatchCreateCreativeWrappersRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
BatchCreateCreativeWrappersRequest 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
BatchCreateCreativeWrappersResponse

The RPC response.

Sample code
// Create client
CreativeWrapperServiceClient creativeWrapperServiceClient = CreativeWrapperServiceClient.Create();
// Initialize request argument(s)
BatchCreateCreativeWrappersRequest request = new BatchCreateCreativeWrappersRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    Requests =
    {
        new CreateCreativeWrapperRequest(),
    },
};
// Make the request
BatchCreateCreativeWrappersResponse response = creativeWrapperServiceClient.BatchCreateCreativeWrappers(request);

BatchCreateCreativeWrappers(NetworkName, IEnumerable<CreateCreativeWrapperRequest>, CallSettings)

Creates CreativeWrapper objects.

Declaration
public virtual BatchCreateCreativeWrappersResponse BatchCreateCreativeWrappers(NetworkName parent, IEnumerable<CreateCreativeWrapperRequest> requests, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. The parent resource where CreativeWrappers will be created. Format: networks/{network_code} The parent field in the CreateCreativeWrapperRequest must match this field.

IEnumerable<CreateCreativeWrapperRequest> requests

Required. The CreativeWrapper objects to create. A maximum of 100 objects can be created in a batch.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchCreateCreativeWrappersResponse

The RPC response.

Sample code
// Create client
CreativeWrapperServiceClient creativeWrapperServiceClient = CreativeWrapperServiceClient.Create();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<CreateCreativeWrapperRequest> requests = new CreateCreativeWrapperRequest[]
{
    new CreateCreativeWrapperRequest(),
};
// Make the request
BatchCreateCreativeWrappersResponse response = creativeWrapperServiceClient.BatchCreateCreativeWrappers(parent, requests);

BatchCreateCreativeWrappers(string, IEnumerable<CreateCreativeWrapperRequest>, CallSettings)

Creates CreativeWrapper objects.

Declaration
public virtual BatchCreateCreativeWrappersResponse BatchCreateCreativeWrappers(string parent, IEnumerable<CreateCreativeWrapperRequest> requests, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. The parent resource where CreativeWrappers will be created. Format: networks/{network_code} The parent field in the CreateCreativeWrapperRequest must match this field.

IEnumerable<CreateCreativeWrapperRequest> requests

Required. The CreativeWrapper objects to create. A maximum of 100 objects can be created in a batch.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchCreateCreativeWrappersResponse

The RPC response.

Sample code
// Create client
CreativeWrapperServiceClient creativeWrapperServiceClient = CreativeWrapperServiceClient.Create();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<CreateCreativeWrapperRequest> requests = new CreateCreativeWrapperRequest[]
{
    new CreateCreativeWrapperRequest(),
};
// Make the request
BatchCreateCreativeWrappersResponse response = creativeWrapperServiceClient.BatchCreateCreativeWrappers(parent, requests);

BatchCreateCreativeWrappersAsync(BatchCreateCreativeWrappersRequest, CallSettings)

Creates CreativeWrapper objects.

Declaration
public virtual Task<BatchCreateCreativeWrappersResponse> BatchCreateCreativeWrappersAsync(BatchCreateCreativeWrappersRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
BatchCreateCreativeWrappersRequest 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<BatchCreateCreativeWrappersResponse>

A Task containing the RPC response.

Sample code
// Create client
CreativeWrapperServiceClient creativeWrapperServiceClient = await CreativeWrapperServiceClient.CreateAsync();
// Initialize request argument(s)
BatchCreateCreativeWrappersRequest request = new BatchCreateCreativeWrappersRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    Requests =
    {
        new CreateCreativeWrapperRequest(),
    },
};
// Make the request
BatchCreateCreativeWrappersResponse response = await creativeWrapperServiceClient.BatchCreateCreativeWrappersAsync(request);

BatchCreateCreativeWrappersAsync(BatchCreateCreativeWrappersRequest, CancellationToken)

Creates CreativeWrapper objects.

Declaration
public virtual Task<BatchCreateCreativeWrappersResponse> BatchCreateCreativeWrappersAsync(BatchCreateCreativeWrappersRequest request, CancellationToken cancellationToken)
Parameters
Type Name Description
BatchCreateCreativeWrappersRequest 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<BatchCreateCreativeWrappersResponse>

A Task containing the RPC response.

Sample code
// Create client
CreativeWrapperServiceClient creativeWrapperServiceClient = await CreativeWrapperServiceClient.CreateAsync();
// Initialize request argument(s)
BatchCreateCreativeWrappersRequest request = new BatchCreateCreativeWrappersRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    Requests =
    {
        new CreateCreativeWrapperRequest(),
    },
};
// Make the request
BatchCreateCreativeWrappersResponse response = await creativeWrapperServiceClient.BatchCreateCreativeWrappersAsync(request);

BatchCreateCreativeWrappersAsync(NetworkName, IEnumerable<CreateCreativeWrapperRequest>, CallSettings)

Creates CreativeWrapper objects.

Declaration
public virtual Task<BatchCreateCreativeWrappersResponse> BatchCreateCreativeWrappersAsync(NetworkName parent, IEnumerable<CreateCreativeWrapperRequest> requests, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. The parent resource where CreativeWrappers will be created. Format: networks/{network_code} The parent field in the CreateCreativeWrapperRequest must match this field.

IEnumerable<CreateCreativeWrapperRequest> requests

Required. The CreativeWrapper objects to create. A maximum of 100 objects can be created in a batch.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<BatchCreateCreativeWrappersResponse>

A Task containing the RPC response.

Sample code
// Create client
CreativeWrapperServiceClient creativeWrapperServiceClient = await CreativeWrapperServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<CreateCreativeWrapperRequest> requests = new CreateCreativeWrapperRequest[]
{
    new CreateCreativeWrapperRequest(),
};
// Make the request
BatchCreateCreativeWrappersResponse response = await creativeWrapperServiceClient.BatchCreateCreativeWrappersAsync(parent, requests);

BatchCreateCreativeWrappersAsync(NetworkName, IEnumerable<CreateCreativeWrapperRequest>, CancellationToken)

Creates CreativeWrapper objects.

Declaration
public virtual Task<BatchCreateCreativeWrappersResponse> BatchCreateCreativeWrappersAsync(NetworkName parent, IEnumerable<CreateCreativeWrapperRequest> requests, CancellationToken cancellationToken)
Parameters
Type Name Description
NetworkName parent

Required. The parent resource where CreativeWrappers will be created. Format: networks/{network_code} The parent field in the CreateCreativeWrapperRequest must match this field.

IEnumerable<CreateCreativeWrapperRequest> requests

Required. The CreativeWrapper objects to create. A maximum of 100 objects can be created in a batch.

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchCreateCreativeWrappersResponse>

A Task containing the RPC response.

Sample code
// Create client
CreativeWrapperServiceClient creativeWrapperServiceClient = await CreativeWrapperServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<CreateCreativeWrapperRequest> requests = new CreateCreativeWrapperRequest[]
{
    new CreateCreativeWrapperRequest(),
};
// Make the request
BatchCreateCreativeWrappersResponse response = await creativeWrapperServiceClient.BatchCreateCreativeWrappersAsync(parent, requests);

BatchCreateCreativeWrappersAsync(string, IEnumerable<CreateCreativeWrapperRequest>, CallSettings)

Creates CreativeWrapper objects.

Declaration
public virtual Task<BatchCreateCreativeWrappersResponse> BatchCreateCreativeWrappersAsync(string parent, IEnumerable<CreateCreativeWrapperRequest> requests, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. The parent resource where CreativeWrappers will be created. Format: networks/{network_code} The parent field in the CreateCreativeWrapperRequest must match this field.

IEnumerable<CreateCreativeWrapperRequest> requests

Required. The CreativeWrapper objects to create. A maximum of 100 objects can be created in a batch.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<BatchCreateCreativeWrappersResponse>

A Task containing the RPC response.

Sample code
// Create client
CreativeWrapperServiceClient creativeWrapperServiceClient = await CreativeWrapperServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<CreateCreativeWrapperRequest> requests = new CreateCreativeWrapperRequest[]
{
    new CreateCreativeWrapperRequest(),
};
// Make the request
BatchCreateCreativeWrappersResponse response = await creativeWrapperServiceClient.BatchCreateCreativeWrappersAsync(parent, requests);

BatchCreateCreativeWrappersAsync(string, IEnumerable<CreateCreativeWrapperRequest>, CancellationToken)

Creates CreativeWrapper objects.

Declaration
public virtual Task<BatchCreateCreativeWrappersResponse> BatchCreateCreativeWrappersAsync(string parent, IEnumerable<CreateCreativeWrapperRequest> requests, CancellationToken cancellationToken)
Parameters
Type Name Description
string parent

Required. The parent resource where CreativeWrappers will be created. Format: networks/{network_code} The parent field in the CreateCreativeWrapperRequest must match this field.

IEnumerable<CreateCreativeWrapperRequest> requests

Required. The CreativeWrapper objects to create. A maximum of 100 objects can be created in a batch.

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchCreateCreativeWrappersResponse>

A Task containing the RPC response.

Sample code
// Create client
CreativeWrapperServiceClient creativeWrapperServiceClient = await CreativeWrapperServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<CreateCreativeWrapperRequest> requests = new CreateCreativeWrapperRequest[]
{
    new CreateCreativeWrapperRequest(),
};
// Make the request
BatchCreateCreativeWrappersResponse response = await creativeWrapperServiceClient.BatchCreateCreativeWrappersAsync(parent, requests);

BatchDeactivateCreativeWrappers(BatchDeactivateCreativeWrappersRequest, CallSettings)

Deactivates a list of CreativeWrapper objects.

Declaration
public virtual BatchDeactivateCreativeWrappersResponse BatchDeactivateCreativeWrappers(BatchDeactivateCreativeWrappersRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
BatchDeactivateCreativeWrappersRequest 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
BatchDeactivateCreativeWrappersResponse

The RPC response.

Sample code
// Create client
CreativeWrapperServiceClient creativeWrapperServiceClient = CreativeWrapperServiceClient.Create();
// Initialize request argument(s)
BatchDeactivateCreativeWrappersRequest request = new BatchDeactivateCreativeWrappersRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    CreativeWrapperNames =
    {
        CreativeWrapperName.FromNetworkCodeCreativeWrapper("[NETWORK_CODE]", "[CREATIVE_WRAPPER]"),
    },
};
// Make the request
BatchDeactivateCreativeWrappersResponse response = creativeWrapperServiceClient.BatchDeactivateCreativeWrappers(request);

BatchDeactivateCreativeWrappers(NetworkName, IEnumerable<CreativeWrapperName>, CallSettings)

Deactivates a list of CreativeWrapper objects.

Declaration
public virtual BatchDeactivateCreativeWrappersResponse BatchDeactivateCreativeWrappers(NetworkName parent, IEnumerable<CreativeWrapperName> names, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. Format: networks/{network_code}

IEnumerable<CreativeWrapperName> names

Required. The resource names of the CreativeWrapper objects to deactivate. Format: networks/{network_code}/creativeWrappers/{creative_wrapper_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchDeactivateCreativeWrappersResponse

The RPC response.

Sample code
// Create client
CreativeWrapperServiceClient creativeWrapperServiceClient = CreativeWrapperServiceClient.Create();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<CreativeWrapperName> names = new CreativeWrapperName[]
{
    CreativeWrapperName.FromNetworkCodeCreativeWrapper("[NETWORK_CODE]", "[CREATIVE_WRAPPER]"),
};
// Make the request
BatchDeactivateCreativeWrappersResponse response = creativeWrapperServiceClient.BatchDeactivateCreativeWrappers(parent, names);

BatchDeactivateCreativeWrappers(string, IEnumerable<string>, CallSettings)

Deactivates a list of CreativeWrapper objects.

Declaration
public virtual BatchDeactivateCreativeWrappersResponse BatchDeactivateCreativeWrappers(string parent, IEnumerable<string> names, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. Format: networks/{network_code}

IEnumerable<string> names

Required. The resource names of the CreativeWrapper objects to deactivate. Format: networks/{network_code}/creativeWrappers/{creative_wrapper_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchDeactivateCreativeWrappersResponse

The RPC response.

Sample code
// Create client
CreativeWrapperServiceClient creativeWrapperServiceClient = CreativeWrapperServiceClient.Create();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
    "networks/[NETWORK_CODE]/creativeWrappers/[CREATIVE_WRAPPER]",
};
// Make the request
BatchDeactivateCreativeWrappersResponse response = creativeWrapperServiceClient.BatchDeactivateCreativeWrappers(parent, names);

BatchDeactivateCreativeWrappersAsync(BatchDeactivateCreativeWrappersRequest, CallSettings)

Deactivates a list of CreativeWrapper objects.

Declaration
public virtual Task<BatchDeactivateCreativeWrappersResponse> BatchDeactivateCreativeWrappersAsync(BatchDeactivateCreativeWrappersRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
BatchDeactivateCreativeWrappersRequest 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<BatchDeactivateCreativeWrappersResponse>

A Task containing the RPC response.

Sample code
// Create client
CreativeWrapperServiceClient creativeWrapperServiceClient = await CreativeWrapperServiceClient.CreateAsync();
// Initialize request argument(s)
BatchDeactivateCreativeWrappersRequest request = new BatchDeactivateCreativeWrappersRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    CreativeWrapperNames =
    {
        CreativeWrapperName.FromNetworkCodeCreativeWrapper("[NETWORK_CODE]", "[CREATIVE_WRAPPER]"),
    },
};
// Make the request
BatchDeactivateCreativeWrappersResponse response = await creativeWrapperServiceClient.BatchDeactivateCreativeWrappersAsync(request);

BatchDeactivateCreativeWrappersAsync(BatchDeactivateCreativeWrappersRequest, CancellationToken)

Deactivates a list of CreativeWrapper objects.

Declaration
public virtual Task<BatchDeactivateCreativeWrappersResponse> BatchDeactivateCreativeWrappersAsync(BatchDeactivateCreativeWrappersRequest request, CancellationToken cancellationToken)
Parameters
Type Name Description
BatchDeactivateCreativeWrappersRequest 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<BatchDeactivateCreativeWrappersResponse>

A Task containing the RPC response.

Sample code
// Create client
CreativeWrapperServiceClient creativeWrapperServiceClient = await CreativeWrapperServiceClient.CreateAsync();
// Initialize request argument(s)
BatchDeactivateCreativeWrappersRequest request = new BatchDeactivateCreativeWrappersRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    CreativeWrapperNames =
    {
        CreativeWrapperName.FromNetworkCodeCreativeWrapper("[NETWORK_CODE]", "[CREATIVE_WRAPPER]"),
    },
};
// Make the request
BatchDeactivateCreativeWrappersResponse response = await creativeWrapperServiceClient.BatchDeactivateCreativeWrappersAsync(request);

BatchDeactivateCreativeWrappersAsync(NetworkName, IEnumerable<CreativeWrapperName>, CallSettings)

Deactivates a list of CreativeWrapper objects.

Declaration
public virtual Task<BatchDeactivateCreativeWrappersResponse> BatchDeactivateCreativeWrappersAsync(NetworkName parent, IEnumerable<CreativeWrapperName> names, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. Format: networks/{network_code}

IEnumerable<CreativeWrapperName> names

Required. The resource names of the CreativeWrapper objects to deactivate. Format: networks/{network_code}/creativeWrappers/{creative_wrapper_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<BatchDeactivateCreativeWrappersResponse>

A Task containing the RPC response.

Sample code
// Create client
CreativeWrapperServiceClient creativeWrapperServiceClient = await CreativeWrapperServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<CreativeWrapperName> names = new CreativeWrapperName[]
{
    CreativeWrapperName.FromNetworkCodeCreativeWrapper("[NETWORK_CODE]", "[CREATIVE_WRAPPER]"),
};
// Make the request
BatchDeactivateCreativeWrappersResponse response = await creativeWrapperServiceClient.BatchDeactivateCreativeWrappersAsync(parent, names);

BatchDeactivateCreativeWrappersAsync(NetworkName, IEnumerable<CreativeWrapperName>, CancellationToken)

Deactivates a list of CreativeWrapper objects.

Declaration
public virtual Task<BatchDeactivateCreativeWrappersResponse> BatchDeactivateCreativeWrappersAsync(NetworkName parent, IEnumerable<CreativeWrapperName> names, CancellationToken cancellationToken)
Parameters
Type Name Description
NetworkName parent

Required. Format: networks/{network_code}

IEnumerable<CreativeWrapperName> names

Required. The resource names of the CreativeWrapper objects to deactivate. Format: networks/{network_code}/creativeWrappers/{creative_wrapper_id}

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchDeactivateCreativeWrappersResponse>

A Task containing the RPC response.

Sample code
// Create client
CreativeWrapperServiceClient creativeWrapperServiceClient = await CreativeWrapperServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<CreativeWrapperName> names = new CreativeWrapperName[]
{
    CreativeWrapperName.FromNetworkCodeCreativeWrapper("[NETWORK_CODE]", "[CREATIVE_WRAPPER]"),
};
// Make the request
BatchDeactivateCreativeWrappersResponse response = await creativeWrapperServiceClient.BatchDeactivateCreativeWrappersAsync(parent, names);

BatchDeactivateCreativeWrappersAsync(string, IEnumerable<string>, CallSettings)

Deactivates a list of CreativeWrapper objects.

Declaration
public virtual Task<BatchDeactivateCreativeWrappersResponse> BatchDeactivateCreativeWrappersAsync(string parent, IEnumerable<string> names, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. Format: networks/{network_code}

IEnumerable<string> names

Required. The resource names of the CreativeWrapper objects to deactivate. Format: networks/{network_code}/creativeWrappers/{creative_wrapper_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<BatchDeactivateCreativeWrappersResponse>

A Task containing the RPC response.

Sample code
// Create client
CreativeWrapperServiceClient creativeWrapperServiceClient = await CreativeWrapperServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
    "networks/[NETWORK_CODE]/creativeWrappers/[CREATIVE_WRAPPER]",
};
// Make the request
BatchDeactivateCreativeWrappersResponse response = await creativeWrapperServiceClient.BatchDeactivateCreativeWrappersAsync(parent, names);

BatchDeactivateCreativeWrappersAsync(string, IEnumerable<string>, CancellationToken)

Deactivates a list of CreativeWrapper objects.

Declaration
public virtual Task<BatchDeactivateCreativeWrappersResponse> BatchDeactivateCreativeWrappersAsync(string parent, IEnumerable<string> names, CancellationToken cancellationToken)
Parameters
Type Name Description
string parent

Required. Format: networks/{network_code}

IEnumerable<string> names

Required. The resource names of the CreativeWrapper objects to deactivate. Format: networks/{network_code}/creativeWrappers/{creative_wrapper_id}

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchDeactivateCreativeWrappersResponse>

A Task containing the RPC response.

Sample code
// Create client
CreativeWrapperServiceClient creativeWrapperServiceClient = await CreativeWrapperServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
    "networks/[NETWORK_CODE]/creativeWrappers/[CREATIVE_WRAPPER]",
};
// Make the request
BatchDeactivateCreativeWrappersResponse response = await creativeWrapperServiceClient.BatchDeactivateCreativeWrappersAsync(parent, names);

BatchUpdateCreativeWrappers(BatchUpdateCreativeWrappersRequest, CallSettings)

Batch updates CreativeWrapper objects.

Declaration
public virtual BatchUpdateCreativeWrappersResponse BatchUpdateCreativeWrappers(BatchUpdateCreativeWrappersRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
BatchUpdateCreativeWrappersRequest 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
BatchUpdateCreativeWrappersResponse

The RPC response.

Sample code
// Create client
CreativeWrapperServiceClient creativeWrapperServiceClient = CreativeWrapperServiceClient.Create();
// Initialize request argument(s)
BatchUpdateCreativeWrappersRequest request = new BatchUpdateCreativeWrappersRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    Requests =
    {
        new UpdateCreativeWrapperRequest(),
    },
};
// Make the request
BatchUpdateCreativeWrappersResponse response = creativeWrapperServiceClient.BatchUpdateCreativeWrappers(request);

BatchUpdateCreativeWrappers(NetworkName, IEnumerable<UpdateCreativeWrapperRequest>, CallSettings)

Batch updates CreativeWrapper objects.

Declaration
public virtual BatchUpdateCreativeWrappersResponse BatchUpdateCreativeWrappers(NetworkName parent, IEnumerable<UpdateCreativeWrapperRequest> requests, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. The parent resource where CreativeWrappers will be updated. Format: networks/{network_code} The parent field in the UpdateCreativeWrapperRequest must match this field.

IEnumerable<UpdateCreativeWrapperRequest> requests

Required. The CreativeWrapper objects to update. A maximum of 100 objects can be updated in a batch.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchUpdateCreativeWrappersResponse

The RPC response.

Sample code
// Create client
CreativeWrapperServiceClient creativeWrapperServiceClient = CreativeWrapperServiceClient.Create();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<UpdateCreativeWrapperRequest> requests = new UpdateCreativeWrapperRequest[]
{
    new UpdateCreativeWrapperRequest(),
};
// Make the request
BatchUpdateCreativeWrappersResponse response = creativeWrapperServiceClient.BatchUpdateCreativeWrappers(parent, requests);

BatchUpdateCreativeWrappers(string, IEnumerable<UpdateCreativeWrapperRequest>, CallSettings)

Batch updates CreativeWrapper objects.

Declaration
public virtual BatchUpdateCreativeWrappersResponse BatchUpdateCreativeWrappers(string parent, IEnumerable<UpdateCreativeWrapperRequest> requests, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. The parent resource where CreativeWrappers will be updated. Format: networks/{network_code} The parent field in the UpdateCreativeWrapperRequest must match this field.

IEnumerable<UpdateCreativeWrapperRequest> requests

Required. The CreativeWrapper objects to update. A maximum of 100 objects can be updated in a batch.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchUpdateCreativeWrappersResponse

The RPC response.

Sample code
// Create client
CreativeWrapperServiceClient creativeWrapperServiceClient = CreativeWrapperServiceClient.Create();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<UpdateCreativeWrapperRequest> requests = new UpdateCreativeWrapperRequest[]
{
    new UpdateCreativeWrapperRequest(),
};
// Make the request
BatchUpdateCreativeWrappersResponse response = creativeWrapperServiceClient.BatchUpdateCreativeWrappers(parent, requests);

BatchUpdateCreativeWrappersAsync(BatchUpdateCreativeWrappersRequest, CallSettings)

Batch updates CreativeWrapper objects.

Declaration
public virtual Task<BatchUpdateCreativeWrappersResponse> BatchUpdateCreativeWrappersAsync(BatchUpdateCreativeWrappersRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
BatchUpdateCreativeWrappersRequest 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<BatchUpdateCreativeWrappersResponse>

A Task containing the RPC response.

Sample code
// Create client
CreativeWrapperServiceClient creativeWrapperServiceClient = await CreativeWrapperServiceClient.CreateAsync();
// Initialize request argument(s)
BatchUpdateCreativeWrappersRequest request = new BatchUpdateCreativeWrappersRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    Requests =
    {
        new UpdateCreativeWrapperRequest(),
    },
};
// Make the request
BatchUpdateCreativeWrappersResponse response = await creativeWrapperServiceClient.BatchUpdateCreativeWrappersAsync(request);

BatchUpdateCreativeWrappersAsync(BatchUpdateCreativeWrappersRequest, CancellationToken)

Batch updates CreativeWrapper objects.

Declaration
public virtual Task<BatchUpdateCreativeWrappersResponse> BatchUpdateCreativeWrappersAsync(BatchUpdateCreativeWrappersRequest request, CancellationToken cancellationToken)
Parameters
Type Name Description
BatchUpdateCreativeWrappersRequest 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<BatchUpdateCreativeWrappersResponse>

A Task containing the RPC response.

Sample code
// Create client
CreativeWrapperServiceClient creativeWrapperServiceClient = await CreativeWrapperServiceClient.CreateAsync();
// Initialize request argument(s)
BatchUpdateCreativeWrappersRequest request = new BatchUpdateCreativeWrappersRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    Requests =
    {
        new UpdateCreativeWrapperRequest(),
    },
};
// Make the request
BatchUpdateCreativeWrappersResponse response = await creativeWrapperServiceClient.BatchUpdateCreativeWrappersAsync(request);

BatchUpdateCreativeWrappersAsync(NetworkName, IEnumerable<UpdateCreativeWrapperRequest>, CallSettings)

Batch updates CreativeWrapper objects.

Declaration
public virtual Task<BatchUpdateCreativeWrappersResponse> BatchUpdateCreativeWrappersAsync(NetworkName parent, IEnumerable<UpdateCreativeWrapperRequest> requests, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. The parent resource where CreativeWrappers will be updated. Format: networks/{network_code} The parent field in the UpdateCreativeWrapperRequest must match this field.

IEnumerable<UpdateCreativeWrapperRequest> requests

Required. The CreativeWrapper objects to update. A maximum of 100 objects can be updated in a batch.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<BatchUpdateCreativeWrappersResponse>

A Task containing the RPC response.

Sample code
// Create client
CreativeWrapperServiceClient creativeWrapperServiceClient = await CreativeWrapperServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<UpdateCreativeWrapperRequest> requests = new UpdateCreativeWrapperRequest[]
{
    new UpdateCreativeWrapperRequest(),
};
// Make the request
BatchUpdateCreativeWrappersResponse response = await creativeWrapperServiceClient.BatchUpdateCreativeWrappersAsync(parent, requests);

BatchUpdateCreativeWrappersAsync(NetworkName, IEnumerable<UpdateCreativeWrapperRequest>, CancellationToken)

Batch updates CreativeWrapper objects.

Declaration
public virtual Task<BatchUpdateCreativeWrappersResponse> BatchUpdateCreativeWrappersAsync(NetworkName parent, IEnumerable<UpdateCreativeWrapperRequest> requests, CancellationToken cancellationToken)
Parameters
Type Name Description
NetworkName parent

Required. The parent resource where CreativeWrappers will be updated. Format: networks/{network_code} The parent field in the UpdateCreativeWrapperRequest must match this field.

IEnumerable<UpdateCreativeWrapperRequest> requests

Required. The CreativeWrapper objects to update. A maximum of 100 objects can be updated in a batch.

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchUpdateCreativeWrappersResponse>

A Task containing the RPC response.

Sample code
// Create client
CreativeWrapperServiceClient creativeWrapperServiceClient = await CreativeWrapperServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<UpdateCreativeWrapperRequest> requests = new UpdateCreativeWrapperRequest[]
{
    new UpdateCreativeWrapperRequest(),
};
// Make the request
BatchUpdateCreativeWrappersResponse response = await creativeWrapperServiceClient.BatchUpdateCreativeWrappersAsync(parent, requests);

BatchUpdateCreativeWrappersAsync(string, IEnumerable<UpdateCreativeWrapperRequest>, CallSettings)

Batch updates CreativeWrapper objects.

Declaration
public virtual Task<BatchUpdateCreativeWrappersResponse> BatchUpdateCreativeWrappersAsync(string parent, IEnumerable<UpdateCreativeWrapperRequest> requests, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. The parent resource where CreativeWrappers will be updated. Format: networks/{network_code} The parent field in the UpdateCreativeWrapperRequest must match this field.

IEnumerable<UpdateCreativeWrapperRequest> requests

Required. The CreativeWrapper objects to update. A maximum of 100 objects can be updated in a batch.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<BatchUpdateCreativeWrappersResponse>

A Task containing the RPC response.

Sample code
// Create client
CreativeWrapperServiceClient creativeWrapperServiceClient = await CreativeWrapperServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<UpdateCreativeWrapperRequest> requests = new UpdateCreativeWrapperRequest[]
{
    new UpdateCreativeWrapperRequest(),
};
// Make the request
BatchUpdateCreativeWrappersResponse response = await creativeWrapperServiceClient.BatchUpdateCreativeWrappersAsync(parent, requests);

BatchUpdateCreativeWrappersAsync(string, IEnumerable<UpdateCreativeWrapperRequest>, CancellationToken)

Batch updates CreativeWrapper objects.

Declaration
public virtual Task<BatchUpdateCreativeWrappersResponse> BatchUpdateCreativeWrappersAsync(string parent, IEnumerable<UpdateCreativeWrapperRequest> requests, CancellationToken cancellationToken)
Parameters
Type Name Description
string parent

Required. The parent resource where CreativeWrappers will be updated. Format: networks/{network_code} The parent field in the UpdateCreativeWrapperRequest must match this field.

IEnumerable<UpdateCreativeWrapperRequest> requests

Required. The CreativeWrapper objects to update. A maximum of 100 objects can be updated in a batch.

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchUpdateCreativeWrappersResponse>

A Task containing the RPC response.

Sample code
// Create client
CreativeWrapperServiceClient creativeWrapperServiceClient = await CreativeWrapperServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<UpdateCreativeWrapperRequest> requests = new UpdateCreativeWrapperRequest[]
{
    new UpdateCreativeWrapperRequest(),
};
// Make the request
BatchUpdateCreativeWrappersResponse response = await creativeWrapperServiceClient.BatchUpdateCreativeWrappersAsync(parent, requests);

Create()

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

Declaration
public static CreativeWrapperServiceClient Create()
Returns
Type Description
CreativeWrapperServiceClient

The created CreativeWrapperServiceClient.

CreateAsync(CancellationToken)

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

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

The CancellationToken to use while creating the client.

Returns
Type Description
Task<CreativeWrapperServiceClient>

The task representing the created CreativeWrapperServiceClient.

CreateCreativeWrapper(CreateCreativeWrapperRequest, CallSettings)

Creates a CreativeWrapper object.

Declaration
public virtual CreativeWrapper CreateCreativeWrapper(CreateCreativeWrapperRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
CreateCreativeWrapperRequest 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
CreativeWrapper

The RPC response.

Sample code
// Create client
CreativeWrapperServiceClient creativeWrapperServiceClient = CreativeWrapperServiceClient.Create();
// Initialize request argument(s)
CreateCreativeWrapperRequest request = new CreateCreativeWrapperRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    CreativeWrapper = new CreativeWrapper(),
};
// Make the request
CreativeWrapper response = creativeWrapperServiceClient.CreateCreativeWrapper(request);

CreateCreativeWrapper(NetworkName, CreativeWrapper, CallSettings)

Creates a CreativeWrapper object.

Declaration
public virtual CreativeWrapper CreateCreativeWrapper(NetworkName parent, CreativeWrapper creativeWrapper, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. The parent resource where this CreativeWrapper will be created. Format: networks/{network_code}

CreativeWrapper creativeWrapper

Required. The CreativeWrapper to create.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
CreativeWrapper

The RPC response.

Sample code
// Create client
CreativeWrapperServiceClient creativeWrapperServiceClient = CreativeWrapperServiceClient.Create();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
CreativeWrapper creativeWrapper = new CreativeWrapper();
// Make the request
CreativeWrapper response = creativeWrapperServiceClient.CreateCreativeWrapper(parent, creativeWrapper);

CreateCreativeWrapper(string, CreativeWrapper, CallSettings)

Creates a CreativeWrapper object.

Declaration
public virtual CreativeWrapper CreateCreativeWrapper(string parent, CreativeWrapper creativeWrapper, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. The parent resource where this CreativeWrapper will be created. Format: networks/{network_code}

CreativeWrapper creativeWrapper

Required. The CreativeWrapper to create.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
CreativeWrapper

The RPC response.

Sample code
// Create client
CreativeWrapperServiceClient creativeWrapperServiceClient = CreativeWrapperServiceClient.Create();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
CreativeWrapper creativeWrapper = new CreativeWrapper();
// Make the request
CreativeWrapper response = creativeWrapperServiceClient.CreateCreativeWrapper(parent, creativeWrapper);

CreateCreativeWrapperAsync(CreateCreativeWrapperRequest, CallSettings)

Creates a CreativeWrapper object.

Declaration
public virtual Task<CreativeWrapper> CreateCreativeWrapperAsync(CreateCreativeWrapperRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
CreateCreativeWrapperRequest 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<CreativeWrapper>

A Task containing the RPC response.

Sample code
// Create client
CreativeWrapperServiceClient creativeWrapperServiceClient = await CreativeWrapperServiceClient.CreateAsync();
// Initialize request argument(s)
CreateCreativeWrapperRequest request = new CreateCreativeWrapperRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    CreativeWrapper = new CreativeWrapper(),
};
// Make the request
CreativeWrapper response = await creativeWrapperServiceClient.CreateCreativeWrapperAsync(request);

CreateCreativeWrapperAsync(CreateCreativeWrapperRequest, CancellationToken)

Creates a CreativeWrapper object.

Declaration
public virtual Task<CreativeWrapper> CreateCreativeWrapperAsync(CreateCreativeWrapperRequest request, CancellationToken cancellationToken)
Parameters
Type Name Description
CreateCreativeWrapperRequest 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<CreativeWrapper>

A Task containing the RPC response.

Sample code
// Create client
CreativeWrapperServiceClient creativeWrapperServiceClient = await CreativeWrapperServiceClient.CreateAsync();
// Initialize request argument(s)
CreateCreativeWrapperRequest request = new CreateCreativeWrapperRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    CreativeWrapper = new CreativeWrapper(),
};
// Make the request
CreativeWrapper response = await creativeWrapperServiceClient.CreateCreativeWrapperAsync(request);

CreateCreativeWrapperAsync(NetworkName, CreativeWrapper, CallSettings)

Creates a CreativeWrapper object.

Declaration
public virtual Task<CreativeWrapper> CreateCreativeWrapperAsync(NetworkName parent, CreativeWrapper creativeWrapper, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. The parent resource where this CreativeWrapper will be created. Format: networks/{network_code}

CreativeWrapper creativeWrapper

Required. The CreativeWrapper to create.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<CreativeWrapper>

A Task containing the RPC response.

Sample code
// Create client
CreativeWrapperServiceClient creativeWrapperServiceClient = await CreativeWrapperServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
CreativeWrapper creativeWrapper = new CreativeWrapper();
// Make the request
CreativeWrapper response = await creativeWrapperServiceClient.CreateCreativeWrapperAsync(parent, creativeWrapper);

CreateCreativeWrapperAsync(NetworkName, CreativeWrapper, CancellationToken)

Creates a CreativeWrapper object.

Declaration
public virtual Task<CreativeWrapper> CreateCreativeWrapperAsync(NetworkName parent, CreativeWrapper creativeWrapper, CancellationToken cancellationToken)
Parameters
Type Name Description
NetworkName parent

Required. The parent resource where this CreativeWrapper will be created. Format: networks/{network_code}

CreativeWrapper creativeWrapper

Required. The CreativeWrapper to create.

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<CreativeWrapper>

A Task containing the RPC response.

Sample code
// Create client
CreativeWrapperServiceClient creativeWrapperServiceClient = await CreativeWrapperServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
CreativeWrapper creativeWrapper = new CreativeWrapper();
// Make the request
CreativeWrapper response = await creativeWrapperServiceClient.CreateCreativeWrapperAsync(parent, creativeWrapper);

CreateCreativeWrapperAsync(string, CreativeWrapper, CallSettings)

Creates a CreativeWrapper object.

Declaration
public virtual Task<CreativeWrapper> CreateCreativeWrapperAsync(string parent, CreativeWrapper creativeWrapper, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. The parent resource where this CreativeWrapper will be created. Format: networks/{network_code}

CreativeWrapper creativeWrapper

Required. The CreativeWrapper to create.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<CreativeWrapper>

A Task containing the RPC response.

Sample code
// Create client
CreativeWrapperServiceClient creativeWrapperServiceClient = await CreativeWrapperServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
CreativeWrapper creativeWrapper = new CreativeWrapper();
// Make the request
CreativeWrapper response = await creativeWrapperServiceClient.CreateCreativeWrapperAsync(parent, creativeWrapper);

CreateCreativeWrapperAsync(string, CreativeWrapper, CancellationToken)

Creates a CreativeWrapper object.

Declaration
public virtual Task<CreativeWrapper> CreateCreativeWrapperAsync(string parent, CreativeWrapper creativeWrapper, CancellationToken cancellationToken)
Parameters
Type Name Description
string parent

Required. The parent resource where this CreativeWrapper will be created. Format: networks/{network_code}

CreativeWrapper creativeWrapper

Required. The CreativeWrapper to create.

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<CreativeWrapper>

A Task containing the RPC response.

Sample code
// Create client
CreativeWrapperServiceClient creativeWrapperServiceClient = await CreativeWrapperServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
CreativeWrapper creativeWrapper = new CreativeWrapper();
// Make the request
CreativeWrapper response = await creativeWrapperServiceClient.CreateCreativeWrapperAsync(parent, creativeWrapper);

GetCreativeWrapper(CreativeWrapperName, CallSettings)

Retrieves a CreativeWrapper object.

Declaration
public virtual CreativeWrapper GetCreativeWrapper(CreativeWrapperName name, CallSettings callSettings = null)
Parameters
Type Name Description
CreativeWrapperName name

Required. The resource name of the CreativeWrapper. Format: networks/{network_code}/creativeWrappers/{creative_wrapper_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
CreativeWrapper

The RPC response.

Sample code
// Create client
CreativeWrapperServiceClient creativeWrapperServiceClient = CreativeWrapperServiceClient.Create();
// Initialize request argument(s)
CreativeWrapperName name = CreativeWrapperName.FromNetworkCodeCreativeWrapper("[NETWORK_CODE]", "[CREATIVE_WRAPPER]");
// Make the request
CreativeWrapper response = creativeWrapperServiceClient.GetCreativeWrapper(name);

GetCreativeWrapper(GetCreativeWrapperRequest, CallSettings)

Retrieves a CreativeWrapper object.

Declaration
public virtual CreativeWrapper GetCreativeWrapper(GetCreativeWrapperRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
GetCreativeWrapperRequest 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
CreativeWrapper

The RPC response.

Sample code
// Create client
CreativeWrapperServiceClient creativeWrapperServiceClient = CreativeWrapperServiceClient.Create();
// Initialize request argument(s)
GetCreativeWrapperRequest request = new GetCreativeWrapperRequest
{
    CreativeWrapperName = CreativeWrapperName.FromNetworkCodeCreativeWrapper("[NETWORK_CODE]", "[CREATIVE_WRAPPER]"),
};
// Make the request
CreativeWrapper response = creativeWrapperServiceClient.GetCreativeWrapper(request);

GetCreativeWrapper(string, CallSettings)

Retrieves a CreativeWrapper object.

Declaration
public virtual CreativeWrapper GetCreativeWrapper(string name, CallSettings callSettings = null)
Parameters
Type Name Description
string name

Required. The resource name of the CreativeWrapper. Format: networks/{network_code}/creativeWrappers/{creative_wrapper_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
CreativeWrapper

The RPC response.

Sample code
// Create client
CreativeWrapperServiceClient creativeWrapperServiceClient = CreativeWrapperServiceClient.Create();
// Initialize request argument(s)
string name = "networks/[NETWORK_CODE]/creativeWrappers/[CREATIVE_WRAPPER]";
// Make the request
CreativeWrapper response = creativeWrapperServiceClient.GetCreativeWrapper(name);

GetCreativeWrapperAsync(CreativeWrapperName, CallSettings)

Retrieves a CreativeWrapper object.

Declaration
public virtual Task<CreativeWrapper> GetCreativeWrapperAsync(CreativeWrapperName name, CallSettings callSettings = null)
Parameters
Type Name Description
CreativeWrapperName name

Required. The resource name of the CreativeWrapper. Format: networks/{network_code}/creativeWrappers/{creative_wrapper_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<CreativeWrapper>

A Task containing the RPC response.

Sample code
// Create client
CreativeWrapperServiceClient creativeWrapperServiceClient = await CreativeWrapperServiceClient.CreateAsync();
// Initialize request argument(s)
CreativeWrapperName name = CreativeWrapperName.FromNetworkCodeCreativeWrapper("[NETWORK_CODE]", "[CREATIVE_WRAPPER]");
// Make the request
CreativeWrapper response = await creativeWrapperServiceClient.GetCreativeWrapperAsync(name);

GetCreativeWrapperAsync(CreativeWrapperName, CancellationToken)

Retrieves a CreativeWrapper object.

Declaration
public virtual Task<CreativeWrapper> GetCreativeWrapperAsync(CreativeWrapperName name, CancellationToken cancellationToken)
Parameters
Type Name Description
CreativeWrapperName name

Required. The resource name of the CreativeWrapper. Format: networks/{network_code}/creativeWrappers/{creative_wrapper_id}

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<CreativeWrapper>

A Task containing the RPC response.

Sample code
// Create client
CreativeWrapperServiceClient creativeWrapperServiceClient = await CreativeWrapperServiceClient.CreateAsync();
// Initialize request argument(s)
CreativeWrapperName name = CreativeWrapperName.FromNetworkCodeCreativeWrapper("[NETWORK_CODE]", "[CREATIVE_WRAPPER]");
// Make the request
CreativeWrapper response = await creativeWrapperServiceClient.GetCreativeWrapperAsync(name);

GetCreativeWrapperAsync(GetCreativeWrapperRequest, CallSettings)

Retrieves a CreativeWrapper object.

Declaration
public virtual Task<CreativeWrapper> GetCreativeWrapperAsync(GetCreativeWrapperRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
GetCreativeWrapperRequest 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<CreativeWrapper>

A Task containing the RPC response.

Sample code
// Create client
CreativeWrapperServiceClient creativeWrapperServiceClient = await CreativeWrapperServiceClient.CreateAsync();
// Initialize request argument(s)
GetCreativeWrapperRequest request = new GetCreativeWrapperRequest
{
    CreativeWrapperName = CreativeWrapperName.FromNetworkCodeCreativeWrapper("[NETWORK_CODE]", "[CREATIVE_WRAPPER]"),
};
// Make the request
CreativeWrapper response = await creativeWrapperServiceClient.GetCreativeWrapperAsync(request);

GetCreativeWrapperAsync(GetCreativeWrapperRequest, CancellationToken)

Retrieves a CreativeWrapper object.

Declaration
public virtual Task<CreativeWrapper> GetCreativeWrapperAsync(GetCreativeWrapperRequest request, CancellationToken cancellationToken)
Parameters
Type Name Description
GetCreativeWrapperRequest 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<CreativeWrapper>

A Task containing the RPC response.

Sample code
// Create client
CreativeWrapperServiceClient creativeWrapperServiceClient = await CreativeWrapperServiceClient.CreateAsync();
// Initialize request argument(s)
GetCreativeWrapperRequest request = new GetCreativeWrapperRequest
{
    CreativeWrapperName = CreativeWrapperName.FromNetworkCodeCreativeWrapper("[NETWORK_CODE]", "[CREATIVE_WRAPPER]"),
};
// Make the request
CreativeWrapper response = await creativeWrapperServiceClient.GetCreativeWrapperAsync(request);

GetCreativeWrapperAsync(string, CallSettings)

Retrieves a CreativeWrapper object.

Declaration
public virtual Task<CreativeWrapper> GetCreativeWrapperAsync(string name, CallSettings callSettings = null)
Parameters
Type Name Description
string name

Required. The resource name of the CreativeWrapper. Format: networks/{network_code}/creativeWrappers/{creative_wrapper_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<CreativeWrapper>

A Task containing the RPC response.

Sample code
// Create client
CreativeWrapperServiceClient creativeWrapperServiceClient = await CreativeWrapperServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "networks/[NETWORK_CODE]/creativeWrappers/[CREATIVE_WRAPPER]";
// Make the request
CreativeWrapper response = await creativeWrapperServiceClient.GetCreativeWrapperAsync(name);

GetCreativeWrapperAsync(string, CancellationToken)

Retrieves a CreativeWrapper object.

Declaration
public virtual Task<CreativeWrapper> GetCreativeWrapperAsync(string name, CancellationToken cancellationToken)
Parameters
Type Name Description
string name

Required. The resource name of the CreativeWrapper. Format: networks/{network_code}/creativeWrappers/{creative_wrapper_id}

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<CreativeWrapper>

A Task containing the RPC response.

Sample code
// Create client
CreativeWrapperServiceClient creativeWrapperServiceClient = await CreativeWrapperServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "networks/[NETWORK_CODE]/creativeWrappers/[CREATIVE_WRAPPER]";
// Make the request
CreativeWrapper response = await creativeWrapperServiceClient.GetCreativeWrapperAsync(name);

ListCreativeWrappers(ListCreativeWrappersRequest, CallSettings)

Lists CreativeWrapper objects.

Declaration
public virtual PagedEnumerable<ListCreativeWrappersResponse, CreativeWrapper> ListCreativeWrappers(ListCreativeWrappersRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
ListCreativeWrappersRequest 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<ListCreativeWrappersResponse, CreativeWrapper>

A pageable sequence of CreativeWrapper resources.

Sample code
// Create client
CreativeWrapperServiceClient creativeWrapperServiceClient = CreativeWrapperServiceClient.Create();
// Initialize request argument(s)
ListCreativeWrappersRequest request = new ListCreativeWrappersRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    Filter = "",
    OrderBy = "",
    Skip = 0,
};
// Make the request
PagedEnumerable<ListCreativeWrappersResponse, CreativeWrapper> response = creativeWrapperServiceClient.ListCreativeWrappers(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (CreativeWrapper 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 (ListCreativeWrappersResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (CreativeWrapper 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<CreativeWrapper> 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 (CreativeWrapper 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;

ListCreativeWrappers(NetworkName, string, int?, CallSettings)

Lists CreativeWrapper objects.

Declaration
public virtual PagedEnumerable<ListCreativeWrappersResponse, CreativeWrapper> ListCreativeWrappers(NetworkName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

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

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<ListCreativeWrappersResponse, CreativeWrapper>

A pageable sequence of CreativeWrapper resources.

Sample code
// Create client
CreativeWrapperServiceClient creativeWrapperServiceClient = CreativeWrapperServiceClient.Create();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
// Make the request
PagedEnumerable<ListCreativeWrappersResponse, CreativeWrapper> response = creativeWrapperServiceClient.ListCreativeWrappers(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (CreativeWrapper 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 (ListCreativeWrappersResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (CreativeWrapper 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<CreativeWrapper> 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 (CreativeWrapper 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;

ListCreativeWrappers(string, string, int?, CallSettings)

Lists CreativeWrapper objects.

Declaration
public virtual PagedEnumerable<ListCreativeWrappersResponse, CreativeWrapper> ListCreativeWrappers(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 CreativeWrappers. Format: networks/{network_code}

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<ListCreativeWrappersResponse, CreativeWrapper>

A pageable sequence of CreativeWrapper resources.

Sample code
// Create client
CreativeWrapperServiceClient creativeWrapperServiceClient = CreativeWrapperServiceClient.Create();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
// Make the request
PagedEnumerable<ListCreativeWrappersResponse, CreativeWrapper> response = creativeWrapperServiceClient.ListCreativeWrappers(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (CreativeWrapper 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 (ListCreativeWrappersResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (CreativeWrapper 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<CreativeWrapper> 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 (CreativeWrapper 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;

ListCreativeWrappersAsync(ListCreativeWrappersRequest, CallSettings)

Lists CreativeWrapper objects.

Declaration
public virtual PagedAsyncEnumerable<ListCreativeWrappersResponse, CreativeWrapper> ListCreativeWrappersAsync(ListCreativeWrappersRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
ListCreativeWrappersRequest 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<ListCreativeWrappersResponse, CreativeWrapper>

A pageable asynchronous sequence of CreativeWrapper resources.

Sample code
// Create client
CreativeWrapperServiceClient creativeWrapperServiceClient = await CreativeWrapperServiceClient.CreateAsync();
// Initialize request argument(s)
ListCreativeWrappersRequest request = new ListCreativeWrappersRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    Filter = "",
    OrderBy = "",
    Skip = 0,
};
// Make the request
PagedAsyncEnumerable<ListCreativeWrappersResponse, CreativeWrapper> response = creativeWrapperServiceClient.ListCreativeWrappersAsync(request);

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

// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListCreativeWrappersResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (CreativeWrapper 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<CreativeWrapper> 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 (CreativeWrapper 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;

ListCreativeWrappersAsync(NetworkName, string, int?, CallSettings)

Lists CreativeWrapper objects.

Declaration
public virtual PagedAsyncEnumerable<ListCreativeWrappersResponse, CreativeWrapper> ListCreativeWrappersAsync(NetworkName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

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

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<ListCreativeWrappersResponse, CreativeWrapper>

A pageable asynchronous sequence of CreativeWrapper resources.

Sample code
// Create client
CreativeWrapperServiceClient creativeWrapperServiceClient = await CreativeWrapperServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
// Make the request
PagedAsyncEnumerable<ListCreativeWrappersResponse, CreativeWrapper> response = creativeWrapperServiceClient.ListCreativeWrappersAsync(parent);

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

// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListCreativeWrappersResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (CreativeWrapper 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<CreativeWrapper> 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 (CreativeWrapper 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;

ListCreativeWrappersAsync(string, string, int?, CallSettings)

Lists CreativeWrapper objects.

Declaration
public virtual PagedAsyncEnumerable<ListCreativeWrappersResponse, CreativeWrapper> ListCreativeWrappersAsync(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 CreativeWrappers. Format: networks/{network_code}

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<ListCreativeWrappersResponse, CreativeWrapper>

A pageable asynchronous sequence of CreativeWrapper resources.

Sample code
// Create client
CreativeWrapperServiceClient creativeWrapperServiceClient = await CreativeWrapperServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
// Make the request
PagedAsyncEnumerable<ListCreativeWrappersResponse, CreativeWrapper> response = creativeWrapperServiceClient.ListCreativeWrappersAsync(parent);

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

// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListCreativeWrappersResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (CreativeWrapper 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<CreativeWrapper> 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 (CreativeWrapper 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.

UpdateCreativeWrapper(CreativeWrapper, FieldMask, CallSettings)

Updates a CreativeWrapper object.

Declaration
public virtual CreativeWrapper UpdateCreativeWrapper(CreativeWrapper creativeWrapper, FieldMask updateMask, CallSettings callSettings = null)
Parameters
Type Name Description
CreativeWrapper creativeWrapper

Required. The CreativeWrapper to update.

The CreativeWrapper's name is used to identify the CreativeWrapper to update.

FieldMask updateMask

Optional. The list of fields to update.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
CreativeWrapper

The RPC response.

Sample code
// Create client
CreativeWrapperServiceClient creativeWrapperServiceClient = CreativeWrapperServiceClient.Create();
// Initialize request argument(s)
CreativeWrapper creativeWrapper = new CreativeWrapper();
FieldMask updateMask = new FieldMask();
// Make the request
CreativeWrapper response = creativeWrapperServiceClient.UpdateCreativeWrapper(creativeWrapper, updateMask);

UpdateCreativeWrapper(UpdateCreativeWrapperRequest, CallSettings)

Updates a CreativeWrapper object.

Declaration
public virtual CreativeWrapper UpdateCreativeWrapper(UpdateCreativeWrapperRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
UpdateCreativeWrapperRequest 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
CreativeWrapper

The RPC response.

Sample code
// Create client
CreativeWrapperServiceClient creativeWrapperServiceClient = CreativeWrapperServiceClient.Create();
// Initialize request argument(s)
UpdateCreativeWrapperRequest request = new UpdateCreativeWrapperRequest
{
    CreativeWrapper = new CreativeWrapper(),
    UpdateMask = new FieldMask(),
};
// Make the request
CreativeWrapper response = creativeWrapperServiceClient.UpdateCreativeWrapper(request);

UpdateCreativeWrapperAsync(CreativeWrapper, FieldMask, CallSettings)

Updates a CreativeWrapper object.

Declaration
public virtual Task<CreativeWrapper> UpdateCreativeWrapperAsync(CreativeWrapper creativeWrapper, FieldMask updateMask, CallSettings callSettings = null)
Parameters
Type Name Description
CreativeWrapper creativeWrapper

Required. The CreativeWrapper to update.

The CreativeWrapper's name is used to identify the CreativeWrapper to update.

FieldMask updateMask

Optional. The list of fields to update.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<CreativeWrapper>

A Task containing the RPC response.

Sample code
// Create client
CreativeWrapperServiceClient creativeWrapperServiceClient = await CreativeWrapperServiceClient.CreateAsync();
// Initialize request argument(s)
CreativeWrapper creativeWrapper = new CreativeWrapper();
FieldMask updateMask = new FieldMask();
// Make the request
CreativeWrapper response = await creativeWrapperServiceClient.UpdateCreativeWrapperAsync(creativeWrapper, updateMask);

UpdateCreativeWrapperAsync(CreativeWrapper, FieldMask, CancellationToken)

Updates a CreativeWrapper object.

Declaration
public virtual Task<CreativeWrapper> UpdateCreativeWrapperAsync(CreativeWrapper creativeWrapper, FieldMask updateMask, CancellationToken cancellationToken)
Parameters
Type Name Description
CreativeWrapper creativeWrapper

Required. The CreativeWrapper to update.

The CreativeWrapper's name is used to identify the CreativeWrapper to update.

FieldMask updateMask

Optional. The list of fields to update.

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<CreativeWrapper>

A Task containing the RPC response.

Sample code
// Create client
CreativeWrapperServiceClient creativeWrapperServiceClient = await CreativeWrapperServiceClient.CreateAsync();
// Initialize request argument(s)
CreativeWrapper creativeWrapper = new CreativeWrapper();
FieldMask updateMask = new FieldMask();
// Make the request
CreativeWrapper response = await creativeWrapperServiceClient.UpdateCreativeWrapperAsync(creativeWrapper, updateMask);

UpdateCreativeWrapperAsync(UpdateCreativeWrapperRequest, CallSettings)

Updates a CreativeWrapper object.

Declaration
public virtual Task<CreativeWrapper> UpdateCreativeWrapperAsync(UpdateCreativeWrapperRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
UpdateCreativeWrapperRequest 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<CreativeWrapper>

A Task containing the RPC response.

Sample code
// Create client
CreativeWrapperServiceClient creativeWrapperServiceClient = await CreativeWrapperServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateCreativeWrapperRequest request = new UpdateCreativeWrapperRequest
{
    CreativeWrapper = new CreativeWrapper(),
    UpdateMask = new FieldMask(),
};
// Make the request
CreativeWrapper response = await creativeWrapperServiceClient.UpdateCreativeWrapperAsync(request);

UpdateCreativeWrapperAsync(UpdateCreativeWrapperRequest, CancellationToken)

Updates a CreativeWrapper object.

Declaration
public virtual Task<CreativeWrapper> UpdateCreativeWrapperAsync(UpdateCreativeWrapperRequest request, CancellationToken cancellationToken)
Parameters
Type Name Description
UpdateCreativeWrapperRequest 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<CreativeWrapper>

A Task containing the RPC response.

Sample code
// Create client
CreativeWrapperServiceClient creativeWrapperServiceClient = await CreativeWrapperServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateCreativeWrapperRequest request = new UpdateCreativeWrapperRequest
{
    CreativeWrapper = new CreativeWrapper(),
    UpdateMask = new FieldMask(),
};
// Make the request
CreativeWrapper response = await creativeWrapperServiceClient.UpdateCreativeWrapperAsync(request);
In this article
Back to top Generated by DocFX