v201008 - ReportUtils::DownloadReport is not return all data using GZIPPED_CSV files

2010-11-01 Thread Michael Melander
Hi, since paging isn't available in the reportDefinitionService what
can we do to download all data?
@see: 
http://code.google.com/apis/adwords/forum.html?place=msg%2Fadwords-api%2F0YN-lGwPKkg%2Fgn-ydjwM1VQJ

The client library used is PHP client 2.4.0.

We have customers with huge amounts of data but we still want to be
able to download report data through v201008 even though it would be
downloaded into separate files as with v13 of the API.
We're using GZIPPED_CSV files but we're still missing data and the
file limit/execution time is not a concern in this case.

Could it be that the reportDefinitionService has a limit on how many
campaigns that can be processed per reportDefinition?

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups AdWords API Forum group.
To post to this group, send email to adwords-api@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: TargetingIdeaService: different values for GLOBAL_MONTHLY_SEARCHES for same keyword (IDEAS, STATS)

2010-11-01 Thread AdWords API Advisor
Hi Jakov,

Thank you for reporting this issue.  I've been able to replicate the
problem and I'll work with the core engineering team to resolve it.  A
workaround is to leave off the CountryTargetSearchParameter from the
request, as this will always return the correct value of
GLOBAL_MONTHLY_SEARCHES.

Best,
- Eric Koleda, AdWords API Team

On Oct 26, 11:47 am, jakov34 jako...@gmail.com wrote:
 Hi,

 im gettin different values for GLOBAL_MONTHLY_SEARCHES for same
 keyword
 when i search for IDEAS or STATS.

 when i serach for IDEAS using keyword 'contactos'
 there is the result:
 TEXT = 'contactos en monterrey'
 GLOBAL_MONTHLY_SEARCHES = 91
 but when i serch for STATS using keyword 'contactos en monterrey'
 with same params
 GLOBAL_MONTHLY_SEARCHES = NULL

 i will give example to make explanation of problem easier:

 first thing im doing is searching for IDEAS
 request looks like this:

 

 ideaType        = KEYWORD
 requestType = IDEAS
 requestedAttributeTypes = Array
         (
             [0] = KEYWORD
             [1] = GLOBAL_MONTHLY_SEARCHES
             [2] = AVERAGE_TARGETED_MONTHLY_SEARCHES
         )

 searchParameters:
         - RelatedToKeywordSearchParameter:
                 text            = 'contactos'
                 matchType       = EXACT

         - KeywordMatchTypeSearchParameter:
                 keywordMatchTypes = Array
                                 (
                                         [0] = EXACT
                                 )

         - IncludeAdultContentSearchParameter

         - LanguageTargetSearchParameter:
                 languageTargets:
                         languageCode = es

         - CountryTargetSearchParameter:
                 countryTargets:
                         countryCode = ES

         - IdeaTextMatchesSearchParameter:
                 included = Array
                                 (
                                         [0] = contactos
                                 )
                 priorityAction = INCLUDE

 

 ok, so im getting larg number of keywords with some data..

 response for keyword 'contactos en monterrey' looks:

 TEXT = contactos en monterrey
 MATCH_TYPE = EXACT
 GLOBAL_MONTHLY_SEARCHES = 91
 AVERAGE_TARGETED_MONTHLY_SEARCHES = NULL

 well, let's say that data are OK.
 the next step im doing is searching STATS for keyword 'contactos en
 monterrey'
 with same params and request looks like this:

 ideaType        = KEYWORD
 requestType = STATS
 requestedAttributeTypes = Array
         (
             [0] = KEYWORD
             [1] = GLOBAL_MONTHLY_SEARCHES
             [2] = AVERAGE_TARGETED_MONTHLY_SEARCHES
         )

 searchParameters:
         - RelatedToKeywordSearchParameter:
                 text            = 'contactos en monterrey'
                 matchType       = EXACT

         - KeywordMatchTypeSearchParameter:
                 keywordMatchTypes = Array
                                 (
                                         [0] = EXACT
                                 )

         - IncludeAdultContentSearchParameter

         - LanguageTargetSearchParameter:
                 languageTargets:
                         languageCode = es

         - CountryTargetSearchParameter:
                 countryTargets:
                         countryCode = ES

 TEXT = contactos en monterrey
 MATCH_TYPE = EXACT
 GLOBAL_MONTHLY_SEARCHES = NULL
 AVERAGE_TARGETED_MONTHLY_SEARCHES = NULL

 so GLOBAL_MONTHLY_SEARCHES = NULL

 this is the problem.
 Why I'm getting two different
 values for GLOBAL_MONTHLY_SEARCHES

 Also, when I remove CountryTargetSearchParameter
 it returns
 GLOBAL_MONTHLY_SEARCHES = 91
 AVERAGE_TARGETED_MONTHLY_SEARCHES = 10

 still different stats when im serching for IDEAS

 there is two IDs of requests, hope it will help
 for IDEAS: f8a01c6af011e70da010202d32ce37aa
 for STATS: df0e86b7441fd07c08d8be6a1fb103aa

 Any advice here?

 Thanks!
 Jakov

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups AdWords API Forum group.
To post to this group, send email to adwords-api@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: Count missing in sandbox (using Python client lib ?)

