AdWords API Re: Bulk and Mutate Service Security

2010-02-18 Thread sidd
I've found the problem.  When I was building my operation streams I
was limiting the operation counts, but then I was inadvertently
creating a new operation stream for every 10K operations. Thus, my
bulk mutate requests had too many operations as a result.

Thanks ..

-- 
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-...@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.



AdWords API Re: Bulk and Mutate Service Security

2010-02-18 Thread sidd
I've found the problem.  When I was building my operation streams I
was limiting the operation counts, but then I was inadvertently
creating a new operation stream for every 10K operations. Thus, my
bulk mutate requests had too many operations as a result.

Thanks ..

-- 
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-...@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.



AdWords API v2009 Invalid City Code.

2010-02-18 Thread Maxim
Did city codes change from V13 to V2009?

This SOAP request fails:

POST /api/adwords/cm/v200909/CampaignTargetService HTTP/1.0
Content-Type: text/xml; charset=utf-8
Accept: application/soap+xml, application/dime, multipart/related,
text/*
User-Agent: Axis/1.4
Host: adwords.google.com
Cache-Control: no-cache
Pragma: no-cache
SOAPAction: ""
Content-Length: 2957

http://schemas.xmlsoap.org/soap/envelope/";
xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns:xsi="http://
www.w3.org/2001/XMLSchema-instance">http://schemas.xmlsoap.org/soap/actor/next";
soapenv:mustUnderstand="0" xmlns:ns1="https://adwords.google.com/api/
adwords/cm/v200909">XZZSDDDhttps://adwords.google.com/api/adwords/cm/
v200909">SET17048524SET17048524falseBarling, AR USUSfalseAlma, AR USUSfalse789false753falseUS-ALfalseUS-AKSEThttps://adwords.google.com/
api/adwords/cm/v200909">17048524GOOGLE_SEARCHSEARCH_NETWORKCONTENT_NETWORKSET17048524en

Response:
http://schemas.xmlsoap.org/soap/
envelope/">bf1bc003e6b40f689eedddc06f183a4714071soap:Server[TargetError.INVALID_CITY_CODE @
operations[1].operand.targets[0], TargetError.INVALID_CITY_CODE @
operations[1].operand.targets[1]][TargetError.INVALID_CITY_CODE @
operations[1].operand.targets[0], TargetError.INVALID_CITY_CODE @
operations[1].operand.targets[1]]ApiExceptionhttp://www.w3.org/2001/XMLSchema-
instance">operations[1].operand.targets[0]TargetErrorINVALID_CITY_CODEhttp://www.w3.org/2001/XMLSchema-
instance">operations[1].operand.targets[1]TargetErrorINVALID_CITY_CODE

Also, it's not clear whether providing ProvinceCode for the
CityTargets makes any difference, or why countryCode is required for
the CityTarget.

-- 
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-...@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.



AdWords API v13 CriterionService -> v200909 AdGroupCriterionService

2010-02-18 Thread John Bliss
I've been using v13 CriterionService for a long time with no
problems.  Now, I'm working on switching over to v200909
AdGroupCriterionService.  My problem is that, when I want to fetch all
Keywords in an AdGroup and build an AdGroupCriterionSelector that
looks like this:

{{IDFILTERS={[{ADGROUPID={99}}]},USERSTATUSES={[ACTIVE,
DELETED,
PAUSED]},CRITERIONUSE={BIDDABLE,NEGATIVE},STATSSELECTOR={{}},PAGING={{

...where "99" is a known, good AdGroupID, I'm receiving the
error message, "Web service operation 'get' with parameters [that
thing up above] cannot be found."  Apparently my
AdGroupCriterionSelector is malformed but it's not clear to me how to
fix it.

Can you help?

-- 
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-...@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.



AdWords API Re: Confusion about Stats documentation

2010-02-18 Thread AdWords API Advisor
Hi,

This appears to be a mistake in our documentation, thanks for pointing
it out!  I'll pass this on to the documentation team for correction.
The averageCpc is the average cost per *click*, as you thought.

Best,
- Eric Koleda, AdWords API Team

On Feb 18, 5:53 am, Jaap  wrote:
> In the documentation about the 200909 Stats type (http://
> code.google.com/apis/adwords/v2009/docs/reference/
> AdGroupAdService.Stats.html) it is documented that the field
> averageCpc is the average cost per conversion. As I have always
> associated Cpc with cost-per-click, I was wondering if this was
> correct as there is also a costPerConversion field?

-- 
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-...@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.



AdWords API Adwords Auth Token Validity Check

2010-02-18 Thread shriny
Is there a way to check the validity of Auth token.

this would be important, as when an expired token is used the
operation will fail and then we should request a new token.

-Shriny

-- 
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-...@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.



AdWords API Memory Leak in Java Client Library from ServiceAccountantManager.serviceUsers

2010-02-18 Thread joel
If you have code structured like the following,
ServiceAccountantManager leaks memory due to retaining the Service in
its serviceUsers map:

AdWordsUser user = getUser();
AdGroupCriterionServiceInterface criterionSvc =
user.getService(AdWordsService.V200909.ADGROUP_CRITERION_SERVICE);
criterionSvc.mutate(updates);
return;

The only way to prevent this is to explicitly call clear or remove the
mapping in ServiceAccountantManager. This should be unnecessary
because the serviceUsers map is not required to be populated. The
latest client library update added a flag autoCreateAccountant to
control creating ServiceAccounts, but we also need a similar flag for
tracking User/Service mappings.

Maybe I'm missing something here but we shouldn't have to explicitly
cleanup mappings that aren't necessary to be created in the 1st place.
Am I right?

Thanks,

Joel

-- 
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-...@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.



AdWords API Re: Suddenly many clients fail because of INVALID soap response

2010-02-18 Thread AdWords API Advisor
Hi,

Great work debugging this problem!  The recent change to using the 500
HTTP status for faults just went into effect recently and would
explain the appearance of this issue.  We'll do some more testing on
our end and then push a new version of the client library that
includes the maximumErrorResponseLength setting in our example
App.config file.

Best,
- Eric

On Feb 18, 3:41 pm, Ales Sturala  wrote:
> One more note:
> I see in another thread named "Http status code for soap fault" where
> you write that errors changed to fault HTTP 500 instead of OK 200.
> That most probably explains why we run into the problems just
> recently, because the limitation in .NET is related just to fault
> headers.
>
> On Feb 18, 9:32 pm, Ales Sturala  wrote:
>
>
>
> > Hello Eric,
> > yes, I use Fiddler to track the communication between our application
> > and AdWords that works like a proxy and moreover it uses its own
> > certificate to get behind the SSL security, otherwise it is impossible
> > to see the communication. I noticed now that there is a button for
> > decoding the SOAP message, after using it the "fef" string was removed
> > and the XML was well-formed. So the samples I posted here were not
> > decoded yet, which means also that the problems must be somewhere
> > else.
>
> > I took another approach to get the raw soap headers. To keep it short,
> > I found out that the soap message was not send complete, but was
> > truncated. I checked the string that gets through and it is 65664
> > characters, that means 64KB, which is already suspicious. I found 
> > herehttp://forums.asp.net/t/1189121.aspxthat.NET trunactes SOAP error
> > responses that are longer than 64KB. Unfortunately the Google library
> > does not change this default value and therefore it fails. It can be
> > changed easily in code or in config file:
>
> >   
> >     
> >       
> >     
> >   
>
> > After I set up this in our application, everything works fine. I'll
> > report this issue on the .NET AdWords API page.
>
> > There is just one thing I don't understand, which is why this problem
> > suddenly started to occur week ago and did not happen before...
>
> > On Feb 18, 5:36 pm, AdWords API Advisor 
> > wrote:
>
> > > Hi Ales,
>
> > > Thanks for sending along the logs.  I talked with my colleagues, and
> > > it appears that these extra characters are actually part of the
> > > chunked transfer encoding spec:
>
> > >  http://en.wikipedia.org/wiki/Chunked_encoding
>
> > > The "fef" characters are actually the number of bytes in the next
> > > chunk, and these values should be removed automatically.  The .NET Web
> > > Services library supports a chunked transfer encoding, and in my own
> > > tests the data is being parsed correctly.
>
> > > Which version of the .NET client library are you using?
> > > Are you using a proxy server, or some other interceptor that could be
> > > passing along the chunked content incorrectly?
>
> > > Best,
> > > - Eric
>
> > > On Feb 17, 3:14 am, Ales Sturala  wrote:
>
> > > > Done
>
> > > > On Feb 17, 1:10 am, AdWords API Advisor 
> > > > wrote:
>
> > > > > Hi,
>
> > > > > I looked up the logs for these requests, and the XML we have doesn't
> > > > > include these extra characters.  Do you have the full SOAP XML logs
> > > > > for this request?  If so, can you send them to
> > > > > adwordsapiadvi...@google.com and then post a message to this thread so
> > > > > I can retrieve them?
>
> > > > > Thanks,
> > > > > - Eric
>
> > > > > On Feb 16, 3:47 pm, majco  wrote:
>
> > > > > > I have big problem with this error.
> > > > > > It happens to me often especially when insert around 3000 keywords
> > > > > > together.
>
> > > > > > You solve this problem?

-- 
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-...@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.



AdWords API Re: Suddenly many clients fail because of INVALID soap response

2010-02-18 Thread Ales Sturala
One more note:
I see in another thread named "Http status code for soap fault" where
you write that errors changed to fault HTTP 500 instead of OK 200.
That most probably explains why we run into the problems just
recently, because the limitation in .NET is related just to fault
headers.

On Feb 18, 9:32 pm, Ales Sturala  wrote:
> Hello Eric,
> yes, I use Fiddler to track the communication between our application
> and AdWords that works like a proxy and moreover it uses its own
> certificate to get behind the SSL security, otherwise it is impossible
> to see the communication. I noticed now that there is a button for
> decoding the SOAP message, after using it the "fef" string was removed
> and the XML was well-formed. So the samples I posted here were not
> decoded yet, which means also that the problems must be somewhere
> else.
>
> I took another approach to get the raw soap headers. To keep it short,
> I found out that the soap message was not send complete, but was
> truncated. I checked the string that gets through and it is 65664
> characters, that means 64KB, which is already suspicious. I found 
> herehttp://forums.asp.net/t/1189121.aspxthat .NET trunactes SOAP error
> responses that are longer than 64KB. Unfortunately the Google library
> does not change this default value and therefore it fails. It can be
> changed easily in code or in config file:
>
>   
>     
>       
>     
>   
>
> After I set up this in our application, everything works fine. I'll
> report this issue on the .NET AdWords API page.
>
> There is just one thing I don't understand, which is why this problem
> suddenly started to occur week ago and did not happen before...
>
> On Feb 18, 5:36 pm, AdWords API Advisor 
> wrote:
>
> > Hi Ales,
>
> > Thanks for sending along the logs.  I talked with my colleagues, and
> > it appears that these extra characters are actually part of the
> > chunked transfer encoding spec:
>
> >  http://en.wikipedia.org/wiki/Chunked_encoding
>
> > The "fef" characters are actually the number of bytes in the next
> > chunk, and these values should be removed automatically.  The .NET Web
> > Services library supports a chunked transfer encoding, and in my own
> > tests the data is being parsed correctly.
>
> > Which version of the .NET client library are you using?
> > Are you using a proxy server, or some other interceptor that could be
> > passing along the chunked content incorrectly?
>
> > Best,
> > - Eric
>
> > On Feb 17, 3:14 am, Ales Sturala  wrote:
>
> > > Done
>
> > > On Feb 17, 1:10 am, AdWords API Advisor 
> > > wrote:
>
> > > > Hi,
>
> > > > I looked up the logs for these requests, and the XML we have doesn't
> > > > include these extra characters.  Do you have the full SOAP XML logs
> > > > for this request?  If so, can you send them to
> > > > adwordsapiadvi...@google.com and then post a message to this thread so
> > > > I can retrieve them?
>
> > > > Thanks,
> > > > - Eric
>
> > > > On Feb 16, 3:47 pm, majco  wrote:
>
> > > > > I have big problem with this error.
> > > > > It happens to me often especially when insert around 3000 keywords
> > > > > together.
>
> > > > > You solve this problem?

-- 
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-...@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.



AdWords API Re: Suddenly many clients fail because of INVALID soap response

2010-02-18 Thread Ales Sturala
Hello Eric,
yes, I use Fiddler to track the communication between our application
and AdWords that works like a proxy and moreover it uses its own
certificate to get behind the SSL security, otherwise it is impossible
to see the communication. I noticed now that there is a button for
decoding the SOAP message, after using it the "fef" string was removed
and the XML was well-formed. So the samples I posted here were not
decoded yet, which means also that the problems must be somewhere
else.

I took another approach to get the raw soap headers. To keep it short,
I found out that the soap message was not send complete, but was
truncated. I checked the string that gets through and it is 65664
characters, that means 64KB, which is already suspicious. I found here
http://forums.asp.net/t/1189121.aspx that .NET trunactes SOAP error
responses that are longer than 64KB. Unfortunately the Google library
does not change this default value and therefore it fails. It can be
changed easily in code or in config file:

  

  

  

After I set up this in our application, everything works fine. I'll
report this issue on the .NET AdWords API page.

There is just one thing I don't understand, which is why this problem
suddenly started to occur week ago and did not happen before...


On Feb 18, 5:36 pm, AdWords API Advisor 
wrote:
> Hi Ales,
>
> Thanks for sending along the logs.  I talked with my colleagues, and
> it appears that these extra characters are actually part of the
> chunked transfer encoding spec:
>
>  http://en.wikipedia.org/wiki/Chunked_encoding
>
> The "fef" characters are actually the number of bytes in the next
> chunk, and these values should be removed automatically.  The .NET Web
> Services library supports a chunked transfer encoding, and in my own
> tests the data is being parsed correctly.
>
> Which version of the .NET client library are you using?
> Are you using a proxy server, or some other interceptor that could be
> passing along the chunked content incorrectly?
>
> Best,
> - Eric
>
> On Feb 17, 3:14 am, Ales Sturala  wrote:
>
> > Done
>
> > On Feb 17, 1:10 am, AdWords API Advisor 
> > wrote:
>
> > > Hi,
>
> > > I looked up the logs for these requests, and the XML we have doesn't
> > > include these extra characters.  Do you have the full SOAP XML logs
> > > for this request?  If so, can you send them to
> > > adwordsapiadvi...@google.com and then post a message to this thread so
> > > I can retrieve them?
>
> > > Thanks,
> > > - Eric
>
> > > On Feb 16, 3:47 pm, majco  wrote:
>
> > > > I have big problem with this error.
> > > > It happens to me often especially when insert around 3000 keywords
> > > > together.
>
> > > > You solve this problem?

-- 
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-...@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.



AdWords API Re: Http status code for soap fault

2010-02-18 Thread AdWords API Advisor
Hi John,

A fix for this issue has now been pushed, and my tests are showing a
status code of 500 for SOAP faults.  Let me know if you run into any
other problems.

Best,
- Eric

On Feb 17, 6:19 pm, AdWords API Advisor 
wrote:
> Hi John,
>
> Unfortunately I can't narrow down the timeline for this fix any
> further, and as far as I know it is still planned for this month.
>
> Best,
> - Eric
>
> On Feb 16, 12:20 pm, "john.patrick.gal...@gmail.com"
>
>
>
>  wrote:
> > Eric:
>
> > Is there an ETA for this fix to be deployed to production?
>
> > Thanks
>
> > John
>
> > On Feb 2, 11:07 am, AdWords API Advisor 
> > wrote:
>
> > > Hi John,
>
> > > The core engineering team is working on this issue now, and the fix
> > > for this problem will likely be rolled out this month.  Unfortunately
> > > I don't have a more exact time frame to give you, and I would
> > > encourage you to investigate a workaround in the mean time if
> > > possible.
>
> > > Best,
> > > - Eric
>
> > > On Feb 2, 9:55 am, Reed  wrote:
>
> > > > I've been following this thread with curiosity.  Given the variety of
> > > > ways that the various search engine marketing APIs (so I'm not just
> > > > picking on Google here) use to signal an error (500, refused
> > > > connections, ignored connections, as well as the ever popular  method
> > > > of just sending back some formatted HTML and CSS that says "we too
> > > > D**N busy now try again in 15 minutes"), why would  you presume that
> > > > 200 always means OK?  Just treat 200 as "potentially" OK and then
> > > > check to see if it has an error/fault structure in it.  If it doesn't
> > > > then you're probably good to go.  If it does, well now you know what
> > > > the error is and can do something about it.  I gave up trusting the
> > > > exact HTTP responses from these APIs a long time ago - try to imagine
> > > > the amount of code behind them on the engine side of things.  There's
> > > > always going to be something buggy or just plain "strange" no matter
> > > > how hard they try to make them perfect.
>
> > > > my 2 cents!

-- 
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-...@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.



AdWords API Re: triggering policy exception in sandbox

2010-02-18 Thread Alex Parij
create a TextAd with url='http://www.google.com' that should trigger a
policy violation .

On Feb 18, 2:23 pm, "mike-adwo...@pubget.com"  wrote:
> Is it possible to trigger a policy violation in the sandbox, and then
> reply with an exemption request in the sandbox?
>
> This is my biggest roadblock in using the API right now, and in lieu
> of finding examples it would be nice to test via the sandbox.
>
> Thanks in advance,
> Mike

-- 
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-...@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.



AdWords API Conversion rate for keyword using AdGroupCriterionSelector in PHP client library

2010-02-18 Thread dadonk
I see a slot for conversionrate in the stats array returned from
AdGroupCriterionSelector but they are all empty. Looking at the web
interface of adwords I can see that they aren't empty.

Do I have to do something to get all of the stats data populated in
that request?

I'm using the "GetAllActiveAdGroupCriteria.php" example from the PHP
client library.

Here is an snippet of the code:


  // Get the AdGroupCriterionService.
  $adGroupCriteriaService = $user-
>GetAdGroupCriterionService('v200909');

  $adGroupId = $_REQUEST['adgroup'];

  // Create selector.
  $selector = new AdGroupCriterionSelector();
  $selector->userStatuses = array('ACTIVE');

  // Create id filter.
  $idFilter = new AdGroupCriterionIdFilter();
  $idFilter->adGroupId = $adGroupId;
  $selector->idFilters = array($idFilter);

  // Get all active ad group criteria.
  $page = $adGroupCriteriaService->get($selector);

  // Display ad group criteria.
  if (isset($page->entries)) {
foreach ($page->entries as $adGroupCriterion) {
print_r($adGroupCriterion) . '';
}

-- 
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-...@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.



AdWords API Re: Unsupported columns in Creative report type

2010-02-18 Thread pete
Hi Eric,

Apologies for jumping on this thread but I have a relevant (I think)
question.

The thread referred to above touches on the subject; are there any
plans to substitute values for conversion metrics with null strings or
similar (in the report), for accounts which have not opted in to the
conversion programme but where the columns have been requested.

It would makes cross client reports much simpler.

I only ask as I'm just about to start coding cross client report
requests... :)

pete

-- 
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-...@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.



AdWords API triggering policy exception in sandbox

2010-02-18 Thread mike-adwo...@pubget.com
Is it possible to trigger a policy violation in the sandbox, and then
reply with an exemption request in the sandbox?

This is my biggest roadblock in using the API right now, and in lieu
of finding examples it would be nice to test via the sandbox.

Thanks in advance,
Mike

-- 
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-...@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.



AdWords API Re: How can I know a keyword CPC is from its AdGroup default CPC?

2010-02-18 Thread James604
Ok. I got it. Thanks as always.


James

http://www.myclapperboard.com


On Feb 16, 3:05 pm, AdWords API Advisor 
wrote:
> HiJames,
>
> The ManualCPCAdGroupCriterionBids object contains a bidSource field
> that indicates if the bid came from the ad group or the criterion:
>
>  http://code.google.com/apis/adwords/v2009/docs/reference/AdGroupCrite...
>
> Best,
> - Eric Koleda, AdWords API Team
>
> On Feb 12, 8:04 pm, jamesJ  wrote:
>
>
>
> > Hi
>
> > I am able to pull down all of AdGroupCriterion with manual bid CPC,
> > how can I differentiate this CPC value is from AdGroup level or just
> > AdGroupCriterion level. Because I set AdGroup Level, leave blank on
> > AdGroupCriterion level then it will take AdGroup default CPC, but when
> > i call the service, it just returns all the CPC, doesn't say where it
> > from, is it possible to know?
>
> >James

-- 
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-...@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.



AdWords API Re: Bulk and Mutate Service Security

2010-02-18 Thread sidd
I am using the .NET client library and I think the issue was in using
the AdWordsUser constructor with the dictionary.  So I'm not seeing
any authentication exceptions.  I'm seeing different issues now.

I think it's probably due to the initial request size.  The first
request I make that generates the initial error has a content-length
of 15 MB and is attempting to process 150K operations.  I thought the
bulk mutate service could support up to 500k operations.  This request
causes the unexpected error on send.

Following requests generate a TOO_MANY_OPERATIONS_IN_REQUEST_PART
error.  I am limiting the number of operations to 10K per bulk mutate
request.  And I see there is a limit of 100 request parts.  Is there a
limit to the number of operations within the request part?

On Feb 18, 7:44 am, AdWords API Advisor 
wrote:
> Hi Sidd,
>
> Are you using the .NET client library?  Do you know if this error is
> being generated during the request to the ClientLogin API (to get the
> authToken) or to the AdWords API?  How large are the requests you are
> making?  Are there any policies on your network that close long
> running connections?
>
> Best,
> - Eric Koleda, AdWords API Team
>
> On Feb 17, 7:20 pm, sidd  wrote:
>
> > Hi.
>
> > I've been having problems using the AdGroupCriterionService and the
> > BulkMutateJobService.  I get the same error when I attempt to run a
> > series of mutate operations.
>
> > I'm using C# and the error I'm seeing is
> > "The underlying connection was closed: An unexpected error occurred on
> > a send." and
>
> > "Unable to write data to the transport connection: An established
> > connection was aborted by the software in your host machine.:
>
> > With the stack trace referring to the attempt to write to an
> > SSLStream.
>
> > I've tried sending an AuthToken along with my requests, but it does
> > not work.  My operations work against the sandbox, it's only when
> > trying to use the production urls I see a problem.
>
> > Am I missing something in my configuration?   It looks like it's
> > something around authentication.  I am getting the occasional
> > authentication exception, but I think that may be due to too many
> > attempts within 5 mins -- I'm unclear
> > on what the limit is .. I just know it goes away after about that
> > long.
>
> > Any help is greatly appreciated.
>
> > Thanks
> > Sidd

-- 
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-...@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.



AdWords API Re: Bulk and Mutate Service Security

2010-02-18 Thread sidd
I am using the .NET client library and I think the issue was in using
the AdWordsUser constructor with the dictionary.  So I'm not seeing
any authentication exceptions.  I'm seeing different issues now.

I think it's probably due to the initial request size.  The first
request I make that generates the initial error has a content-length
of 15 MB and is attempting to process 150K operations.  I thought the
bulk mutate service could support up to 500k operations.  This request
causes the unexpected error on send.

Following requests generate a TOO_MANY_OPERATIONS_IN_REQUEST_PART
error.  I am limiting the number of operations to 10K per bulk mutate
request.  And I see there is a limit of 100 request parts.  Is there a
limit to the number of operations within the request part?

On Feb 18, 7:44 am, AdWords API Advisor 
wrote:
> Hi Sidd,
>
> Are you using the .NET client library?  Do you know if this error is
> being generated during the request to the ClientLogin API (to get the
> authToken) or to the AdWords API?  How large are the requests you are
> making?  Are there any policies on your network that close long
> running connections?
>
> Best,
> - Eric Koleda, AdWords API Team
>
> On Feb 17, 7:20 pm, sidd  wrote:
>
> > Hi.
>
> > I've been having problems using the AdGroupCriterionService and the
> > BulkMutateJobService.  I get the same error when I attempt to run a
> > series of mutate operations.
>
> > I'm using C# and the error I'm seeing is
> > "The underlying connection was closed: An unexpected error occurred on
> > a send." and
>
> > "Unable to write data to the transport connection: An established
> > connection was aborted by the software in your host machine.:
>
> > With the stack trace referring to the attempt to write to an
> > SSLStream.
>
> > I've tried sending an AuthToken along with my requests, but it does
> > not work.  My operations work against the sandbox, it's only when
> > trying to use the production urls I see a problem.
>
> > Am I missing something in my configuration?   It looks like it's
> > something around authentication.  I am getting the occasional
> > authentication exception, but I think that may be due to too many
> > attempts within 5 mins -- I'm unclear
> > on what the limit is .. I just know it goes away after about that
> > long.
>
> > Any help is greatly appreciated.
>
> > Thanks
> > Sidd

-- 
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-...@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.



AdWords API google-api-adwords-perl: "No Make or Build file detected"

2010-02-18 Thread Grant
A Gentoo dev is trying to put together ebuilds for google-api-adwords-
perl and its dependencies, but he's getting:

>>> Unpacking source...
>>> Unpacking google-api-adwords-perl-1.3.0.tar.gz to 
>>> /var/tmp/portage/dev-perl/google-api-adwords-perl-1.3.0/work
>>> Source unpacked in 
>>> /var/tmp/portage/dev-perl/google-api-adwords-perl-1.3.0/work
>>> Preparing source in 
>>> /var/tmp/portage/dev-perl/google-api-adwords-perl-1.3.0/work ...
/var/tmp/portage/dev-perl/google-api-adwords-perl-1.3.0/temp/
environment: line
282: pushd:
/var/tmp/portage/dev-perl/google-api-adwords-perl-1.3.0/work/google-
api-adwords-perl-1.3.0:
No such file or directory
/var/tmp/portage/dev-perl/google-api-adwords-perl-1.3.0/temp/
environment: line
313: popd: directory stack empty
>>> Source prepared.
>>> Configuring source in 
>>> /var/tmp/portage/dev-perl/google-api-adwords-perl-1.3.0/work ...
 * No Make or Build file detected...

Does anyone know why this is happening?

http://bugs.gentoo.org/show_bug.cgi?id=305621

-- 
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-...@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.



AdWords API Re: get negative keywords in v2009

2010-02-18 Thread AdWords API Advisor
Hi David,

I'm glad to hear you have it working.  When the v13 ReportService is
eventually deprecated it will be given our standard 4-6 month sunset
clock.

Best,
- Eric

On Feb 18, 11:10 am, David  wrote:
> Thanks Eric, got it working now. It was a sneaky one so I won't beat
> myself up over it too much .
>
> cheers.
>
> Migration to v2009 complete. Hopefully we get 6 month sunset on
> reports service etc.
>
> On Feb 18, 3:14 pm, AdWords API Advisor 
> wrote:
>
>
>
> > Hi David,
>
> > Although you created a CampaignCriterionIdFilter[] of size 1, you
> > never actually created a CampaignCriterionIdFilter object to put in
> > that array.
>
> > // You had this.
> > CampaignCriterionIdFilter[] ccIDfilters = new
> > CampaignCriterionIdFilter[1];
>
> > // Now add this.
> > ccIDfilters[0] = new CampaignCriterionIdFilter();
>
> > // You had this.
> > ccIDfilters[0].campaignId = campaignID;
>
> > Best,
> > - Eric
>
> > On Feb 18, 9:25 am, David  wrote:
>
> > > Hi Eric and all. I've set up soap logging but nothing goes into the
> > > log as the error occurs before the campaignTargetService.get method is
> > > called. http log and soap log is both empty. I've isolated campaign
> > > negative keywords into a test page but can confirm logging works as
> > > stuff is being logged from my main app.
>
> > > If I'm doing someone crazy wrong and stupid well then my bad but I
> > > can't for the life of me get this to work.
>
> > > My method for campaign neg keywords is :
>
> > > public static int getCampaignNegativeKWCountV2009(string campaignName,
> > > long campaignID, string accountIDstring)
> > >     {
> > >         Debug.WriteLine("camp name is " +  campaignName + " ||| camp
> > > id is = " + campaignID.ToString());
>
> > >         AdWordsUser user = new AdWordsUser();
> > >         CampaignCriterionService campaignCriterionService =
> > > (CampaignCriterionService)user.GetService(AdWordsService.v200909.CampaignCr
> > >  iterionService);
> > >         campaignCriterionService.RequestHeader.clientCustomerId =
> > > accountIDstring;
>
> > >         CampaignCriterionSelector ccs = new
> > > CampaignCriterionSelector();
>
> > >         //filter which campaigns you want data for
> > >         CampaignCriterionIdFilter[] ccIDfilters = new
> > > CampaignCriterionIdFilter[1];
> > >         ccIDfilters[0].campaignId = campaignID;
> > > ccIDfilters[0].campaignIdSpecified = true; //ERROR HERE
>
> > >         //associate selector with filters
> > >         ccs.idFilters = ccIDfilters;
>
> > >         //get what you want
> > >         CampaignCriterion[] criterions =
> > > (CampaignCriterion[])campaignCriterionService.get(ccs).entries;
>
> > >          no campaign level neg KWs
> > >         if (criterions == null)
> > >             return 0;
>
> > >         int keywordCount = 0;
> > >         for (int i = 0; i < criterions.Length; i++)
> > >             //confirm the negative criteria of a KW and not a URL
> > > (content network)
> > >             if (criterions[i].GetType().Name == "Keyword") keywordCount
> > > ++;
>
> > >         return keywordCount;
> > >     }
>
> > > The error I get is
>
> > > Object reference not set to an instance of an object.  at this line.
> > > ccIDfilters[0].campaignId = campaignID;
> > > ccIDfilters[0].campaignIdSpecified = true;
>
> > > campaigncritierionselectors expects an array of
> > > CampaignCriterionIdFilter's. So I create an array with a capcity of 1
> > > and fill its zero'th element with a long which I know is not null and
> > > is proper..  but ccIDfilters doesn't seem to be getting created
> > > propertly. I went into the CampaignCriterionIdFilter defintion code
> > > and didn't see a constructor but its a partial class so that's prob
> > > why.
>
> > > I'm sure its something stupid I'm missing but a working .net example
> > > would be great. I'm using .net client lib v7. The new one.
>
> > > cheers.
>
> > > On Feb 17, 4:37 pm, David  wrote:
>
> > > > Thanks Eric. I'll try and set up SOAP logging. Can you tell me though
> > > > is my code correct?
>
> > > > Rgds
> > > > david.
>
> > > > On Feb 17, 3:57 pm, AdWords API Advisor 
> > > > wrote:
>
> > > > > Hi David,
>
> > > > > When you have problems like this its always best to look at the SOAP
> > > > > request and response XML.  Please post this XML to this thread and
> > > > > that should shed some light on the problem.
>
> > > > > Best,
> > > > > - Eric Koleda, AdWords API Team
>
> > > > > On Feb 16, 9:53 am, David  wrote:
>
> > > > > > Thanks again Ursula. I'm using the .net client library anyhow but
> > > > > > understand that what you have is still pretty much what I'm doing. 
> > > > > > The
> > > > > > methods do seem different slightly though which I find strange 
> > > > > > because
> > > > > > the end soap web service is the same one for both java and .net, but
> > > > > > the surrounding framework is obviously different for one programming
> > > > > > language v another.  I don't really know what or if
> > > > > > campaign

AdWords API AdGroupCriterionIdFilter

2010-02-18 Thread Navi
Hi,

How in v2009 do I get the criterias for all the criterionIds that are
associated with the specified ad group?
In v13, we had getCriteria method which will accept an array of
criterionIds and an adgroupid.
but now in v2009,AdGroupCriterionFilter seem to accept only one
criterionId at a time.
Is there any way I can do this in v2009 or do I have to call the get
method for each criterionid?

Thanks
Navi

-- 
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-...@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.



AdWords API Re: AdGroupCriterionSelector#setUserStatuses does not work.

2010-02-18 Thread AdWords API Advisor
Hi,

The issue list you pointed to is for the Java client library, and is
not meant to track generic API issues.  Unfortunately there is no
central place to get this information, and your best option is to ping
this thread and I can check on the progress.

Best,
- Eric

On Feb 18, 7:03 am, ryo  wrote:
> Hi Eric,
>
> When this issue is fixed, we want to know that infomation.
> How can we know that?
>
> The following issues 
> list?http://code.google.com/p/google-api-adwords-java/issues/list
>
> On 2月18日, 午前3:13, AdWords API Advisor 
> wrote:
>
>
>
> > Hi Almas,
>
> > This is a known issue, that the AdGroupAdService doesn't return
> > DISABLED ads.  Unfortunately I don't have a timeline for when a fix or
> > workaround will be made available.
>
> > Best,
> > - Eric
>
> > On Feb 16, 1:31 am, Almas Kanjiyani  wrote:
>
> > > Hi Eric,
>
> > > I had a question in mind. For AdGroupAd's whose status is Disabled, I
> > > am not able to retrieve it from Google with the get() API call.
>
> > > How can we get the AdGroupAds from Google whose Status="Disabled"?
>
> > > Thanks,
> > > Almas
>
> > > On Feb 9, 10:17 pm, AdWords API Advisor 
> > > wrote:
>
> > > > Hi,
>
> > > > Unfortunately this behavior hasn't been clearly documented yet, and I
> > > > apologize for any confusion.  AdGroupAds (Creatives) do not behave the
> > > > same, as even an ad with zero impressions will remain with the deleted
> > > > status.
>
> > > > Best,
> > > > - Eric
>
> > > > On Feb 9, 4:53 am, ryo  wrote:
>
> > > > > Oh, as you say, the keyword has never had an impression.
>
> > > > > Where this specification is published?
> > > > > I searched AdWords v2009 and google forum, however, I can't find...
>
> > > > > And, the Creative is the same specification?
>
> > > > > On 2月9日, 午前1:29, AdWords API Advisor 
> > > > > wrote:
>
> > > > > > Hi,
>
> > > > > > I just ran some tests and the selector appears to be working
> > > > > > correctly.  Please keep in mind that deleting a keyword can have two
> > > > > > different outcomes:
>
> > > > > > - If the keyword has never had an impression then it will be
> > > > > > completely removed from the ad group, and it will not be returned 
> > > > > > with
> > > > > > any get() requests.
> > > > > > - If the keyword has had some impressions then it will remain in the
> > > > > > ad group with the DELETED status.
>
> > > > > > It could be that your ad group just doesn't have any keywords in 
> > > > > > this
> > > > > > DELETED status.  You can verify this in the AdWords web interface.
>
> > > > > > Best,
> > > > > > - Eric Koleda, AdWords API Team
>
> > > > > > On Feb 8, 6:29 am, ryo  wrote:
>
> > > > > > > Hi.
>
> > > > > > > I use Java v200909.
>
> > > > > > > I have a question about
> > > > > > >AdGroupCriterionSelector#setUserStatuses(Userstatus[] 
> > > > > > >userStatuses).
> > > > > > > Userstatus.ACTIVE and Userstatus.PAUSED are well-functioning.
> > > > > > > However, Userstatus.DELETED is NOT well-functioning, I think.
> > > > > > > For example, the following code doesn't work.
>
> > > > > > > AdGroupCriterionServiceInterface adGroupCriterionService
> > > > > > >         =
> > > > > > > user.getService(AdWordsService.V200909.ADGROUP_CRITERION_SERVICE);
> > > > > > >AdGroupCriterionSelectorselector = newAdGroupCriterionSelector();
> > > > > > > selector.setIdFilters(new AdGroupCriterionIdFilter[]{
> > > > > > >         new AdGroupCriterionIdFilter(12345L, 67890L, null)});
>
> > > > > > > selector.setCriterionUse(CriterionUse.BIDDABLE);
> > > > > > > selector.setUserStatuses(new UserStatus[]{UserStatus.DELETED});
>
> > > > > > > adGroupCriterionService.get(selector).getEntries();
>
> > > > > > > A part of soap request is the following.
>
> > > > > > >     
> > > > > > >        > > > > > > xmlns="https://adwords.google.com/api/adwords/cm/v200909";>
> > > > > > >         
> > > > > > >           
> > > > > > >             12345
> > > > > > >             67890
> > > > > > >           
> > > > > > >           BIDDABLE
> > > > > > >           DELETED
> > > > > > >         
> > > > > > >       
> > > > > > >     - Hide quoted text -
>
> > > > - Show quoted text -

-- 
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-...@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.



AdWords API Re: All placed keywords of particular website

2010-02-18 Thread AdWords API Advisor
Hi NI,

There is no report that will just return changed data, or even tell
you when the objects were last changed.  The only solution currently
is to fetch all of the data in the account.

Best,
- Eric

On Feb 18, 6:28 am, netimpact  wrote:
> Thank you Eric for your reply.
>
> Is there a possibility to create reports, which display changes (like
> activated/deactivated, cpc) and fetch the reports using the API, or
> push a csv- or  json file to a fileserver (any protocol)?
>
> regards,
> NI
>
> On Feb 18, 12:05 am, AdWords API Advisor
>
>
>
>  wrote:
> > Hi,
>
> > Unfortunately there is no way in the API to request only changed
> > keywords.
>
> > Best,
> > - Eric Koleda, AdWords API Team
>
> > On Feb 17, 10:06 am, netimpact  wrote:
>
> > > The code bellow is a part or cut together used the examples of php
> > > client library.
> > > Works fine, but what to do if I have 100.000 keywords and I want o
> > > keep my database up to date?
>
> > > To reduce costs I would like to retrieve changed keywords only instead
> > > of fetching all 100.000 keywords every hour.
> > > (i.e CPC of a keyword has changed, keyword is activated/deactivated,
> > > campaign activated/deactivated)
>
> > > Any Idea? Thanks,
> > > NI
>
> > >         $user = new AdWordsUser();
>
> > >         // Log SOAP XML request and response.
> > >         $user->LogDefaults();
>
> > >         ## Get Campaings
>
> > >         // Get the CampaignService.
> > >         $campaignService = $user->GetCampaignService('v200909');
>
> > >         // Create selector.
> > >         $selector = new CampaignSelector();
> > >         $selector->campaignStatuses = array('ACTIVE');
>
> > >         // Get campaigns.
> > >         $page = $campaignService->get($selector);
>
> > >         foreach ($page->entries as $campaign) {
> > >                 //$this->assertTrue( is_numeric($campaign->id));
> > >                 print_r("\ncampaign id: " . $campaign->id . ' name: ' . 
> > > $campaign->name );
>
> > >         }
> > >         print "\n\n";
>
> > >         ## Get AdGroups
>
> > >         //first Campaign
> > >         $campaign = $page->entries[0];
>
> > >         $adGroupService = $user->GetAdGroupService('v200909');
>
> > >         // Create selector.
> > >         $selector = new AdGroupSelector();
> > >         // $selector->campaignId = $campaign->id;
>
> > >         // Get groups.
> > >         $page = $adGroupService->get($selector);
>
> > >         if (isset($page->entries)) {
> > >                 foreach ($page->entries as $adGroup) {
> > >                         // $this->assertTrue( is_numeric($adGroup->id));
> > >                         print_r("\ngroup id: " . $adGroup->id . ' name: ' 
> > > . $adGroup->name);
>
> > >                 }
> > >         }
> > >         print "\n\n";
>
> > >         // ## Get Keywords
>
> > >         // first AdGroup
> > >         $adGroup = $page->entries[1];
>
> > >         // Get the AdGroupCriterionService.
> > >     $adGroupCriteriaService = $user-
>
> > > >GetAdGroupCriterionService('v200909');
>
> > >         // Create selector.
> > >         $selector = new AdGroupCriterionSelector();
> > >         $selector->userStatuses = array('ACTIVE');
>
> > >         // Create id filter.
> > >         $idFilter = new AdGroupCriterionIdFilter();
> > >         $idFilter->adGroupId = $adGroup->id;
> > >         $idFilter->campaignId = $campaign->id;
> > >         $selector->idFilters = array($idFilter);
>
> > >         // Get all active ad group criteria.
> > >         $page = $adGroupCriteriaService->get($selector);
>
> > > # Id and CPC
> > > # $adGroupCriterion->criterion->id
> > > # $adGroupCriterion->stats->averageCpc

-- 
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-...@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.



AdWords API Re: AFTER_MAXIMUM_ALLOWABLE_DATE Error

2010-02-18 Thread AdWords API Advisor
Hi Daniel,

I wasn't able to replicate the issue, even using that timezone.  Do
you have the SOAP XML logs from these requests?

Best,
- Eric

On Feb 18, 4:20 am, Daniel  wrote:
> Hi Eric,
>
> the Account is in GMT +1 Zone.
>
> Regards,
> Daniel
>
> On 18 Feb., 00:29, AdWords API Advisor 
> wrote:
>
>
>
> > Hi Daniel,
>
> > I'm able to set the end date to 20371230 successfully.  What time zone
> > is this account in?
>
> > Best,
> > - Eric Koleda, AdWords API Team
>
> > On Feb 16, 12:39 pm, Daniel  wrote:
>
> > > HI there!
>
> > > I try to update one of my Campaigns with the new API V200909.
>
> > > When i set the Campaign EndDate i get these error:
> > > faultDetail:
> > >         {https://adwords.google.com/api/adwords/cm/v200909}
> > > ApiExceptionFault:[CampaignError.AFTER_MAXIMUM_ALLOWABLE_DATE
> > > @ operations[0].operand.endDate] > > message>ApiException > > ApplicationException.Type>http://www.w3.org/2001/
> > > XMLSchema-instance"
> > > xsi:type="CampaignError">operations[0].operand.endDate > > fieldPath>CampaignError > > ApiError.Type>AFTER_MAXIMUM_ALLOWABLE_DATE
>
> > > The given EndDate Sring is in the same Format (MMdd) as i get it
> > > by downloading the Campaigns via the CampaignService. in this case,
> > > the End Date String is: "20371230"
>
> > > Hope somenody can help me with this :)

-- 
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-...@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.



AdWords API Re: Suddenly many clients fail because of INVALID soap response

2010-02-18 Thread AdWords API Advisor
Hi Ales,

Thanks for sending along the logs.  I talked with my colleagues, and
it appears that these extra characters are actually part of the
chunked transfer encoding spec:

  http://en.wikipedia.org/wiki/Chunked_encoding

The "fef" characters are actually the number of bytes in the next
chunk, and these values should be removed automatically.  The .NET Web
Services library supports a chunked transfer encoding, and in my own
tests the data is being parsed correctly.

Which version of the .NET client library are you using?
Are you using a proxy server, or some other interceptor that could be
passing along the chunked content incorrectly?

Best,
- Eric

On Feb 17, 3:14 am, Ales Sturala  wrote:
> Done
>
> On Feb 17, 1:10 am, AdWords API Advisor 
> wrote:
>
>
>
> > Hi,
>
> > I looked up the logs for these requests, and the XML we have doesn't
> > include these extra characters.  Do you have the full SOAP XML logs
> > for this request?  If so, can you send them to
> > adwordsapiadvi...@google.com and then post a message to this thread so
> > I can retrieve them?
>
> > Thanks,
> > - Eric
>
> > On Feb 16, 3:47 pm, majco  wrote:
>
> > > I have big problem with this error.
> > > It happens to me often especially when insert around 3000 keywords
> > > together.
>
> > > You solve this problem?

-- 
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-...@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.



AdWords API getting ad counts

2010-02-18 Thread mike-adwo...@pubget.com
Is there an efficient way to count the number of criteria and/or ads
in an ad group, other than doing a get? Right now I'm using the code
from the get_all_active_ad_group_criteria, and return the number of
entries. This seems a little expensive just to find out whether or not
I've populated my ad group with ads/criteria yet.

Thanks,
Mike

-- 
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-...@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.



AdWords API Re: Adgroup Ad ID Invalid

2010-02-18 Thread AdWords API Advisor
Hi Mike,

Do you have the SOAP XML logs for this request?  I've seen some cases
where a correct ID gets truncated when it is serialized to XML.

Best,
- Eric Koleda, AdWords API Team

On Feb 18, 4:44 am, Mike-Indiana  wrote:
> In PHP... I tried everything. The ID is there and there are no quotes.
> I am able to create an adgroup text ad, but I cannot set the status to
> PAUSE or DISABLED. Any direction would be helpful.
>
> Error:
>
> SoapFault Object ( [message:protected] => [EntityNotFound.INVALID_ID @
> operations[0].operand.ad.id] [string:private] => [code:protected] => 0
> [file:protected] =>

-- 
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-...@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.



AdWords API Re: TOO_MANY_CAMPAIGNS_PER_ACCOUNT And paused campaigns

2010-02-18 Thread AdWords API Advisor
Hi James,

Paused campaigns do not count towards the maximum, and I don't believe
ended ones do either.  I wasn't able to replicate your error though,
as I was able to successfully add more paused campaigns after I
reached the active campaign limit.

Best,
- Eric Koleda, AdWords API Team

On Feb 18, 12:48 am, James  wrote:
> Sorry. Actually have two questions:
> Do paused campaigns count towards the maximum number allowed?
> Do ended campaigns count towards the maximum number allowed?
> I know deleted ones do not.
>
> Thanks
>
> On Feb 18, 3:56 pm, James  wrote:
>
>
>
> > Hi,
> > When you have reached your campaign limit and try to add a new
> > campaign with status=PAUSED in the v200909 API you get an internal
> > error returned. Soap below is from production.
> > Mainly just letting you know, if the campaign we add does not have a
> > status of paused we get the correct TOO_MANY_CAMPAIGNS_PER_ACCOUNT
> > error message.
>
> > One question:
> > Do paused campaigns count towards the maximum number allowed? I know
> > deleted ones do not.
>
> > Thanks
>
> >   REQ  --
> > 
> > http://www.w3.org/2001/XMLSchema-
> > instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/";
> > xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";
> > xmlns:xsd="http://www.w3.org/2001/XMLSchema"; SOAP-
> > ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";>
> > 
> > https://adwords.google.com/api/adwords/cm/
> > v200909" SOAP-ENC:arrayType="xsd:string[4]">
> > aa
> > bb
> > c
> > d
> > 
> > 
> > 
> > https://adwords.google.com/api/adwords/cm/v200909";>
> > 
> > ADD
> > 
> > 
> > Camp new4
> > PAUSED
> > 
> > STANDARD
> > 
> > 2
> > 
> > DAILY
> > 
> > OPT_OUT
> > ROTATE
> > 
> > 
> > 
> > 
> > 
> > 
> > ManualCPC
> > 
> > 
> > 
> > 
> > 
> > 
>
> >   RESP  --
> > http://schemas.xmlsoap.org/soap/envelope/";>
> > 
> > 
> > soap:Server
> > InternalApiError.UNEXPECTED_INTERNAL_API_ERROR @  > faultstring>
> > 
> > https://adwords.google.com/api/adwords/cm/
> > v200909">
> > InternalApiError.UNEXPECTED_INTERNAL_API_ERROR @ 
> > ApiException
> > http://www.w3.org/2001/XMLSchema-instance";
> > xsi:type="Internal ApiError">
> > 
> > 
> > 
> > 
> > InternalApiError
> > UNEXPECTED_INTERNAL_API_ERROR
> > 
> > 
> > 
> > 
> > 
> > 

-- 
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-...@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.



AdWords API Re: get negative keywords in v2009

2010-02-18 Thread David
Thanks Eric, got it working now. It was a sneaky one so I won't beat
myself up over it too much .

cheers.

Migration to v2009 complete. Hopefully we get 6 month sunset on
reports service etc.

On Feb 18, 3:14 pm, AdWords API Advisor 
wrote:
> Hi David,
>
> Although you created a CampaignCriterionIdFilter[] of size 1, you
> never actually created a CampaignCriterionIdFilter object to put in
> that array.
>
> // You had this.
> CampaignCriterionIdFilter[] ccIDfilters = new
> CampaignCriterionIdFilter[1];
>
> // Now add this.
> ccIDfilters[0] = new CampaignCriterionIdFilter();
>
> // You had this.
> ccIDfilters[0].campaignId = campaignID;
>
> Best,
> - Eric
>
> On Feb 18, 9:25 am, David  wrote:
>
> > Hi Eric and all. I've set up soap logging but nothing goes into the
> > log as the error occurs before the campaignTargetService.get method is
> > called. http log and soap log is both empty. I've isolated campaign
> > negative keywords into a test page but can confirm logging works as
> > stuff is being logged from my main app.
>
> > If I'm doing someone crazy wrong and stupid well then my bad but I
> > can't for the life of me get this to work.
>
> > My method for campaign neg keywords is :
>
> > public static int getCampaignNegativeKWCountV2009(string campaignName,
> > long campaignID, string accountIDstring)
> >     {
> >         Debug.WriteLine("camp name is " +  campaignName + " ||| camp
> > id is = " + campaignID.ToString());
>
> >         AdWordsUser user = new AdWordsUser();
> >         CampaignCriterionService campaignCriterionService =
> > (CampaignCriterionService)user.GetService(AdWordsService.v200909.CampaignCr 
> > iterionService);
> >         campaignCriterionService.RequestHeader.clientCustomerId =
> > accountIDstring;
>
> >         CampaignCriterionSelector ccs = new
> > CampaignCriterionSelector();
>
> >         //filter which campaigns you want data for
> >         CampaignCriterionIdFilter[] ccIDfilters = new
> > CampaignCriterionIdFilter[1];
> >         ccIDfilters[0].campaignId = campaignID;
> > ccIDfilters[0].campaignIdSpecified = true; //ERROR HERE
>
> >         //associate selector with filters
> >         ccs.idFilters = ccIDfilters;
>
> >         //get what you want
> >         CampaignCriterion[] criterions =
> > (CampaignCriterion[])campaignCriterionService.get(ccs).entries;
>
> >          no campaign level neg KWs
> >         if (criterions == null)
> >             return 0;
>
> >         int keywordCount = 0;
> >         for (int i = 0; i < criterions.Length; i++)
> >             //confirm the negative criteria of a KW and not a URL
> > (content network)
> >             if (criterions[i].GetType().Name == "Keyword") keywordCount
> > ++;
>
> >         return keywordCount;
> >     }
>
> > The error I get is
>
> > Object reference not set to an instance of an object.  at this line.
> > ccIDfilters[0].campaignId = campaignID;
> > ccIDfilters[0].campaignIdSpecified = true;
>
> > campaigncritierionselectors expects an array of
> > CampaignCriterionIdFilter's. So I create an array with a capcity of 1
> > and fill its zero'th element with a long which I know is not null and
> > is proper..  but ccIDfilters doesn't seem to be getting created
> > propertly. I went into the CampaignCriterionIdFilter defintion code
> > and didn't see a constructor but its a partial class so that's prob
> > why.
>
> > I'm sure its something stupid I'm missing but a working .net example
> > would be great. I'm using .net client lib v7. The new one.
>
> > cheers.
>
> > On Feb 17, 4:37 pm, David  wrote:
>
> > > Thanks Eric. I'll try and set up SOAP logging. Can you tell me though
> > > is my code correct?
>
> > > Rgds
> > > david.
>
> > > On Feb 17, 3:57 pm, AdWords API Advisor 
> > > wrote:
>
> > > > Hi David,
>
> > > > When you have problems like this its always best to look at the SOAP
> > > > request and response XML.  Please post this XML to this thread and
> > > > that should shed some light on the problem.
>
> > > > Best,
> > > > - Eric Koleda, AdWords API Team
>
> > > > On Feb 16, 9:53 am, David  wrote:
>
> > > > > Thanks again Ursula. I'm using the .net client library anyhow but
> > > > > understand that what you have is still pretty much what I'm doing. The
> > > > > methods do seem different slightly though which I find strange because
> > > > > the end soap web service is the same one for both java and .net, but
> > > > > the surrounding framework is obviously different for one programming
> > > > > language v another.  I don't really know what or if
> > > > > campaignIDspecified is used for.
>
> > > > > But the basic process between your code and mine is the same and is :
>
> > > > > > > //create service
> > > > > > > //create selector
> > > > > > > //create campaign filters based on campaignID
> > > > > > > //associate filters with selector
> > > > > > > //associate (pass in) selector with service get call.
>
> > > > > I don't think im populating filters incorrectly..
>
> > > > >  > //THINK I'M 

Re: AdWords API Developer Sign-up

2010-02-18 Thread AdWords API Advisor
Hi,

If you already have an MCC account then you need to log in with the
credentials of that MCC account.  If you log in with an AdWords
account then it will attempt to create and link a new MCC account,
which will fail if you already have an MCC account linked to that
AdWords account.

Best,
- Eric Koleda, AdWords API Team

On Feb 17, 8:23 pm, chrissky  wrote:
> When I login to signup for a developer key, I get the message
> "This account is linked by another My Client Center."
> but there is no explanation as to what that means.

-- 
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-...@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.



AdWords API Re: Bulk and Mutate Service Security

2010-02-18 Thread AdWords API Advisor
Hi Sidd,

Are you using the .NET client library?  Do you know if this error is
being generated during the request to the ClientLogin API (to get the
authToken) or to the AdWords API?  How large are the requests you are
making?  Are there any policies on your network that close long
running connections?

Best,
- Eric Koleda, AdWords API Team

On Feb 17, 7:20 pm, sidd  wrote:
> Hi.
>
> I've been having problems using the AdGroupCriterionService and the
> BulkMutateJobService.  I get the same error when I attempt to run a
> series of mutate operations.
>
> I'm using C# and the error I'm seeing is
> "The underlying connection was closed: An unexpected error occurred on
> a send." and
>
> "Unable to write data to the transport connection: An established
> connection was aborted by the software in your host machine.:
>
> With the stack trace referring to the attempt to write to an
> SSLStream.
>
> I've tried sending an AuthToken along with my requests, but it does
> not work.  My operations work against the sandbox, it's only when
> trying to use the production urls I see a problem.
>
> Am I missing something in my configuration?   It looks like it's
> something around authentication.  I am getting the occasional
> authentication exception, but I think that may be due to too many
> attempts within 5 mins -- I'm unclear
> on what the limit is .. I just know it goes away after about that
> long.
>
> Any help is greatly appreciated.
>
> Thanks
> Sidd

-- 
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-...@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.



AdWords API Re: Displaying updated adgroup CPC

2010-02-18 Thread AdWords API Advisor
Hi,

You need to retrieve the value the same way you are setting it.  In
this case your code should be:

  $newstatus = $adGroup->bids->keywordMaxCpc;

Best,
- Eric Koleda, AdWords API Team

On Feb 17, 5:52 pm, "michaelyanda+...@gmail.com"  wrote:
> Hi, updating an adgroup CPC is completed smoothly, however I am having
> problems printing the value.
>
> In PHP, my code is: (Please see $newstatus = $adGroup->keywordMaxCpc;)
>
>         // Adjust bid to micro format
>         $agcpcG = ($cpc * 100);
>
>         // Create ad group bid.
>         $adGroupBids = new ManualCPCAdGroupBids();
>         $adGroupBids->keywordMaxCpc = new Bid(new Money($agcpcG));
>         $adGroup->bids = $adGroupBids;
>
>         // Create operations.
>         $operation = new AdGroupOperation();
>         $operation->operand = $adGroup;
>         $operation->operator = 'SET';
>
>         $operations = array($operation);
>
>         // Update ad group.
>         $result = $adGroupService->mutate($operations);
>
>         // Display status
>                 if (isset($result->value)) {
>                         foreach ($result->value as $adGroup) {
>                         $newstatus = $adGroup->keywordMaxCpc;
>                         }
>                 }
>                 else {
>                 $newstatus = "Error";
>                 }
>
> Many thanks.

-- 
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-...@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.



AdWords API Re: Is there an AdWords UI equivalent for adding CPA_REFERRAL when creating campaign via v2009 APIs?

2010-02-18 Thread AdWords API Advisor
Hi Hans,

The CPA_REFERRAL network target is a legacy value, and the associated
feature has been sunset from the AdWords web interface.

Best,
- Eric Koleda, AdWords API Team

On Feb 17, 2:31 pm, HK  wrote:
> Does anyone from Google have any input on this question?
>
> Thanks
> Hans
>
> On Jan 31, 12:05 pm, HK  wrote:
>
>
>
> > Hi,
>
> > I'm doing some testing around adding CPA_REFERRAL as a network target
> > for a campaign using the v200909 APIs, but I don't see any equivalent
> > setting in the web UI or in AdWords Editor. So I'm wondering if such a
> > UI setting exists and if adding CPA_REFERRAL has any effect as of
> > today?
>
> >http://code.google.com/apis/adwords/v2009/docs/reference/CampaignTarg...
>
> > Thanks
> > Hans

-- 
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-...@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.



AdWords API Re: REQUEST_SIZE_LIMIT_EXCEEDED

2010-02-18 Thread AdWords API Advisor
Hi,

There are limits on the size of requests, but we can't provide the
exact numbers.  Please also keep in mind that these limits are subject
to change over time.

Best,
- Eric Koleda, AdWords API Team

On Feb 17, 2:15 pm, majco  wrote:
> Hi,
>
> when I inserting 5000 keywords I get
> "SizeLimitError.REQUEST_SIZE_LIMIT_EXCEEDED" exception.
> How much is maximal items for one request???
>
> Thanks

-- 
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-...@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.



AdWords API Re: biddingTransition error when updating campaign

2010-02-18 Thread AdWords API Advisor
Hi Tim,

If you aren't attempting to transition the bidding strategy then you
should set the biddingTransition field of the operation to null.  This
will exclude that element from the SOAP XML request and no transition
will be attempted.

Best,
- Eric Koleda, AdWords API Team

On Feb 17, 12:50 pm, Tim  wrote:
> When attempting to update a campaign I'm getting an error about the
> biddingTransition. When sending the existing value, I get a
> TRANSITION_TO_ITSELF error. If I pass null, I get a REQUIRED error.
> How should this be set to successfully update the campaign if I don't
> want to change the biddingStrategy that was set when the campaign was
> created? The body of my soap request is as follows:
>
> https://adwords.google.com/api/adwords/cm/v200909";>
>         
>                 
>                          targetBiddingStrategy>
>                 
>                 
>                         49379031
>                         Test Campaign 3
>                         Active
>                         20371230
>                         
>                                 DAILY
>                                 
>                                         25
>                                         
>                                 
>                         
>                 
>                 SET
>                 
>         
> 
>
> The fault response:
>     [faultcode] => soap:Server
>     [faultstring] => [BiddingTransitionError.TRANSITION_TO_ITSELF @
> operations[0].biddingTransition.targetBiddingStrategy]
>     [detail] => Array
>         (
>             [ApiExceptionFault] => Array
>                 (
>                     [message] =>
> [BiddingTransitionError.TRANSITION_TO_ITSELF @
> operations[0].biddingTransition.targetBiddingStrategy]
>                     [ApplicationException.Type] => ApiException
>                     [errors] => Array
>                         (
>                             [fieldPath] =>
> operations[0].biddingTransition.targetBiddingStrategy
>                             [trigger] =>
>                             [ApiError.Type] => BiddingTransitionError
>                             [reason] => TRANSITION_TO_ITSELF
>                         )
>
>                 )
>
>         )
>
> Thanks.

-- 
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-...@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.



AdWords API Re: Problems removing adgroup criterions

2010-02-18 Thread AdWords API Advisor
Hi Tam,

Removing a destination URL shouldn't correct a keyword criterion.  Can
you do a get() request for this example criterion and then post the
SOAP XML response?

Best,
- Eric

On Feb 17, 12:09 pm, Tam  wrote:
> Hi Eric
>
> I've sort of got an answer to my issue, but (as is often the case) it
> raises another issue
>
> It seems as though the reason i couldn't remove the keyword criterion
> is because I corrupted the keyword by removing the destination url
> during testing because all our other (correctly defined) keyword
> criterions behave as expected.
> I have a few criterions like this and none of them are either visible
> in the adwords front end or mutatable via API calls although it is
> possible to obtain information on these items using a GET call.
> An example of a corrupted keyword criterion would be adgroup id :
> 1274081242, criterion id 12034820
>
> We would ideally like to be able to add a destination url to this
> criteria (and several other similarly corrupted keywords like it) or
> failing that remove it ourselves.  Is this possible?  If not, would
> you be able to remove the keywords for us if we send you a list?
>
> Please let me know if you require any further clarification
>
>   Kind Regards
>
> Tam
>
> On Feb 8, 3:59 pm, AdWords API Advisor 
> wrote:
>
>
>
> > HiTam,
>
> > Your request appears to be structured correctly, and the error is
> > merely saying that the criterion ID you have specified doesn't exist,
> > or at least doesn't existing within that ad group.  Please double-
> > check your IDs and try again.
>
> > Best,
> > - Eric Koleda, AdWords API Team
>
> > On Feb 8, 6:33 am,Tam wrote:
>
> > > Hi there
>
> > > I’m having problems generating the correct xml to remove an adgroup
> > > criterion.
>
> > > The request xml we’re currently using can be seen below.  Note that
> > > I'm not specifying whether the criteria is a keyword or a placement,
> > > (although we have tried this but it still didn’t seem to work) because
> > > presumably this doesn’t matter when you’re trying to delete it?
>
> > > Either way, i keep getting the error response that can be seen below
>
> > > Could you please tell me where i’m going wrong and provide an example
> > > of a correctly formed request to remove an adgroup criterion?
>
> > > Kind regards
>
> > >Tam
>
> > > REQUEST:
> > > 
> > > http://schemas.xmlsoap.org/soap/
> > > envelope/" xmlns:ns1="https://adwords.google.com/api/adwords/cm/
> > > v200909">
> > > 
> > > 
> > > 
> > > *
> > > 
> > > *
> > > 
> > > 
> > > 
> > > REMOVE
> > > 
> > > 1274081152
> > > 
> > > 106745635
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > RESPONSE:
> > > http://schemas.xmlsoap.org/soap/envelope/";>
> > > 
> > > https://adwords.google.com/api/adwords/cm/
> > > v200909">
> > > 34b4feb0e1f99f5ef7eab7c35ab830dd
> > > 1
> > > 424
> > > 1
> > > 
> > > 
> > > 
> > > soap:Server
> > > [EntityNotFound.INVALID_ID @
> > > operations[0].operand.criterion.id; trigger:'106745635']
> > > 
> > > https://adwords.google.com/api/adwords/cm/
> > > v200909">
> > > [EntityNotFound.INVALID_ID @
> > > operations[0].operand.criterion.id; trigger:'106745635']
> > > ApiException
> > > http://www.w3.org/2001/XMLSchema-instance";
> > > xsi:type="EntityNotFound">
> > > operations[0].operand.criterion.id
> > > 106745635
> > > EntityNotFound
> > > INVALID_ID
> > > 
> > > 
> > > 
> > > 
> > > 
> > > REQUEST:
> > > 

-- 
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-...@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.



AdWords API Re: get negative keywords in v2009

2010-02-18 Thread AdWords API Advisor
Hi David,

Although you created a CampaignCriterionIdFilter[] of size 1, you
never actually created a CampaignCriterionIdFilter object to put in
that array.

// You had this.
CampaignCriterionIdFilter[] ccIDfilters = new
CampaignCriterionIdFilter[1];

// Now add this.
ccIDfilters[0] = new CampaignCriterionIdFilter();

// You had this.
ccIDfilters[0].campaignId = campaignID;

Best,
- Eric

On Feb 18, 9:25 am, David  wrote:
> Hi Eric and all. I've set up soap logging but nothing goes into the
> log as the error occurs before the campaignTargetService.get method is
> called. http log and soap log is both empty. I've isolated campaign
> negative keywords into a test page but can confirm logging works as
> stuff is being logged from my main app.
>
> If I'm doing someone crazy wrong and stupid well then my bad but I
> can't for the life of me get this to work.
>
> My method for campaign neg keywords is :
>
> public static int getCampaignNegativeKWCountV2009(string campaignName,
> long campaignID, string accountIDstring)
>     {
>         Debug.WriteLine("camp name is " +  campaignName + " ||| camp
> id is = " + campaignID.ToString());
>
>         AdWordsUser user = new AdWordsUser();
>         CampaignCriterionService campaignCriterionService =
> (CampaignCriterionService)user.GetService(AdWordsService.v200909.CampaignCr 
> iterionService);
>         campaignCriterionService.RequestHeader.clientCustomerId =
> accountIDstring;
>
>         CampaignCriterionSelector ccs = new
> CampaignCriterionSelector();
>
>         //filter which campaigns you want data for
>         CampaignCriterionIdFilter[] ccIDfilters = new
> CampaignCriterionIdFilter[1];
>         ccIDfilters[0].campaignId = campaignID;
> ccIDfilters[0].campaignIdSpecified = true; //ERROR HERE
>
>         //associate selector with filters
>         ccs.idFilters = ccIDfilters;
>
>         //get what you want
>         CampaignCriterion[] criterions =
> (CampaignCriterion[])campaignCriterionService.get(ccs).entries;
>
>          no campaign level neg KWs
>         if (criterions == null)
>             return 0;
>
>         int keywordCount = 0;
>         for (int i = 0; i < criterions.Length; i++)
>             //confirm the negative criteria of a KW and not a URL
> (content network)
>             if (criterions[i].GetType().Name == "Keyword") keywordCount
> ++;
>
>         return keywordCount;
>     }
>
> The error I get is
>
> Object reference not set to an instance of an object.  at this line.
> ccIDfilters[0].campaignId = campaignID;
> ccIDfilters[0].campaignIdSpecified = true;
>
> campaigncritierionselectors expects an array of
> CampaignCriterionIdFilter's. So I create an array with a capcity of 1
> and fill its zero'th element with a long which I know is not null and
> is proper..  but ccIDfilters doesn't seem to be getting created
> propertly. I went into the CampaignCriterionIdFilter defintion code
> and didn't see a constructor but its a partial class so that's prob
> why.
>
> I'm sure its something stupid I'm missing but a working .net example
> would be great. I'm using .net client lib v7. The new one.
>
> cheers.
>
> On Feb 17, 4:37 pm, David  wrote:
>
>
>
> > Thanks Eric. I'll try and set up SOAP logging. Can you tell me though
> > is my code correct?
>
> > Rgds
> > david.
>
> > On Feb 17, 3:57 pm, AdWords API Advisor 
> > wrote:
>
> > > Hi David,
>
> > > When you have problems like this its always best to look at the SOAP
> > > request and response XML.  Please post this XML to this thread and
> > > that should shed some light on the problem.
>
> > > Best,
> > > - Eric Koleda, AdWords API Team
>
> > > On Feb 16, 9:53 am, David  wrote:
>
> > > > Thanks again Ursula. I'm using the .net client library anyhow but
> > > > understand that what you have is still pretty much what I'm doing. The
> > > > methods do seem different slightly though which I find strange because
> > > > the end soap web service is the same one for both java and .net, but
> > > > the surrounding framework is obviously different for one programming
> > > > language v another.  I don't really know what or if
> > > > campaignIDspecified is used for.
>
> > > > But the basic process between your code and mine is the same and is :
>
> > > > > > //create service
> > > > > > //create selector
> > > > > > //create campaign filters based on campaignID
> > > > > > //associate filters with selector
> > > > > > //associate (pass in) selector with service get call.
>
> > > > I don't think im populating filters incorrectly..
>
> > > >  > //THINK I'M GOING WRONG HERE - campaignID is a long
>
> > > > > > CampaignCriterionIdFilter[] ccIDfilters = new
> > > > > > CampaignCriterionIdFilter[1];
> > > > > > ccIDfilters[0].campaignId = campaignID;
> > > > > > ccIDfilters[0].campaignIdSpecified = true;
>
> > > > > > //ADDING THE FILTERS TO THE SELECTOR I CREATED ABOVE
> > > > > > ccs.idFilters = ccIDfilters;
>
> > > > Any Google reps know where I'm going wrong. The filters object of the
> > > >

AdWords API Re: How can I schedule a reportJob without using google client library

2010-02-18 Thread AdWords API Advisor
Hi,

Your code looks fine, and it's strange that SoapClient is only using
some of the values in the array.  Perhaps it is throwing out values
where the types don't match exactly?  For example, aggregationTypes is
a string[], not a string.  In our sample code we just sent in XML
directly:

  
http://code.google.com/p/adwords-api-php-samples/source/browse/trunk/src/v13/schedule_report.php

Best,
- Eric Koleda, AdWords API Team

On Feb 17, 10:22 am, pacox27  wrote:
> Regards I'm trying to schedule a report job using PHP's SoapClient but
> I don't know how to create the arguments for that.
> Here is a part of the PHP code creating the Report's arguments
> structure.
>
> That's the only problem that I have, please help with that
>
> $wsdl = 'ReportService.wsdl';  //Using sandbox Report Service WSDL
>
> $client = new SoapClient( $wsdl,array('proxy_host'=>$this-
>
> >proxy['host'] , 'proxy_port' => $this->proxy['port'] ) );
>
> $requestDef = array('job' => array('selectedReportType' => 'keyword',
>                                                  'name'
> => 'Key word Report',
>                                                  'aggregationTypes'
> => 'Summary',
>                                                  'adWordsType'
> => 'SearchOnly',
>                                                  'keywordType'
> => 'Broad',
>                                                  'startDay'
> => '2009-09-29',
>                                                  'endDay'
> =>'2010-02-12',
>                                                  'selectedColumns'
> => array( array('id' => 'Campaign'),
>
> array('id' => 'budget'),
>
> array('id' => 'CampaignStatus'),
>
> array('id' => 'clicks'),
>
> array('id' => 'Impressions'),
>
> array('id' => 'CTR'),
>
> array('id' => 'CPC'),
>
> array('id' => 'Cost'),
>
> array('id' => 'AveragePosition')
>                                                                               
>       )
>                                                )
>                           );
>
> Then the SoapClient Builds the request with this structure.
>
> 
> http://schemas.xmlsoap.org/soap/
> envelope/" xmlns:ns1="https://adwords.google.com/api/adwords/v13";
> xmlns:ns2="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-
> wssecurity-secext-1.0.xsd"> ENV:Header>gebcmrepo...@gmail.com
> x
> x
> x
> xx applicationToken>
> x
> 
> 
> 
> 
> 2010-02-12
> Key word Report
> 2009-09-29
> 
> 
> 
> 
>
> As you can see it only contains endDay,startDay and name properties,
> please help me with that.

-- 
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-...@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.



AdWords API Re: Ad Group report return empty report

2010-02-18 Thread AdWords API Advisor
Hi,

How are you setting your authentication headers?  Are you using the
same clientEmail that you are using when you log into the AdWords web
interface to schedule the report?

Best,
- Eric Koleda, AdWords API Team


On Feb 17, 6:58 am, Jasmine Diana  wrote:
> Hello,
> I read the AdWord API documentation.
> And I created an AdGroup Performance Report in C#.NET for API version
> v13.
> The web-reference URL I am using is
> "https://adwords.google.com/api/adwords/v13/ReportService?wsdl";.
> When I am creating the AdGroup Performance Report through API it is
> returning empty result.
> But when I am creating the same report with same options through web
> site interface it is showing the results.
> Please help.
>
> This is the C# code i used the create the report
>
> // Create report job structure.
>                 DefinedReportJob job = new DefinedReportJob();
>                 job.selectedReportType = "AdGroup";
>                 job.name = "ReportDaily";
>                 job.aggregationTypes = new String[] { "Daily" };
>                 job.adWordsType = AdWordsType.SearchOnly;
>                 job.keywordType = KeywordType.Broad;
>                 job.startDay = new DateTime(2010, 2, 15);
>                 job.endDay = new DateTime(2010, 2, 16);
>                 job.selectedColumns = new String[] { "CustomerName",
> "Campaign", "AdGroup", "Clicks", "Cost" };
>
>                 // Validate report.
>                     service.validateReportJob(job);
>
>                     // Schedule report.
>                     long jobId = service.scheduleReportJob(job);
>
>                     // Wait for report to finish.
>                     ReportJobStatus status =
> service.getReportJobStatus(jobId);
>                     while (status != ReportJobStatus.Completed &&
>                         status != ReportJobStatus.Failed)
>                     {
>                         Console.WriteLine(
>                             "Report job status is \"" + status +
> "\".");
>                         Thread.Sleep(3);
>                         status = service.getReportJobStatus(jobId);
>                     }
>
>                     if (status == ReportJobStatus.Failed)
>                     {
>                         Console.WriteLine("Report job generation
> failed.");
>                         System.Environment.Exit(0);
>                     }
>
>                     // Download report.
>                     String url = service.getReportDownloadUrl(jobId);

-- 
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-...@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.



AdWords API Re: Can't update Keyword MatchType

2010-02-18 Thread AdWords API Advisor
Hi All,

It isn't possible to change the match type of a keyword, and this was
true in the v13 API as well.  In the v200909 API a keyword criterion
has two parts: a BiddableAdGroupCriterion (extends dGroupCriterion)
and a Keyword (extends Criterion):

  
http://code.google.com/apis/adwords/v2009/docs/reference/AdGroupCriterionService.BiddableAdGroupCriterion.html
  
http://code.google.com/apis/adwords/v2009/docs/reference/AdGroupCriterionService.Keyword.html

After the keyword criterion is created only the properties of the
BiddableAdGroupCriterion can be changed.  If you need to change the
properties of the Keyword you need to REMOVE the keyword criterion and
add in a new one with the correct match type, etc.

Best,
- Eric Koleda, AdWords API Team

On Feb 18, 4:24 am, API Freak  wrote:
> Hi Daniel,
>
> we are experiencing same problems. We can not update any keyword
> status.
>
> Would be great if anybody of the API-Team would give us some advice or
> fix the problem.
>
> Regards
>
> Marcel
>
> On Feb 17, 1:31 pm, Daniel  wrote:
>
>
>
> > Hi there!
>
> > I can't update the MatchType for my Keywords.
>
> > For example, i try to update one ExactMatch Keyword to PhraseMatch and
> > also the KeywordCPC.
> > I get no errors while uploading and also the CPC has changed
> > correctly, just the MatchType in the AdGroupCriterionReturnValue
> > is still EXACT.
>
> > My code looks similiar to this:
>
> > com.google.api.adwords.v200909.cm.Keyword lGoogleKeyword = new
> > com.google.api.adwords.v200909.cm.Keyword();
> > lGoogleKeyword.setId(12345);
> > lGoogleKeyword.setMatchType(KeywordMatchType.BROAD);
>
> > BiddableAdGroupCriterion lBiddableAdGroupCriterion = new
> > BiddableAdGroupCriterion();
> > lBiddableAdGroupCriterion.setAdGroupId(12345);
> > lBiddableAdGroupCriterion.setCriterion(lGoogleKeyword);
>
> > AdGroupCriterionOperation lOperation = new
> > AdGroupCriterionOperation();
> > lOperation.setOperand(lBiddableAdGroupCriterion);
> > lOperation.setOperator(Operator.SET);
>
> > lService.mutate(new AdGroupCriterionOperation[] {lOperation});
>
> > Hope you guys can help me to fix that problem.
>
> > Regards,
> > Daniel

-- 
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-...@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.



AdWords API Re: Impossible to add new criteria to an existing adgroup

2010-02-18 Thread AdWords API Advisor
Hi Andreas,

Do you have the SOAP XML logs from this request?  There are some cases
where IDs are not serialized correctly in the PHP client library.
Ensure that when you set the ID you case the value to a float, as this
can work around the problem.

Best,
- Eric Koleda, AdWords API Team

On Feb 17, 6:13 am, scrat  wrote:
> Update:
>
> I'm using the sandbox to access th 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-...@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.



AdWords API Re: get negative keywords in v2009

2010-02-18 Thread David
Hi Eric and all. I've set up soap logging but nothing goes into the
log as the error occurs before the campaignTargetService.get method is
called. http log and soap log is both empty. I've isolated campaign
negative keywords into a test page but can confirm logging works as
stuff is being logged from my main app.

If I'm doing someone crazy wrong and stupid well then my bad but I
can't for the life of me get this to work.

My method for campaign neg keywords is :

public static int getCampaignNegativeKWCountV2009(string campaignName,
long campaignID, string accountIDstring)
{
Debug.WriteLine("camp name is " +  campaignName + " ||| camp
id is = " + campaignID.ToString());

AdWordsUser user = new AdWordsUser();
CampaignCriterionService campaignCriterionService =
(CampaignCriterionService)user.GetService(AdWordsService.v200909.CampaignCriterionService);
campaignCriterionService.RequestHeader.clientCustomerId =
accountIDstring;

CampaignCriterionSelector ccs = new
CampaignCriterionSelector();

//filter which campaigns you want data for
CampaignCriterionIdFilter[] ccIDfilters = new
CampaignCriterionIdFilter[1];
ccIDfilters[0].campaignId = campaignID;
ccIDfilters[0].campaignIdSpecified = true; //ERROR HERE

//associate selector with filters
ccs.idFilters = ccIDfilters;

//get what you want
CampaignCriterion[] criterions =
(CampaignCriterion[])campaignCriterionService.get(ccs).entries;

 no campaign level neg KWs
if (criterions == null)
return 0;

int keywordCount = 0;
for (int i = 0; i < criterions.Length; i++)
//confirm the negative criteria of a KW and not a URL
(content network)
if (criterions[i].GetType().Name == "Keyword") keywordCount
++;

return keywordCount;
}

The error I get is

Object reference not set to an instance of an object.  at this line.
ccIDfilters[0].campaignId = campaignID;
ccIDfilters[0].campaignIdSpecified = true;

campaigncritierionselectors expects an array of
CampaignCriterionIdFilter's. So I create an array with a capcity of 1
and fill its zero'th element with a long which I know is not null and
is proper..  but ccIDfilters doesn't seem to be getting created
propertly. I went into the CampaignCriterionIdFilter defintion code
and didn't see a constructor but its a partial class so that's prob
why.

I'm sure its something stupid I'm missing but a working .net example
would be great. I'm using .net client lib v7. The new one.

cheers.

On Feb 17, 4:37 pm, David  wrote:
> Thanks Eric. I'll try and set up SOAP logging. Can you tell me though
> is my code correct?
>
> Rgds
> david.
>
> On Feb 17, 3:57 pm, AdWords API Advisor 
> wrote:
>
> > Hi David,
>
> > When you have problems like this its always best to look at the SOAP
> > request and response XML.  Please post this XML to this thread and
> > that should shed some light on the problem.
>
> > Best,
> > - Eric Koleda, AdWords API Team
>
> > On Feb 16, 9:53 am, David  wrote:
>
> > > Thanks again Ursula. I'm using the .net client library anyhow but
> > > understand that what you have is still pretty much what I'm doing. The
> > > methods do seem different slightly though which I find strange because
> > > the end soap web service is the same one for both java and .net, but
> > > the surrounding framework is obviously different for one programming
> > > language v another.  I don't really know what or if
> > > campaignIDspecified is used for.
>
> > > But the basic process between your code and mine is the same and is :
>
> > > > > //create service
> > > > > //create selector
> > > > > //create campaign filters based on campaignID
> > > > > //associate filters with selector
> > > > > //associate (pass in) selector with service get call.
>
> > > I don't think im populating filters incorrectly..
>
> > >  > //THINK I'M GOING WRONG HERE - campaignID is a long
>
> > > > > CampaignCriterionIdFilter[] ccIDfilters = new
> > > > > CampaignCriterionIdFilter[1];
> > > > > ccIDfilters[0].campaignId = campaignID;
> > > > > ccIDfilters[0].campaignIdSpecified = true;
>
> > > > > //ADDING THE FILTERS TO THE SELECTOR I CREATED ABOVE
> > > > > ccs.idFilters = ccIDfilters;
>
> > > Any Google reps know where I'm going wrong. The filters object of the
> > > selector is always null.
>
> > > On Feb 16, 2:28 pm, Ursula  wrote:
>
> > > > Hi David,
>
> > > > Here is a snippet of my code that works ( java).  Do you have a wrong
> > > > import or something for the CampaignCriterionIdFilter?  I don't see a
> > > > property call campaignIdSpecified in my source.
>
> > > > //AdwordsNetworkAccount is a wrapper around the client api adwordsUser
> > > > object
>
> > > >  public List getCampaignNegativeKeywords(
>
> > > > AdwordsNetworkAccount adwordsNetworkAccount,
>
> > > > long[] campaignChannelIDs)
> > > > CampaignCriterionServiceInterface service =
> > > >                 getCampaignCriteri

AdWords API Sample error handling

2010-02-18 Thread srividya
v2009 seems a pain for error handling as well as the reasons
Can we have some sample code on how this is done?

-- 
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-...@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.



AdWords API Getting the problem with email header

2010-02-18 Thread ranjit singh
Hi Eric,

I am using the following class

import com.google.api.adwords.v13.AccountInterface;
import com.google.api.adwords.v13.AccountServiceLocator;

import org.apache.axis.client.Stub;

/**
 * This code sample retrieves the login email address for each account
managed
 * by the effective user.
 */
