RE: Получить баланс аккаунта через PHP

2020-08-20 Thread Google Ads API Forum Advisor Prod
Hi,

Thank you for reaching out. It is not suggested to calculate the account 
balance via the budget and the cost. There is already a feature request to 
support this metric. Please keep an eye on our blog for the announcements and 
updates on new releases.

Thanks and regards,
Xiaoming, Google Ads API Team
ref:_00D1U1174p._5004Q23tHCk:ref

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/9Ry4f0QFDMBF00cOno-8y6RnOif1x9iNpvzg%40sfdc.net.


Re: Получить баланс аккаунта через PHP

2020-08-20 Thread 'Светлана Ковалец' via AdWords API and Google Ads API Forum
Получилось найти адекватный баланс. Выкладываю два скрипта, один узнаёт 
лимит баланса, другой расход. Всё с комментриями
Апи гугл баланс 
Тут выложить файлы не смог, кривая загрузка у гугла, постоянная потеря 
соединения

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/91219e4a-ed2e-40f7-9a18-2660cd22059eo%40googlegroups.com.


Re: Получить баланс аккаунта через PHP

2019-04-03 Thread AMS
Также задача.
У вас получилось что нибудь? можете скинуть полный код примера

вторник, 4 декабря 2018 г., 2:03:53 UTC+3 пользователь seou...@gmail.com 
написал:
>
> Добрый день господа. Пытаюсь получить баланс аккаунта, пока не получается 
> определить класс для PHP
>
> Есть пример JS скрипта, что сейчас использую в скриптах, на PHP не могу 
> перевести
>
> var budgetOrder = AdWordsApp.budgetOrders().get().next();
> var adjustments = budgetOrder.getTotalAdjustments(); // Возвращенные 
> средства на аккаунт
> var SpendingLimit = budgetOrder.getSpendingLimit(); // Общий лимит 
> аккаунта
>
> Я пытаюсь начать с этого и у меня не получается
>  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 "ШАБЛОН arResult: ";  print_r($BudgetOrderService); echo 
> "";
> .
>
> Класс 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/f5df6602-32fb-4988-8df4-cff487b83b77%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Получить баланс аккаунта через PHP

2018-12-03 Thread 'Luis Xander Talag (AdWords API Team)' via AdWords API and Google Ads API Forum
Hi,

My apologies as we could only provide support in English. Based on your 
code snippet, I noticed that the 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 
 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(); // Общий лимит 
> аккаунта
>
> Я пытаюсь начать с этого и у меня не получается
>  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 "ШАБЛОН arResult: ";  print_r($BudgetOrderService); echo 
> "";
> .
>
> Класс 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.


Получить баланс аккаунта через PHP

2018-12-03 Thread seoupsu42
Добрый день господа. Пытаюсь получить баланс аккаунта, пока не получается 
определить класс для PHP

Есть пример JS скрипта, что сейчас использую в скриптах, на PHP не могу 
перевести

var budgetOrder = AdWordsApp.budgetOrders().get().next();
var adjustments = budgetOrder.getTotalAdjustments(); // Возвращенные 
средства на аккаунт
var SpendingLimit = budgetOrder.getSpendingLimit(); // Общий лимит 
аккаунта

Я пытаюсь начать с этого и у меня не получается
get($session, 
BudgetOrderService::class);
echo "ШАБЛОН arResult: ";  print_r($BudgetOrderService); echo 
"";
.

Класс 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/a60d82fd-53e9-425b-a5ce-4bd7a62135ab%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.