Class AssetGenerationServiceGrpc.AssetGenerationServiceBlockingV2Stub

java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractBlockingStub<AssetGenerationServiceGrpc.AssetGenerationServiceBlockingV2Stub>
com.google.ads.googleads.v23.services.AssetGenerationServiceGrpc.AssetGenerationServiceBlockingV2Stub
Enclosing class:
AssetGenerationServiceGrpc

public static final class AssetGenerationServiceGrpc.AssetGenerationServiceBlockingV2Stub extends io.grpc.stub.AbstractBlockingStub<AssetGenerationServiceGrpc.AssetGenerationServiceBlockingV2Stub>
A stub to allow clients to do synchronous rpc calls to service AssetGenerationService.
 Service for generating new assets with generative AI.
 
  • Method Details

    • build

      protected AssetGenerationServiceGrpc.AssetGenerationServiceBlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
      Specified by:
      build in class io.grpc.stub.AbstractStub<AssetGenerationServiceGrpc.AssetGenerationServiceBlockingV2Stub>
    • generateText

      public GenerateTextResponse generateText(GenerateTextRequest request) throws io.grpc.StatusException
       Uses generative AI to generate text that can be used as assets in a
       campaign.
       List of thrown errors:
         [AuthenticationError]()
         [AuthorizationError]()
         [AssetGenerationError]()
         [HeaderError]()
         [InternalError]()
         [QuotaError]()
         [RequestError]()
       
      Throws:
      io.grpc.StatusException
    • generateImages

      public GenerateImagesResponse generateImages(GenerateImagesRequest request) throws io.grpc.StatusException
       Uses generative AI to generate images that can be used as assets in a
       campaign.
       List of thrown errors:
         [AuthenticationError]()
         [AuthorizationError]()
         [AssetGenerationError]()
         [HeaderError]()
         [InternalError]()
         [QuotaError]()
         [RequestError]()
       
      Throws:
      io.grpc.StatusException