Re: where to do performance/load tests for adwords applications

2012-03-28 Thread Ewan Heming
Hi Sun,

I think that you really need to build a mock that periodically throws the 
rate limit exception, then build your app to deal with the possibility that 
it could happen at any time. I believe that Google doesn't actually publish 
such limits because they depend on what the overall server load is at the 
time you make your calls, and can vary widely depending on what other tools 
are doing at the same time, which is hard to predict. 

One thing you might want to look at is the 
MutateJobServicehttp://code.google.com/apis/adwords/docs/reference/latest/MutateJobService.html:
 
You can use it to upload large jobs in one batch, then the AdWords API will 
process it asynchronously and your application can perform other tasks 
while it's waiting for a response.

Regards,

Ewan

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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


Search keywords in account

2012-03-28 Thread Charles Best
Hi,
I have accounts with many campaigns and a lot of keywords.
Is it possible to search a keyword and know where it is used (adgroup... 
campaign... account...) ?

I'm looking on documentation but haven't find the way to do it yet.

Thanks

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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: Search keywords in account

2012-03-28 Thread Ewan Heming
The simplest thing to do is download a keyword performance 
reporthttp://code.google.com/apis/adwords/docs/appendix/reports.html#keywords 
and 
use a 
predicatehttp://code.google.com/apis/adwords/docs/reference/latest/AdGroupAdService.Predicate.htmlto
 select the keywords for which you're searching.

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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


Combining 2 keyword reports because there is no OR predicate..

2012-03-28 Thread mg83
Hello, i am pretty new to google adwords programming (in python)..

I want to get a report about keywords statistics where impression  0 OR 
clicks  0

The OR is the problem because it seems like there is no OR predicate 
available.

So i try to get 2 reports (one for impression  0 and one for clicks  0)

I already achieved merging the reports:   
 

 # getting reports and combine them to a list 'reports' 

...
 # merge the reports list lines:
 # (the 'set' command changes the list item positions so we have to take 
 care that the headers remain in first line!)
 headers = reports[0]
 reports.remove(headers)
 reports = list(set(reports))
 reports.insert(0, headers)
 
 reports = .join(reports)


In this merged result there are still 2 different summary lines:
Now i have to find, parse, merge and sum up the TOTAL lines from both 
reports

But all this can't be the best solution.. so here is my question:
*Can somebody tell me a better solution for combining 2 keyword reports, 
please?*

What i don't understand is: why there is no OR predicate available? this 
would make it so simple...

thanks


-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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


SSL timeout errors

2012-03-28 Thread webspade
Hi, 

We have recently started to see a lot of SSL timeout errors, across various 
services. One such - 

   self.keyword_service 
= client.GetAdGroupCriterionService(self.service_url)
 
   keywords = self.keyword_service.Get(selector)[0]

 File 
/deploy/pythonenv/lib/python2.6/site-packages/adspygoogle.adwords-15.2.1-py2.6.egg/adspygoogle/common/GenericApiService.py,
 
line 320, in CallMethod

   self._HandleLogsAndErrors(buf, start_time, stop_time, error)

 File 
/deploy/pythonenv/lib/python2.6/site-packages/adspygoogle.adwords-15.2.1-py2.6.egg/adspygoogle/adwords/GenericAdWordsService.py,
 
line 244, in _HandleLogsAndErrors

   raise Error(e)

Error: {'data': SSLError('The read operation timed out',)}

These occur on mostly get calls for ads, adgroup criterion, keywords (as 
above) etc. Are the servers overloaded or something?



-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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: Adwords API token pending approval for over 1 month

2012-03-28 Thread Snow Globe
Hello,

We have now been in discussion with adwordsapi-tokens *AT* google.com for 
over 5 weeks and we are still waiting for approval.

We are an adwords qualified partner, google analytics qualified, part of 
the local Google agency program, have been discussing directly with google 
about making presentations  there, have worked for months on an application 
which requires access to the API, we have recently sent a fully revised 
application to make sure that we are now 100% compliant with adwords API 
terms and conditions and 

