Class AccountsResource.PromotionsResource
The "promotions" collection of methods.
Inherited Members
Namespace: Google.Apis.Merchant.promotions_v1beta
Assembly: Google.Apis.Merchant.promotions_v1beta.dll
Syntax
public class AccountsResource.PromotionsResource
Constructors
PromotionsResource(IClientService)
Constructs a new resource.
Declaration
public PromotionsResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
Get(string)
Retrieves the promotion from your Merchant Center account. After inserting or updating a promotion input, it may take several minutes before the updated promotion can be retrieved.
Declaration
public virtual AccountsResource.PromotionsResource.GetRequest Get(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The name of the promotion to retrieve. Format: |
Returns
Type | Description |
---|---|
AccountsResource.PromotionsResource.GetRequest |
Insert(InsertPromotionRequest, string)
Inserts a promotion for your Merchant Center account. If the promotion already exists, then it updates the promotion instead.
Declaration
public virtual AccountsResource.PromotionsResource.InsertRequest Insert(InsertPromotionRequest body, string parent)
Parameters
Type | Name | Description |
---|---|---|
InsertPromotionRequest | body | The body of the request. |
string | parent | Required. The account where the promotion will be inserted. Format: accounts/{account} |
Returns
Type | Description |
---|---|
AccountsResource.PromotionsResource.InsertRequest |
List(string)
Lists the promotions in your Merchant Center account. The response might contain fewer items than
specified by pageSize
. Rely on pageToken
to determine if there are more items to be requested. After
inserting or updating a promotion, it may take several minutes before the updated processed promotion
can be retrieved.
Declaration
public virtual AccountsResource.PromotionsResource.ListRequest List(string parent)
Parameters
Type | Name | Description |
---|---|---|
string | parent | Required. The account to list processed promotions for. Format: |
Returns
Type | Description |
---|---|
AccountsResource.PromotionsResource.ListRequest |