2010-11-01 Thread AdWords API Advisor
Hi Olemis,

Using those search parameters I get back a count for every month
except October (expected).  Do you have the requestId of a request
that exhibits this behavior?

In regards to null values, the SOAP API will always omit a field from
the response if the value is null.  When translated to a python
dictionary this will mean the dictionary won't contain an entry for
the field.  For values that may be null it is a best practice to first
check to see if the field is in the dictionary before using it.

Best,
- Eric

On Nov 1, 10:18 am, Olemis Lang ole...@gmail.com wrote:
 On Sat, Oct 30, 2010 at 12:12 AM, AdWords API Advisor

 adwordsapiadvi...@google.com wrote:
  Hi Olemis,

 :o)

 Thnx for your reply .

  When there is no monthly search volume data the count will be returned
  as null.

 AFAICS , there's a difference between a response with all `count`(s)
 set to `null` and another one with no `count` at all. If the API
 specifies that `count` will be there and I rely on that information,
 then in the first case, in Python, I get a `None` back whereas in the
 later my app is broken. Since `count` is never set then apps will be
 broken all the time (at least using the sandbox ...). Hopefully in
 Python we can work around this (e.g. x.get('count') ) but I'm not sure
 about other situations | programming languages | ... Besides there
 are no values at all (never), and a list of 12th most recent months is
 not exactly what I'd be expecting ...

  What search parameters are you using in the query?

 If you talk about the selector, please use link below . That happened
 using v201008 sandbox .



  On Oct 29, 11:23 am, Olemis Lang ole...@gmail.com wrote:
  On Thu, Oct 28, 2010 at 11:05 AM, Olemis Lang ole...@gmail.com wrote:

 [...]

  PS: BTW this is the code [2]_ (kind of ...)

 [...]
  .. [2] Google Adwords keyword error #3
           (http://simelo.pastebin.com/ZeRx54nP)

 --
 Regards,

 Olemis.

 Blog ES:http://simelo-es.blogspot.com/
 Blog EN:http://simelo-en.blogspot.com/

 Featured article:

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups AdWords API Forum group.
To post to this group, send email to adwords-api@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: RHEL and Ubuntu discrepancies with 13.0.0

2010-11-01 Thread AdWords API Advisor
Hi Andy,

Issues related to the Python client library and not the SOAP API
itself should be posted here:

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

Best,
- Eric Koleda, AdWords API Team

On Oct 28, 6:04 pm, Andy wanabewi...@googlemail.com wrote:
 Hi,

 I'm running:

 - Python 2.6
 - adwords_api_python_13.0.0
 - ZSI
 - ElementTree

 When i run my code under Ubuntu, everything works nicely. When i run
 it under RedHat Enterprise Linux, I get the following error:

 Traceback (most recent call last):
   File apiharvester.py, line 40, in module
     datetime.date.today()-datetime.timedelta(days=1)
   File /home/andy/projects/HarvesterStuff.py, line 104, in
 fetchAdwordsStats
     campaigns = cs.Get(selector)[0]
   File /usr/lib/python2.6/site-packages/adspygoogle/adwords/
 CampaignService.py, line 83, in Get
     'Campaign', self._loc, request)
   File /usr/lib/python2.6/site-packages/adspygoogle/adwords/
 AdWordsWebService.py, line 255, in CallMethod
     self.__ManageSoap(buf, start_time, stop_time, error)
   File /usr/lib/python2.6/site-packages/adspygoogle/adwords/
 AdWordsWebService.py, line 130, in __ManageSoap
     raise Error(e)
 adspygoogle.common.Errors.Error

 Is there any known differences in how python behaves between the two
 platforms? If not, how might i go about debugging this please?

 Many thanks in advance for any help.

 Andy.

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups AdWords API Forum group.
To post to this group, send email to adwords-api@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: Count missing in sandbox (using Python client lib ?)