we are still waiting for an answer.

If there is still an issue: let us know what we need to fix.

Considering that access to the API is critical for us (our business, our 
jobs - yes, it is really important), we really hope a human being reads 
this message and gets back to us.

Best regards,
Ben


Le mardi 24 janvier 2012 12:16:21 UTC+1, Marcelo a écrit :

 Hi, 
 Over 1 month ago I requested an API token. 2 weeks ago I was requested 
 further information which I provided. Unfortunately since then I have 
 not received any update on my token and the status is still Pending 
 Approval. 
 I see this forum gets very good support so I would be very happy if 
 anybody can help me in letting me know what can I do to speed up the 
 process 
 Thanks a lot in advance! 
 Marcelo

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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


About params on Adwords API

2012-03-28 Thread Eduardo Hiroshi Campos Tamaki
Hi,

I'm new on Adwords API, I'm developing a tool to help an e-commerce to 
refresh the ads when the products change prices and other values.

So here are my questions:

- There is a way to change the default param on the Ad, without losing the 
history?
- If, not I have to change the params on all of the keywords of that Ad?
- There is a way to check if I have successfully added the params on the 
keyword?

If you need more details, please ask me here.

Thanks!

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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


OAuth with Google's AdWords API AuthenticationError

2012-03-28 Thread baynezy
I am trying (with not much luck) to access the Google AdWords API using the 
.Net 
Client Library http://code.google.com/p/google-api-adwords-dotnet/ to 
access their SandBox http://code.google.com/apis/adwords/docs/sandbox.htmlAPI.

Here is my code:-


// create campaign
var campaign = new Campaign
   {
   name = Simon's Campaign,
   status = CampaignStatus.ACTIVE,
   servingStatus = ServingStatus.SERVING,
   budget = new Budget
{
period = 
BudgetBudgetPeriod.DAILY,
amount = new Money
 {

 microAmount = 10
 },
deliveryMethod = 
BudgetBudgetDeliveryMethod.STANDARD
},
   adServingOptimizationStatus = 
AdServingOptimizationStatus.OPTIMIZE,
   frequencyCap = new FrequencyCap
  {
  impressions = 
10,
  timeUnit = 
TimeUnit.MINUTE,
  level = 
Level.CAMPAIGN
  }
   };
var operation = new CampaignOperation {@operator = 
Operator.ADD, operand = campaign};
var operations = new CampaignOperation[1];
operations[0] = operation;


// get service
var user = new AdWordsUser();
var url = Request.Url.GetLeftPart(UriPartial.Path);
var config = user.Config as AdWordsAppConfig;
user.OAuthProvider = new AdsOAuthNetProvider(
config.OAuthConsumerKey,
config.OAuthConsumerSecret,
AdWordsService.GetOAuthScope(user.Config as 
AdWordsAppConfig),
url,
Session.SessionID
);

var service = (CampaignService) 
user.GetService(AdWordsService.v201109.CampaignService);
var page = service.mutate(operations);

When I run this I get an `AdWordsApiException` with an InnerException 
`AuthenticationError.OAUTH_TOKEN_HEADER_INVALID @ 
 Service[CampaignService.mutate]`

Now I have the following in my `Web.config`:-

!-- Note: For testing purposes, you can use the OAuth consumer 
key/secret as anonymous/anonymous.--
add key=AuthorizationMethod value=OAuth/
add key=OAuthConsumerKey value=anonymous/
add key=OAuthConsumerSecret value=anonymous/
!-- Uncomment this key if you want to use v13 sandbox. --
!-- add key=LegacyAdWordsApi.Server 
value=https://sandbox.google.com/ --
!-- Uncomment this key if you want to use AdWords API sandbox. --
add key=AdWordsApi.Server 
value=https://adwords-sandbox.google.com/

As I understand it this is set up correctly, what am I missing?

Any help would be very gratefully received!!!

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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


ruby-1.9.3-p125 httpclient [BUG] Segmentation fault

2012-03-28 Thread sgrgic
Hi, I already opened an issue, should ask here first, sorry. So, here is an 
issue I opened:

