Not returning complete records

9 views
Skip to first unread message

Kelvin

unread,
Nov 16, 2009, 1:50:25 PM11/16/09
to AdWords API Forum
Hi all,

I am using adwords .net client library to develop .net application.
And I found the method "getAllCampaigns" couldn't return all the
campaigns information listed in my google account while I could only
get part of them. In that sense, I am not able to put total campaigns
informaton into database, and that'll be a problem for my appliation.
So any help?

Thanks.

AdWords API Advisor

unread,
Nov 16, 2009, 4:19:09 PM11/16/09
to AdWords API Forum
Hi Kelvin,

There are some types of campaigns that the API cannot retrieve. These
are often deprecated types of campaigns that you can no longer create
using the AdWords web interface.

Best,
- Eric Koleda, AdWords API Team

Kelvin

unread,
Nov 16, 2009, 9:19:35 PM11/16/09
to AdWords API Forum
Hi,thanks for the clarification. But is it possible to get all the
campaigns without using web interface?

Thanks.

On 11月17日, 上午5时19分, AdWords API Advisor <adwordsapiadvi...@google.com>
wrote:
> > Thanks.- 隐藏被引用文字 -
>
> - 显示引用的文字 -

AdWords API Advisor

unread,
Nov 17, 2009, 11:38:05 AM11/17/09
to AdWords API Forum
Hi Kelvin,

The v13 and v2009 APIs are the only way to programmatically retrieve
data from AdWords.

Best,
- Eric

Kelvin

unread,
Nov 17, 2009, 1:28:36 PM11/17/09
to AdWords API Forum
Thanks. Just now, I found that no matter what the method is
(getAllAdWordsCampaign, getAllAdGroups), the corresponding webservice
always return a set of 31 objects. So does the problem lie in some
settings in application so that only fixed amount of objects are
accessed?

Best.

On 11月18日, 上午12时38分, AdWords API Advisor
> > > - 显示引用的文字 -- 隐藏被引用文字 -
>
> - 显示引用的文字 -

AdWords API Advisor

unread,
Nov 17, 2009, 2:38:28 PM11/17/09
to AdWords API Forum
Hi Kelvin,

There should be no hard limit of 31 results in any of the services.
Have you confirmed that the raw XML response only has 31 results?

Best,
- Eric

Kelvin

unread,
Nov 19, 2009, 8:01:24 PM11/19/09
to AdWords API Forum
Hi,

I've figured out the problem lies in the parameters set in the
serviceModel and I am able to get full records of adgroup for each
campaign. But still, the campaign records are not complete compared
to my google account. Since all of the campaigns might be created
within a short period, I am wondering deprecated types of campaign
might not be the cause. In fact, I try to pull out all the informaiton
(campaign, adgroup, keyword) into local databse according to google
service, is there any advice on that? Am I still on the right track?

Thanks.

Kelvin.

On 11月18日, 上午3时38分, AdWords API Advisor <adwordsapiadvi...@google.com>
> > > > > > get part of them. In that sense, I amnotable to put total campaigns

AdWords API Advisor

unread,
Nov 20, 2009, 10:12:52 AM11/20/09
to AdWords API Forum
Hi Kelvin,

Can you explain in more detail what the problem and solution was with
fetching ad groups? Perhaps the same problem is campaign retrieval.

Best,
- Eric

Kelvin

unread,
Nov 20, 2009, 12:52:50 PM11/20/09
to AdWords API Forum
OK. I changed the value of maxBufferSize, maxBufferPoolSize,
maxReceivedMessageSize, and the tag <reader Quotas maxDepth>. Please
check them up.

The original <system.serviceModel> in app.config is:

<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="CampaignServiceSoapBinding"
closeTimeout="00:01:00"
openTimeout="00:01:00" receiveTimeout="00:10:00"
sendTimeout="00:01:00"
allowCookies="false" bypassProxyOnLocal="false"
hostNameComparisonMode="StrongWildcard"
maxBufferSize="65536" maxBufferPoolSize="524288"
maxReceivedMessageSize="65536"
messageEncoding="Text" textEncoding="utf-8"
transferMode="Buffered"
useDefaultWebProxy="true">
<readerQuotas maxDepth="32"
maxStringContentLength="8192" maxArrayLength="16384"
maxBytesPerRead="4096"
maxNameTableCharCount="16384" />
<security mode="Transport">
<transport clientCredentialType="None"
proxyCredentialType="None"
realm="" />
<message clientCredentialType="UserName"
algorithmSuite="Default" />
</security>
</binding>
</basicHttpBinding>
</bindings>
</system.serviceModel>

And the modified one is below:

<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="CampaignServiceSoapBinding"
closeTimeout="00:01:00"
openTimeout="00:01:00" receiveTimeout="00:10:00"
sendTimeout="00:01:00"
allowCookies="false" bypassProxyOnLocal="false"
hostNameComparisonMode="StrongWildcard"
maxBufferSize="50000000"
maxBufferPoolSize="50000000" maxReceivedMessageSize="50000000"
messageEncoding="Text" textEncoding="utf-8"
transferMode="Buffered"
useDefaultWebProxy="true">
<readerQuotas maxDepth="320"
maxStringContentLength="81920" maxArrayLength="163840"
maxBytesPerRead="40960"
maxNameTableCharCount="163840" />
<security mode="Transport">
<transport clientCredentialType="None"
proxyCredentialType="None"
realm="" />
<message clientCredentialType="UserName"
algorithmSuite="Default" />
</security>
</binding>
</basicHttpBinding>
</bindings>
</system.serviceModel>


On 11月20日, 下午11时12分, AdWords API Advisor

AdWords API Advisor

unread,
Nov 20, 2009, 1:05:40 PM11/20/09
to AdWords API Forum
Hi Kelvin,

Did this change increase the number of campaigns returned? How many
are still missing?

Best,
- Eric

Kelvin

unread,
Nov 20, 2009, 1:23:41 PM11/20/09
to AdWords API Forum
No, no changes occured for the amount of campaigns. About 20 campaigns
are missing.



On 11月21日, 上午2时05分, AdWords API Advisor <adwordsapiadvi...@google.com>
Reply all
Reply to author
Forward
0 new messages