2010-11-01 Thread Olemis Lang
On Mon, Nov 1, 2010 at 11:02 AM, AdWords API Advisor
adwordsapiadvi...@google.com wrote:
 Hi Olemis,


:o)

 Using those search parameters I get back a count for every month
 except October (expected).  Do you have the requestId of a request
 that exhibits this behavior?


I can provide you with one , once I try it again.

 In regards to null values, the SOAP API will always omit a field from
 the response if the value is null.  When translated to a python
 dictionary this will mean the dictionary won't contain an entry for
 the field.  For values that may be null it is a best practice to first
 check to see if the field is in the dictionary before using it.


I see . If this is the case then nevermind . I'll keep using the `get`
workaround in both tests and production .

Thnx very much .

-- 
Regards,

Olemis.

Blog ES: http://simelo-es.blogspot.com/
Blog EN: http://simelo-en.blogspot.com/

Featured article:

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups AdWords API Forum group.
To post to this group, send email to adwords-api@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: RHEL and Ubuntu discrepancies with 13.0.0

2010-11-01 Thread Andy
Hi Eric,

Before I do, can you confirm that this is in fact a correctly formed
request so I can write out the query being the problem:

SOAP-ENV:Envelope xmlns:SOAP-ENC=http://schemas.xmlsoap.org/soap/
encoding/ xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/;
xmlns:ZSI=http://www.zolera.com/schemas/ZSI/; xmlns:xsd=http://
www.w3.org/2001/XMLSchema xmlns:xsi=http://www.w3.org/2001/XMLSchema-
instance
SOAP-ENV:Header
RequestHeader xmlns=https://adwords.google.com/api/adwords/
cm/v201008
authToken--SNIP!--/authToken
userAgentAwApi-Python-13.0.0|harvester/userAgent
clientCustomerId4233758376/clientCustomerId
developerToken--SNIP!--/developerToken
/RequestHeader
/SOAP-ENV:Header
SOAP-ENV:Body xmlns:ns1=https://adwords.google.com/api/adwords/
cm/v201008
ns1:get xmlns:ns1=https://adwords.google.com/api/adwords/cm/
v201008
ns1:selector
ns1:statsSelector
ns1:dateRange
ns1:min20101031/ns1:min
ns1:max20101031/ns1:max
/ns1:dateRange
/ns1:statsSelector
/ns1:selector
/ns1:get
/SOAP-ENV:Body
/SOAP-ENV:Envelope

This query was fired on 2010-11-01 for 2010-10-31 (pulls back
yesterdays data.)

Thanks,
Andy.

