AdWords API Re: Getting the problem with email header

2010-02-19 Thread ranjit singh
Hi Eric ,

If you could help me because I am really stuck with this issue

On Feb 18, 3:33 pm, ranjit singh ranjit.adelem...@gmail.com wrote:
 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 loginemailaddress for each account
 managed
  * by the effective user.
  */
 public class GetClientAccounts {
   // Provide AdWords login information.
         private static final Stringemail= 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(Loginemailis \ + login + \.);
         }
       }
     } catch(Exception e) {
       e.printStackTrace();
     }
   }

 }

 but i am getting the following error :

 {https://adwords.google.com/api/adwords/v13}fault:
      ns1:code1/ns1:code
      ns1:messageThe request did not contain aheadernamed 'email'./
 ns1:message

 The request did not contain aheadernamed 'email'.
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
 Method)
         at
 sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAcce 
 ssorImpl.java:
 39)
         at
 sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstru 
 ctorAccessorImpl.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 Problems grabbing image data for an image ad.

2010-02-19 Thread ADM
First of all, I am using the .NET client libraries. My main issue is
that I am having problems getting a populated data field for the image
of an image ad. I am trying to use the API to make changes to ads and
the only way to do that is to create a new ad and delete the old one.
When I try to make a carbon-copy (but with a couple of changes) of the
image ad that currently resides in AdWords and then add the image ad a
'content null' exception is thrown stating that the data field of the
image of the new image ad is null. After trapping this exception in-
the-wild with a debugger I find that the image data was never actually
grabbed during the get call to the AdGroupAdService.

Any suggestions as to why the image data is never actually grabbed in
the first place?
Is it even possible to grab the image data through the API? If so,
how?

-- 
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 How to get additional keywords to consider using the TargetingIdeaService?

2010-02-19 Thread web.dev
Hi guys,

I'm interested in getting the additional keywords to consider as
provided by the Google AdWords Keyword Tool. The Tool distinguishes
between:
* Keywords related to term(s) entered
* Additional keywords to consider

How can I distinduish between does two lists using the
TargetingIdeaService?


Best regards,
Dian

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



Re: AdWords API Google::Adwords perl module update for v2009?

2010-02-19 Thread Rohan Almeida


Hi,

I'm the author of the Google::Adwords Perl module which is 
currently on CPAN.


I thought I'll make it clear for now, that I have no plans of 
upgrading this module for the v2009 API. Google provides a Perl 
library for the new API so that would be the best route. Besides 
the changes are numerous to perform a 'upgrade' and it would be 
better to just start afresh which is a huge task in itself.


All the best in upgrading your Perl code for the new v2009 API. 
I'm available on this forum and I look forward to help in any way 
if possible.


--
Rohan


Grant wrote:

Does anyone know if the Google::Adwords perl module will be updated
for v2009?  I can't seem to get ahold of the author.



--
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: Memory Leak in Java Client Library from ServiceAccountantManager.serviceUsers

2010-02-19 Thread Peter Niederwieser
We had the same problem, always had to patch the library. But the
latest release (7.0) claims to *really* fix this issue.

Cheers,
Peter

On Feb 18, 10:11 pm, joel joel.patt...@gmail.com wrote:
 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: Memory Leak in Java Client Library from ServiceAccountantManager.serviceUsers

2010-02-19 Thread joel
Oh man I'm 2 days late. I didn't see that a new version was just
released. I'll try that one out.
Thanks!

On Feb 19, 10:29 am, Peter Niederwieser pnied...@gmail.com wrote:
 We had the same problem, always had to patch the library. But the
 latest release (7.0) claims to *really* fix this issue.

 Cheers,
 Peter

 On Feb 18, 10:11 pm, joel joel.patt...@gmail.com wrote:

  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: google-api-adwords-perl: No Make or Build file detected

2010-02-19 Thread Grant
 A Gentoo dev is trying to put together ebuilds for google-api-adwords-perland 
 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

This is apparently fixed now so there is a Gentoo ebuild for google-
api-adwords-perl ready to go:

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

- Grant

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



Re: AdWords API Google::Adwords perl module update for v2009?

