Hi,

I'm using the Python client library v201309 and I'm having trouble getting 
budgets for specific dates using the BudgetOrderService.  I've tried two 
different approaches and neither one is returning what I am expecting.

I tried using the dateRange in the selector like this:

selector = {'fields': ['Id', 'StartDateTime', 'EndDateTime'],
                 'dateRange': {'min': start.strftime("%Y%m%d"),
                                     'max': end.strftime("%Y%m%d")}}

I get returned every result for the account, it seems to ignore the 
dateRange completely.

So I tried a different approach and used the predicates in the selector 
like this:

selector = {'fields': ['Id', 'StartDateTime', 'EndDateTime']}
                 'predicates': [{'field': 'StartDateTime',
                                'operator': 'GREATER_THAN_EQUALS',
                                'values': [start.strftime("%Y%m%d")]},
                               {'field': 'EndDateTime',
                                'operator': 'LESS_THAN_EQUALS',
                                'values': [end.strftime("%Y%m%d")]}]}

This seems to work for some accounts, but usually only if start and end are 
selecting the current month and there is an active budget.   I can't get it 
to return any budgets in the future.  At the same time I am logged into 
Adwords and I can see the budgets I'm trying to retrieve using the api.

Also no matter what I specify in 'fields' it will always return me 
everything.

Any help would be appreciated.

Cheers

Carl

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://googleadsdeveloper.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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 Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to