Hi Noah,
This is the expected behavior, the fields you list in the selector are a
hint for the services to know the minimum necessary fields to be returned
but because some fields are loaded in groups then more fields are returned
for free to you. Does this behavior pose in issues in your side?
Best,
- David Torres - AdWords API Team
On Thursday, June 13, 2013 2:11:53 AM UTC-4, Noah wrote:
>
> Hello,
>
> I'm using the Python client to pull some reports through the API. I can
> get reports and tons of data - that works fine.
>
> However, I only want one or two fields from some reports. This appears to
> be broken with the API. No matter what I list in the "fields" field of the
> selector, I get the same large number of fields returned. I've even
> checked the outgoing SOAP (from the log file) and the request looks correct
> with only two fields listed.
>
> Can anybody offer some ideas why this is broken?
>
> ####################
> ## Python Code
>
> ad_group_service = client.GetAdGroupAdService(version='v201302')
> PAGE_SIZE = 10
> offset = 0
> selectorx = {
> 'fields': ['AdGroupId', 'CampaignId'],
> 'paging': {
> 'startIndex': str(offset),
> 'numberResults': str(PAGE_SIZE)
> },
> 'dateRange': {'min':'20130602', 'max':'20130602'}
> }
> page = ad_group_service.Get(selectorx)[0]
> ####################
>
> ####################
> SOAP Query from log
> ####################
> <SOAP-ENV:Body>
> <get xmlns="https://adwords.google.com/api/adwords/cm/v201302"
> xmlns:cm="https://adwords.google.com/api/adwords/cm/v201302">
> <serviceSelector xsi3:type="cm:Selector">
> <cm:fields>AdGroupId</cm:fields>
> <cm:fields>CampaignId</cm:fields>
> <cm:dateRange xsi3:type="cm:DateRange">
> <cm:min>20130602</cm:min>
> <cm:max>20130602</cm:max>
> </cm:dateRange>
> <cm:paging xsi3:type="cm:Paging">
> <cm:startIndex>0</cm:startIndex>
> <cm:numberResults>10</cm:numberResults>
> </cm:paging>
> </serviceSelector>
> </get>
> </SOAP-ENV:Body>
>
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.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.