Hi Carl,

What your request xml looks like?
As in the document, startDateTime should be in the form of "20361231 235959 
America/Los_Angeles"
(I think if you omit the timezone, the account's one is used)
https://developers.google.com/adwords/api/docs/reference/v201309/BudgetOrderService.BudgetOrder

Please check your request XML if the startDateTime (endDateTime) is 
correctly formatted.

Best,
- Takeshi, AdWords API Team

On Thursday, November 7, 2013 3:14:30 PM UTC+9, Carl Robben wrote:
>
> 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 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 Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to