AdWords API Re: InfoService with API 200909

2010-02-05 Thread ralf.s
Hi Eric,

we always use the MCC-user to get the auth-token and we use the email
of the specific account in the soap-header of the services.
we tried the InfoService also with the MCC-user in the soap-header -
but both variants do not work.

Thanks
Ralf

On Feb 3, 8:25 pm, AdWords API Advisor 
wrote:
> Hi Ralph,
>
> One of the caveats of the newInfoServiceis that it currently only
> works if your email and password used to generate the authToken is for
> the MCC account that owns the developer token (has the AdWords API
> Center tab in the web interface).  Please ensure that you are using
> this MCC user when generating your authToken and try again.
>
> Best,
> - Eric Koleda, AdWords API Team
>
> On Feb 2, 10:20 am, "ralf.s"  wrote:
>
>
>
> > We still get have problems with theInfoServiceof Version V200909.
> > V13 works fine here.
> > We do exactly whats listed in the Per-Call Migration Guide.
> > We use java and the adwords-api-6.3.0-loner.jar lib.
>
> > Example 1:
> > InfoSelector selector = new InfoSelector();
> > selector.setApiUsageType(ApiUsageType.UNIT_COUNT);
> > selector.setDateRange(new DateRange("20100101", "20100201"));
> > ApiUsageInfo res = service.get(selector);
>
> > always return 0 costs, while V13 Version getUnitCount(startDate,
> > endDate) works fine.
>
> > Example 2:
>
> > InfoSelector selector = new InfoSelector();
> > selector.setClientEmails(new String[] { "" });
> > selector.setApiUsageType(ApiUsageType.UNIT_COUNT_FOR_CLIENTS);
> > selector.setDateRange(new DateRange("20100101", "20100201"));
> > ApiUsageInfo res = service.get(selector);
>
> > throws an error [ApiUsageError.INVALID_CLIENT_EMAIL @ selector] also
> > the specified email is a valid account in the mcc-acount.
>
> > Any suggestions?
>
> > Thanks
> > Ralf
>
> > By the way. Sample Code for Java is still for V200906 and not all
> > Services are included.

-- 
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 Proper way to react to a "502 - Bad Gateway" condition

2010-02-05 Thread Orly Junior
Hi,

Everyday we make about 45000 keyword (bid) changes through the API, in
batches of aproximetly 256 at a time.
Rigorously, some of these calls fail with error 502 - Bad Gateway.
I have a few questions about how to recover and proceed from this
condition:

- Should I retry immediately after I get the error or should I way
before reposting the request?

- Will increasing the number of changes per batch, also increase the
probability of getting the 502 error?

- I understand that each keyword change will cost me 3 units, as for
Feb 2010; will I be changed for the underlying operations anyway, if I
get the 502 error?

Thanks in advance,

Orly

-- 
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: Authentication token and requests per second

2010-02-05 Thread nothize
>Is there anyway to force a token to expire?

Not to my knowledge, should be a good alternative but that might not
be so viable because even a password change needs about 10 minutes to
expire the token. The Auth Token is meant to be used by all Google
services, thus there may be issues with real-time expiration in such a
distributed environment.


>GOOGLE_ACCOUNT_COOKIE_INVALID
>It that the error reason that should trigger getting a new fresh
>token?

>From my own experience without reading any documents, yes.

There're some ideas in the thread below, see if it fits:
http://groups.google.com/group/adwords-api/browse_thread/thread/ed642a1b878dc9d7/f6ff482f1c938385?#f6ff482f1c938385

Any proxy layer will surely be working too. Just implement your own
[request proxy token, try, fail->[request new proxy token, retry],
success->[done]] mechanism.

On Feb 5, 3:57 am, "Peer Jakobsen (AdWords API Guru)"
 wrote:
> One more question. What error reason can I expect when a token
> expires. I can see that if I put some random value I get this:
> GOOGLE_ACCOUNT_COOKIE_INVALID
>
> It that the error reason that should trigger getting a new fresh
> token?
>
> 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: ngram_group and keyword_category attributes for TargetingIdeaSelector

2010-02-05 Thread Juan
Moreover, why does KEYWORD_CATEGORY return a set of ints
(IntegerSetAttribute)? From the description I understood it would
return only one int.

Thanks again,
Juan