2010-02-19 Thread Grant
 Hi,

 I'm the author of the Google::AdwordsPerlmodule which is
 currently on CPAN.

 I thought I'll make it clear for now, that I have no plans of
 upgrading this module for the v2009 API. Google provides aPerl
 library for the new API so that would be the best route. Besides
 the changes are numerous to perform a 'upgrade' and it would be
 better to just start afresh which is a huge task in itself.

 All the best in upgrading yourPerlcode for the new v2009 API.
 I'm available on this forum and I look forward to help in any way
 if possible.

 --
 Rohan

Thank you for writing Rohan.  There is a Gentoo ebuild for Google's
perl library now:

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

- Grant


  Does anyone know if the Google::Adwordsperlmodule will be updated
  for v2009?  I can't seem to get ahold of the author.

-- 
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: Memory Leak in Java Client Library from ServiceAccountantManager.serviceUsers

2010-02-19 Thread joel
This issue is not fixed in version 7, but it is less severe. Version 7
simply introduced a new Map and flag to optionally retain data in the
new map. It did not address the memory leak with the serviceUsers
map. It is less severe now though because the map is keyed by the
hashCode instead of the full Service object. I still don't see why
this map is required though, it's never read in any of the breakpoints
that I see. We're not caching and re-using the Service objects because
our applications operate in a multi-threaded environment and I don't
think the ServiceAccountantManager accounts for this.

So, I'd still like to see this issue addressed. In the meantime our
workaround is call the clear method every time we request a service.

Thanks,

Joel


On Feb 19, 10:54 am, joel joel.patt...@gmail.com wrote:
 Oh man I'm 2 days late. I didn't see that a new version was just
 released. I'll try that one out.
 Thanks!

 On Feb 19, 10:29 am, Peter Niederwieser pnied...@gmail.com wrote:

  We had the same problem, always had to patch the library. But the
  latest release (7.0) claims to *really* fix this issue.

  Cheers,
  Peter

  On Feb 18, 10:11 pm, joel joel.patt...@gmail.com wrote:

   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: v13 CriterionService - v200909 AdGroupCriterionService

