I get Method CampaignService.get can not be reflected.

45 views
Skip to first unread message

Felfot

unread,
Nov 25, 2009, 9:39:31 AM11/25/09
to AdWords API Forum
Hi,

when im doing the following code:
com.google.adwords.CampaignService service = new
com.google.adwords.CampaignService();

i getthis error message:
Method CampaignService.get can not be reflected.

does anyone know why>?

AdWords API Advisor

unread,
Nov 25, 2009, 5:08:30 PM11/25/09
to AdWords API Forum
Hi,

The cause of this error is due to a class name conflict. More
information can be found in this thread:

http://groups.google.com/group/adwords-api/browse_thread/thread/fcde4e1d252152f5/7f40a59a2621bc93?show_docid=7f40a59a2621bc93

Best,
- Eric Koleda, AdWords API Team

xpander

unread,
Nov 28, 2009, 10:22:45 AM11/28/09
to AdWords API Forum
Hello,

The problem is google SoapHeader class inherint from
System.Web.Services.Protocols.SoapHeader in generated code.

A simple workaround is to change SoapHeader class name to SoapHeader2

in reference.cs of campaignservice

change SoapHeader declaration

line ~220
public partial class SoapHeader :
System.Web.Services.Protocols.SoapHeader
to
public partial class SoapHeader2 :
System.Web.Services.Protocols.SoapHeader

in CampaignService class change
line ~36
private SoapHeader requestHeaderField;
to
private SoapHeader2 requestHeaderField;


line ~58
public SoapHeader RequestHeader {
to
public SoapHeader2 RequestHeader {


You must do the same thing in all others adwords api Web References
(AdGroupService, AdService, ...)

Arnaud

On Nov 25, 11:08 pm, AdWords API Advisor
<adwordsapiadvi...@google.com> wrote:
> Hi,
>
> The cause of this error is due to a class name conflict.  More
> information can be found in this thread:
>
>  http://groups.google.com/group/adwords-api/browse_thread/thread/fcde4...
>
> Best,
> - Eric Koleda, AdWords API Team
>
> On Nov 25, 9:39 am, Felfot <noam.f...@gmail.com> wrote:
>
>
>
> > Hi,
>
> > when im doing the following code:
> >   com.google.adwords.CampaignService service = new
> > com.google.adwords.CampaignService();
>
> > i getthis error message:
> > Method CampaignService.get can not be reflected.
>
> > does anyone know why>?- Hide quoted text -
>
> - Show quoted text -

Andy Doan

unread,
Nov 28, 2009, 1:44:06 PM11/28/09
to AdWords API Forum
Your answer is appreciated!

Question: A few weeks ago, I was able to add over 1000s location entries
(1000s different zips) to my campaigns.
Last night, I was only be able to add max 300 location entries (either via
API or Adwords Interface)
Is this a limitation that is recently asserted by Google Adwords? Please
advise!

Thanks.

Andy Doan
iConvex, Inc.
Find information about our services at  www.iconvex.com

(714) 515-6620  |  F (800) 360-2841 |   an...@iconvex.com  
17060 San Mateo St. Unit J.  Fountain Valley, CA 92708



AdWords API Advisor

unread,
Nov 30, 2009, 11:30:24 AM11/30/09
to AdWords API Forum
Hi Andy,

There is a limit of 300 positive geo targets per campaign, which has
been in affect since v13: http://code.google.com/apis/adwords/docs/developer/GeoTarget.html.

Best,
- Eric Koleda, AdWords API Team

On Nov 28, 1:44 pm, "Andy Doan" <a...@iconvex.com> wrote:
> Your answer is appreciated!
>
> Question: A few weeks ago, I was able to add over 1000s location entries
> (1000s different zips) to my campaigns.
> Last night, I was only be able to add max 300 location entries (either via
> API or Adwords Interface)
> Is this a limitation that is recently asserted by Google Adwords?  Please
> advise!
>
> Thanks.
>
> Andy Doan
> iConvex, Inc.
> Find information about our services at www.iconvex.com
>
> w  (714) 515-6620  |  F (800) 360-2841 |   a...@iconvex.com  

ICONVEX

unread,
Dec 1, 2009, 11:49:08 AM12/1/09
to AdWords API Forum
Is there an impact on the campaigns that I already uploaded more than
300 location entries before v13?

On Nov 30, 8:30 am, AdWords API Advisor <adwordsapiadvi...@google.com>
wrote:

AdWords API Advisor

unread,
Dec 1, 2009, 1:18:00 PM12/1/09
to AdWords API Forum
Hi,

I would open these campaigns in the AdWords web interface to ensure
there are no warnings or errors due to excessive locations.

Best,
- Eric
Reply all
Reply to author
Forward
0 new messages