public class GetClientAccounts {
  // Provide AdWords login information.
private static final String email = "ranjit.adelem...@gmail.com";
  private static final String password = "ranjit123";
 //private static final String clientEmail =
"client_1+ranjit.adelem...@gmail.com";
  private static final String useragent =
  "my application";
  private static final String developerToken =
"ranjit.adelem...@gmail.com++usd";

  private static final String namespace =
  "https://sandbox.google.com/api/adwords/v12";;

  public static void main(String[] args) {
try {
  // Set up service connection.
  AccountInterface service =
  new AccountServiceLocator().getAccountService();

  // Define SOAP headers.
  ((Stub) service).setHeader(namespace, "email", email);
  ((Stub) service).setHeader(namespace, "password", password);
  ((Stub) service).setHeader(namespace, "useragent", useragent);
  ((Stub) service).setHeader(namespace, "developerToken",
developerToken);
//  ((Stub) service).setHeader(
  //namespace, "applicationToken", applicationToken);

  // BEGIN AccountService.getClientAccounts: v13
  // Get client accounts.
  String[] loginEmails = service.getClientAccounts();
  // END AccountService.getClientAccounts: v13

  // Display login emails.
  if (loginEmails != null) {
for (String login : loginEmails) {
  System.out.println("Login email is \"" + login + "\".");
}
  }
} catch(Exception e) {
  e.printStackTrace();
}
  }
}