2010-02-19 Thread John Bliss
OK.  Based on lack of response, I guess that wasn't a good
question.  Let's try it this way instead: can you reply with complete
XML (or URL to complete XML) of a sample call to
AdGroupCriterionService.get(AdGroupCriterionSelector)?  Just the
complete XML.  (I don't need any PHP, .NET, etc code.)  Thanks!

On Feb 18, 4:49 pm, John Bliss bliss.j...@gmail.com wrote:
 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 Inconsistent error behavior on upload?

2010-02-19 Thread Peter Niederwieser
I'm testing the error behavior when uploading new campaigns/ad groups/
text ads/keywords, and it seems it's not consistent. When I upload two
campaigns or ad groups in one operation, and one of the campaigns/ad
groups is invalid, both of them aren't added. However, when I do the
same for text ads or keywords, the valid ad/keyword IS added. Is this
the expected behavior? v200909, Java client library 6.4.0.

Cheers,
Peter

-- 
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 Campaign targeting SET?

2010-02-19 Thread doug s
I am working on desiging the migration my v13 code, and am thinking
that I would really only need to use ADD and REMOVE... I just wanted
to check if I am missing something. What would SET be needed for?

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 Keyword and ad fails to add under adGroup

2010-02-19 Thread devppcmodule Dev
Hi,

in v200909 version not able to add the keywords and ads under adGroup.

SoapFault Object ( [message:protected] = [EntityNotFound.INVALID_ID @
operations[0].operand.adGroupId; trigger:'2147483647']
[string:private]

Giving this error but i am passing correct adgroupid.

Array ( [0] = AdGroupCriterionOperation Object ( [operand] =
BiddableAdGroupCriterion Object ( [userStatus] =
[systemServingStatus] = [approvalStatus] = [destinationUrl] =
[bids] = [firstPageCpc] = [qualityInfo] = [stats] = [adGroupId] =
3060268937 [criterion] = Keyword Object ( [text] = mars cruise 12
[matchType] = EXACT [id] = [CriterionType] =
[_parameterMap:private] = Array ( [Criterion.Type] =
CriterionType ) ) [AdGroupCriterionType] = [_parameterMap:private] =
Array ( [AdGroupCriterion.Type] = AdGroupCriterionType ) )
[exemptionRequests] = [operator] = ADD [OperationType] =
[_parameterMap:private] = Array ( [Operation.Type] =
OperationType ) ) )

i am passing like this

plz replay me what is wrong with array.

-- 
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 Sample code all ads

2010-02-19 Thread Alexis
Hi,

I'm looking for a sample code to get all adgroups and ads by campaign
in vb.net.

Do you know where can i found something like that?

Regards.

-- 
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 Bulk Mutate Ad Params

2010-02-19 Thread Andy
Hi,
What i am trying to do, is to set every keyword within an adgroup to
have the same two adparamaters..

The idea is to update adverts with latest prices.

I can get the standard single mutate to work, however, when i try to
get the bulk mutate to run i get the error:
Unable to create an instance of
com.google.ads.api.services.job.bulkmutate.v200909.jaxbgen.Operation

I have tried using the example that comes with the php api lib, and
making a few changes to the function below.
Pretty much the rest of the example script remains the same...

Any help on this would be greatly received. :)




Here is a my example function.. i am using the same keyword ID and
only running one as a test..

 Function to create the adparam
function CreateAdGroupCriterionOperations() {
  // Create keyword.


  $adGroupId = '3060196938';
  $keywordId = '11863432';

  // Create ad parameters.
  $adParam1 = new AdParam($adGroupId, $keywordId, '100', 1);
  $adParam2 = new AdParam($adGroupId, $keywordId, '$40', 2);

  // Create operations.
  $adParamOperation1 = new AdParamOperation();
  $adParamOperation1-operand = $adParam1;
  $adParamOperation1-operator = 'SET';

  $adParamOperation2 = new AdParamOperation();
  $adParamOperation2-operand = $adParam2;
  $adParamOperation2-operator = 'SET';

  $operations = array($adParamOperation1, $adParamOperation2);

  return array($operations);
}
///


-- 
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 All keywords above a specific click count

2010-02-19 Thread Tyler
I need to modify attributes of all keywords in an account that have 10
clicks or more. There are several hundred thousand keywords in the
account.

Is there a more efficient way to query for all of those keywords aside
from looping through every keyword in every adgroup in every campaign
and checking click count?

-- 
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: OperatorError.OPERATOR_NOT_SUPPORTED

2010-02-19 Thread AdWords API Advisor
Hi Raju,

The operator is named REMOVE, not DELETE.  However, for campaigns
you can't use this operator.  Instead you must update the status of
the campaign to DELETED using the SET operator.

  
http://code.google.com/apis/adwords/v2009/docs/reference/CampaignService.Campaign.html#status

Best,
- Eric Koleda, AdWords API Team

On Feb 18, 6:03 am, freesystems.t...@gmail.com adwo...@kutenda.com
wrote:
 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 Re: Displaying updated adgroup CPC

2010-02-19 Thread Mike-Indiana
Hi Eric,

Thanks for the reply. I'm running into this error:
Catchable fatal error: Object of class Bid could not be converted to
string



On Feb 18, 9:37 am, AdWords API Advisor adwordsapiadvi...@google.com
wrote:
 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 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: Adgroup Ad ID Invalid

2010-02-19 Thread Mike-Indiana
Sure thing:


[Feb 19 2010 16:12:01.00 - INFO] POST /api/adwords/cm/v200909/
AdGroupAdService HTTP/1.1

Host: adwords.google.com

Connection: Keep-Alive

User-Agent: PHP-SOAP/5.2.12

Content-Type: text/xml; charset=utf-8

SOAPAction: 

Content-Length: 1162



?xml version=1.0 encoding=UTF-8?
SOAP-ENV:Envelope xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/
envelope/ xmlns:ns1=https://adwords.google.com/api/adwords/cm/
v200909 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  SOAP-ENV:Header
ns1:RequestHeader xsi:type=ns1:RequestHeader
  ns1:applicationToken**REMOVED**/ns1:applicationToken
  ns1:authToken*/ns1:authToken
  ns1:clientEmail**REMOVED**/ns1:clientEmail
  ns1:developerToken**REMOVED**/ns1:developerToken
  ns1:userAgentPHP v5.2.12 - AdWords API PHP Client Library -
v1.2.2 - Finance Globe/ns1:userAgent
/ns1:RequestHeader
  /SOAP-ENV:Header
  SOAP-ENV:Body
ns1:mutate
  ns1:operations
ns1:operatorSET/ns1:operator
ns1:operand
  ns1:adGroupId463586824/ns1:adGroupId
  ns1:ad
ns1:id2147483647/ns1:id
  /ns1:ad
  ns1:statusPAUSED/ns1:status
/ns1:operand
  /ns1:operations
/ns1:mutate
  /SOAP-ENV:Body
/SOAP-ENV:Envelope


HTTP/1.1 500 Internal Server Error

Content-Type: text/xml; charset=UTF-8

Transfer-Encoding: chunked

Date: Fri, 19 Feb 2010 22:12:02 GMT

Expires: Fri, 19 Feb 2010 22:12:02 GMT

Cache-Control: private, max-age=0

X-Content-Type-Options: nosniff

X-Frame-Options: SAMEORIGIN

Server: GFE/2.0

X-XSS-Protection: 0


?xml version=1.0?
soap:Envelope xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/;
  soap:Header
ResponseHeader xmlns=https://adwords.google.com/api/adwords/cm/
v200909
  requestIda47c7dd0af814a17b4a94a8731f20eb0/requestId
  operations1/operations
  responseTime1404/responseTime
  units1/units
/ResponseHeader
  /soap:Header
  soap:Body
soap:Fault
  faultcodesoap:Server/faultcode
  faultstring[EntityNotFound.INVALID_ID @
operations[0].operand.ad.id]/faultstring
  detail
ApiExceptionFault xmlns=https://adwords.google.com/api/
adwords/cm/v200909
  message[EntityNotFound.INVALID_ID @
operations[0].operand.ad.id]/message
  ApplicationException.TypeApiException/
ApplicationException.Type
  errors xmlns:xsi=http://www.w3.org/2001/XMLSchema-
instance xsi:type=EntityNotFound
fieldPathoperations[0].operand.ad.id/fieldPath
trigger/
ApiError.TypeEntityNotFound/ApiError.Type
reasonINVALID_ID/reason
  /errors
/ApiExceptionFault
  /detail
/soap:Fault
  /soap:Body
/soap:Envelope



On Feb 18, 10:12 am, AdWords API Advisor
adwordsapiadvi...@google.com wrote:
 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 michaelyanda+...@gmail.com 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: trace extension error

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

I talked to the maintainer of the AdWords API .NET client library, and
his recommendation was not to copy files from the library into your
project, but rather add the client library project to your solution
and reference it in your web application.  This should avoid some of
the problems you are running in to.

Best,
- Eric Koleda, AdWords API Team

On Feb 18, 8:54 am, David cont...@akamarketing.com wrote:
 This is tricky. If you change anything in your code you need to take
 out the webservices /webservices 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 cont...@akamarketing.com 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:

  webServices
              soapExtensionTypes
                  add type=com.google.api.adwords.lib.TraceExtension,
  App_Code priority=1 group=0/
                  add
  type=com.google.api.adwords.lib.ApiUnitsExtension, App_Code
  priority=1 group=0/
              /soapExtensionTypes
  /webServices

  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 cont...@akamarketing.com 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: Best way to modify MAXCPC of a keyword PHP

2010-02-19 Thread AdWords API Advisor
Hi,

The AdWords API PHP client library comes with two examples that will
help.  The first is GetAllAdGroupCriteria.php:

  
http://code.google.com/p/google-api-adwords-php/source/browse/trunk/examples/v200909/GetAllAdGroupCriteria.php

This example gets the criteria in an ad group, but you can change the
way the AdGroupCriterionIdFilter is created to filter on campaign ID
instead.

The other example is UpdateAdGroupCriterion.php:

  
http://code.google.com/p/google-api-adwords-php/source/browse/trunk/examples/v200909/UpdateAdGroupCriterion.php

Best,
- Eric Koleda, AdWords API Team

On Feb 17, 9:57 pm, dadonk regis...@tylerqueen.com wrote:
 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: All keywords above a specific click count

2010-02-19 Thread Peer Jakobsen (AdWords API Guru)
There is no way to filter on stats but you could try to run an account
structure report.

Cheers

-- 
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: v200909 API data vs. Web-Keywordtool data

2010-02-19 Thread AdWords API Advisor
Hi Sebastian,

The v200909 AdWords API is still build on SOAP and can still be used
in Java.  The v200909 TargetingIdeaService does use a different
backend than the old KeywordToolService, so expect to see different
results.

Best,
- Eric Koleda, AdWords API Team

On Feb 18, 3:54 am, adwords-api-dev google@avenit.de wrote:
 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 Re: need help urgently

2010-02-19 Thread AdWords API Advisor
Hi,

Please see my response in your other thread:

  
http://groups.google.com/group/adwords-api/browse_thread/thread/ebe9f00d79c6a5c5/

Best,
- Eric Koleda, AdWords API Team

On Feb 18, 4:25 am, ranjit singh ranjit.adelem...@gmail.com wrote:
 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:
      ns1:code1/ns1:code
      ns1:messageThe request did not contain a header named 'email'./
 ns1:message

 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: category booking in v2009

2010-02-19 Thread AdWords API Advisor
Hi Rados³aw,

The v200909 version of the API does not support category placements.
We plan to have support for it in the next version of the API.

Best,
- Eric Koleda, AdWords API Team

On Feb 18, 4:53 am, rp radoslaw.pocie...@gmail.com wrote:
 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 Campaign Report return empty xml

2010-02-19 Thread Francisco Sanchez
Hello.

I'm having some problems scheduling a campaign report, it always
returns an empty report, next is the XML request.

?xml version=1.0 encoding=UTF-8?
env:Envelope xmlns:xsd=http://www.w3.org/2001/XMLSchema;
xmlns:env=http://schemas.xmlsoap.org/soap/envelope/;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
env:Header
email/email
password/password
clientEmail/clientEmail
useragent/useragent
applicationToken/applicationToken
developerToken/developerToken
/env:Header
env:Body
scheduleReportJob 
xmlns=https://adwords.google.com/api/adwords/
v13
job xsi:type=DefinedReportJob

selectedReportTypeCampaign/selectedReportType
nameCampaign Report Service/name
aggregationTypesSummary/aggregationTypes
adWordsTypeContentOnly/adWordsType
startDay2010-02-01/startDay
endDay2010-02-15/endDay
selectedColumnsCampaign/selectedColumns
selectedColumnsBudget/selectedColumns

selectedColumnsCampaignStatus/selectedColumns
selectedColumnsClicks/selectedColumns
selectedColumnsImpressions/selectedColumns
selectedColumnsCTR/selectedColumns
selectedColumnsCPC/selectedColumns
selectedColumnsCost/selectedColumns

selectedColumnsAveragePosition/selectedColumns
/job
/scheduleReportJob
/env:Body
/env:Envelope

But it always brings an empty XML like this

report
table
columns
column name=campaign/
column name=budget/
column name=campStatus/
column name=imps/
column name=clicks/
column name=ctr/
column name=cpc/
column name=cost/
column name=pos/
/columns
rows/
/table

totals
grandtotal imps=0 clicks=0 ctr=0.0 cpc=0 cost=0 pos=0.0/
/totals
/report

How can I include all campaigns in the report request?

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 The developer token is invalid on v13 but not v200909

2010-02-19 Thread cralls
Hi All,

I'm trying to get TrafficEstimatorService CPC data and I am able to
access the v200909 API just fine with my developer token but not the
v13 API.

Please advise.

~Casey

-- 
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: retrieving response headers in python client

2010-02-19 Thread AdWords API Advisor
Hi,

I'm not sure if this functionality exists or not in the Python
library.  You should open an issue on the issue tracker for that
library to get more information:

  http://code.google.com/p/google-api-adwords-python-lib/issues/list

Best,
- Eric Koleda, AdWords API Team

On Feb 18, 5:05 am, tomek r tomasz.robaszkiew...@gmail.com wrote:
 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 Re: Getting the problem with email header

2010-02-19 Thread AdWords API Advisor
Hi,

You are using the v12 namespace, but the service is using version
v13.  Change your namespace to v13 and it should work.

Best,
- Eric Koleda, AdWords API Team

On Feb 19, 3:34 am, ranjit singh ranjit.adelem...@gmail.com wrote:
 Hi Eric ,

 If you could help me because I am really stuck with this issue

 On Feb 18, 3:33 pm, ranjit singh ranjit.adelem...@gmail.com wrote:



  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 loginemailaddress for each account
  managed
   * by the effective user.
   */
  public class GetClientAccounts {
    // Provide AdWords login information.
          private static final Stringemail= 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(Loginemailis \ + login + \.);
          }
        }
      } catch(Exception e) {
        e.printStackTrace();
      }
    }

  }

  but i am getting the following error :

  {https://adwords.google.com/api/adwords/v13}fault:
       ns1:code1/ns1:code
       ns1:messageThe request did not contain aheadernamed 'email'./
  ns1:message

  The request did not contain aheadernamed 'email'.
          at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
  Method)
          at
  sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAcce 
  ssorImpl.java:
  39)
          at
  sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstru 
  ctorAccessorImpl.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 Re: v13 CriterionService - v200909 AdGroupCriterionService