On Feb 4, 7:18 pm, Juan  wrote:
> I been searching some stuff at the docs/forum with no luck.
>
> At the TargetIdeaService docs it is mentioned that one can select
> requestAttributes. The ones that I am concerned about are ngram_group
> and keyword_category.
>
> The meaning of ngram_group was explained on this forum (see 
> post:http://groups.google.com/group/adwords-api/browse_thread/thread/b1d31...)
>
> However, there's little said about the keyword_category attribute. The
> docs say: "Represents a category id for a category within the category
> hierarchy for keyword ideas". I see no keyword's category hierarchy
> anywhere, so my guess is that the id refers to the ngram_group to
> which the keyword belongs.
>
> Is my guess correct? If not, what does the keyword_category really
> stands for?
>
> Thanks in advance,
> Juan

-- 
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: network types of v200909

2010-02-05 Thread AdWords API Advisor
Hi Ashkan,

Please see the following thread:
http://groups.google.com/group/adwords-api/browse_thread/thread/cff28bfa0df5e8d1/

Best,
- Eric Koleda, AdWords API Team

On Feb 2, 11:45 pm, PHP Developer 
wrote:
> Could someone explain the following network types in more depth:
>
> CONTENT_CONTEXTUALIndicate ads coverage for
> "content_synd_contextual".
> CPA_REFERRAL Indicate ads coverage for "referral".
>
> Thanks
>
> -Ashkan

-- 
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 headers w/o using a config file

2010-02-05 Thread ADM
I am having trouble creating a Dictionary header for
constructing a new AdWordsUser. This is how I am currently
constructing the headers:

AuthToken authToken = new AuthToken(Email, Password);
authToken_str = authToken.GetToken();

clientEmail_str = p_clientEmail_str;

headers_dic = new Dictionary();
headers_dic.Add("authtoken", authToken_str);
headers_dic.Add("useragent", UserAgent);
headers_dic.Add("developerToken", DeveloperToken);
headers_dic.Add("clientEmail", clientEmail_str);

Later, I attempt to create  new AdWordsUser:

user = new AdWordsUser(headers_dic);

and an exception is thrown stating that an "object Reference not set
to an instance of an object." Is there something I am missing about
how to construct the headers? So far I have not been able to find any
v200909 documentation on how to create a new AdWordsUser without using
an App.config file.

-- 
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 How to get keywordsuggetion in my application

2010-02-05 Thread nathenastle astle
please send the source code  to use the google addwords,my requirement
is to genrate keywords as same as google addwords tool how can i get
into my app please tell me


thanks in advance

-- 
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 Related Keywords by choosing language

2010-02-05 Thread adwo...@seo-news.at
Hi there!

I'm new to the Adwords API but I'm trying to get related keywords (as
well as the monthly search volume) for german language , searches from
Austria.

I'm using your basic code mixed with snippets found at the Adwords API
Forum.

When I run the code I do only get english results...Do you find my
mistake?

###

LogDefaults();

$keywordService = $user-
>GetTargetingIdeaService();

$keyword = new Keyword();
$keyword->text = "auto";
$keyword->matchType = "BROAD";


$languageService= new LanguageTarget();
$languageService->languageCode='de';
$languageService->TargetType='de';

$countryService= new
CountryTargetSearchParameter();
$countryService->countryTargets='AT';

$keyword_array = array($keyword);
$relatedToKeywordSearchParameter = new
RelatedToKeywordSearchParameter($keyword_array, $languageService,
$countryService);

$targetingIdeaSelector = new
TargetingIdeaSelector();
$targetingIdeaSelector->searchParameters =
array(
 
$relatedToKeywordSearchParameter
);

$targetingIdeaSelector->ideaType = 'KEYWORD';
$targetingIdeaSelector->requestType = 'IDEAS';

$targetingIdeaSelector-
>requestedAttributeTypes=array
( 'KEYWORD','GLOBAL_MONTHLY_SEARCHES' );
$targetingIdeaSelector->paging = new
Paging(0,5);

$page = $keywordService-
>get($targetingIdeaSelector);

print_r($page);

} catch (Exception $e) {
  print_r($e);
}

?>


#

Whatever I try, it ends up in american (or english?) results.
Thanks for your help,

Huggy

-- 
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: Placement Performance report bug

2010-02-05 Thread AdWords API Advisor
Hi Harut,

Do you have the SOAP XML request and response for this error?

Best,
- Eric Koleda, AdWords API Team

