Class PromotionsResource
The "promotions" collection of methods.
Inherited Members
Namespace: Google.Apis.ShoppingContent.v2_1
Assembly: Google.Apis.ShoppingContent.v2_1.dll
Syntax
public class PromotionsResource
Constructors
PromotionsResource(IClientService)
Constructs a new resource.
Declaration
public PromotionsResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
Create(Promotion, long)
Inserts a promotion for your Merchant Center account. If the promotion already exists, then it updates the promotion instead. To [end or delete] (https://developers.google.com/shopping-content/guides/promotions#end_a_promotion) a promotion update the time period of the promotion to a time that has already passed.
Declaration
public virtual PromotionsResource.CreateRequest Create(Promotion body, long merchantId)
Parameters
Type | Name | Description |
---|---|---|
Promotion | body | The body of the request. |
long | merchantId | Required. The ID of the account that contains the collection. |
Returns
Type | Description |
---|---|
PromotionsResource.CreateRequest |
Get(long, string)
Retrieves a promotion from your Merchant Center account.
Declaration
public virtual PromotionsResource.GetRequest Get(long merchantId, string id)
Parameters
Type | Name | Description |
---|---|---|
long | merchantId | Required. The ID of the account that contains the collection. |
string | id | Required. REST ID of the promotion to retrieve. |
Returns
Type | Description |
---|---|
PromotionsResource.GetRequest |
List(long)
List all promotions from your Merchant Center account.
Declaration
public virtual PromotionsResource.ListRequest List(long merchantId)
Parameters
Type | Name | Description |
---|---|---|
long | merchantId | Required. The ID of the account that contains the collection. |
Returns
Type | Description |
---|---|
PromotionsResource.ListRequest |