2010-02-19 Thread h805
Best is to download SOAPUI, provide the wsdl URL and run some test
queries. It will show you nicely formatted soap responses.

On Feb 19, 9:22 am, John Bliss bliss.j...@gmail.com wrote:
 OK.  ...  Just the complete XML.  (I don't need any PHP, .NET, etc code.)  
 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: Sample error handling

2010-02-19 Thread AdWords API Advisor
Hi,

We don't have any sample code that demonstrates this right now, but it
is something we are working on.

Best,
- Eric Koleda, AdWords API Team

On Feb 18, 7:50 am, srividya jagsri...@gmail.com wrote:
 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 Re: category booking in v2009

2010-02-19 Thread Peer Jakobsen (AdWords API Guru)
Eric,
This was supported in v13 so whats the best practice on dealing with
this in v200909.
How is this going to show up when getting criteria from adgroups that
have category placements?

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: getting ad counts

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

If you use paging and set the numberResults field to 0 then you will
get back a page with no entries in it.  The page object contains a
totalNumEntries field though that will tell you the total number of
entities that match the selector.  Since you don't return any of the
entities this operation only costs 1 unit.

Best,
- Eric Koleda, AdWords API Team

On Feb 18, 11:17 am, mike-adwo...@pubget.com mike-
adwo...@pubget.com wrote:
 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: AdGroupCriterionIdFilter

2010-02-19 Thread AdWords API Advisor
Hi Navi,

The idFilters field of the AdGroupCriterionSelector takes in an array
of AdGroupCriterionFilters:

  
http://code.google.com/apis/adwords/v2009/docs/reference/AdGroupCriterionService.AdGroupCriterionSelector.html#idFilters

This means that one selector can contain many filters.  Simply create
a filter for each ad group ID / criterion ID pair and make one get()
request using that selector.

Best,
- Eric Koleda, AdWords API Team

On Feb 18, 12:05 pm, Navi knavd...@gmail.com wrote:
 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: Conversion rate for keyword using AdGroupCriterionSelector in PHP client library

2010-02-19 Thread AdWords API Advisor
Hi,

Is your campaign using conversion optimizer?  Do you have the SOAP XML
logs of the response?

Best,
- Eric Koleda, AdWords API Team

On Feb 18, 1:42 pm, dadonk dad...@gmail.com wrote:
 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) . 'br /br /';
     }

