Class AdvertisersResource.AssetsResource.UploadRequest
Uploads an asset. Returns the ID of the newly uploaded asset if successful. The asset file size should be no more than 10 MB for images, 200 MB for ZIP files, and 1 GB for videos. Must be used within the multipart media upload process. Examples using provided client libraries can be found in our Creating Creatives guide.
Inheritance
AdvertisersResource.AssetsResource.UploadRequest
Inherited Members
Namespace: Google.Apis.DisplayVideo.v3
Assembly: Google.Apis.DisplayVideo.v3.dll
Syntax
public class AdvertisersResource.AssetsResource.UploadRequest : DisplayVideoBaseServiceRequest<CreateAssetResponse>, IClientServiceRequest<CreateAssetResponse>, IClientServiceRequest
Constructors
UploadRequest(IClientService, CreateAssetRequest, long)
Constructs a new Upload request.
Declaration
public UploadRequest(IClientService service, CreateAssetRequest body, long advertiserId)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
CreateAssetRequest | body | |
long | advertiserId |
Properties
AdvertiserId
Required. The ID of the advertiser this asset belongs to.
Declaration
[RequestParameter("advertiserId", RequestParameterType.Path)]
public virtual long AdvertiserId { get; }
Property Value
Type | Description |
---|---|
long |
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
Type | Description |
---|---|
object |
Overrides
InitParameters()
Initializes Upload parameter list.
Declaration
protected override void InitParameters()