On Nov 1, 4:04 pm, AdWords API Advisor adwordsapiadvi...@google.com
wrote:
 Hi Andy,

 Issues related to the Python client library and not the SOAP API
 itself should be posted here:

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

 Best,
 - Eric Koleda, AdWords API Team

 On Oct 28, 6:04 pm, Andy wanabewi...@googlemail.com wrote:

  Hi,

  I'm running:

  - Python 2.6
  - adwords_api_python_13.0.0
  - ZSI
  - ElementTree

  When i run my code under Ubuntu, everything works nicely. When i run
  it under RedHat Enterprise Linux, I get the following error:

  Traceback (most recent call last):
    File apiharvester.py, line 40, in module
      datetime.date.today()-datetime.timedelta(days=1)
    File /home/andy/projects/HarvesterStuff.py, line 104, in
  fetchAdwordsStats
      campaigns = cs.Get(selector)[0]
    File /usr/lib/python2.6/site-packages/adspygoogle/adwords/
  CampaignService.py, line 83, in Get
      'Campaign', self._loc, request)
    File /usr/lib/python2.6/site-packages/adspygoogle/adwords/
  AdWordsWebService.py, line 255, in CallMethod
      self.__ManageSoap(buf, start_time, stop_time, error)
    File /usr/lib/python2.6/site-packages/adspygoogle/adwords/
  AdWordsWebService.py, line 130, in __ManageSoap
      raise Error(e)
  adspygoogle.common.Errors.Error

  Is there any known differences in how python behaves between the two
  platforms? If not, how might i go about debugging this please?

  Many thanks in advance for any help.

  Andy.

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups AdWords API Forum group.
To post to this group, send email to adwords-api@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


average positon

2010-11-01 Thread Farid
Hi ,

Is there anyway that I can find the average positon for a keyword.


Thanks a lot in advance

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups AdWords API Forum group.
To post to this group, send email to adwords-api@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


TrafficEstimatorService and clientEmail header ...

2010-11-01 Thread Olemis Lang
Hello once again !

This time I need a precision about how to use correctly clientEmail
header when calling TrafficEstimatorService . That header is required
by the service . However, using Py client lib , if I specify
clientEmail = email in headers then this error is returned back

{{{
#!python

Traceback (most recent call last):
 [...]
  File 
/path/to/venv/lib/python2.5/site-packages/adspygoogle/adwords/AdWordsWebService.py,
line 130, in __ManageSoap
raise Error(e)
Error: Error : Cannot serialize recursive object
}}}

Q:
  - Is it possible (at service level) to specify clientEmail = email ,
or is it a bug using Py lib ?
  - If that's possible, should users have two Adwords accounts
 (i.e. one for email and other clientEmail ) ?
  - IOW , is it that users may not use themselves as clients ?
  - If this is possible then, how ?

-- 
Regards,

Olemis.

Blog ES: http://simelo-es.blogspot.com/
Blog EN: http://simelo-en.blogspot.com/

Featured article:

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups AdWords API Forum group.
To post to this group, send email to adwords-api@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


Average Position for keywords

2010-11-01 Thread Farid
Is there anyway that I can find the average positon for a keyword.

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups AdWords API Forum group.
To post to this group, send email to adwords-api@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: How can I identify my uploaded images?

2010-11-01 Thread AdWords API Advisor
Hi Patrick,

Unfortunately the name field isn't support for Image media, and I'll
work with the documentation to make that clearer.  The sourceUrl field
is read-only in the API and can't be set.

Best,
- Eric Koleda, AdWords API Team

On Oct 29, 5:17 am, Patrick Berglund patrick.bergl...@rebtel.com
wrote:
 Hi,

 How do I upload images so I can identify them later when creating
 TemplateAds?

 The documentation for Image field 'name' says: The name can be used by
 clients to help identify previously uploaded media.
 However, when I run the sample v201008.UploadImage the response is
 empty for the 'name' and 'sourceUrl' fields. When I run the sample
 v201008.GetAllImages these fields are still empty for the image.

 I found that if I upload an image from the web interface (Display Ad
 Builder) the image's sourceUrl is set, and returned by the API. But not
 the name.

 Thanks!
 Patrick

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups AdWords API Forum group.
To post to this group, send email to adwords-api@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: v201008 ReportDefinitionService daily aggregation