but i am getting the following error :

{https://adwords.google.com/api/adwords/v13}fault:
 1
 The request did not contain a header named 'email'.


The request did not contain a header named 'email'.
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:
39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:
27)

-- 
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-...@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.



AdWords API retrieving response headers in python client

2010-02-18 Thread tomek r
In python client, how can I get responseTime and requestId from
response headers? There seems to be no method that would return it
(there is GetOpertions and GetUnits though... )

-- 
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-...@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.



AdWords API category booking in v2009

2010-02-18 Thread rp
Hi,

How to book placement categories like 'category::Business' using
v200909 api ?

Radosław Pociecha

-- 
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-...@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.



AdWords API need help urgently

2010-02-18 Thread ranjit singh

I have unsubscribed from API Google group forum but still i am getting
the following exception :

 faultDetail:
{https://adwords.google.com/api/adwords/v13}fault:
 1
 The request did not contain a header named 'email'.



I am making request as follows :
private static final String email = "ranjit.adelem...@gmail.com";
  private static final String password = "ranjit123";
 //private static final String clientEmail =
"client_1+ranjit.adelem...@gmail.com";
  private static final String useragent =
  "my application";
  private static final String developerToken =
"ranjit.adelem...@gmail.com++usd";

  private static final String namespace =
  "https://adwords.google.com/api/adwords/v11";;



Need help urgently ...

-- 
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-...@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.



AdWords API Re: Can't update Keyword MatchType

2010-02-18 Thread API Freak
Hi Daniel,

we are experiencing same problems. We can not update any keyword
status.

Would be great if anybody of the API-Team would give us some advice or
fix the problem.

Regards

Marcel



On Feb 17, 1:31 pm, Daniel  wrote:
> Hi there!
>
> I can't update the MatchType for my Keywords.
>
> For example, i try to update one ExactMatch Keyword to PhraseMatch and
> also the KeywordCPC.
> I get no errors while uploading and also the CPC has changed
> correctly, just the MatchType in the AdGroupCriterionReturnValue
> is still EXACT.
>
> My code looks similiar to this:
>
> com.google.api.adwords.v200909.cm.Keyword lGoogleKeyword = new
> com.google.api.adwords.v200909.cm.Keyword();
> lGoogleKeyword.setId(12345);
> lGoogleKeyword.setMatchType(KeywordMatchType.BROAD);
>
> BiddableAdGroupCriterion lBiddableAdGroupCriterion = new
> BiddableAdGroupCriterion();
> lBiddableAdGroupCriterion.setAdGroupId(12345);
> lBiddableAdGroupCriterion.setCriterion(lGoogleKeyword);
>
> AdGroupCriterionOperation lOperation = new
> AdGroupCriterionOperation();
> lOperation.setOperand(lBiddableAdGroupCriterion);
> lOperation.setOperator(Operator.SET);
>
> lService.mutate(new AdGroupCriterionOperation[] {lOperation});
>
> Hope you guys can help me to fix that problem.
>
> Regards,
> Daniel

-- 
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-...@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.



AdWords API Need help on google adwords api

2010-02-18 Thread ranjit singh
Hi

I have unsubscribed from API Google group forum but still i am getting
the following exception :

 faultDetail:
{https://adwords.google.com/api/adwords/v13}fault:
 1
 The request did not contain a header named 'email'.



I am making request as follows :
private static final String email = "ranjit.adelem...@gmail.com";
  private static final String password = "ranjit123";
 //private static final String clientEmail =
"client_1+ranjit.adelem...@gmail.com";
  private static final String useragent =
  "my application";
  private static final String developerToken =
"ranjit.adelem...@gmail.com++usd";

  private static final String namespace =
  "https://adwords.google.com/api/adwords/v11";;

-- 
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-...@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.



AdWords API v200909 API data vs. Web-Keywordtool data

2010-02-18 Thread adwords-api-dev
Hi AdWords-Team and Forum-Readers,

there are some issues i'm encountering with the consistence between
data i'm getting from embedded Google-AdWords Tools and the data
i'm retrieving from Google's recent API for Keyword-Research.

I'm using a Java/AXIS2-Environment to send and receive SOAP messages.
For communication i'm using code made out of snippets in the examples-
part
of Google Code.

I've read in hints and forum-posts that the sources for Google data
are
different ones for APIs then they are for each Keyword Tool.
Even the algorythms for calculating the numbers could be others.

Is this true for v200909 vs. Keywordtools?
Or could Java be depracted for using the new Data-Objects,
so i have to switch from Java to f.e. PHP?

Greetings,
Sebastian

-- 
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-...@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.



AdWords API Best way to modify MAXCPC of a keyword PHP

2010-02-18 Thread dadonk
I'm new to the AdWords API and would like to be pointed in the right
direction.

I'm using the PHP client library v2009.

I need to retrieve all the keywords for a particular campaign check
their maxcpc and adjust it.

What is the best way to do that? Are their any scripts already written
that would give me a head start?

I noticed that most of the API calls I thought I would use are now
deprecated and just want to use the correct and most up to date API
calls.

-- 
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-...@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.



AdWords API Re: trace extension error

2010-02-18 Thread David
This is tricky. If you change anything in your code you need to take
out the   code, build and I think run your
app, so VS creates the partial classes and then you can put it back
in. Something to do with the way VS and the framework creates
classes.

On Feb 18, 1:36 pm, David  wrote:
> OK so able to finally solve one of my own problems. If you what to
> you .net lib and just want the code in App_Code rather than compiling
> a .dll you have to change a the app.config or the web.config which
> ever you use. You have to take away the overall assembly name and
> replace it with app_code so if you want tracing 1st enable it and then
> have your config section looking like:
>
> 
>             
>                 
>                  type="com.google.api.adwords.lib.ApiUnitsExtension, App_Code"
> priority="1" group="0"/>
>             
> 
>
> You also need to get rid of mentions of google-api-adwords-dotnet as
> that's the assembly name and if your using app_code you won't have
> this.
>
> Best of luck.
>
> On Feb 18, 1:21 pm, David  wrote:
>
> > "The value of the property 'type' cannot be parsed. The error is:
> > Could not load type 'com.google.api.adwords.lib.TraceExtension' from
> > assembly 'System.Web.Services, Version=2.0.0.0, Culture=neutral,
> > PublicKeyToken=b03f5f7f11d50a3a'."
>
> > I'm using v7 of the .net lib, but also got this yesterday with v6 of
> > the lib when I tried to get some logs going to debug another problem.
>
> > I can see the traceextension file and its namespace in the lib folder
> > and everything compiles fine but for some reason .net framework seems
> > to be looking for it in System.Web.Services when it is actually in my
> > app_code folder. I'm not using a .dll assembly myself. The solution
> > file provided does not seem to open with Visual web developer 2008.
>
> > I also get an additinoal error which I can see if I launch through
> > built in iis server but not in VS its:
>
> > The value of the property 'type' cannot be parsed. The error is: Could
> > not load type 'com.google.api.adwords.lib.ApiUnitsExtension' from
> > assembly 'System.Web.Services, Version=2.0.0.0, Culture=neutral,
> > PublicKeyToken=b03f5f7f11d50a3a'.
>
> > Again the framework seems to be searching in the wrong assembly, how
> > can I fix?
>
> > Can anyone help me with this?
>
> > Transition to v2009 has not been smooth.
>
> > thanks in advance.
>
> > Dave.

-- 
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-...@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.



AdWords API Re: trace extension error

2010-02-18 Thread David
OK so able to finally solve one of my own problems. If you what to
you .net lib and just want the code in App_Code rather than compiling
a .dll you have to change a the app.config or the web.config which
ever you use. You have to take away the overall assembly name and
replace it with app_code so if you want tracing 1st enable it and then
have your config section looking like:








You also need to get rid of mentions of google-api-adwords-dotnet as
that's the assembly name and if your using app_code you won't have
this.

Best of luck.

On Feb 18, 1:21 pm, David  wrote:
> "The value of the property 'type' cannot be parsed. The error is:
> Could not load type 'com.google.api.adwords.lib.TraceExtension' from
> assembly 'System.Web.Services, Version=2.0.0.0, Culture=neutral,
> PublicKeyToken=b03f5f7f11d50a3a'."
>
> I'm using v7 of the .net lib, but also got this yesterday with v6 of
> the lib when I tried to get some logs going to debug another problem.
>
> I can see the traceextension file and its namespace in the lib folder
> and everything compiles fine but for some reason .net framework seems
> to be looking for it in System.Web.Services when it is actually in my
> app_code folder. I'm not using a .dll assembly myself. The solution
> file provided does not seem to open with Visual web developer 2008.
>
> I also get an additinoal error which I can see if I launch through
> built in iis server but not in VS its:
>
> The value of the property 'type' cannot be parsed. The error is: Could
> not load type 'com.google.api.adwords.lib.ApiUnitsExtension' from
> assembly 'System.Web.Services, Version=2.0.0.0, Culture=neutral,
> PublicKeyToken=b03f5f7f11d50a3a'.
>
> Again the framework seems to be searching in the wrong assembly, how
> can I fix?
>
> Can anyone help me with this?
>
> Transition to v2009 has not been smooth.
>
> thanks in advance.
>
> Dave.

-- 
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-...@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.



AdWords API trace extension error

2010-02-18 Thread David
"The value of the property 'type' cannot be parsed. The error is:
Could not load type 'com.google.api.adwords.lib.TraceExtension' from
assembly 'System.Web.Services, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a'."

I'm using v7 of the .net lib, but also got this yesterday with v6 of
the lib when I tried to get some logs going to debug another problem.

I can see the traceextension file and its namespace in the lib folder
and everything compiles fine but for some reason .net framework seems
to be looking for it in System.Web.Services when it is actually in my
app_code folder. I'm not using a .dll assembly myself. The solution
file provided does not seem to open with Visual web developer 2008.

I also get an additinoal error which I can see if I launch through
built in iis server but not in VS its:

The value of the property 'type' cannot be parsed. The error is: Could
not load type 'com.google.api.adwords.lib.ApiUnitsExtension' from
assembly 'System.Web.Services, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a'.

Again the framework seems to be searching in the wrong assembly, how
can I fix?

Can anyone help me with this?

Transition to v2009 has not been smooth.

thanks in advance.

Dave.

-- 
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-...@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.



AdWords API Re: AdGroupCriterionSelector#setUserStatuses does not work.

2010-02-18 Thread ryo
Hi Eric,

When this issue is fixed, we want to know that infomation.
How can we know that?

The following issues list?
http://code.google.com/p/google-api-adwords-java/issues/list

On 2月18日, 午前3:13, AdWords API Advisor 
wrote:
> Hi Almas,
>
> This is a known issue, that the AdGroupAdService doesn't return
> DISABLED ads.  Unfortunately I don't have a timeline for when a fix or
> workaround will be made available.
>
> Best,
> - Eric
>
> On Feb 16, 1:31 am, Almas Kanjiyani  wrote:
>
> > Hi Eric,
>
> > I had a question in mind. For AdGroupAd's whose status is Disabled, I
> > am not able to retrieve it from Google with the get() API call.
>
> > How can we get the AdGroupAds from Google whose Status="Disabled"?
>
> > Thanks,
> > Almas
>
> > On Feb 9, 10:17 pm, AdWords API Advisor 
> > wrote:
>
> > > Hi,
>
> > > Unfortunately this behavior hasn't been clearly documented yet, and I
> > > apologize for any confusion.  AdGroupAds (Creatives) do not behave the
> > > same, as even an ad with zero impressions will remain with the deleted
> > > status.
>
> > > Best,
> > > - Eric
>
> > > On Feb 9, 4:53 am, ryo  wrote:
>
> > > > Oh, as you say, the keyword has never had an impression.
>
> > > > Where this specification is published?
> > > > I searched AdWords v2009 and google forum, however, I can't find...
>
> > > > And, the Creative is the same specification?
>
> > > > On 2月9日, 午前1:29, AdWords API Advisor 
> > > > wrote:
>
> > > > > Hi,
>
> > > > > I just ran some tests and the selector appears to be working
> > > > > correctly.  Please keep in mind that deleting a keyword can have two
> > > > > different outcomes:
>
> > > > > - If the keyword has never had an impression then it will be
> > > > > completely removed from the ad group, and it will not be returned with
> > > > > any get() requests.
> > > > > - If the keyword has had some impressions then it will remain in the
> > > > > ad group with the DELETED status.
>
> > > > > It could be that your ad group just doesn't have any keywords in this
> > > > > DELETED status.  You can verify this in the AdWords web interface.
>
> > > > > Best,
> > > > > - Eric Koleda, AdWords API Team
>
> > > > > On Feb 8, 6:29 am, ryo  wrote:
>
> > > > > > Hi.
>
> > > > > > I use Java v200909.
>
> > > > > > I have a question about
> > > > > >AdGroupCriterionSelector#setUserStatuses(Userstatus[] userStatuses).
> > > > > > Userstatus.ACTIVE and Userstatus.PAUSED are well-functioning.
> > > > > > However, Userstatus.DELETED is NOT well-functioning, I think.
> > > > > > For example, the following code doesn't work.
>
> > > > > > AdGroupCriterionServiceInterface adGroupCriterionService
> > > > > >         =
> > > > > > user.getService(AdWordsService.V200909.ADGROUP_CRITERION_SERVICE);
> > > > > >AdGroupCriterionSelectorselector = newAdGroupCriterionSelector();
> > > > > > selector.setIdFilters(new AdGroupCriterionIdFilter[]{
> > > > > >         new AdGroupCriterionIdFilter(12345L, 67890L, null)});
>
> > > > > > selector.setCriterionUse(CriterionUse.BIDDABLE);
> > > > > > selector.setUserStatuses(new UserStatus[]{UserStatus.DELETED});
>
> > > > > > adGroupCriterionService.get(selector).getEntries();
>
> > > > > > A part of soap request is the following.
>
> > > > > >     
> > > > > >        > > > > > xmlns="https://adwords.google.com/api/adwords/cm/v200909";>
> > > > > >         
> > > > > >           
> > > > > >             12345
> > > > > >             67890
> > > > > >           
> > > > > >           BIDDABLE
> > > > > >           DELETED
> > > > > >         
> > > > > >       
> > > > > >     - Hide quoted text -
>
> > > - Show quoted text -

-- 
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-...@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.



AdWords API Re: All placed keywords of particular website

2010-02-18 Thread netimpact
Thank you Eric for your reply.

Is there a possibility to create reports, which display changes (like
activated/deactivated, cpc) and fetch the reports using the API, or
push a csv- or  json file to a fileserver (any protocol)?


regards,
NI


On Feb 18, 12:05 am, AdWords API Advisor
 wrote:
> Hi,
>
> Unfortunately there is no way in the API to request only changed
> keywords.
>
> Best,
> - Eric Koleda, AdWords API Team
>
> On Feb 17, 10:06 am, netimpact  wrote:
>
>
>
> > The code bellow is a part or cut together used the examples of php
> > client library.
> > Works fine, but what to do if I have 100.000 keywords and I want o
> > keep my database up to date?
>
> > To reduce costs I would like to retrieve changed keywords only instead
> > of fetching all 100.000 keywords every hour.
> > (i.e CPC of a keyword has changed, keyword is activated/deactivated,
> > campaign activated/deactivated)
>
> > Any Idea? Thanks,
> > NI
>
> >         $user = new AdWordsUser();
>
> >         // Log SOAP XML request and response.
> >         $user->LogDefaults();
>
> >         ## Get Campaings
>
> >         // Get the CampaignService.
> >         $campaignService = $user->GetCampaignService('v200909');
>
> >         // Create selector.
> >         $selector = new CampaignSelector();
> >         $selector->campaignStatuses = array('ACTIVE');
>
> >         // Get campaigns.
> >         $page = $campaignService->get($selector);
>
> >         foreach ($page->entries as $campaign) {
> >                 //$this->assertTrue( is_numeric($campaign->id));
> >                 print_r("\ncampaign id: " . $campaign->id . ' name: ' . 
> > $campaign->name );
>
> >         }
> >         print "\n\n";
>
> >         ## Get AdGroups
>
> >         //first Campaign
> >         $campaign = $page->entries[0];
>
> >         $adGroupService = $user->GetAdGroupService('v200909');
>
> >         // Create selector.
> >         $selector = new AdGroupSelector();
> >         // $selector->campaignId = $campaign->id;
>
> >         // Get groups.
> >         $page = $adGroupService->get($selector);
>
> >         if (isset($page->entries)) {
> >                 foreach ($page->entries as $adGroup) {
> >                         // $this->assertTrue( is_numeric($adGroup->id));
> >                         print_r("\ngroup id: " . $adGroup->id . ' name: ' . 
> > $adGroup->name);
>
> >                 }
> >         }
> >         print "\n\n";
>
> >         // ## Get Keywords
>
> >         // first AdGroup
> >         $adGroup = $page->entries[1];
>
> >         // Get the AdGroupCriterionService.
> >     $adGroupCriteriaService = $user-
>
> > >GetAdGroupCriterionService('v200909');
>
> >         // Create selector.
> >         $selector = new AdGroupCriterionSelector();
> >         $selector->userStatuses = array('ACTIVE');
>
> >         // Create id filter.
> >         $idFilter = new AdGroupCriterionIdFilter();
> >         $idFilter->adGroupId = $adGroup->id;
> >         $idFilter->campaignId = $campaign->id;
> >         $selector->idFilters = array($idFilter);
>
> >         // Get all active ad group criteria.
> >         $page = $adGroupCriteriaService->get($selector);
>
> > # Id and CPC
> > # $adGroupCriterion->criterion->id
> > # $adGroupCriterion->stats->averageCpc

-- 
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-...@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.



AdWords API OperatorError.OPERATOR_NOT_SUPPORTED

2010-02-18 Thread freesystems.t...@gmail.com
Hi,

I am integrating the new version of google adwords v2009.
here remove campaign is not working it's giving error

SoapFault Object ( [message:protected] =>
[OperatorError.OPERATOR_NOT_SUPPORTED @ operations[0],
RequiredError.REQUIRED @ operations[0].operator]

code is like this

// Get the CampaignService.
$campaignService = $user->GetCampaignService('v200909');

$campaign = new Campaign();
$campaign->id = 66995;

// Create selector.
$operation = new CampaignOperation();
$operation->operand = $campaign;
$operation->operator = 'DELETE';

// Get all campaigns.
$page = $campaignService->mutate($operation);

Hoping for positive response from you

reply me ASAP.

Thanks
Raju Bishnoi

-- 
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-...@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.



AdWords API Confusion about Stats documentation

2010-02-18 Thread Jaap
In the documentation about the 200909 Stats type (http://
code.google.com/apis/adwords/v2009/docs/reference/
AdGroupAdService.Stats.html) it is documented that the field
averageCpc is the average cost per conversion. As I have always
associated Cpc with cost-per-click, I was wondering if this was
correct as there is also a costPerConversion field?

-- 
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-...@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.



AdWords API Adgroup Ad ID Invalid

2010-02-18 Thread Mike-Indiana
In PHP... I tried everything. The ID is there and there are no quotes.
I am able to create an adgroup text ad, but I cannot set the status to
PAUSE or DISABLED. Any direction would be helpful.

Error:

SoapFault Object ( [message:protected] => [EntityNotFound.INVALID_ID @
operations[0].operand.ad.id] [string:private] => [code:protected] => 0
[file:protected] =>

-- 
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-...@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.



AdWords API Re: AFTER_MAXIMUM_ALLOWABLE_DATE Error

2010-02-18 Thread Daniel
Hi Eric,

the Account is in GMT +1 Zone.

Regards,
Daniel

On 18 Feb., 00:29, AdWords API Advisor 
wrote:
> Hi Daniel,
>
> I'm able to set the end date to 20371230 successfully.  What time zone
> is this account in?
>
> Best,
> - Eric Koleda, AdWords API Team
>
> On Feb 16, 12:39 pm, Daniel  wrote:
>
>
>
> > HI there!
>
> > I try to update one of my Campaigns with the new API V200909.
>
> > When i set the Campaign EndDate i get these error:
> > faultDetail:
> >         {https://adwords.google.com/api/adwords/cm/v200909}
> > ApiExceptionFault:[CampaignError.AFTER_MAXIMUM_ALLOWABLE_DATE
> > @ operations[0].operand.endDate] > message>ApiException > ApplicationException.Type>http://www.w3.org/2001/
> > XMLSchema-instance"
> > xsi:type="CampaignError">operations[0].operand.endDate > fieldPath>CampaignError > ApiError.Type>AFTER_MAXIMUM_ALLOWABLE_DATE
>
> > The given EndDate Sring is in the same Format (MMdd) as i get it
> > by downloading the Campaigns via the CampaignService. in this case,
> > the End Date String is: "20371230"
>
> > Hope somenody can help me with this :)

-- 
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-...@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.