Class BuyongoogleprogramsResource
The "buyongoogleprograms" collection of methods.
Inherited Members
Namespace: Google.Apis.ShoppingContent.v2_1
Assembly: Google.Apis.ShoppingContent.v2_1.dll
Syntax
public class BuyongoogleprogramsResource
Constructors
BuyongoogleprogramsResource(IClientService)
Constructs a new resource.
Declaration
public BuyongoogleprogramsResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
Activate(ActivateBuyOnGoogleProgramRequest, long, string)
Reactivates the BoG program in your Merchant Center account. Moves the program to the active state when allowed, for example, when paused. This method is only available to selected merchants.
Declaration
public virtual BuyongoogleprogramsResource.ActivateRequest Activate(ActivateBuyOnGoogleProgramRequest body, long merchantId, string regionCode)
Parameters
Type | Name | Description |
---|---|---|
ActivateBuyOnGoogleProgramRequest | body | The body of the request. |
long | merchantId | Required. The ID of the account. |
string | regionCode | Required. The program region code ISO 3166-1 alpha-2. Currently only US is available. |
Returns
Type | Description |
---|---|
BuyongoogleprogramsResource.ActivateRequest |
Get(long, string)
Retrieves a status of the BoG program for your Merchant Center account.
Declaration
public virtual BuyongoogleprogramsResource.GetRequest Get(long merchantId, string regionCode)
Parameters
Type | Name | Description |
---|---|---|
long | merchantId | Required. The ID of the account. |
string | regionCode | Required. The Program region code ISO 3166-1 alpha-2. Currently only US is available. |
Returns
Type | Description |
---|---|
BuyongoogleprogramsResource.GetRequest |
Onboard(OnboardBuyOnGoogleProgramRequest, long, string)
Onboards the BoG program in your Merchant Center account. By using this method, you agree to the Terms of Service. Calling this method is only possible if the authenticated account is the same as the merchant id in the request. Calling this method multiple times will only accept Terms of Service if the latest version is not currently signed.
Declaration
public virtual BuyongoogleprogramsResource.OnboardRequest Onboard(OnboardBuyOnGoogleProgramRequest body, long merchantId, string regionCode)
Parameters
Type | Name | Description |
---|---|---|
OnboardBuyOnGoogleProgramRequest | body | The body of the request. |
long | merchantId | Required. The ID of the account. |
string | regionCode | Required. The program region code ISO 3166-1 alpha-2. Currently only US is available. |
Returns
Type | Description |
---|---|
BuyongoogleprogramsResource.OnboardRequest |
Patch(BuyOnGoogleProgramStatus, long, string)
Updates the status of the BoG program for your Merchant Center account.
Declaration
public virtual BuyongoogleprogramsResource.PatchRequest Patch(BuyOnGoogleProgramStatus body, long merchantId, string regionCode)
Parameters
Type | Name | Description |
---|---|---|
BuyOnGoogleProgramStatus | body | The body of the request. |
long | merchantId | Required. The ID of the account. |
string | regionCode | Required. The program region code ISO 3166-1 alpha-2. Currently only US is available. |
Returns
Type | Description |
---|---|
BuyongoogleprogramsResource.PatchRequest |
Pause(PauseBuyOnGoogleProgramRequest, long, string)
Pauses the BoG program in your Merchant Center account. This method is only available to selected merchants.
Declaration
public virtual BuyongoogleprogramsResource.PauseRequest Pause(PauseBuyOnGoogleProgramRequest body, long merchantId, string regionCode)
Parameters
Type | Name | Description |
---|---|---|
PauseBuyOnGoogleProgramRequest | body | The body of the request. |
long | merchantId | Required. The ID of the account. |
string | regionCode | Required. The program region code ISO 3166-1 alpha-2. Currently only US is available. |
Returns
Type | Description |
---|---|
BuyongoogleprogramsResource.PauseRequest |
Requestreview(RequestReviewBuyOnGoogleProgramRequest, long, string)
Requests review and then activates the BoG program in your Merchant Center account for the first time. Moves the program to the REVIEW_PENDING state. This method is only available to selected merchants.
Declaration
public virtual BuyongoogleprogramsResource.RequestreviewRequest Requestreview(RequestReviewBuyOnGoogleProgramRequest body, long merchantId, string regionCode)
Parameters
Type | Name | Description |
---|---|---|
RequestReviewBuyOnGoogleProgramRequest | body | The body of the request. |
long | merchantId | Required. The ID of the account. |
string | regionCode | Required. The program region code ISO 3166-1 alpha-2. Currently only US is available. |
Returns
Type | Description |
---|---|
BuyongoogleprogramsResource.RequestreviewRequest |