2010-11-01 Thread AdWords API Advisor
Hi All,

When certain fields are added to the report, such as date / time
fields, rows with zero impressions are not returned.  Because the
sandbox environment doesn't serve ads there can't be any impressions,
so there will be no results.  If you exclude the date / time fields
you should see results again.  We apologize for the confusion and we
are working to document this functionality better.

Best,
- Eric Koleda, AdWords API Team

On Oct 29, 5:11 am, Wilrik Mook wil...@gmail.com wrote:
 Hmm, the same seems to happen here when I add the Date field, no rows
 are returned (using the sandbox, which normally returns rows with 0 as
 value for each field).
 Looks like a server-side problem to me, maybe an API advisor could
 look into this?

 Regards,

 Wilrik
 050media

 On Oct 28, 6:34 pm, SW ga...@structuredweb.com wrote:







  Thank you Wilrik for the quick response.

  If I have following report fields for adgroup report, I get some data
  back (empty rows per adgroupid specified for the whole date range). I
  am using last thirty days for the date range.

  public string[] adGroupReportFields = new string[] { CampaignId,
  CampaignName, CampaignStatus, Id, Status, AdGroupName,
  Impressions, Clicks, Ctr, CostPerConversion,
  AveragePosition };

  Changing this to include both the fields you mentioned earlier doesn't
  yield any results returned at all.  It just returns the columns but no
  rows.

  either this:
  public string[] adGroupReportFields = new string[] { CampaignId,
  CampaignName, CampaignStatus, Id, Status, AdGroupName,
  Impressions, Clicks, Ctr, CostPerConversion,
  AveragePosition, Date, DayOfWeek };

  or this:
  public string[] adGroupReportFields = new string[] { CampaignId,
  CampaignName, CampaignStatus, Id, Status, AdGroupName,
  Impressions, Clicks, Ctr, CostPerConversion,
  AveragePosition, DayOfWeek };

  or this:
  public string[] adGroupReportFields = new string[] { CampaignId,
  CampaignName, CampaignStatus, Id, Status, AdGroupName,
  Impressions, Clicks, Ctr, CostPerConversion,
  AveragePosition, DayOfWeek };

  Does not return any rows with stats.  Please shed some light.  If it
  helps, here is my code:

  public ListReportDefinition GenerateReport(string minDate, string
  maxDate, string[] fields, string reportName, string folderPath,
  ReportDefinitionReportType reportType, XmlDocument reportXml,
  ListPredicate predicates)
          {
              Selector selector = GetReportSelector(minDate, maxDate,
  fields, predicates.ToArray());
              ReportDefinition reportDefinition =
  GetReportDefinition(selector, reportName, reportType, true,
  ReportDefinitionDateRangeType.CUSTOM_DATE, DownloadFormat.XML);
              ReportDefinitionOperation reportOperation =
  GetOperation(reportDefinition, Operator.ADD);

              ListReportDefinitionOperation defList = new
  ListReportDefinitionOperation();
              defList.Add(reportOperation);

              ListReportDefinition mutatedDefinitions =
  Mutate(defList);

              if (mutatedDefinitions.Count = 1)
              {
                  ReportUtilities utility = new ReportUtilities(user);
                  string reportFile = folderPath + reportName + .xml;

  utility.DownloadReportDefinition(mutatedDefinitions[0].id,
  reportFile);
                  reportXml.Load(reportFile);
              }
              return mutatedDefinitions;
          }

  On Oct 28, 11:17 am, Wilrik Mook wil...@gmail.com wrote:

   Sorry if I wasn't clear enough, I meant to say: if you include those
   fields (though only Date should do the trick), it will show statistics
   for each day separately.
   The same kind of thing happened to me when including the
   AdNetworkType1 field in a report: a row was given for each separate
   value of that field. Since the Date field will 'give' you multiple
   dates in that period, a row for each date will be added. This is what
   I observed, but I could be wrong.
   I hope this clarifies things a bit!

   Regards,

   Wilrik
   050media

   On Oct 28, 5:03 pm, SW ga...@structuredweb.com wrote:

If I omit the Date or DayOfWeek, will it get me statistics for days
separately?

On Oct 28, 10:58 am, Wilrik Mook wil...@gmail.com wrote:

 Hi SW,

 When you include the Date or DayOfWeek field in the selector, I think
 this automatically happens.

 Regards,

 Wilrik
 050media

 On Oct 28, 4:35 pm, SW ga...@structuredweb.com wrote:

  Hi,

  We are using ReportDefinitionService of v201008 version. The version
  v200909 allowed us to get the report data to include the daily
  aggregation.  If we specify two date range, the report would include
  statistics data separately for single day within the date range.

  However, new service aggregates all the days within the date range.
  It doesn't break down the statistics data for each separate day.  I
  was wondering how can we do that using new v201008 report definition
 

Re: Something simple - how do I do this?

2010-11-01 Thread AdWords API Advisor
Hi Tom,

The $selector object must be of type CampaignSelector:

  
http://code.google.com/apis/adwords/docs/reference/latest/CampaignService.CampaignSelector.html

Unfortunately you cannot select on name.  What you can do instead is
select all campaigns and then client side find the one with the
matching name.

Best,
- Eric Koleda, AdWords API Team

On Oct 29, 5:52 am, Tom Armstrong tomarmstro...@gmail.com wrote:
 I want to say 'show the campaign ID for 'campaign X'

 But can't figure it out. Here's my code:

 ?php

 $this_campaign = Campaign X;

 include_once(../scripts/settings.php);

 // Set the path

 $path = $DOCUMENT_ROOT/adwords-api/src;

 set_include_path(get_include_path() . PATH_SEPARATOR . $path);

 // Login section

 require_once 'Google/Api/Ads/AdWords/Lib/AdWordsUser.php';

 $user = new AdWordsUser();

 // Choose the web service

 $campaignService = $user-GetCampaignService();

 // Create selector object

 $selector = new Campaign();

 // Add variables

 $selector-name = 'Netbooks';

 // Get all campaigns

 $page = $campaignService-get($selector);

 // Display campaigns

 if (isset($page-entries)) {
 foreach ($page-entries as $campaign) {
 $campaign_name = $campaign-name;
 $campaign_id = $campaign-id;

 print(b$campaign_name/b - $campaign_idBR);

 }
 }

 ?

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups AdWords API Forum group.
To post to this group, send email to adwords-api@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: error no 87 adwords api

2010-11-01 Thread AdWords API Advisor
Hi,

This error indicates that you are making too many simultaneous
requests to the API.  For a multi-threaded system this means you need
to reduce the number of threads you are using to make requests.

Best,
- Eric Koleda, AdWords API Team

On Oct 29, 7:44 am, kitty21 kshiti...@cisinlabs.com wrote:
 hi all,

    While adding keywords,  i am having error This request is
 attempting to exceed the limit on the maximum number of outstanding
 requests allowed. (Error code 87)

   i want to know what might be possible causes and how to handle this
 error.

 thanx in advance ..

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups AdWords API Forum group.
To post to this group, send email to adwords-api@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: ReportDefinition to get Network and Account Stats

2010-11-01 Thread AdWords API Advisor
Hi Frederico,

Reports can only be run across one account, so there is no need to
have a predicate for the account.  Additionally, the fields used in
predicates must be the field listed as belonging to the report, and
ClientId isn't one of them:

  http://code.google.com/apis/adwords/docs/appendix/reports.html#account

Best,
- Eric Koleda, AdWords API Team

