Добрый день, у меня есть JS-скрипт для вычисления баланса аккаунта:
function main() {
var budgetOrder = AdWordsApp.budgetOrders().get().next();
var adjustments = budgetOrder.getTotalAdjustments(); // Возвращенные
средства на аккаунт
var SpendingLimit = budgetOrder.getSpendingLimit(); // Общий лимит
аккаунта
var Spent =
AdWordsApp.currentAccount().getStatsFor('ALL_TIME').getCost(); // Расход за
все время
... далее уже простая математика
Есть уже рабочий API на PHP (демо примеры работают), подскажите как
адаптировать JS-скрипт в PHP-скрипт?
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
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/a24b02a1-ce50-49a9-a030-4c1ffa6e415e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.