📂 File Browser

AgentAI/vendor/google/apiclient-services/src/ShoppingContent/Resource
🌙 Dark Mode
🎯 Quick Launch:

📁 Directories

📄 Files

🐘 Accounts.php
▶ Open 📄 View Source
🐘 AccountsBusinessmessageslinks.php
▶ Open 📄 View Source
🐘 AccountsCredentials.php
▶ Open 📄 View Source
🐘 AccountsLabels.php
▶ Open 📄 View Source
🐘 AccountsReturncarrier.php
▶ Open 📄 View Source
🐘 Accountsbyexternalsellerid.php
▶ Open 📄 View Source
🐘 Accountstatuses.php
▶ Open 📄 View Source
🐘 Accountstatusesbyexternalsellerid.php
▶ Open 📄 View Source
🐘 Accounttax.php
▶ Open 📄 View Source
🐘 Buyongoogleprograms.php
▶ Open 📄 View Source
🐘 Collections.php
▶ Open 📄 View Source
🐘 Collectionstatuses.php
▶ Open 📄 View Source
🐘 Conversionsources.php
▶ Open 📄 View Source
🐘 Csses.php
▶ Open 📄 View Source
🐘 Customers.php
▶ Open 📄 View Source
🐘 Datafeeds.php
▶ Open 📄 View Source
🐘 Datafeedstatuses.php
▶ Open 📄 View Source
🐘 Freelistingsprogram.php
▶ Open 📄 View Source
🐘 FreelistingsprogramCheckoutsettings.php
▶ Open 📄 View Source
🐘 Liasettings.php
▶ Open 📄 View Source
🐘 Localinventory.php
▶ Open 📄 View Source
🐘 Merchantsupport.php
▶ Open 📄 View Source
🐘 Orderinvoices.php
▶ Open 📄 View Source
🐘 Orderreports.php
▶ Open 📄 View Source
🐘 Orderreturns.php
▶ Open 📄 View Source
🐘 OrderreturnsLabels.php
▶ Open 📄 View Source
🐘 Orders.php
▶ Open 📄 View Source
🐘 Ordertrackingsignals.php
▶ Open 📄 View Source
🐘 Pos.php
▶ Open 📄 View Source
🐘 Productdeliverytime.php
▶ Open 📄 View Source
🐘 Products.php
▶ Open 📄 View Source
🐘 Productstatuses.php
▶ Open 📄 View Source
🐘 ProductstatusesRepricingreports.php
▶ Open 📄 View Source
🐘 Promotions.php
▶ Open 📄 View Source
🐘 Pubsubnotificationsettings.php
▶ Open 📄 View Source
🐘 Quotas.php
▶ Open 📄 View Source
🐘 Recommendations.php
▶ Open 📄 View Source
🐘 Regionalinventory.php
▶ Open 📄 View Source
🐘 Regions.php
▶ Open 📄 View Source
🐘 Reports.php
▶ Open 📄 View Source
🐘 Repricingrules.php
▶ Open 📄 View Source
🐘 RepricingrulesRepricingreports.php
▶ Open 📄 View Source
🐘 Returnaddress.php
▶ Open 📄 View Source
🐘 Returnpolicy.php
▶ Open 📄 View Source
🐘 Returnpolicyonline.php
▶ Open 📄 View Source
🐘 Settlementreports.php
▶ Open 📄 View Source
🐘 Settlementtransactions.php
▶ Open 📄 View Source
🐘 Shippingsettings.php
▶ Open 📄 View Source
🐘 Shoppingadsprogram.php
▶ Open 📄 View Source

📄 Source: Buyongoogleprograms.php

<?php
/*
 * Copyright 2014 Google Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */

namespace Google\Service\ShoppingContent\Resource;

use Google\Service\ShoppingContent\ActivateBuyOnGoogleProgramRequest;
use Google\Service\ShoppingContent\BuyOnGoogleProgramStatus;
use Google\Service\ShoppingContent\OnboardBuyOnGoogleProgramRequest;
use Google\Service\ShoppingContent\PauseBuyOnGoogleProgramRequest;
use Google\Service\ShoppingContent\RequestReviewBuyOnGoogleProgramRequest;

/**
 * The "buyongoogleprograms" collection of methods.
 * Typical usage is:
 *  <code>
 *   $contentService = new Google\Service\ShoppingContent(...);
 *   $buyongoogleprograms = $contentService->buyongoogleprograms;
 *  </code>
 */