On Oct 29, 2:06 pm, federico ulfo rainelemen...@gmail.com wrote:
 Hi Wilrik,
 thanks a lot for your reply!

 For get the Account Stats, I setted
 $reportDefinition-reportType = 'ACCOUNT_PERFORMANCE_REPORT';

 but in order to select the account what field should I set?

 $adGroupPredicate = new Predicate();
 $adGroupPredicate-field = 'ClientId';
 $adGroupPredicate-operator = 'EQUALS';
 $adGroupPredicate-values = array('123-123-1234');

 In order to get all the Network Reports for a selected account, should
 I have to set the Predicate::field as before?

 Thanks.

 On Oct 29, 3:39 pm, Wilrik Mook wil...@gmail.com wrote:







  Hi Federico,

  You can find documentation about which fields to include in the
  ReportDefinition selector 
  here:http://code.google.com/apis/adwords/docs/appendix/reports.html#keywords
  On this page you can find all possible fields for all types of
  reports.

  So, to include the network field in your report, add 'AdNetworkType1'
  to the array at line 65-66 of the example you linked. That should be
  enough.

  To get account stats instead of keyword stats, you'll have to use the
  correct performance report type for accounts (defined on line 74 of
  the example, should be 'ACCOUNT_PERFORMANCE_REPORT' for accounts).
  See url provided above for possible fields of this type of report.

  Hope this helps!

  Regards,

  Wilrik
  050media

  On Oct 29, 3:26 pm, Federico Ulfo federicotest...@gmail.com wrote:

   Hi,

   in order to get the Network (into campaign), and also to get the
   Account Stats,
   I need to use GetReportDefinitionService. Are there any working
   examples?

   Or can you please help me to modify this example to make it retrieving
   the 
   networks:http://code.google.com/p/google-api-adwords-php/source/browse/trunk/e...

   Do you know also how to modify that example to get the account stats?

   Cheers,
   Federico

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups AdWords API Forum group.
To post to this group, send email to adwords-api@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: Updated Keyword Tool, changes are for last 12 months?

2010-11-01 Thread AdWords API Advisor
Hi Calford,

It could be that some keywords didn't have much traffic on partner
sites to begin with, and the traffic on Google.com increased
organically.

Best,
- Eric

On Oct 29, 10:38 am, calford jonathan.cifuen...@gmail.com wrote:
 Hi,

 I noticed that some of the results went up.
 I thought that the new results on the keyword tool (and API) no longer
 include partner sites.

 But, how can the data go up when you remove sources?

 On Oct 15, 10:15 pm, AdWords API Advisor







 adwordsapiadvi...@google.com wrote:
  Hi Calford,

  That's correct, the changes in search volume data are retroactive.

  Best,
  - Eric Koleda, AdWords API Team

  On Oct 15, 8:33 am, calford jonathan.cifuen...@gmail.com wrote:

   Hi,

   I just compared the data being returned by the API and it is
   completely different to data previously collected.

   Does that mean that the changes to the Keyword Tool (and API) are
   retroactive?

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups AdWords API Forum group.
To post to this group, send email to adwords-api@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: The developer token is invalid

2010-11-01 Thread AdWords API Advisor
Hi,

The sandbox doesn't use a real developer token, but instead a defined
format using the email address of the sandbox account:

  http://code.google.com/apis/adwords/docs/sandbox.html

Best,
- Eric Koleda, AdWords API Team

On Oct 29, 2:12 pm, aazout aaz...@gmail.com wrote:
 We are getting The developer token is invalid in sanbox environment,
 but our developer token is correct. Any thoughts?

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups AdWords API Forum group.
To post to this group, send email to adwords-api@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: Not agreed to latest AdWords Api terms and conditions.

2010-11-01 Thread AdWords API Advisor
Hi,

If a non-credit card form of billing was used then you may need to
sign the terms and conditions manually.  Email me your account
information at adwordsapiadvi...@google.com and then update this
thread so I check that inbox.

Best,
- Eric Koleda, AdWords API Team

On Oct 29, 2:13 pm, aazout aaz...@gmail.com wrote:
 Getting this error in non-sandbox environment, but billing info is
 setup correctly. Any thoughts?

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups AdWords API Forum group.
To post to this group, send email to adwords-api@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: v2009 Targeting Idea Service Search Volume