Hi,

When switching from ruby ree-1.8.7-2011.03 to ruby-1.9.3-p125 I got this error 
while trying to load campaigns for specific account.

Steps to reproduce the problem:
1. @adwords = AdwordsApi::Api.new(creds)
2. @campaign_srv = @adwords.service(:CampaignService, :v201109)
3. selector = {
  :fields = ['Id', 'Name', 'Status', 'TargetGoogleSearch', 
'TargetSearchNetwork', 'TargetContentNetwork',
'TargetContentContextual', 
'TargetPartnerSearchNetwork', 'Period', 'Amount', 'DeliveryMethod'],
  :ordering = [{:field = 'Name', :sort_order = 'ASCENDING'}]
}
4. response = @campaign_srv.get(selector)
*What is the expected output? What do you see instead?*
  Expected to get list of campaigns.
  Instead I got: 
/Users/sgrgic/.rvm/gems/ruby-1.9.3-p125@DWR3/gems/httpclient-2.2.4/lib/httpclient/session.rb:300:
 [BUG] Segmentation fault
*What version of the product are you using? On what operating system?*
  MAC OC X 10.6.8
google-ads-common (0.6.3)
  httpclient (~ 2.2.3)
  httpi (~ 0.9.3)
  oauth (~ 0.4.5)
  savon (~ 0.9.7)
google-adwords-api (0.4.5)
  google-ads-common (~ 0.6.1)
  savon (= 0.9.7)
*Please provide any additional information below.*
This is just part of log:

-- Control frame information ---
c:0071 p: s:0354 b:0354 l:000353 d:000353 CFUNC  :connect
c:0070 p:0049 s:0351 b:0351 l:000350 d:000350 METHOD 
/Users/sgrgic/.rvm/gems/ruby-1.9.3-p125@DWR3/gems/httpclient-2.2.4/lib/httpclient/session.rb:300
c:0069 p:0166 s:0347 b:0347 l:001bc8 d:000346 BLOCK  
/Users/sgrgic/.rvm/gems/ruby-1.9.3-p125@DWR3/gems/httpclient-2.2.4/lib/httpclient/session.rb:739
c:0068 p:0111 s:0345 b:0345 l:001fe0 d:001fe0 METHOD 
/Users/sgrgic/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/timeout.rb:68
c:0067 p:0026 s:0333 b:0333 l:000332 d:000332 METHOD 
/Users/sgrgic/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/timeout.rb:99
c:0066 p:0043 s:0327 b:0327 l:001bc8 d:001bc8 METHOD 
/Users/sgrgic/.rvm/gems/ruby-1.9.3-p125@DWR3/gems/httpclient-2.2.4/lib/httpclient/session.rb:731
c:0065 p:0020 s:0322 b:0322 l:000321 d:000321 METHOD 
/Users/sgrgic/.rvm/gems/ruby-1.9.3-p125@DWR3/gems/httpclient-2.2.4/lib/httpclient/session.rb:594
c:0064 p:0063 s:0318 b:0318 l:000317 d:000317 METHOD 
/Users/sgrgic/.rvm/gems/ruby-1.9.3-p125@DWR3/gems/httpclient-2.2.4/lib/httpclient/session.rb:161
c:0063 p:0161 s:0312 b:0312 l:000311 d:000311 METHOD 
/Users/sgrgic/.rvm/gems/ruby-1.9.3-p125@DWR3/gems/httpclient-2.2.4/lib/httpclient.rb:1060
c:0062 p:0021 s:0300 b:0300 l:000293 d:000299 BLOCK  
/Users/sgrgic/.rvm/gems/ruby-1.9.3-p125@DWR3/gems/httpclient-2.2.4/lib/httpclient.rb:869
c:0061 p:0009 s:0298 b:0298 l:000297 d:000297 METHOD 
/Users/sgrgic/.rvm/gems/ruby-1.9.3-p125@DWR3/gems/httpclient-2.2.4/lib/httpclient.rb:956
c:0060 p:0149 s:0294 b:0294 l:000293 d:000293 METHOD 
/Users/sgrgic/.rvm/gems/ruby-1.9.3-p125@DWR3/gems/httpclient-2.2.4/lib/httpclient.rb:868
c:0059 p:0197 s:0279 b:0279 l:000278 d:000278 METHOD 
/Users/sgrgic/.rvm/gems/ruby-1.9.3-p125@DWR3/gems/httpclient-2.2.4/lib/httpclient.rb:756
c:0058 p:0032 s:0267 b:0267 l:000266 d:000266 METHOD 
/Users/sgrgic/.rvm/gems/ruby-1.9.3-p125@DWR3/gems/httpclient-2.2.4/lib/httpclient.rb:666
c:0057 p:0024 s:0261 b:0261 l:000250 d:000260 BLOCK  
/Users/sgrgic/.rvm/gems/ruby-1.9.3-p125@DWR3/gems/httpi-0.9.6/lib/httpi/adapter/httpclient.rb:32
c:0056 p:0044 s:0256 b:0255 l:000254 d:000254 METHOD 
/Users/sgrgic/.rvm/gems/ruby-1.9.3-p125@DWR3/gems/httpi-0.9.6/lib/httpi/adapter/httpclient.rb:64
c:0055 p:0013 s:0251 b:0251 l:000250 d:000250 METHOD 
/Users/sgrgic/.rvm/gems/ruby-1.9.3-p125@DWR3/gems/httpi-0.9.6/lib/httpi/adapter/httpclient.rb:31
c:0054 p:0038 s:0247 b:0247 l:000235 d:000246 BLOCK  
/Users/sgrgic/.rvm/gems/ruby-1.9.3-p125@DWR3/gems/httpi-0.9.6/lib/httpi.rb:96
c:0053 p:0079 s:0243 b:0243 l:000242 d:000242 METHOD 
/Users/sgrgic/.rvm/gems/ruby-1.9.3-p125@DWR3/gems/httpi-0.9.6/lib/httpi.rb:194
c:0052 p:0035 s:0236 b:0236 l:000235 d:000235 METHOD 
/Users/sgrgic/.rvm/gems/ruby-1.9.3-p125@DWR3/gems/httpi-0.9.6/lib/httpi.rb:94
c:0051 p:0044 s:0230 b:0230 l:000229 d:000229 METHOD 
/Users/sgrgic/.rvm/gems/ruby-1.9.3-p125@DWR3/gems/google-ads-common-0.6.3/lib/ads_common/http.rb:51
c:0050 p:0206 s:0222 b:0222 l:000221 d:000221 METHOD 
/Users/sgrgic/.rvm/gems/ruby-1.9.3-p125@DWR3/gems/google-ads-common-0.6.3/lib/ads_common/auth/client_login_handler.rb:152
c:0049 p:0028 s:0211 b:0211 l:000210 d:000210 METHOD 
/Users/sgrgic/.rvm/gems/ruby-1.9.3-p125@DWR3/gems/google-ads-common-0.6.3/lib/ads_common/auth/client_login_handler.rb:128
c:0048 p:0031 s:0206 b:0206 l:000205 d:000205 METHOD 
/Users/sgrgic/.rvm/gems/ruby-1.9.3-p125@DWR3/gems/google-ads-common-0.6.3/lib/ads_common/auth/base_handler.rb:62
c:0047 p:0029 s:0202 b:0200 l:000199 d:000199 METHOD 

Is the 'id' for a product criterion unique?

2012-03-28 Thread HK
Could someone please confirm whether the id attribute of product 
criterionhttp://code.google.com/apis/adwords/docs/reference/latest/AdGroupCriterionService.Product.htmlis
 globally unique by itself, or only within the ad group?

Thanks!
Hans

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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: Is the 'id' for a product criterion unique?

2012-03-28 Thread Ewan Heming
I believe that all criterion ids are only unique within an AdGroup. Try 
creating an identical product criterion in a different AdGroup and see what 
id it's given; I know that a keyword with the same text and match type will 
get the same id.

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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