Я получаю бюджет по каждому аккаунту клиента из личного кабинета агенства
методом BudgetOrderService v201809 на языке Python.
def get_budget_for_client(self, client):
service = client.GetService('BudgetOrderService', version='v201809')
selector = {
'fields': ['BudgetOrderName', 'SpendingLimit', 'TotalAdjustments']
}
acc_budget = None
page = service.get(selector)
if 'entries' in page and page['entries']:
for payer in page['entries']:
acc_budget = int(payer['spendingLimit']['microAmount'])
return acc_budget
Пример данных которые возвращает метод:
ТиПО 1 - Мечты меняющие мир
181267190000
Лидер - ремонт квартир
85540510000
Маэстро - Дизайн квартир
76367680000
По всем аккаунтам метод возвращается правильный бюджет но по одному сильно
занижает сумму. То что выделено и есть ошибка, должно вернуться 1823879300000,
и самое интересное что иногда api возвращает правильную цифру!
Не могу понять в чем проблема либо не правильно что то выставлено в личном
кабинете, либо не правильно возвращает api.
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/8d7e55b9-c35d-437b-9ae7-2d20fec9f579%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.