2010-11-01 Thread AdWords API Advisor
Hi John,

We are seeing this behavior right now for some keywords, when using in
a STATS request.  Can you provide some sample keywords that are
exhibiting this behavior?

Best,
- Eric Koleda, AdWords API Team

On Oct 28, 1:52 pm, John Nagro jna...@hubspot.com wrote:
 Hello -

 We are seeing behavior similar to this thread:

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

 Where we are getting lists of keyword ideas back but with 0's in all
 of the monthly search volume fields.

 We are requesting by keyword or url, targeting to US country, en
 language, asking for KEYWORD, AVERAGE_TARGETED_MONTHLY_SEARCHES,
 TARGETED_MONTHLY_SEARCHES, and COMPETITION. It looks like we're
 getting all 0's back. Only KEYWORD is correct.

 Has something changed? Been deprecated? Is anyone else seeing this
 behavior?

 Thanks.

 -John

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups AdWords API Forum group.
To post to this group, send email to adwords-api@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: copying accounts

2010-11-01 Thread AdWords API Advisor
Hi Mike,

There is no simple function in the API to do this, but you can use the
various services that are available to copy campaigns, ad groups, etc
from one account to another.  The AdWords API .NET client library
includes a utility that does some of this for the purpose of
preserving the contents of a sandbox account.

  
http://code.google.com/p/google-api-adwords-dotnet/source/browse/trunk/src/lib/util/AccountManager.cs

Best,
- Eric Koleda, AdWords API Team

On Oct 28, 8:24 pm, adwords dude or...@mrtees.com wrote:
 Hi,

 Does anyone know if it's possible to use the Google API to copy one
 account to another?

 Thanks in advance.

 Mike

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups AdWords API Forum group.
To post to this group, send email to adwords-api@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: Insert keywords with placement URL

2010-11-01 Thread AdWords API Advisor
Hi,

This is a limitation of the AdWords product, that placements cannot
have more than a few levels of directories.  You will see that this is
not possible using the AdWords web interface either.

Best,
- Eric Koleda, AdWords API Team

On Oct 30, 8:27 am, kitty21 kshiti...@cisinlabs.com wrote:
  hi all,

 I want to know that ,  how can i insert placement URL  along with
 keywords
 if i've something alike www.test.com\test1\test2\test3\test4  using
 php API ..??

 currently as i am trying to do so ,it returns me an error like

 [AdGroupCriterionError.ILLEGAL_URL @
 operations[1].operand.criterion.url; trigger:www.test.com
 \test1\test2\test3\test4']

 thanx in advece..

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups AdWords API Forum group.
To post to this group, send email to adwords-api@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: AdGroupCriterionError.ILLEGAL_URL

2010-11-01 Thread AdWords API Advisor
Hi,

You cannot add placements with more than a few levels of directories.
This is a general limitation of the AdWords Product and is not
possible via the web interface either.

Best,
- Eric

On Oct 30, 8:22 am, kitty21 kshiti...@cisinlabs.com wrote:
  hi,

     first thanx for replying , ok i want to 1 more thing that ,
 how can i insert placement URL if i've something alike www.test.com
 \test1\test2\test3\test4..??

 thanx again..

 On Oct 30, 5:53 am, AdWords API Advisor adwordsapiadvi...@google.com
 wrote:







  Hi,

  Please see my response to your existing thread:

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

  Best,
  - Eric Koleda, AdWords API Team

  On Oct 28, 5:55 am, kitty21 kshiti...@cisinlabs.com wrote:

   hi all,

      while manipulating AddAdGroupCriteria.php file i've got a
   AdGroupCriterionError as given below,

      [AdGroupCriterionError.ILLEGAL_URL @
   operations[1].operand.criterion.url; trigger:'http://www.google.com/
   1/2/3/4/'] 

    however URL shown is a dummy url . can anyone help me out whats wrong
   with it..??
   any help is appreciable.

   thanx in advance.

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups AdWords API Forum group.
To post to this group, send email to adwords-api@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