On Feb 4, 9:08 am, harroot  wrote:
> Hi all
>
> I'm using .net api v13, amd try to create placement performance report
> with this selected columns
> ["PlacementDomain","PlacementSpecialCategory","SiteTargeted","CPC","CTR","C 
> licks","Cost","Impressions","CustomerName"] ,
> report type is "ContentPlacement" and the
> aggregationTypes["Account","Domain","Summary"]
> but when I call validateReportJob() with this values the servce give
> me the following error message
>
>      *  One or more report job parameters is invalid.
>     *  The following columns are not supported by the Report Type
> ContentPlacement : [CustomerName]
>
> But in the following link 
> (http://code.google.com/apis/adwords/docs/developer/adwords_api_report...
> ) I found that the selected columns mentioned above  are correct !
>
> Is this bug, or I'm I do something wrong?
>
> Best regards,
> Harut.

-- 
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: Requests per minute limit

2010-02-05 Thread AdWords API Advisor
Hi Pedro,

Unfortunately I can't get into detail about the exact limits around
requests per minute or similar rate limits, but you should be able to
make many more requests than two per minute.  Are there other scripts
or programs that could be access the account at the same time?  Do you
have the requestId from one of these failed requests?

Thanks,
- Eric Koleda, AdWords API Team

On Feb 3, 9:00 pm, Pedro Morales  wrote:
> Hello everyone,
>
> I'm working porting a v13 application to v2009 and I'm having problems
> because I keep getting a QUOTA_EXCEEDED error with the number of
> requests per minute (RequestsPerMinute).
> I didn't found any information about this in Google's documentation.
>
> With v13 I didn't have any issue with the same amount of requests.
> Right now, only around 2 per minute are passing and I'm not using the
> sandbox.
>
> Is there any way to know the request per minute limit? Is there some
> way around this limit?
>
> Thanks in advance.

-- 
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: Error - Not agreed to latest AdWords Api terms and conditions

2010-02-05 Thread AdWords API Advisor
Hi Pedro,

This error normally appears when you haven't yet set up billing
information on the MCC account that you registered to use with the
API.  Part of setting up billing information is approving the AdWords
API Terms and Conditions.  Let me know if you run into any further
issues.

Best,
- Eric Koleda, AdWords API Team

On Feb 4, 5:25 am, Pedro  wrote:
> I'm trying to develop a small app using the API but when I try to run
> it I always come across the following error:
> "Not agreed to latest AdWords Api terms and conditions."
>
> I've logged in with my MCC account to check if there was any alert on
> the new Terms & Conditions but there's nothing. I've also checked the
> same on all the clients and I see now option to agree with the T&S.
>
> Has anybody had the same problem and was able to solve it? I'd
> appreciate any insight on the problem.
>
> Thanks in advance

-- 
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: RelatedToKeywordSearchParameter - Related to all keywords in list or related to a given keyword in list?

2010-02-05 Thread AdWords API Advisor
Hi Shane,

The KeywordMatchTypeSearchParameter only controls the matchType field
of the returned keywords, it too doesn't affect the actual keyword
texts that are returned.  I think this is simply a case where adding a
variety of variations of your source keyword generated better
suggestions.

Best,
- Eric

On Feb 4, 11:45 am, Shane  wrote:
> Hi Eric,
>
> I can see why the match type for the input keywords might be ignored
> but why is the KeywordMatchTypeSearchParameter (which is set to
> PHRASE) being ignored when the input dataset is small (< 4) ?
>
> Shane
>
> On Feb 4, 7:42 am, AdWords API Advisor 
> wrote:
>
>
>
> > Hi Shane,
>
> > Thanks for expanding on your question.  The cause of confusion here is
> > that the match type of the input keywords has no effect on the results
> > generated.  You can see this in the web interface and even the old v13
> > KeywordToolService.
>
> > Best,
> > - Eric
>
> > On Feb 3, 4:50 pm, Shane  wrote:
>
> > > Hi Eric,
>
> > > I don't think I was quite clear on the issue.  I'm not trying to
> > > exactly reproduce the results of the Keyword Tool.  I am trying to
> > > understand why a TargetingIdeaService search using PHRASE matching
> > > would return results that are not PHRASE matches.
>
> > > For example, running the keywords "chess programs" and "programs
> > > chess" returns results that are not PHRASE matches.
> > > i.e.
> > >   chess strategy
> > >   chess strategies
> > >   chess pawn
> > >   chess tournament
> > >   chess move
>
> > > But if I add just two more keywords (i.e. "chess programs", "programs
> > > chess", "chess program", "program chess") I get the proper PHRASE
> > > matches
> > > i.e.
> > >   programs chess
> > >   chess program
> > >   school chess programs
> > >   online chess programs
> > >   online chess program
>
> > > You can see from the SOAP calls in my original post that the queries
> > > are identical except for the number of keywords submitted.
>
> > > Shane
>
> > > On Feb 3, 12:24 pm, AdWords API Advisor 
> > > wrote:
>
> > > > Hi Shane,
>
> > > > Using the available SearchParameters it is not currently possible to
> > > > exactly reproduce the results of the Search-based Keyword Tool using
> > > > the TargetingIdeaService.  You can come closer by using the
> > > > NGramGroupsSearchParameter, but it is not a complete solution.  More
> > > > information is available in this thread:
>
> > > >  https://groups.google.com/group/adwords-api/browse_thread/thread/b246...
>
> > > > Best,
> > > > - Eric Koleda, AdWords API Team
>
> > > > On Feb 2, 5:12 pm, Shane  wrote:
>
> > > > > I have a script that uses the TargetingIdeaService and we have been
> > > > > getting good results from it for the most part.  Generally we submit a
> > > > > dozen or so keywords looking for PHRASE matches and the results we get
> > > > > back are consistent with the keyword tool.  For some reason using a
> > > > > smaller dataset (1-3 keywords) seems to come back with much broader
> > > > > results.
>
> > > > > For example if we use:
> > > > >   chess programs
> > > > >   programs chess
> > > > >   chess program
> > > > >   program chess
>
> > > > > We get back matching phrases:
> > > > > programs chess
> > > > > chess program
> > > > > school chess programs
> > > > > online chess programs
> > > > > online chess program
> > > > > chess training program
> > > > > chess tournament program
> > > > > chess training programs
> > > > > program chess
> > > > > chess study program
> > > > > chess teaching programs
> > > > > old chess programs
> > > > > strong chess programs
> > > > > ...
>
> > > > > If we only search on two keywords:
> > > > >   chess programs
> > > > >   programs chess
>
> > > > > We get back phrases that are loosely related:
> > > > > chess strategy
> > > > > chess strategies
> > > > > chess pawn
> > > > > chess tournament
> > > > > chess move
> > > > > championship chess
> > > > > chess federation
> > > > > chess tactics
> > > > > chess rules
> > > > > online chess programs
> > > > > chess programs fritz
> > > > > chess downloads
> > > > > chess freeware
> > > > > ...
>
> > > > > The Keyword Tool returns appropriate PHRASE results for those two
> > > > > keywords so I am wondering if I'm missing a parameter to narrow down
> > > > > the results or if maybe the RelatedToKeywordSearchParameter is looking
> > > > > at the keywords as a group rather than as individual keywords.
>
> > > > > Here's the working SOAP call:
> > > > > 
> > > > > 
> > > > > 
> > > > > 
> > > > > 
> > > > > 
> > > > > 
> > > > > false
> > > > > 
> > > > > 
> > > > > 
> > > > > 
> > > > > 
> > > > > 
> > > > > 
> > > > > chess programs
> > > > > PHRASE
> > > > > 
> > > > > 
> > > > > programs chess
> > > > > PHRASE
> > > > > 
> > > > > 
> > > > > chess program
> > > > > PHRASE
> > > > > 
> > > > > 
> > > > > program chess
> > > > > PHRASE
> > > > > 
> > > > > 
> > > > > 
> > > > > 
> > > > > EN
> > > > > 
> > > > > 
> > > > > 
> > > > > PHRASE
> > > > > 
> > > > > KEYWORD
> > > > > I

AdWords API Re: keyword matchtype for RelatedToUrlSearchParameter

2010-02-05 Thread AdWords API Advisor
Hi,

You'll want to use the KeyworkMatchTypeSearchParameter:

  
http://code.google.com/apis/adwords/v2009/docs/reference/TargetingIdeaService.KeywordMatchTypeSearchParameter.html

Best,
- Eric Koleda, AdWords API Team

On Feb 4, 12:24 pm, Ajit  wrote:
> Hello team
>
> I am trying to get suggested keyword for a give website. it is working
> fine.. but I only want "BROAD" match type..
>
> is there a way to specify matchtype = "BROAD" for
> RelatedToUrlSearchParameter method.
>
> following is my code:
>
> related_search = @ti_srv.module::RelatedToUrlSearchParameter.new
>       related_search.urls ="http://yahoo.com"#options[:urls]
>
>       g =
> @ti_srv.module::AverageTargetedMonthlySearchesSearchParameter.new
>       o = @ti_srv.module::LongComparisonOperation.new
>       o.minimum = 0
>       o.maximum = 100_000_000_000
>       g.operation = o
>
>       @selector.searchParameters = [related_search, g]
>       @selector.ideaType = 'KEYWORD'
>       @selector.requestType = 'IDEAS'
>
>       @selector.requestedAttributeTypes = ['KEYWORD',
> "AVERAGE_TARGETED_MONTHLY_SEARCHES"]
>
>        paging = @ti_srv.module::Paging.new
>        paging.startIndex = 0
>        paging.numberResults = 20
>       �...@selector.paging = paging
>
>          # Get results
>     index = 20
>     results = []
>     while true
>       page = @ti_srv.get(@selector).rval
>       return nil if page.nil?
>       results += page.entries if page.entries
>       break if page.totalNumEntries > index
>
>       index += paging.numberResults
>
>       paging.startIndex = index
>
>     end
>
>     return results

-- 
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: Returning predicted CPCs for keywords

2010-02-05 Thread AdWords API Advisor
Hi Charles,

The v200909 TargetingIdeaService does not return estimated data, such
as CPC.  This information is planned to be exposed in another service,
although I don't have a timeline as to when that service will be
released.

Best,
- Eric Koleda, AdWords API Team

On Feb 4, 12:22 pm, Charles Pick  wrote:
> Hi,
>
> I attended your London API Hack Day yesterday which was great as we
> got the bulk of our code transferred to v2009. One thing I forgot to
> ask though... has support for returning CPCs for keyword suggestions
> been removed? I can't find any mention of it in the API docs and it's
> a pretty crucial feature for us.
>
> Thanks for your help,
>
> Charles Pick

-- 
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: Authentication token and requests per second

2010-02-05 Thread AdWords API Advisor
Hi Peer,

To expand on nothize's points, the password change is the only way to
manually expire an authToken, but I'm not sure that you would really
need to worry about expiring them.  While I can understand the idea of
proactively regenerating your authTokens before they expire, there is
no harm is leaving the old token un-expired until they do so
naturally.  From what I know the limitation is on how often you
request tokens, not how many unexpired ones there are in the wild.

Best,
- Eric Koleda, AdWords API Team

On Feb 5, 5:34 am, nothize  wrote:
> >Is there anyway to force a token to expire?
>
> Not to my knowledge, should be a good alternative but that might not
> be so viable because even a password change needs about 10 minutes to
> expire the token. The Auth Token is meant to be used by all Google
> services, thus there may be issues with real-time expiration in such a
> distributed environment.
>
> >GOOGLE_ACCOUNT_COOKIE_INVALID
> >It that the error reason that should trigger getting a new fresh
> >token?
>
> From my own experience without reading any documents, yes.
>
> There're some ideas in the thread below, see if it 
> fits:http://groups.google.com/group/adwords-api/browse_thread/thread/ed642...
>
> Any proxy layer will surely be working too. Just implement your own
> [request proxy token, try, fail->[request new proxy token, retry],
> success->[done]] mechanism.
>
> On Feb 5, 3:57 am, "Peer Jakobsen (AdWords API Guru)"
>
>
>
>  wrote:
> > One more question. What error reason can I expect when a token
> > expires. I can see that if I put some random value I get this:
> > GOOGLE_ACCOUNT_COOKIE_INVALID
>
> > It that the error reason that should trigger getting a new fresh
> > token?
>
> > 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: Authentication token and requests per second

2010-02-05 Thread AdWords API Advisor
Hi Peer,

In regards to the error, I just ran some tests and
GOOGLE_ACCOUNT_COOKIE_INVALID is the reason you would get for an
expired token as well.  Also, the token was invalidated immediately
after changing the password.

Best,
- Eric

On Feb 5, 11:25 am, AdWords API Advisor 
wrote:
> Hi Peer,
>
> To expand on nothize's points, the password change is the only way to
> manually expire an authToken, but I'm not sure that you would really
> need to worry about expiring them.  While I can understand the idea of
> proactively regenerating your authTokens before they expire, there is
> no harm is leaving the old token un-expired until they do so
> naturally.  From what I know the limitation is on how often you
> request tokens, not how many unexpired ones there are in the wild.
>
> Best,
> - Eric Koleda, AdWords API Team
>
> On Feb 5, 5:34 am, nothize  wrote:
>
>
>
> > >Is there anyway to force a token to expire?
>
> > Not to my knowledge, should be a good alternative but that might not
> > be so viable because even a password change needs about 10 minutes to
> > expire the token. The Auth Token is meant to be used by all Google
> > services, thus there may be issues with real-time expiration in such a
> > distributed environment.
>
> > >GOOGLE_ACCOUNT_COOKIE_INVALID
> > >It that the error reason that should trigger getting a new fresh
> > >token?
>
> > From my own experience without reading any documents, yes.
>
> > There're some ideas in the thread below, see if it 
> > fits:http://groups.google.com/group/adwords-api/browse_thread/thread/ed642...
>
> > Any proxy layer will surely be working too. Just implement your own
> > [request proxy token, try, fail->[request new proxy token, retry],
> > success->[done]] mechanism.
>
> > On Feb 5, 3:57 am, "Peer Jakobsen (AdWords API Guru)"
>
> >  wrote:
> > > One more question. What error reason can I expect when a token
> > > expires. I can see that if I put some random value I get this:
> > > GOOGLE_ACCOUNT_COOKIE_INVALID
>
> > > It that the error reason that should trigger getting a new fresh
> > > token?
>
> > > 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: keyword matchtype for RelatedToUrlSearchParameter

2010-02-05 Thread Ajit
I tried using that.. but then system just hangs up.. I never get
response back from Google.



On Feb 5, 11:08 am, AdWords API Advisor 
wrote:
> Hi,
>
> You'll want to use the KeyworkMatchTypeSearchParameter:
>
>  http://code.google.com/apis/adwords/v2009/docs/reference/TargetingIde...
>
> Best,
> - Eric Koleda, AdWords API Team
>
> On Feb 4, 12:24 pm, Ajit  wrote:
>
> > Hello team
>
> > I am trying to get suggested keyword for a give website. it is working
> > fine.. but I only want "BROAD" match type..
>
> > is there a way to specify matchtype = "BROAD" for
> > RelatedToUrlSearchParameter method.
>
> > following is my code:
>
> > related_search = @ti_srv.module::RelatedToUrlSearchParameter.new
> >       related_search.urls ="http://yahoo.com"#options[:urls]
>
> >       g =
> > @ti_srv.module::AverageTargetedMonthlySearchesSearchParameter.new
> >       o = @ti_srv.module::LongComparisonOperation.new
> >       o.minimum = 0
> >       o.maximum = 100_000_000_000
> >       g.operation = o
>
> >       @selector.searchParameters = [related_search, g]
> >       @selector.ideaType = 'KEYWORD'
> >       @selector.requestType = 'IDEAS'
>
> >       @selector.requestedAttributeTypes = ['KEYWORD',
> > "AVERAGE_TARGETED_MONTHLY_SEARCHES"]
>
> >        paging = @ti_srv.module::Paging.new
> >        paging.startIndex = 0
> >        paging.numberResults = 20
> >       �...@selector.paging = paging
>
> >          # Get results
> >     index = 20
> >     results = []
> >     while true
> >       page = @ti_srv.get(@selector).rval
> >       return nil if page.nil?
> >       results += page.entries if page.entries
> >       break if page.totalNumEntries > index
>
> >       index += paging.numberResults
>
> >       paging.startIndex = index
>
> >     end
>
> >     return results

-- 
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: Adwords API 2009 - Stats.Network

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

The stats network value indicates the scope of the stats, and since
this can't be controlled by the statsSelector it will always be
returned as "ALL" for Campaign stats.  In your case these stats will
only only include data from the search network, since that is the only
network your campaign is a part of.

Best,
- Eric Koleda, AdWords API Team

On Feb 4, 3:55 pm, Navi  wrote:
> Hi,
>
> I am migrating Google API v13 to v2009.
> I updated the getAllCampaigns method and successfully ran it for an
> account.
> Everything else seems to be fine but I am not sure about the network
> type.
> The value returned by campaign.stats.network is 'ALL' which I assume
> means both content and search networks.
> But if I go to adwords account on google, the same campaign is marked
> only for Search and Content is unchecked.
> I don't know whats wrong here.
> Please help.
> I can provide more details about campaign if needed.
>
> 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: ngram_group and keyword_category attributes for TargetingIdeaSelector

2010-02-05 Thread AdWords API Advisor
Hi Juan,

The KEYWORD_CATEGORY is an ID that corresponds to a grouping of
keywords by topic.  These categories are the values presented in the
left column of the Search-based Keyword Tool:

  http://www.google.com/sktool/#keywords?cat=194595&q=cat

We are working on adding these categories and their ids to the
documentation, but unfortunately I don't have a timeline for when that
will be complete.

Best,
- Eric Koleda, AdWords API Team

On Feb 5, 9:38 am, Juan  wrote:
> Moreover, why does KEYWORD_CATEGORY return a set of ints
> (IntegerSetAttribute)? From the description I understood it would
> return only one int.
>
> Thanks again,
> Juan
>
> On Feb 4, 7:18 pm, Juan  wrote:
>
>
>
> > I been searching some stuff at the docs/forum with no luck.
>
> > At the TargetIdeaService docs it is mentioned that one can select
> > requestAttributes. The ones that I am concerned about are ngram_group
> > and keyword_category.
>
> > The meaning of ngram_group was explained on this forum (see 
> > post:http://groups.google.com/group/adwords-api/browse_thread/thread/b1d31...)
>
> > However, there's little said about the keyword_category attribute. The
> > docs say: "Represents a category id for a category within the category
> > hierarchy for keyword ideas". I see no keyword's category hierarchy
> > anywhere, so my guess is that the id refers to the ngram_group to
> > which the keyword belongs.
>
> > Is my guess correct? If not, what does the keyword_category really
> > stands for?
>
> > Thanks in advance,
> > Juan

-- 
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: Migrating the KeywordToolService from v13 to v200909

2010-02-05 Thread AdWords API Advisor
Hi Ryan,

The equivalent attributes are:

advertiserCompetitionScale => COMPETITION
lastMonthSearchVolume => TARGETED_MONTHLY_SEARCHES (this is an array
of the last 12 months)
avgSearchVolume => AVERAGE_TARGETED_MONTHLY_SEARCHES

Best,
- Eric Koleda, AdWords API Team

On Feb 4, 5:30 pm, Ryan  wrote:
> I'm working on a project that uses the v13 api and I'm trying to
> migrate to v200909.  The v13 call to getKeywordsFromSite returns
> SiteKeywords with the fields advertiserCompetitionScale,
> lastMonthSearchVolume, and avgSearchVolume.  Using the v200909
> TargetingIdeaService, I'm able to get a bunch of
> Type_AttributeMapEntries but I'm not sure how to translate these
> values into the v13 equivalent. What is the v200909 method of getting
> this information?
>
> 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: InfoService with API 200909

2010-02-05 Thread AdWords API Advisor
Hi Ralf,

When using the v200909 InfoService you need to ensure that you aren't
setting the clientEmail or clientCustomerId headers in the request.
Also, the MCC user you are using must be the same one that owns the
developer token.

Do you have the SOAP XML from these requests?  I'd like to follow up
in the internal logs to see if I can track down the issue.

Best,
- Eric

On Feb 5, 3:11 am, "ralf.s"  wrote:
> Hi Eric,
>
> we always use the MCC-user to get the auth-token and we use the email
> of the specific account in the soap-header of the services.
> we tried the InfoService also with the MCC-user in the soap-header -
> but both variants do not work.
>
> Thanks
> Ralf
>
> On Feb 3, 8:25 pm, AdWords API Advisor 
> wrote:
>
>
>
> > Hi Ralph,
>
> > One of the caveats of the newInfoServiceis that it currently only
> > works if your email and password used to generate the authToken is for
> > the MCC account that owns the developer token (has the AdWords API
> > Center tab in the web interface).  Please ensure that you are using
> > this MCC user when generating your authToken and try again.
>
> > Best,
> > - Eric Koleda, AdWords API Team
>
> > On Feb 2, 10:20 am, "ralf.s"  wrote:
>
> > > We still get have problems with theInfoServiceof Version V200909.
> > > V13 works fine here.
> > > We do exactly whats listed in the Per-Call Migration Guide.
> > > We use java and the adwords-api-6.3.0-loner.jar lib.
>
> > > Example 1:
> > > InfoSelector selector = new InfoSelector();
> > > selector.setApiUsageType(ApiUsageType.UNIT_COUNT);
> > > selector.setDateRange(new DateRange("20100101", "20100201"));
> > > ApiUsageInfo res = service.get(selector);
>
> > > always return 0 costs, while V13 Version getUnitCount(startDate,
> > > endDate) works fine.
>
> > > Example 2:
>
> > > InfoSelector selector = new InfoSelector();
> > > selector.setClientEmails(new String[] { "" });
> > > selector.setApiUsageType(ApiUsageType.UNIT_COUNT_FOR_CLIENTS);
> > > selector.setDateRange(new DateRange("20100101", "20100201"));
> > > ApiUsageInfo res = service.get(selector);
>
> > > throws an error [ApiUsageError.INVALID_CLIENT_EMAIL @ selector] also
> > > the specified email is a valid account in the mcc-acount.
>
> > > Any suggestions?
>
> > > Thanks
> > > Ralf
>
> > > By the way. Sample Code for Java is still for V200906 and not all
> > > Services are included.

-- 
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: Proper way to react to a "502 - Bad Gateway" condition

2010-02-05 Thread AdWords API Advisor
Hi Orly,

The 502 error is something the core engineering team is aware of and
working on.  These errors are caused by internal timeouts on the API
servers.  Reducing the size of your requests may help, 256 is already
a pretty low number of operations per request.  When you receive this
error you shouldn't be charged any API units.

Best,
- Eric Koleda, AdWords API Team

On Feb 5, 5:00 am, Orly Junior  wrote:
> Hi,
>
> Everyday we make about 45000 keyword (bid) changes through the API, in
> batches of aproximetly 256 at a time.
> Rigorously, some of these calls fail with error 502 - Bad Gateway.
> I have a few questions about how to recover and proceed from this
> condition:
>
> - Should I retry immediately after I get the error or should I way
> before reposting the request?
>
> - Will increasing the number of changes per batch, also increase the
> probability of getting the 502 error?
>
> - I understand that each keyword change will cost me 3 units, as for
> Feb 2010; will I be changed for the underlying operations anyway, if I
> get the 502 error?
>
> Thanks in advance,
>
> Orly

-- 
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: ngram_group and keyword_category attributes for TargetingIdeaSelector

2010-02-05 Thread AdWords API Advisor
Hi Juan,

In regards to the IntegerSetAttribute, it could be that a keyword
belongs to more than one category.

Best,
- Eric

On Feb 5, 11:53 am, AdWords API Advisor 
wrote:
> Hi Juan,
>
> The KEYWORD_CATEGORY is an ID that corresponds to a grouping of
> keywords by topic.  These categories are the values presented in the
> left column of the Search-based Keyword Tool:
>
>  http://www.google.com/sktool/#keywords?cat=194595&q=cat
>
> We are working on adding these categories and their ids to the
> documentation, but unfortunately I don't have a timeline for when that
> will be complete.
>
> Best,
> - Eric Koleda, AdWords API Team
>
> On Feb 5, 9:38 am, Juan  wrote:
>
>
>
> > Moreover, why does KEYWORD_CATEGORY return a set of ints
> > (IntegerSetAttribute)? From the description I understood it would
> > return only one int.
>
> > Thanks again,
> > Juan
>
> > On Feb 4, 7:18 pm, Juan  wrote:
>
> > > I been searching some stuff at the docs/forum with no luck.
>
> > > At the TargetIdeaService docs it is mentioned that one can select
> > > requestAttributes. The ones that I am concerned about are ngram_group
> > > and keyword_category.
>
> > > The meaning of ngram_group was explained on this forum (see 
> > > post:http://groups.google.com/group/adwords-api/browse_thread/thread/b1d31...)
>
> > > However, there's little said about the keyword_category attribute. The
> > > docs say: "Represents a category id for a category within the category
> > > hierarchy for keyword ideas". I see no keyword's category hierarchy
> > > anywhere, so my guess is that the id refers to the ngram_group to
> > > which the keyword belongs.
>
> > > Is my guess correct? If not, what does the keyword_category really
> > > stands for?
>
> > > Thanks in advance,
> > > Juan

-- 
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: keyword matchtype for RelatedToUrlSearchParameter

2010-02-05 Thread AdWords API Advisor
Hi Ajit,

I've been able to use that parameter successfully.  Do you have the
SOAP XML of the failed request?

Best,
- Eric

On Feb 5, 11:33 am, Ajit  wrote:
> I tried using that.. but then system just hangs up.. I never get
> response back from Google.
>
> On Feb 5, 11:08 am, AdWords API Advisor 
> wrote:
>
>
>
> > Hi,
>
> > You'll want to use the KeyworkMatchTypeSearchParameter:
>
> >  http://code.google.com/apis/adwords/v2009/docs/reference/TargetingIde...
>
> > Best,
> > - Eric Koleda, AdWords API Team
>
> > On Feb 4, 12:24 pm, Ajit  wrote:
>
> > > Hello team
>
> > > I am trying to get suggested keyword for a give website. it is working
> > > fine.. but I only want "BROAD" match type..
>
> > > is there a way to specify matchtype = "BROAD" for
> > > RelatedToUrlSearchParameter method.
>
> > > following is my code:
>
> > > related_search = @ti_srv.module::RelatedToUrlSearchParameter.new
> > >       related_search.urls ="http://yahoo.com"#options[:urls]
>
> > >       g =
> > > @ti_srv.module::AverageTargetedMonthlySearchesSearchParameter.new
> > >       o = @ti_srv.module::LongComparisonOperation.new
> > >       o.minimum = 0
> > >       o.maximum = 100_000_000_000
> > >       g.operation = o
>
> > >       @selector.searchParameters = [related_search, g]
> > >       @selector.ideaType = 'KEYWORD'
> > >       @selector.requestType = 'IDEAS'
>
> > >       @selector.requestedAttributeTypes = ['KEYWORD',
> > > "AVERAGE_TARGETED_MONTHLY_SEARCHES"]
>
> > >        paging = @ti_srv.module::Paging.new
> > >        paging.startIndex = 0
> > >        paging.numberResults = 20
> > >       �...@selector.paging = paging
>
> > >          # Get results
> > >     index = 20
> > >     results = []
> > >     while true
> > >       page = @ti_srv.get(@selector).rval
> > >       return nil if page.nil?
> > >       results += page.entries if page.entries
> > >       break if page.totalNumEntries > index
>
> > >       index += paging.numberResults
>
> > >       paging.startIndex = index
>
> > >     end
>
> > >     return results

-- 
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: Requests per minute limit

2010-02-05 Thread Pedro Morales
>
> Are there other scripts
> or programs that could be access the account at the same time?  

No. Only one program accessing the api using v2009.

> Do you
> have the requestId from one of these failed requests?
>

bdd072832a80aa79575238f68c1b3a47

Thanks for your time.

> Thanks,
> - Eric Koleda, AdWords API Team
>
> On Feb 3, 9:00 pm, Pedro Morales  wrote:
>
> > Hello everyone,
>
> > I'm working porting a v13 application to v2009 and I'm having problems
> > because I keep getting a QUOTA_EXCEEDED error with the number of
> > requests per minute (RequestsPerMinute).
> > I didn't found any information about this in Google's documentation.
>
> > With v13 I didn't have any issue with the same amount of requests.
> > Right now, only around 2 per minute are passing and I'm not using the
> > sandbox.
>
> > Is there any way to know the request per minute limit? Is there some
> > way around this limit?
>
> > Thanks in advance.

-- 
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: Adwords API 2009 - Stats.Network

2010-02-05 Thread Navi
Eric,

Thanks for your response.
But I am confused with your answer.
Sorry but then how do I get which network my campaign is placed on.
Literally I need to know how to get equivalent of v13 networkTypes[]
value in v2009.

Thanks again for your help.
Navi

On Feb 5, 11:49 am, AdWords API Advisor 
wrote:
> Hi Navi,
>
> The stats network value indicates the scope of the stats, and since
> this can't be controlled by the statsSelector it will always be
> returned as "ALL" for Campaign stats.  In your case these stats will
> only only include data from the search network, since that is the only
> network your campaign is a part of.
>
> Best,
> - Eric Koleda, AdWords API Team
>
> On Feb 4, 3:55 pm, Navi  wrote:
>
> > Hi,
>
> > I am migrating Google API v13 to v2009.
> > I updated the getAllCampaigns method and successfully ran it for an
> > account.
> > Everything else seems to be fine but I am not sure about the network
> > type.
> > The value returned by campaign.stats.network is 'ALL' which I assume
> > means both content and search networks.
> > But if I go to adwords account on google, the same campaign is marked
> > only for Search and Content is unchecked.
> > I don't know whats wrong here.
> > Please help.
> > I can provide more details about campaign if needed.
>
> > 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: Related Keywords by choosing language

2010-02-05 Thread adwo...@seo-news.at
Hi!

I've managed getting the language stuff (Even if it sometimes returns
non-german (I'd guess its dutch)) keywords.
But it still returns BROAD, PHRASE and Exact - So I'd have to pay
three Credits for one keyword...
Would you tell me how to solve that? :-)

On 5 Feb., 12:51, "adwo...@seo-news.at"  wrote:
> Hi there!
>
> I'm new to the Adwords API but I'm trying to get related keywords (as
> well as the monthly search volume) for german language , searches from
> Austria.
>
> I'm using your basic code mixed with snippets found at the Adwords API
> Forum.
>
> When I run the code I do only get english results...Do you find my
> mistake?
>
> ###
>
> 
> error_reporting(E_STRICT | E_ALL);
> $path = dirname(__FILE__) . '/../../src';
> set_include_path(get_include_path() . PATH_SEPARATOR . $path);
> require_once 'Google/Api/Ads/AdWords/Lib/AdWordsUser.php';
> try {
>  $user = new AdWordsUser();
>
>                         // Log SOAP XML request and response.
>                         $user->LogDefaults();
>
>                         $keywordService = $user-
>
> >GetTargetingIdeaService();
>
>                         $keyword = new Keyword();
>                         $keyword->text = "auto";
>                         $keyword->matchType = "BROAD";
>
>                         $languageService= new LanguageTarget();
>                         $languageService->languageCode='de';
>                         $languageService->TargetType='de';
>
>                         $countryService= new
> CountryTargetSearchParameter();
>                         $countryService->countryTargets='AT';
>
>                         $keyword_array = array($keyword);
>                         $relatedToKeywordSearchParameter = new
> RelatedToKeywordSearchParameter($keyword_array, $languageService,
> $countryService);
>
>                         $targetingIdeaSelector = new
> TargetingIdeaSelector();
>                         $targetingIdeaSelector->searchParameters =
> array(
>
> $relatedToKeywordSearchParameter
>                         );
>
>                         $targetingIdeaSelector->ideaType = 'KEYWORD';
>                         $targetingIdeaSelector->requestType = 'IDEAS';
>
>                         $targetingIdeaSelector->requestedAttributeTypes=array
>
> ( 'KEYWORD','GLOBAL_MONTHLY_SEARCHES' );
>                         $targetingIdeaSelector->paging = new
> Paging(0,5);
>
>                         $page = $keywordService-
>
> >get($targetingIdeaSelector);
>
>                                                 print_r($page);
>
>
>
> } catch (Exception $e) {
>   print_r($e);
> }
>
> ?>
>
> #
>
> Whatever I try, it ends up in american (or english?) results.
> Thanks for your help,
>
> Huggy

-- 
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: Adwords API 2009 - Stats.Network

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

For that information you need to use the CampaignTargetService to get
the NetworkTargets for your campaign.

Best,
- Eric

On Feb 5, 1:58 pm, Navi  wrote:
> Eric,
>
> Thanks for your response.
> But I am confused with your answer.
> Sorry but then how do I get which network my campaign is placed on.
> Literally I need to know how to get equivalent of v13 networkTypes[]
> value in v2009.
>
> Thanks again for your help.
> Navi
>
> On Feb 5, 11:49 am, AdWords API Advisor 
> wrote:
>
>
>
> > Hi Navi,
>
> > The stats network value indicates the scope of the stats, and since
> > this can't be controlled by the statsSelector it will always be
> > returned as "ALL" for Campaign stats.  In your case these stats will
> > only only include data from the search network, since that is the only
> > network your campaign is a part of.
>
> > Best,
> > - Eric Koleda, AdWords API Team
>
> > On Feb 4, 3:55 pm, Navi  wrote:
>
> > > Hi,
>
> > > I am migrating Google API v13 to v2009.
> > > I updated the getAllCampaigns method and successfully ran it for an
> > > account.
> > > Everything else seems to be fine but I am not sure about the network
> > > type.
> > > The value returned by campaign.stats.network is 'ALL' which I assume
> > > means both content and search networks.
> > > But if I go to adwords account on google, the same campaign is marked
> > > only for Search and Content is unchecked.
> > > I don't know whats wrong here.
> > > Please help.
> > > I can provide more details about campaign if needed.
>
> > > 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: Authentication token and requests per second

2010-02-05 Thread Peer Jakobsen (AdWords API Guru)
Hi Eric, Nothize,

Thanks for your feedback.I will implement handling expired tokens in
the proxy layer.
I am still a bit worried about having a large number of processes
running in parallel sending requests to the API, all getting a token
expired exception at the same time and all asking for a fresh token at
the same time. Having 50 processes ask for a new token at the same
time could lead to a temporary permission denied.

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: Requests per minute limit

2010-02-05 Thread AdWords API Advisor
Hi Pedro,

I'll pass this information on to the core engineering team to look
into the problem.  The requestId you sent is from 2010-02-01, has this
problem been happening since then?

Best,
- Eric

On Feb 5, 1:18 pm, Pedro Morales  wrote:
> > Are there other scripts
> > or programs that could be access the account at the same time?  
>
> No. Only one program accessing the api using v2009.
>
> > Do you
> > have the requestId from one of these failed requests?
>
> bdd072832a80aa79575238f68c1b3a47
>
> Thanks for your time.
>
>
>
> > Thanks,
> > - Eric Koleda, AdWords API Team
>
> > On Feb 3, 9:00 pm, Pedro Morales  wrote:
>
> > > Hello everyone,
>
> > > I'm working porting a v13 application to v2009 and I'm having problems
> > > because I keep getting a QUOTA_EXCEEDED error with the number of
> > > requests per minute (RequestsPerMinute).
> > > I didn't found any information about this in Google's documentation.
>
> > > With v13 I didn't have any issue with the same amount of requests.
> > > Right now, only around 2 per minute are passing and I'm not using the
> > > sandbox.
>
> > > Is there any way to know the request per minute limit? Is there some
> > > way around this limit?
>
> > > Thanks in advance.

-- 
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: Related Keywords by choosing language

2010-02-05 Thread AdWords API Advisor
Hi Huggy,

To remove the extra match types you should use the
KeywordMatchTypeSearchParameter:

  
http://code.google.com/apis/adwords/v2009/docs/reference/TargetingIdeaService.KeywordMatchTypeSearchParameter.html

Best,
- Eric Koleda, AdWords API Team

On Feb 5, 3:12 pm, "adwo...@seo-news.at"  wrote:
> Hi!
>
> I've managed getting the language stuff (Even if it sometimes returns
> non-german (I'd guess its dutch)) keywords.
> But it still returns BROAD, PHRASE and Exact - So I'd have to pay
> three Credits for one keyword...
> Would you tell me how to solve that? :-)
>
> On 5 Feb., 12:51, "adwo...@seo-news.at"  wrote:
>
>
>
> > Hi there!
>
> > I'm new to the Adwords API but I'm trying to get related keywords (as
> > well as the monthly search volume) for german language , searches from
> > Austria.
>
> > I'm using your basic code mixed with snippets found at the Adwords API
> > Forum.
>
> > When I run the code I do only get english results...Do you find my
> > mistake?
>
> > ###
>
> > 
> > error_reporting(E_STRICT | E_ALL);
> > $path = dirname(__FILE__) . '/../../src';
> > set_include_path(get_include_path() . PATH_SEPARATOR . $path);
> > require_once 'Google/Api/Ads/AdWords/Lib/AdWordsUser.php';
> > try {
> >  $user = new AdWordsUser();
>
> >                         // Log SOAP XML request and response.
> >                         $user->LogDefaults();
>
> >                         $keywordService = $user-
>
> > >GetTargetingIdeaService();
>
> >                         $keyword = new Keyword();
> >                         $keyword->text = "auto";
> >                         $keyword->matchType = "BROAD";
>
> >                         $languageService= new LanguageTarget();
> >                         $languageService->languageCode='de';
> >                         $languageService->TargetType='de';
>
> >                         $countryService= new
> > CountryTargetSearchParameter();
> >                         $countryService->countryTargets='AT';
>
> >                         $keyword_array = array($keyword);
> >                         $relatedToKeywordSearchParameter = new
> > RelatedToKeywordSearchParameter($keyword_array, $languageService,
> > $countryService);
>
> >                         $targetingIdeaSelector = new
> > TargetingIdeaSelector();
> >                         $targetingIdeaSelector->searchParameters =
> > array(
>
> > $relatedToKeywordSearchParameter
> >                         );
>
> >                         $targetingIdeaSelector->ideaType = 'KEYWORD';
> >                         $targetingIdeaSelector->requestType = 'IDEAS';
>
> >                         
> > $targetingIdeaSelector->requestedAttributeTypes=array
>
> > ( 'KEYWORD','GLOBAL_MONTHLY_SEARCHES' );
> >                         $targetingIdeaSelector->paging = new
> > Paging(0,5);
>
> >                         $page = $keywordService-
>
> > >get($targetingIdeaSelector);
>
> >                                                 print_r($page);
>
> > } catch (Exception $e) {
> >   print_r($e);
> > }
>
> > ?>
>
> > #
>
> > Whatever I try, it ends up in american (or english?) results.
> > Thanks for your help,
>
> > Huggy

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