-- 
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: v200909 How to get additional keywords to consider using the TargetingIdeaService?

2010-02-19 Thread web.dev
After a short research in this Group (should have be done as first
step...) there are the answers to my question:

1. related vs. additional keywords and how to remove them:
http://groups.google.de/group/adwords-api/browse_thread/thread/b246a23087f946f1/c94fa20106f92815?lnk=gstq=additional+keywords+#c94fa20106f92815

2. About n-gram groups: 
http://groups.google.com/group/adwords-api/browse_thread/thread/b1d3189f4483c78d
a very useful explaination

3. The n-gram parameter in the v2009 API
http://code.google.com/intl/de-DE/apis/adwords/v2009/docs/reference/TargetingIdeaService.NgramGroupsSearchParameter.html

4. further about synonyms (additional keywords) in the search results:
http://groups.google.com/group/adwords-api/browse_thread/thread/dd91fb012cd2f26d

Best regards,
Dian

-- 
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-19 Thread majco
Thanks Ales...

On 18. Feb, 22:08 h., AdWords API Advisor
adwordsapiadvi...@google.com wrote:
 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 stur...@gmail.com 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 stur...@gmail.com 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.NETtrunactes 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:

     system.net
       settings
         httpWebRequest maximumErrorResponseLength=-1  /
       /settings
     /system.net

   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 adwordsapiadvi...@google.com
   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 stur...@gmail.com wrote:

 Done

 On Feb 17, 1:10 am, AdWords API Advisor adwordsapiadvi...@google.com
 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 martinusapiklie...@centrum.sk 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.