class Buyongoogleprograms extends \Google\Service\Resource
{
  /**
   * 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.
   * (buyongoogleprograms.activate)
   *
   * @param string $merchantId Required. The ID of the account.
   * @param string $regionCode Required. The program region code [ISO 3166-1
   * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2). Currently only US
   * is available.
   * @param ActivateBuyOnGoogleProgramRequest $postBody
   * @param array $optParams Optional parameters.
   * @throws \Google\Service\Exception
   */
  public function activate($merchantId, $regionCode, ActivateBuyOnGoogleProgramRequest $postBody, $optParams = [])
  {
    $params = ['merchantId' => $merchantId, 'regionCode' => $regionCode, 'postBody' => $postBody];
    $params = array_merge($params, $optParams);
    return $this->call('activate', [$params]);
  }
  /**
   * Retrieves a status of the BoG program for your Merchant Center account.
   * (buyongoogleprograms.get)
   *
   * @param string $merchantId Required. The ID of the account.
   * @param string $regionCode Required. The Program region code [ISO 3166-1
   * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2). Currently only US
   * is available.
   * @param array $optParams Optional parameters.
   * @return BuyOnGoogleProgramStatus
   * @throws \Google\Service\Exception
   */
  public function get($merchantId, $regionCode, $optParams = [])
  {
    $params = ['merchantId' => $merchantId, 'regionCode' => $regionCode];
    $params = array_merge($params, $optParams);
    return $this->call('get', [$params], BuyOnGoogleProgramStatus::class);
  }
  /**
   * Onboards the BoG program in your Merchant Center account. By using this
   * method, you agree to the [Terms of Service](https://merchants.google.com/mc/t
   * ermsofservice/transactions/US/latest). 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. (buyongoogleprograms.onboard)
   *
   * @param string $merchantId Required. The ID of the account.
   * @param string $regionCode Required. The program region code [ISO 3166-1
   * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2). Currently only US
   * is available.
   * @param OnboardBuyOnGoogleProgramRequest $postBody
   * @param array $optParams Optional parameters.
   * @throws \Google\Service\Exception
   */
  public function onboard($merchantId, $regionCode, OnboardBuyOnGoogleProgramRequest $postBody, $optParams = [])
  {
    $params = ['merchantId' => $merchantId, 'regionCode' => $regionCode, 'postBody' => $postBody];
    $params = array_merge($params, $optParams);
    return $this->call('onboard', [$params]);
  }
  /**
   * Updates the status of the BoG program for your Merchant Center account.
   * (buyongoogleprograms.patch)
   *
   * @param string $merchantId Required. The ID of the account.
   * @param string $regionCode Required. The program region code [ISO 3166-1
   * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2). Currently only US
   * is available.
   * @param BuyOnGoogleProgramStatus $postBody
   * @param array $optParams Optional parameters.
   *
   * @opt_param string updateMask The list of fields to update. If the update mask
   * is not provided, then all the fields set in buyOnGoogleProgramStatus will be
   * updated. Clearing fields is only possible if update mask is provided.
   * @return BuyOnGoogleProgramStatus
   * @throws \Google\Service\Exception
   */
  public function patch($merchantId, $regionCode, BuyOnGoogleProgramStatus $postBody, $optParams = [])
  {
    $params = ['merchantId' => $merchantId, 'regionCode' => $regionCode, 'postBody' => $postBody];
    $params = array_merge($params, $optParams);
    return $this->call('patch', [$params], BuyOnGoogleProgramStatus::class);
  }
  /**
   * Pauses the BoG program in your Merchant Center account. This method is only
   * available to selected merchants. (buyongoogleprograms.pause)
   *
   * @param string $merchantId Required. The ID of the account.
   * @param string $regionCode Required. The program region code [ISO 3166-1
   * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2). Currently only US
   * is available.
   * @param PauseBuyOnGoogleProgramRequest $postBody
   * @param array $optParams Optional parameters.
   * @throws \Google\Service\Exception
   */
  public function pause($merchantId, $regionCode, PauseBuyOnGoogleProgramRequest $postBody, $optParams = [])
  {
    $params = ['merchantId' => $merchantId, 'regionCode' => $regionCode, 'postBody' => $postBody];
    $params = array_merge($params, $optParams);
    return $this->call('pause', [$params]);
  }
  /**
   * 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.
   * (buyongoogleprograms.requestreview)
   *
   * @param string $merchantId Required. The ID of the account.
   * @param string $regionCode Required. The program region code [ISO 3166-1
   * alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2). Currently only US
   * is available.
   * @param RequestReviewBuyOnGoogleProgramRequest $postBody
   * @param array $optParams Optional parameters.
   * @throws \Google\Service\Exception
   */
  public function requestreview($merchantId, $regionCode, RequestReviewBuyOnGoogleProgramRequest $postBody, $optParams = [])
  {
    $params = ['merchantId' => $merchantId, 'regionCode' => $regionCode, 'postBody' => $postBody];
    $params = array_merge($params, $optParams);
    return $this->call('requestreview', [$params]);
  }
}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Buyongoogleprograms::class, 'Google_Service_ShoppingContent_Resource_Buyongoogleprograms');
← Back