Re: How can I get "real search terms" with API ?
Hi Anash, so it seems to be not possible to get "Search Terms" using the API. Can you confirm please? And what would you suggest to get the closest results as possible? Many thanks, Alessandro On Friday, December 2, 2011 8:36:29 AM UTC+1, Anash P. Oommen wrote: > > Hi Olivier, > > AdWords API has TargetingIdeaService and TrafficEstimatorService, but they > give keyword ideas and their traffic estimates from an advertiser point of > view, not purely from search traffic point of view. Documentation are > available at > http://code.google.com/apis/adwords/docs/reference/latest/TargetingIdeaService.html > and > http://code.google.com/apis/adwords/docs/reference/latest/TrafficEstimatorService.html > . > > Cheers, > Anash P. Oommen, > AdWords API Advisor. > > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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: refresh token not returned
thanks Paul i will take a look where should i email the soap request/response It does not contain the refresh token. I am wondering, could this be because i use a test account? or maybe because my developer token application is still being processed? On Tuesday, December 18, 2012 8:19:46 AM UTC+2, Paul Matthews wrote: > > Hi Itai, > > So looking at your example, it seems about right. I wondered if you could > look to see if the raw server response from the > request GetOAuth2AccessToken contains a refresh_token field. This should be > JSON encoded within the response. > > If it is not present then you may need to email AdWords api with your SOAP > request / response so we can look into it further. > > Regards, > > - Paul, AdWords API Team. > > On Tuesday, 11 December 2012 12:17:50 UTC, Itai wrote: >> >> I have created a developer acount, and created a test acount. >> I use OAuth 2.0 for authenticating the user using the php library. >> I use GetOAuth2AuthorizationUrl with second argument as TRUE requesting >> offline access, and when i see the google authentication page i can see it >> notifies the user i am requesting offline access. >> Yet when i exchange the code for a token i do not receive the refresh >> token. >> I couldnt find any related question on this forum or on google search, >> please advise. >> >> here is the first part >> >>> $oauth2Info = array('client_id' => $clientId, >>> 'client_secret' => $clientSecret); >>> >>> // Create the AdWordsUser and set the OAuth2 info. >>> $user = new AdWordsUser(); >>> $user->SetOAuth2Info($oauth2Info); >>> $user->LogAll(); >>> $user->SetDeveloperToken($developerToken); >>> $authorizationUrl = $user->GetOAuth2AuthorizationUrl($redirectUrl, * >>> TRUE*); >>> header('Location: ' . $authorizationUrl); >>> >>> here is the callback part >> >> $user = lf_adwords_getUserApi(); >>> $oauth2Info = $user->GetOAuth2AccessToken($code, $redirectUrl); >>> >>> >> oauth2Info at the end contains the access_token, timestamp, expires_in >> but no refresh token >> >> -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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: SOAP Format for TrafficEstimatorService 201209
Hello Gustav, First of all I really recommend to consider upgrading to a newer version of rails and using the library. It handles quite a lot of tricky issues you face with SOAP. As per the issue, you need to generate something like this instead: KEYWORD ... this is done in Savon with ":attributes!" hash entry. Looking forward, you will also need to provide an ":order!" entry to make sure the parameters are in the correct order. -Danial, AdWords API Team. On Thursday, December 13, 2012 5:15:01 PM UTC-8, Gustav Gennrich wrote: > > Hi, > > I recently was forced to transition away from the ruby client library > because the most current version uses rack 1.4 which is incompatible with > rails 2.3.11 (depends on rack ~> 1.1). I cannot use any of the prior gem > versions because the API's have already sunset. As a result, we are writing > our own SOAP requests using Savon. I am having a lot of trouble getting the > correct format set up. Below is my Savon code followed by the XML that is > generated: > > SAVON CODE > client = Savon::Client.new(" > https://adwords.google.com/api/adwords/o/v201209/TrafficEstimatorService?wsdl > ") > @response = client.request :get do |soap| > soap.element_form_default = false > soap.header = { > "ins0:RequestHeader" => { > "ins1:clientCustomerId" => @client_customer_id, > "ins1:userAgent" => @user_agent, > "ins1:developerToken" => @developer_token, > "ins1:authToken" => @auth_token > } > } > soap.body = { > "ins0:selector" => { > "ins0:campaignEstimateRequests" => [{ > "ins0:adGroupEstimateRequests" => [{ > "ins0:keywordEstimateRequests" => [ > {"ins0:keyword" => {"ins1:text" => "online schools", > "ins1:matchType" => "EXACT"} > } > ], > "ins0:maxCpc" => {"ins1:microAmount" => "9900"} > }], > "ins0:criteria" => [ > {"ins1:id" => "2840", "xsi:type" => "ins1:Location"}, > {"ins1:id" => "1000", "xsi:type" => "ins1:Language"} > ] > }] > } > } > end > > XML CODE: > > http://www.w3.org/2001/XMLSchema"; > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; > xmlns:tns="https://adwords.google.com/api/adwords/o/v201209 > " > xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"; > xmlns:ins0="https://adwords.google.com/api/adwords/o/v201209 > " > xmlns:ins1=" > https://adwords.google.com/api/adwords/cm/v201209";> > > > 809-888-9384 > rails_app > H6DYNBuj0p3WafYpA3dq9g > > DQAAAMgAAADKUU2gnMfJ7oU0F30VsFhgVtJNoVhB2Rb7YJiqEna6D3WLArF5-Vvjxqdy4gkUZP4Ire0Qrg-_DyTKNuGhV_U7Z4SIpsuzVXsjlAMVD07VAFv7pfw9qFi1E9FphXPgHeoIhJ_atLD9b-sbD77fBmwCCgf882zNx329BbpOVstNqZ__UGh4IHJsnsWXpwEqyAT2yzlXCo38osbdNZ9TSS9HCQeQPVg7e1hTIR7u4Dl0F6bIF0NcgEYi4CETeJZzllS7ECfP5lOwWVu1W9Z35WnV > > > > > > > > > > KEYWORD > Keyword > online schools > EXACT > > > > 9900 > > > > 2840 > Location > > > 1000 > Location > > > > > > > > The error I keep getting is as follows: > Savon::SOAP::Fault: (soap:Client) Unmarshalling Error: > cvc-complex-type.2.4.a: Invalid content was found starting with element > 'xsi:type'. One of > '{"https://adwords.google.com/api/adwords/cm/v201209":type, > "https://adwords.google.com/api/adwords/cm/v201209":Criterion.Type}' is > expected. > > According to the documentation I need to specify "xsi:type" as > Criterion.Type and type are ignored if passed along > > Any ideas on what I am doing wrong? > > Thanks, > > Gustav > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 to get monthly search volume for a given keyword with v201209
Hello Warren, You request is for RequestType.IDEAS type. You need to use the RequestType.STATS instead. -Danial, AdWords API Team. On Sunday, December 16, 2012 6:39:34 PM UTC-8, Hongyu Li wrote: > > Hi, > the question is simple, how to get monthly search volume for a keyword. > following is my code, I want the monthly search volume for keyword 楽天, I > used the code below, only get the monthly search volume for the keywords > that relate to "楽天". how can i get the search volume for the keyword self. > any help will be appreciate. > > TargetingIdeaSelector selector = new TargetingIdeaSelector(); > selector.setRequestType(RequestType.IDEAS); > selector.setIdeaType(IdeaType.KEYWORD); > selector.setRequestedAttributeTypes(new AttributeType[] { > AttributeType.KEYWORD_TEXT, AttributeType.SEARCH_VOLUME, > AttributeType.CATEGORY_PRODUCTS_AND_SERVICES }); > > // Set selector paging (required for targeting idea service). > Paging paging = new Paging(); > paging.setStartIndex(0); > paging.setNumberResults(10); > selector.setPaging(paging); > > ExcludedKeywordSearchParameter parameter = new > ExcludedKeywordSearchParameter(); > Keyword k = new Keyword(); > k.setText("楽天"); > k.setMatchType(KeywordMatchType.BROAD); > parameter.setKeywords(new Keyword[] { k }); > // Create related to query search parameter. > RelatedToQuerySearchParameter relatedToQuerySearchParameter = new > RelatedToQuerySearchParameter(); > relatedToQuerySearchParameter.setQueries(new String[] { "楽天" }); > selector.setSearchParameters(new SearchParameter[] { > relatedToQuerySearchParameter, parameter }); > > > > Thanks a lot > -Warren > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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
Ad Campaign Targeting Criteria "exclude"
Hi; For example link from a campaign targeting available. So I need to set the parameter for which to *exclude*. http://code.google.com/p/google-api-adwords-php/source/browse/trunk/examples/v201209/Targeting/AddCampaignTargetingCriteria.php example $california = new Location(); $california->id = 21137;* //$california->exclude= true; ???* $campaignCriteria[] = new CampaignCriterion($campaignId, null, $california); -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 to Get Stats Hourly - Ruby on Rails
Hello Eduardo, Also, take a look at our AdWords on Rails demo, if you haven't already: http://code.google.com/p/google-api-ads-ruby/source/browse/#git%2Fadwords_api%2Fexamples%2Fadwords_on_rails -Danial, AdWords API Team. On Tuesday, December 11, 2012 11:13:52 AM UTC-8, Eduardo Hiroshi Campos Tamaki wrote: > > Hi, > > It could be a dumb question but here it's the best way to ask, I want to > know if I can request the Stats of an Ad or Adgroup by Hour, on Ruby > client and if yes how this data is accurate. > > Ex.: at 12:00 to 13:00 I had 290 Impressions, 340 Clicks in "adgroup x". > > 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: Difference in Search Query and Keyword Performance Report
Thanks for reply Takeshi San I downloaded the reports today from adwords.com and Yes they are still different for 28th Nov 2012 To investigate further, should I send you the reports? Or should I just email you the account Id and adgruop Id? Thanks a lot -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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
testing an ad - non api question
I'd be glad to post this somewhere else but I didn't see a "regular" adwords group. I'm really interested in testing how searches are really triggering my ads. For example I'd like to do some dummy searches and see which keywords are actually activating the ad and why, ie, exact match, broad, modifiers etc. Is it possible to do this? -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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: ClassNotFound exception using latest api version with maven
Cheers, works now. Sorry I posted twice as my first post didn't show up on the forum so I assumed I'd not actually posted it. -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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
Can't download WSDL for any service API v201209 (in sandbox)
I'm not positive that this is the best place to be posting this, but as of about 4:30 EST yesterday we have been unable to download the sandbox WSDLs for AdWords API v201209. I have attempted to hit the sandbox WSDLs directly and receive the following error in my browser: *502.* That’s an error. The server encountered a temporary error and could not complete your request. Please try again in 30 seconds. That’s all we know. The production WSDLs come back instantly. As far as I can tell there is no maintenance window scheduled. -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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: Quality score insights
Hi guys, Has this been made available through the API ( I've looked around and can't see it, just want to double check ) , is it on the roadmap? Thanks Bogdan On Tuesday, June 26, 2012 11:34:11 AM UTC+2, Anash P. Oommen wrote: > > Hi, > > These aren't available through the AdWords API right now. > > Cheers, > Anash P. Oommen, > AdWords API Advisor. > > On Saturday, 23 June 2012 18:43:29 UTC+5:30, Expand Online wrote: >> >> Dear community, >> >> Since some time the AdWords UI gives insights and ratings in three >> aspects of the Quality Score rating on a keyword level (Expected >> clickthrough rate, Ad relevance and Landing page experience). See also the >> screenshot in the attachment (in the Dutch UI). >> My question is if these aspects/ratings are also obtainable through the >> API? >> >> Thanks in advance for your reply >> Remy Bronkhorst >> > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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: AdHoc reporting for multiple clients isn't possible anymore (v201209)
Hello Reinhold, It looks like we do not have one for C# at the moment. I will check with the library author to tackle this. -Danial, AdWords API Team. On Thursday, December 13, 2012 2:11:05 AM UTC-8, Reinhold Maurus wrote: > > Does anyone have a sample code in c# for doing reports for each client in > the MCC account? > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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: AdHoc reporting for multiple clients isn't possible anymore (v201209)
Hi Reinhold, Here's a singlethreaded version of the code that works. public void Run(AdWordsUser user, string directory) { string[] clientCustomerIds = GetChildAccounts(user); ReportDefinition definition = BuildReportDefinition(); if (!Directory.Exists(directory)) { Directory.CreateDirectory(directory); } foreach (String customerId in clientCustomerIds) { (user.Config as AdWordsAppConfig).ClientCustomerId = customerId; ReportUtilities utilities = new ReportUtilities(user); utilities.ReportVersion = "v201209"; utilities.DownloadClientReport(definition, directory + Path.DirectorySeparatorChar + customerId + ".csv"); } } private static ReportDefinition BuildReportDefinition() { ReportDefinition definition = new ReportDefinition(); definition.reportName = "Last 7 days CRITERIA_PERFORMANCE_REPORT"; definition.reportType = ReportDefinitionReportType.CRITERIA_PERFORMANCE_REPORT; definition.downloadFormat = DownloadFormat.GZIPPED_CSV; definition.dateRangeType = ReportDefinitionDateRangeType.LAST_7_DAYS; // Create selector. Selector selector = new Selector(); selector.fields = new string[] {"CampaignId", "AdGroupId", "Id", "CriteriaType", "Criteria", "CriteriaDestinationUrl", "Clicks", "Impressions", "Cost"}; Predicate predicate = new Predicate(); predicate.field = "Status"; predicate.@operator = PredicateOperator.IN; predicate.values = new string[] {"ACTIVE", "PAUSED"}; selector.predicates = new Predicate[] {predicate}; definition.selector = selector; definition.includeZeroImpressions = true; return definition; } private string[] GetChildAccounts(AdWordsUser user) { List customerIds = new List(); // Get the ManagedCustomerService. ManagedCustomerService managedCustomerService = (ManagedCustomerService) user.GetService( AdWordsService.v201209.ManagedCustomerService); managedCustomerService.RequestHeader.clientCustomerId = null; // Create selector. Selector selector = new Selector(); selector.fields = new String[] {"CustomerId", "CanManageClients"}; ManagedCustomerPage page = managedCustomerService.get(selector); foreach (ManagedCustomer customer in page.entries) { if (!customer.canManageClients) { customerIds.Add(customer.customerId.ToString()); } } return customerIds.ToArray(); } If you are using a multithreaded version, then your code needs to be modified a bit as follows, since user object stores only a reference of config and hence using the same user object across threads can cause threading issues. AdWordsUser clientUser = new AdWordsUser(); (clientUser.Config as AdWordsAppConfig).ClientCustomerId = customerId;ReportUtilities utilities = new ReportUtilities(clientUser); Hope this helps. Let me know if you have more questions. Cheers, Anash P. Oommen, AdWords API Advisor. On Thursday, 13 December 2012 15:41:05 UTC+5:30, Reinhold Maurus wrote: > > Does anyone have a sample code in c# for doing reports for each client in > the MCC account? > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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