Class CreativeAssetsResource
The "creativeAssets" collection of methods.
Inheritance
System.Object
CreativeAssetsResource
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Google.Apis.Dfareporting.v3_4
Assembly: Google.Apis.Dfareporting.v3_4.dll
Syntax
public class CreativeAssetsResource
Constructors
CreativeAssetsResource(IClientService)
Constructs a new resource.
Declaration
public CreativeAssetsResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
Google.Apis.Services.IClientService | service |
Methods
Insert(CreativeAssetMetadata, Int64, Int64)
Inserts a new creative asset.
Declaration
public virtual CreativeAssetsResource.InsertRequest Insert(CreativeAssetMetadata body, long profileId, long advertiserId)
Parameters
Type | Name | Description |
---|---|---|
CreativeAssetMetadata | body | The body of the request. |
System.Int64 | profileId | User profile ID associated with this request. |
System.Int64 | advertiserId | Advertiser ID of this creative. This is a required field. |
Returns
Type | Description |
---|---|
CreativeAssetsResource.InsertRequest |
Insert(CreativeAssetMetadata, Int64, Int64, Stream, String)
Inserts a new creative asset.
Declaration
public virtual CreativeAssetsResource.InsertMediaUpload Insert(CreativeAssetMetadata body, long profileId, long advertiserId, Stream stream, string contentType)
Parameters
Type | Name | Description |
---|---|---|
CreativeAssetMetadata | body | The body of the request. |
System.Int64 | profileId | User profile ID associated with this request. |
System.Int64 | advertiserId | Advertiser ID of this creative. This is a required field. |
System.IO.Stream | stream | The stream to upload. See remarks for further information. |
System.String | contentType | The content type of the stream to upload. |
Returns
Type | Description |
---|---|
CreativeAssetsResource.InsertMediaUpload |
Remarks
Considerations regarding stream
:
-
If
stream
is seekable, then the stream position will be reset to0
before reading commences. Ifstream
is not seekable, then it will be read from its current position -
Caller is responsible for maintaining the
stream
open until the upload is completed - Caller is responsible for closing the
stream