Show / Hide Table of Contents

Class BuyongoogleprogramsResource

The "buyongoogleprograms" collection of methods.

Inheritance
System.Object
BuyongoogleprogramsResource
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.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, Int64, String)

Reactivates the BoG program in your Merchant Center account. Moves the program to the active state when allowed, e.g. when paused. Important: This method is only whitelisted for 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.

System.Int64 merchantId

Required. The ID of the account.

System.String regionCode

The program region code ISO 3166-1 alpha-2. Currently only US is available.

Returns
Type Description
BuyongoogleprogramsResource.ActivateRequest

Get(Int64, 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
System.Int64 merchantId

Required. The ID of the account.

System.String regionCode

The Program region code ISO 3166-1 alpha-2. Currently only US is available.

Returns
Type Description
BuyongoogleprogramsResource.GetRequest

Onboard(OnboardBuyOnGoogleProgramRequest, Int64, 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.

System.Int64 merchantId

Required. The ID of the account.

System.String regionCode

The program region code ISO 3166-1 alpha-2. Currently only US is available.

Returns
Type Description
BuyongoogleprogramsResource.OnboardRequest

Pause(PauseBuyOnGoogleProgramRequest, Int64, String)

Pauses the BoG program in your Merchant Center account. Important: This method is only whitelisted for 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.

System.Int64 merchantId

Required. The ID of the account.

System.String regionCode

The program region code ISO 3166-1 alpha-2. Currently only US is available.

Returns
Type Description
BuyongoogleprogramsResource.PauseRequest

Requestreview(RequestReviewBuyOnGoogleProgramRequest, Int64, 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. Important: This method is only whitelisted for 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.

System.Int64 merchantId

Required. The ID of the account.

System.String regionCode

The program region code ISO 3166-1 alpha-2. Currently only US is available.

Returns
Type Description
BuyongoogleprogramsResource.RequestreviewRequest
In This Article
Back to top