Hi,

My apologies as we could only provide support in English. Based on your 
code snippet, I noticed that the BudgetOrderService 
<https://developers.google.com/adwords/api/docs/reference/v201809/BudgetOrderService>
 is 
missing in your imports. Could you try adding the below code snippet and 
see if it works?

use Google\AdsApi\AdWords\v201806\billing\ BudgetOrderService;


If the issue persist, I would suggest to post this issue on this link 
<https://github.com/googleads/googleads-php-lib/issues> as the PHP client 
library owners are better equipped to assist you here.

Thanks and regards,
Luis
AdWords API Team

On Tuesday, December 4, 2018 at 7:03:53 AM UTC+8, seoupsu42 wrote:
>
> Добрый день господа. Пытаюсь получить баланс аккаунта, пока не получается 
> определить класс для PHP
>
> Есть пример JS скрипта, что сейчас использую в скриптах, на PHP не могу 
> перевести
>
>     var budgetOrder = AdWordsApp.budgetOrders().get().next();
>     var adjustments = budgetOrder.getTotalAdjustments(); // Возвращенные 
> средства на аккаунт
>     var SpendingLimit = budgetOrder.getSpendingLimit(); // Общий лимит 
> аккаунта
>
> Я пытаюсь начать с этого и у меня не получается
> <php
> namespace Google\AdsApi\Examples\AdWords\v201806\BasicOperations;
> require '/googleads-php-lib/vendor/autoload.php';
>
> use Google\AdsApi\AdWords\AdWordsServices;
> use Google\AdsApi\AdWords\AdWordsSession;
> use Google\AdsApi\AdWords\AdWordsSessionBuilder;
> use Google\AdsApi\AdWords\v201806\cm\CampaignService;
> use Google\AdsApi\AdWords\v201806\cm\OrderBy;
> use Google\AdsApi\AdWords\v201806\cm\Paging;
> use Google\AdsApi\AdWords\v201806\cm\Selector;
> use Google\AdsApi\AdWords\v201806\cm\SortOrder;
> use Google\AdsApi\AdWords\v201806\cm\Budget;
> use Google\AdsApi\AdWords\v201806\cm\BudgetService;
> use Google\AdsApi\Common\OAuth2TokenBuilder;
> use Google\AdsApi\Common\ConfigurationLoader;
> const PAGE_LIMIT = 500;
>
> function GetBalance($adWordsServices, $session)
> {
>
>     $BudgetOrderService = $adWordsServices->get($session, 
> BudgetOrderService::class);
>     echo "<pre>ШАБЛОН arResult: ";  print_r($BudgetOrderService); echo 
> "</pre>";
> .....
>
> Класс BudgetOrderService не существует
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/bd4b5728-6e13-4a98-a626-eda12b1b795d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • ... seoupsu42
    • ... 'Luis Xander Talag (AdWords API Team)' via AdWords API and Google Ads API Forum
    • ... AMS

Reply via email to