OAuth 2.0 confusion while I upgrade from ClientLogin to OAuth mechanism
Hi Team, We are having a web server application which works online and also offline. Online : where we can do any change to campaigns(eg: changing the status or changing budget) Offline: with some Cron Trigger we dump the statistics of account/campaign offline every day through scheduler. So here I started upgrading my app from ClientLogin mechanism to OAuth2.0. Before I start upgrading I have read that after receiving the access_token and refresh token from authorization code, we need to connect to API using access_token only and refresh token need to be saved for future use. So here I have saved both the tokens in our data base but I create AdwordsSession object using the ClientId,Secret,devlopertoken,useragent and refreshToken along with customerId, but I didn't used access_token anywhere. But I can get all the info and reports with above process. you can see below sample code: *After getting authorization code:* if(authorizationCode!=null){ log.info(authorizationCode: +authorizationCode); GoogleTokenResponse tokenResponse = null; NetHttpTransport netHttpTransport = new NetHttpTransport(); GoogleTokenResponse existAuthToken = null; try { JacksonFactory jacksonFactory = new JacksonFactory(); log.info(authorizationCode:+authorizationCode); tokenResponse = new GoogleAuthorizationCodeTokenRequest(netHttpTransport,jacksonFactory,CommonFunctions.CLIENT_ID, CommonFunctions.CLIENT_SECRET, authorizationCode,CommonFunctions.OAUTH_REDIRECT_URL).execute(); // gleService = new GleServices(tokenResponse); hs.setAttribute(authToken, tokenResponse.getAccessToken()); hs.setAttribute(refreshToken, tokenResponse.getRefreshToken()); hs.setAttribute(tokenResponse, tokenResponse); } catch (Exception e) { e.printStackTrace(); } *//getting session Obj:* public AdWordsSession getAdwordsSession(GoogleTokenResponse tokenResp, String cusId){ File temp = null; Credential oAuth2Credential = null; AdWordsSession ses = null; try { temp = File.createTempFile(ads , .properties); BufferedWriter bw = new BufferedWriter(new FileWriter(temp)); bw.write(refreshToken+=+tokenResp.getRefreshToken()); bw.newLine(); bw.write(clientId+=+CLIENT_ID_VALUE); bw.newLine(); bw.write(clientSecret+=+CLIENT_SECRET_ID); bw.newLine(); bw.write(userAgentKey+=+USER_AGENT); bw.newLine(); bw.write(developerTokenKey+=+DEVELOP_TOKEN); if(cusId!=null cusId.length()1){ bw.newLine(); bw.write(clientCustomerIdKey+=+cusId); } bw.close(); oAuth2Credential = new OfflineCredentials.Builder().forApi(OfflineCredentials.Api.ADWORDS).fromFile(temp).build().generateCredential(); ses = new AdWordsSession.Builder().fromFile(temp).withOAuth2Credential(oAuth2Credential).build(); createAdWordsServicesSingleton(); } catch (Exception e) { e.printStackTrace(); } return ses; } *So here I can get all the services like below:* CampaignServiceInterface campaignService = adWordsServices.get(adwordsSession, CampaignServiceInterface.class); and I can get all the adhoc reports as well as mutate,get functions works. I will create session object for respective account only once for first time and use the same session object through out my any modifications to that account. My doubt is whether am in the right flow what I doing or any wrong way because API release notes says that to use accessToken to connect to API always until it expires. But I can access and work cleanly with above limited process. So kindly let me know if this process is wrong or else any update info. Thanks in advance. -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups AdWords API Forum group. To post to this group, send email to adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en --- You received this message because you are subscribed to the Google Groups AdWords API Forum group. To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
ContentCpc returnd as null when adding new Keyword or placement
Hi, When am adding any new placement (without setting any bids) and done mutate and it was successful but in returned object I got default cpcBid but ContentBid is shown null. But in google UI the maxCpc for placement is shown as adgroup level default contentBid but through API it is returning null for ContentBid. So please let me know what was reason in getting ContentBid null. Thanks in Adv -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 --- You received this message because you are subscribed to the Google Groups AdWords API Forum group. To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
BiddingErrors.INVALID_BID when updating content CPC at adgroupCriteria level
Hi, I am trying to update the existing contectCPC of one of my adgroupCriteria but throws error saying Invalid Error. Code Follows below for refrence: Criterion criterion = new Criterion(); criterion.setId(*); BiddableAdGroupCriterion biddableAdGroupCriterion = new BiddableAdGroupCriterion(); biddableAdGroupCriterion.setAdGroupId(adGroupId); biddableAdGroupCriterion.setCriterion(criterion); BiddingStrategyConfiguration biddingStrategyConfiguration = new BiddingStrategyConfiguration(); CpcBid bid = new CpcBid(); bid.setContentBid(new Money(null, 60L)); biddingStrategyConfiguration.setBids(new Bids[]{bid}); biddableAdGroupCriterion.setBiddingStrategyConfiguration(biddingStrategyConfiguration); // Create operations. AdGroupCriterionOperation operation = new AdGroupCriterionOperation(); operation.setOperand(biddableAdGroupCriterion); operation.setOperator(Operator.SET); AdGroupCriterionOperation[] operations = new AdGroupCriterionOperation[] {operation}; // Update ad group criteria. AdGroupCriterionReturnValue result = adGroupCriterionService.mutate(operations); thnx in adv -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 --- You received this message because you are subscribed to the Google Groups AdWords API Forum group. To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Can we use old client library adwords-api-8.11.0 jar to work with V201302
Hi, Previously working on V201206 and V201209 versions we have used jars like adwords-api-8.7.0.jar and adwords-api-8.8.0.jar resp and worked fine. But now we are going to start up grading our product to new version V201302 but we are struck with small confusion. I have seen adwords-api-8.11.0.jar which is feasible to V201302 and also I have seen adwords-axis-1.14.1.jar. The requesting syntax is some what different in both. So my question is can we follow with same old procedure using 8.11.0 jar or do we need to follow axis-1.14.1 jar. And also I have seen http://google-api-adwords-java.googlecode.com/svn/trunk/READMEhttp://google-api-adwords-java.googlecode.com/svn/trunk/READMEhere that 'As of v201302, this library has been deprecated'. So kindly let me know which versoin we need to follow to upgrade our product so that it runs fine. Thanks in adv. -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 --- You received this message because you are subscribed to the Google Groups AdWords API Forum group. To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: Didn't see the package v201302 within adwords-axis-1.12.4-sources.jar
Hi, I have seen adwords-api-8.11.0 jar ( https://code.google.com/p/google-api-adwords-java/downloads/list) which supports V201302 and also I have seen axis jar in https://code.google.com/p/google-api-ads-java/downloads/list so my qustion is which we need to follow. There is slight difference in getting access to specific account like using adwords-api-8.11.0 my code goes like this AdWordsUser user = new AdWordsUser(); but in axis new ads client librabry (adwords-axis-1.14.1.jar) code shows String clientLoginToken = new ClientLoginTokens.Builder() .forApi(ClientLoginTokens.Api.ADWORDS) .fromFile() .build() .requestToken(); // Construct an AdWordsSession. AdWordsSession session = new AdWordsSession.Builder().fromFile().withClientLoginToken(clientLoginToken).build(); AdWordsServices adWordsServices = new AdWordsServices(); So which I need to follow to work with V201302. On Wed, Mar 6, 2013 at 10:46 AM, Takeshi Hagikura (AdWords API Team) adwordsapiadvisor+take...@google.com wrote: Hi, v201302 is available from 1.13.0. Can you please try the latest one? https://code.google.com/p/google-api-ads-java/downloads/list Best, - Takeshi On Tuesday, March 5, 2013 5:43:30 AM UTC+9, Liqun Chen wrote: Today, I tried to upgraded to v201302, but I didn't see the package v201302 within adwords-axis-1.12.4-sources.**jar. is there an issue here? -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 --- You received this message because you are subscribed to the Google Groups AdWords API Forum group. To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 --- You received this message because you are subscribed to the Google Groups AdWords API Forum group. To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Is it possible to get Mobile and MobileImage Ads info using Ad Performance adhoc report download
Hi Team, Can we get markup languages, countryCode and business name of Mobile Ads and Image information like dimensions, Urls, Mime type of MobileImage Ads using AdHoc AdPerformance Report Download. I can get those info from AdGroupAdService but i want it to get from adhoc report for fast insertion into my local data base using XML parsing. Thanks in Adv, Regards, Sanju -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 --- You received this message because you are subscribed to the Google Groups AdWords API Forum group. To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
TrafficEstimatorService throw EntityNotFound.INVALID_ID
Hi Guys, Am working on getting traffic estimates from TrafficEstimatorService' for my particular adgroup and Campaign and its throwing an Exception saying *EntityNotFound.INVALID_ID* Here am struck with this error. Previously with V201206 it was working fine but after migrating code to V201209 got exception. Thanks in adv.' -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 --- You received this message because you are subscribed to the Google Groups AdWords API Forum group. To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Any Update in BudgetService 'BudgetId'
Hi Team, I have updated my project code with V201209 and previously (just before 3days) when I create any new Campaign without budgetId it used to say 'BudgetID' operand required error so I done by creating new BudgetId using budgetService and assigned that budgetId to campaign and done mutate. But now today am not getting any error even if I create new campaign without any budgetId. Code goes like this: Campaign campaign = new Campaign(); campaign.setName(Nov249 # + System.currentTimeMillis()); campaign.setStatus(CampaignStatus.PAUSED); campaign.setBiddingStrategy(new ManualCPC()); Budget budget1 = new Budget(); budget1.setPeriod(BudgetBudgetPeriod.DAILY); budget1.setAmount(new Money(null, 900L)); budget1.setDeliveryMethod(BudgetBudgetDeliveryMethod.STANDARD); campaign.setBudget(budget1); CampaignOperation operation = new CampaignOperation(); operation.setOperand(campaign); operation.setOperator(Operator.ADD); CampaignReturnValue result = campaignService.mutate(new CampaignOperation[] {operation}); // Works fine Today but failing before 3days -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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: What value would BudgetId have if a camapaign isn't using a shared budget
Hi Paul, Yes Excatly what I want. I want to change the budget for one of them which is shared with above 3campaigns. And trying with BudgetId by changing amounts for that budgetId doesn't reflects the change in budget. Thnx On Fri, Nov 2, 2012 at 5:50 PM, Paul Matthews matthews.paul@gmail.comwrote: Hi Sanju, If I understand this correctly, you have a shared budget between 3 campaigns but you only want to modify the budget for one of them? If that's the case, it sounds like you need to create a separate budget for the campaign you wish to have a different budget. As for your mutate call having no effect on the budget. Could you provide more information on this please? Either the SOAP XML request that your client is sending to the service, or the code that you're using to set the budget amount*. Cheers, - AdWords API Team. * Please remember not to post any personally identifiable information to the forums, such as developer tokens, customer ids or passwords. -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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
Unable to modify Budget of campaign
Hi Adwords, I'm stuck in migrating to V201209 using java. How can we modify individual budget or shared budget of a campaign. I have seen in one of the mail thread that assigning budgetId to null for existing campaign (which is having some budget previously) and setting this budget to campaign object and doing mutate and trying this process always says me BudgetID required exception. Even I have tried getting BudgetId first and done REMOVE opration on budgetService but finally says BUdget In USE. So my need is how I can update existing individual budget of a campaign and also how can we update if shared budget is given for campaign. Thnx in adv. -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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: What value would BudgetId have if a camapaign isn't using a shared budget
Hi, I am struck in modifying budget of a campaign which is having shared budget previously. I am not able to find how to update budget of a individual campaign. Indepth: I'm having one shared budget as say $100 and assigned this shared budget to 3 campaigns. Now how can update budget individual to one of these campaign? I tried by getting shared BudgetId and using it i have set budgetId and modified amount to campaign and done mutate but I was not able to see the updated amount and I did'nt get any Errors while running the logic. Thanks in adv. On Thursday, October 25, 2012 11:29:19 PM UTC+5:30, Alex Jones wrote: Thanks for the reply - it helps me alot. On Thursday, October 25, 2012 12:50:25 PM UTC-4, Paul Matthews wrote: Hi Alex, All campaigns will appear as shared budgets through the API, the difference is that individual budgets will only be associated to one campaign. That said, you can use any budget as a shared budget by simply assigning it's id to another campaign. -Paul, AdWords API Team. On Tuesday, 23 October 2012 16:44:34 UTC+1, Alex Jones wrote: So I have some campaigns in production created with 201109 - which means they are using an individual budget. Since we'd like to move them all to shared budgets automatically, we'd like to detect that they have are still using a shared budget and update them to use a shared budget. My current plan was to detect if budgetId = null, and if it was, create a budget for the campaign. Would this work? -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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: CampaignAdExtensionService.get() - retrieve site links only and nothing else
Hi Zweitze, For retrieving Only 'SiteLinks' we need set predicate in which field as 'AdExtensionType' and value as 'SITELINKS_EXTENSION' for operator 'EQUALS' and set this predicate to selector and by passing this selector object to get method on 'CampaignAdExtension Service' you will able to get only SiteLinks. oral algorithm: Predicate extnpredicate = new Predicate(); extnpredicate.field = AdExtensionType, extnpredicate.operator = PredicateOperator.EQUALS, extnpredicate.values = {SITELINKS_EXTENSION} Selector sel = new Selector(); sel.predicate = extnpredicate; On Tue, Oct 30, 2012 at 1:26 AM, Zweitze zwei...@gmail.com wrote: Hello, I want to retrieve all site links in a certain account, but nothing else. How do I set up the selector? I cannot filter on AdExtension.Type, nor on any of the sitelink fields. Note: when I don't try to distinguish for sitelinks, I get well over 5000 results for an account, with only a few dozen sitelinks. That's not very efficient, and slow too. Plus, I probably need to implement paging in case some bigger account has too many ad extensions. So, I prefer to restrict the results to site links only. How do I 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 -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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: No GLOBAL_MONTHLY_SEARCHES in v201206
Hi David, I too face same issue with returned search numbers. There is big difference in numbers returned with both v201109 and v201206. I included both requests. V201206: TargetingIdeaSelector selector = new TargetingIdeaSelector(); selector.setRequestType(RequestType.IDEAS); selector.setIdeaType(IdeaType.KEYWORD); selector.setRequestedAttributeTypes(new AttributeType[] {AttributeType.KEYWORD_TEXT,AttributeType.SEARCH_VOLUME}); RelatedToQuerySearchParameter relatedToQuerySearchParameter = new RelatedToQuerySearchParameter (); relatedToQuerySearchParameter.setQueries(new String[] {shoes}); selector.setSearchParameters(new SearchParameter[] {relatedToQuerySearchParameter}); // Get related keywords. TargetingIdeaPage page = targetingIdeaService.get(selector); // Display related keywords. if (page.getEntries() != null page.getEntries().length 0) { for (TargetingIdea targetingIdea : page.getEntries()) { MapAttributeType, Attribute data = MapUtils.toMap(targetingIdea.getData()); StringAttribute keyword = (StringAttribute) data.get(AttributeType.KEYWORD_TEXT); String categoriesString = (none); Long averageMonthlySearches = ((LongAttribute) data.get(AttributeType.SEARCH_VOLUME)).getValue(); System.out.println(Keyword with text ' + keyword.getValue() + ' and average monthly search volume ' + averageMonthlySearches ); } } V201109: = Keyword keyword = new Keyword(); keyword.setText(shoes); keyword.setMatchType(KeywordMatchType.BROAD); TargetingIdeaSelector selector = new TargetingIdeaSelector(); selector.setRequestType(RequestType.IDEAS); selector.setIdeaType(IdeaType.KEYWORD); selector.setRequestedAttributeTypes(new AttributeType[] {AttributeType.CRITERION, AttributeType.AVERAGE_TARGETED_MONTHLY_SEARCHES}); Paging paging = new Paging(); paging.setStartIndex(0); paging.setNumberResults(10); selector.setPaging(paging); RelatedToKeywordSearchParameter relatedToKeywordSearchParameter = new RelatedToKeywordSearchParameter(); relatedToKeywordSearchParameter.setKeywords(new Keyword[] {keyword}); KeywordMatchTypeSearchParameter keywordMatchTypeSearchParameter = new KeywordMatchTypeSearchParameter(); keywordMatchTypeSearchParameter.setKeywordMatchTypes(new KeywordMatchType[] {KeywordMatchType.BROAD}); selector.setSearchParameters(new SearchParameter[] {relatedToKeywordSearchParameter,keywordMatchTypeSearchParameter}); TargetingIdeaPage page = targetingIdeaService.get(selector); if (page.getEntries() != null page.getEntries().length 0) { for (TargetingIdea targetingIdea : page.getEntries()) { MapAttributeType, Attribute data = MapUtils.toMap(targetingIdea.getData()); keyword = (Keyword) ((CriterionAttribute) data.get(AttributeType.CRITERION)).getValue(); Long averageMonthlySearches = ((LongAttribute) data.get(AttributeType.AVERAGE_TARGETED_MONTHLY_SEARCHES)).getValue(); System.out.println(Keyword with text ' + keyword.getText() + ', match type '+ keyword.getMatchType() + ', and average monthly search volume '+ averageMonthlySearches + ' was found.); } } Thnx in adv. On Thursday, August 16, 2012 11:03:07 PM UTC+5:30, Kevin wrote: Hi David, I tried out both v201109 and v201206, and they have different result. Given that RelatedToKeywordSearchParameter is also not supported in v201206, I used RelatedToQuerySearchParameter instead. For v201109, the global monthly search estimate for the keyword shoes is 68,000,000 where as for v201206 is 4,090,000. That's more than an order of magnitude difference. Please let me know whether I did something wrong. A migration guide would be really helpful. I included soap requests and responses for both versions below. Please let know if you need any additional information. Thanks. V201109: == Request Body: soapenv:Body get xmlns=https://adwords.google.com/api/adwords/o/v201109; selector searchParameters xsi:type=ns8:RelatedToKeywordSearchParameter xmlns:ns8=https://adwords.google.com/api/adwords/o/v201109; keywords ns9:text xmlns:ns9= https://adwords.google.com/api/adwords/cm/v201109;shoes/ns9:text ns10:matchType xmlns:ns10= https://adwords.google.com/api/adwords/cm/v201109;BROAD/ns10:matchType /keywords /searchParameters ideaTypeKEYWORD/ideaType requestTypeSTATS/requestType requestedAttributeTypesGLOBAL_MONTHLY_SEARCHES/requestedAttributeTypes paging ns11:startIndex xmlns:ns11= https://adwords.google.com/api/adwords/cm/v201109;0/ns11:startIndex ns12:numberResults xmlns:ns12= https://adwords.google.com/api/adwords/cm/v201109 800/ns12:numberResults /paging /selector /get /soapenv:Body Response Body: soap:Body getResponse xmlns:ns2= https://adwords.google.com/api/adwords/cm/v201109; xmlns= https://adwords.google.com/api/adwords/o/v201109; rval totalNumEntries1/totalNumEntries entries
Specifying version when downloading adhoc reports
Hi , Am using v201109 ReportUtils downloadReport method to download adhoc reports, Is it required to set version even I follow ReportUtils downloadReport method as Adwords mentioned 'version required in HTTP header' from April? Am not following url based mechanism to download but using ReportUtils, So my doubt is whether I need to set this version in my code or no need as am using V201109 ReportUtils.downloadReport() method. Thanx in adv. -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 download report from request url in v201109
Hi Sanjay Vel, Using ReportUtils.downloadReport method u can download any report. Pass reportDefination object as parameter to above method where you set values you needed. Eg: Exactly I dont know ruby code but logically I can explain you. 1) Create ReportDefinition object set all the fields to above object like below 2) set dateRangeType 3) set ReportType 4) set Download format (For your need CSV) 5) set selector (where you should create selector object prior to reportDefination object creation and set fields what you need like for keyword performance report setting keywordText,KeywordMatchType,Clicks etc..) 6)Finally pass this reportDefination object one among to downloadReport method on ReportUtils class. And output appears in ReportDownloadResponse. Hope I gave an idea to you. -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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: v201109 Ad Performance Report
Hi Dmitriy, yes, using v201109 report downloads you can get impressions by content network. Setting AdNetworkType1 to CONTENT in predicate object you can get 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
Serviced Account service fails to return Account information
Hi, Am trying to get connected with serviced_account_service by using my mailId, password, clientmailId,developer token. But in Serviced Account graph am getting zero accounts. U can see my below code. Thnx in adv. Its my account where billing has done on it. AdWordsUser user = new AdWordsUser(, , google, X); // Get the ServicedAccountService. ServicedAccountServiceInterface servicedAccountService = user.getService(AdWordsService.V201109.SERVICED_ACCOUNT_SERVICE); // Create selector. ServicedAccountSelector selector = new ServicedAccountSelector(); // To get the links paging must be disabled. selector.setEnablePaging(false); CustomerId c=null; //c.setId(Long.MIN_VALUE); long[] l = new long[]{8136225734L}; selector.setCustomerIds(l); // Get serviced account graph. ServicedAccountGraph graph = servicedAccountService.get(selector); -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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
Not able to see newly created report in reports window in Google Adwords Account
When downloading AdHoc report, report gets created in my local system but i cant see same report in reports window in Google Adwords API Account. Because here I want to download it from API. Thnx in adv. -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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
Sandbox ADGROUP_PERFORMANCE_REPORT xml file data
When I downloaded XML file for AdGroup performance report, I my Xml file am getting data only columns bt not rows so am unable to see adgroups I passed Campaign Id as predicate even am unable to get adGroup fields. My code follows like this: ReportDefinitionServiceInterface reportDefinitionService=ReportDefinitionServiceInterface)user.getService(AdWordsService.V201101.REPORT_DEFINITION_SERVICE); Selector selector=new Selector(); selector.setFields(new String[]{AdGroupId,AdGroupName}); ReportDefinition reportDefinition = new ReportDefinition(); reportDefinition.setReportName(My_Sample_Keywrd # + System.currentTimeMillis()); reportDefinition.setDateRangeType(ReportDefinitionDateRangeType.YESTERDAY); reportDefinition.setReportType(ReportDefinitionReportType.ADGROUP_PERFORMANCE_REPORT); reportDefinition.setDownloadFormat(DownloadFormat.XML); reportDefinition.setSelector(selector); ReportDefinitionOperation operation = new ReportDefinitionOperation(); operation.setOperand(reportDefinition); operation.setOperator(Operator.ADD); ReportDefinitionOperation[] operations = new ReportDefinitionOperation[] {operation}; ReportDefinition[] result = reportDefinitionService.mutate(operations); String url = https://adwords-sandbox.google.com/api/adwords/ reportdownload?__rd= + reportDefinitionId; HttpURLConnection urlConn = (HttpURLConnection) new URL(url).openConnection(); urlConn.setRequestMethod(GET); . . . . . . . thx in adv -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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
Sandbox ADGROUP_PERFORMANCE_REPORT xml file data
When I downloaded XML file for AdGroup performance report, I my Xml file am getting data only columns bt not rows so am unable to see adgroups I passed Campaign Id as predicate even am unable to get adGroup fields. My code follows like this: ReportDefinitionServiceInterface reportDefinitionService=ReportDefinitionServiceInterface)user.getService(AdWordsService.V201101.REPORT_DEFINITION_SERVICE); Selector selector=new Selector(); selector.setPredicates(new Predicate[]{(new Predicate(CampaignId,PredicateOperator.EQUALS,new String[] {(..CampaignId am passing here...)}))}); selector.setFields(new String[]{AdGroupId,AdGroupName}); ReportDefinition reportDefinition = new ReportDefinition(); reportDefinition.setReportName(My_Sample_Keywrd # + System.currentTimeMillis()); reportDefinition.setDateRangeType(ReportDefinitionDateRangeType.YESTERDAY); reportDefinition.setReportType(ReportDefinitionReportType.ADGROUP_PERFORMANCE_REPORT); reportDefinition.setDownloadFormat(DownloadFormat.XML); reportDefinition.setSelector(selector); ReportDefinitionOperation operation = new ReportDefinitionOperation(); operation.setOperand(reportDefinition); operation.setOperator(Operator.ADD); ReportDefinitionOperation[] operations = new ReportDefinitionOperation[] {operation}; ReportDefinition[] result = reportDefinitionService.mutate(operations); String url = https://adwords-sandbox.google.com/api/adwords/ reportdownload?__rd= + reportDefinitionId; HttpURLConnection urlConn = (HttpURLConnection) new URL(url).openConnection(); urlConn.setRequestMethod(GET); . . . . . . . thx in adv -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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
Keyword performance report without Negative keywords.
How I get Keyword performance report without Negative keywords. in my report I need to only keywords but not Negative ones. Tnx in adv -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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
setting targetListTypes for NetworkTargetList fields
Please let me know what fields can we set for targetListTypes() eg. networkTargetList.setTargetListType(...what values can be set,just give examples..); My goal is to set .TargetContentNetwork only but not search network and google network... Thx in dv -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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
Keyword performance report MaxCpc field value
Sir, When I download Keyword Performance report XML file, I got MaxCpc value as auto: 15.00. What is this 'auto' value. Is they any scenario where we get different from above other than 'auto' and why they get that type of values. Thx in advance. -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups AdWords API Forum group. To post to this group, send email to adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en
Re: ServicedAccountService issue
My account is been set with all that information but even am not able to get above fields. On Jul 18, 7:20 pm, Kevin Winter kevin.win...@google.com wrote: Hi, Is this affecting all client accounts you request this way, or just some of them? When you log into the AdWords UI (https://adwords.google.com) with these accounts, are currency code and timezone set? What fields are being set? If some fields are set and some aren't, how were these accounts created? - Kevin Winter AdWords API Team -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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
ServicedAccountService issue
Sir, Am not getting account details completely , showing time zone null, currency code null. Plz I need to get that present account fields from graph. ServicedAccountSelector selector = new ServicedAccountSelector(); selector.setEnablePaging(false); selector.setCustomerIds(here I enetered customer ID) ServicedAccountGraph graph = servicedAccountService.get(selector); Thnx in adv. -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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: Keyword Performance report
NO.I thnk most of rows may display with zero's only. On Jul 5, 5:44 pm, Danial Klimkin danial.klimkin %google@gtempaccount.com wrote: Hello Sanju, Do you expect any non-zero rows in this report? Currently, the reporting service skips rows with zero results. -Danial, AdWords API Team. -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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: Problem in adgroup list fetch
U need to set Client mail to selector object, May u didnt set this function. On Jul 1, 10:04 am, himan...@ranosys.com himan...@ranosys.com wrote: Hi, I want to fetch all adgrousp in my mcc account. For that I have used that following procedure. first I fetch the client accounts list in my mcc, than I pick each account one by one and fetch their adgroups. but some times I got error : CLIENT_EMAIL_REQUIRED. I don't know why it is happening. Because client emails are fetched in previous step. Is this possible that I am getting blank field in some clients in client list fetch operations. -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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
Keyword Performance report
When I download Keyword performance report, In XML file only columns (Fields names) are displaying but rows tags (which consists of all values) is not appearing in my XML file. Even no exception arised. Plz answer -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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: Regarding the report defination id
When U generate a report in adwords in v2011, a Id called report definition Id is generated in adwords so that no need to create always performance report ,If u get that Id from search engine so by passing this id to url: https://adwords.google.com/api/adwords/reportdownload?__rd=your id here wil get report at any time,these may decrease API calls. Hope u got some information.Further in detail can contact me . On Jun 27, 2:37 pm, munna mr.uttammoha...@gmail.com wrote: Hi All, I am using v201101 while using the download report ,can any one tell me what the report definition id is? -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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: Want to synchronize the stats of single keyword
Thnx Danial for ur information.But I need to get all the fields ,so I dont want to set each field for selector.Is there any code to set all the fields by not defining each and every field.i.e., i need to get all the fields not only what I specified. On Jun 24, 8:46 pm, Danial Klimkin danial.klim...@google.com wrote: Hello Sanju, As the error states you need to specify the list of fields you would like to get back, for example: selector.setFields(new String[] {Id, AdGroupId}); Check out the example for more details: http://code.google.com/p/google-api-adwords-java/source/browse/trunk/... The list of possible fields could be found here: http://code.google.com/apis/adwords/docs/appendix/selectorfields.html... -Danial, AdWords API Team. -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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: Want to get all fields of Keyword performance report
I want the link which shows a difference between V13 and v2011 fields renamed in table.so plz get me that link. Thx in adv On Jun 21, 11:44 pm, jstedman jason.sted...@thesearchagency.com wrote: In case that other thread gets buried, this link has all fields for all reports separated out into tables by report type: http://code.google.com/apis/adwords/docs/appendix/reports.html -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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: Want to get all fields of Keyword performance report
Thx man...looked to the table and modified my code, now wrks fine yaar. On Jun 21, 11:44 pm, jstedman jason.sted...@thesearchagency.com wrote: In case that other thread gets buried, this link has all fields for all reports separated out into tables by report type: http://code.google.com/apis/adwords/docs/appendix/reports.html -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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
Want to synchronize the stats of single keyword
my code follws here Selector selector = new Selector(); String a[]=new String[1]; a[0]=String.valueOf(gleAdGrpId); String b[]=new String[seKeysIds.length]; for(int i=0;iseKeysIds.length;i++) { b[i]=String.valueOf(seKeysIds[i]); } Predicate idPredicate[]=new Predicate[2]; idPredicate[0]=new Predicate(Id,PredicateOperator.EQUALS,a); idPredicate[1]=new Predicate(Id, PredicateOperator.EQUALS,b); selector.setPredicates(idPredicate); AdGroupCriterionPage adGrpCriPage = ((AdGroupCriterionServiceInterface)get(selector); adGrpCriterions = adGrpCriPage.getEntries(); am getting this error: [SelectorError.MISSING_FIELDS @ serviceSelector] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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: Want to get all the fields for keyword performance report for setFields() on selector
Thanks , I got CampaignId, AdGroupId, Id, KeywordText, Status, IsNegative, KeywordMatchType , but I need to get conversions,AvgPosition fileds and some remaing fileds,can u provide me total fields what i can get. And I have seen in adwords Release notes One Table showing parameters what I can pass to get all fields.Can u provide that url if present. Thanking in advance -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups AdWords API Forum group. To post to this group, send email to adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en
Want to get all fields of Keyword performance report
Can I know all the fields what can i give setFields() on selector object so that I can get averagePosition, conversions, Cost, impressions and many more. my code flows as like: Selector selector = new Selector(); selector.setFields(new String[] {...want to set fields...}); -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 UPDATE AD PARAMETER?
Can u provide the code how U r updating the fields. On Jun 19, 2:09 pm, Reeta Malik reetama...@gmail.com wrote: Hi, I am using v11 to update all text ads. When I update status field of my text ad, then it updated successfully, but when try to update others ad parameters like headline, description1, description2, displayUrl and url field, it is not updated? why? Please help me how to update these text ad's parameters along with status of text ad. Any help would be appreciated. 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
Want to get all the fields for keyword performance report for setFields() on selector
I need fields MaximumCPC,KeywordDestUrlDisplay,KeywordStatus,KeywordMinCPC,KeywordIsNegative,BottomPosition,TopPosition,KeywordTypeDisplay.how can I get it my code : String[] customOptions = { CampaignId, AdGroupId, Id, KeywordText, Status, IsNegative, KeywordMatchType }; Selector selector = new Selector(); selector.setFields(customOptions); -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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
How to get Account Structure reports while dumping account
Can anybody plz help me, am getting Exception while Account Structure dumping exception: [ReportDefinitionError.CUSTOMER_SERVING_TYPE_REPORT_MISMATCH @ operations] my code is shown here: String fileName = appPath + /GleSync + gleSer.getBusAssSeaEngAccountInfo().getBusAssSeaEngAccountId() + .xml; try { rs = (ReportDefinitionServiceInterface)gleSer.getService(9); //String aggrType[] = {Keyword}; String repType[] = {Structure}; String[] customOptions = new String[] {AdGroupId,Id, KeywordText,KeywordMatchType, IsNegative}; Selector selector = new Selector(); selector.setFields(customOptions); Calendar fromDate=new ReportDate().toCalendar(); Calendar toDate=new ReportDate().toCalendar(); String DATE_FORMAT = MMdd; SimpleDateFormat sdf =new SimpleDateFormat(DATE_FORMAT); String fromDt=sdf.format(fromDate.getTime()); String toDt=sdf.format(toDate.getTime()); selector.setDateRange(new DateRange(fromDt, toDt)); if(adGrpIds!=null){ Predicate[] adGroupPredicate = new Predicate[adGrpIds.length]; for(int i=0;iadGroupPredicate.length;i++){ adGroupPredicate[i].setField(AdGroupId); adGroupPredicate[i].setOperator(PredicateOperator.IN); adGroupPredicate[i].setValues(new String[] {String.valueOf(adGrpIds[i])}); } selector.setPredicates(adGroupPredicate); } if(cmpIds!=null){ Predicate[] campaignPredicate = new Predicate[cmpIds.length]; for(int i=0;icampaignPredicate.length;i++){ campaignPredicate[i].setField(CampaignId); campaignPredicate[i].setOperator(PredicateOperator.IN); campaignPredicate[i].setValues(new String[] {String.valueOf(cmpIds[i])}); } selector.setPredicates(campaignPredicate); } ReportDefinition reportDefinition = new ReportDefinition(); reportDefinition.setReportName(Keyword SynchronizeReport); reportDefinition.setDateRangeType(ReportDefinitionDateRangeType.CUSTOM_DATE); if(repType[0].equals(Keyword)) {reportDefinition.setReportType(ReportDefinitionReportType.KEYWORDS_PERFORMANCE_REPORT);} else if(repType[0].equals(AdGroup)) {reportDefinition.setReportType(ReportDefinitionReportType.ADGROUP_PERFORMANCE_REPORT);} else if(repType[0].equals(Structure)) {reportDefinition.setReportType(ReportDefinitionReportType.KEYWORDS_PERFORMANCE_REPORT);} reportDefinition.setDownloadFormat(DownloadFormat.XML); reportDefinition.setCrossClient(true); //Client reportDefinition.setClientSelectors(new ClientSelector[]{new ClientSelector(gleSer.getBusAssSeaEngAccountInfo().getClientName(),null)}); reportDefinition.setSelector(selector); ReportDefinitionOperation operation = new ReportDefinitionOperation(); operation.setOperand(reportDefinition); operation.setOperator(Operator.ADD); ReportDefinitionOperation[] operations = new ReportDefinitionOperation[] {operation}; ReportDefinition[] result = rs.mutate(operations); //reportDefinitionResult.getId(); if (result != null) { for (ReportDefinition reportDefinitionResult : result) { System.out.println(Report definition with name \+ reportDefinitionResult.getReportName() + \ and id \ + reportDefinitionResult.getId() + \ was added.); } } else { System.out.println(No report definitions were added.); } TNX in Aav -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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
For Account Dumping
Sir, When I do account dumping using Adwords v201101, am getting Exception as [ReportDefinitionError.CUSTOMER_SERVING_TYPE_REPORT_MISMATCH @ operations] my code below: Selector selector = new Selector(); selector.setFields(customOptions); Calendar fromDate=new ReportDate().toCalendar(); Calendar toDate=new ReportDate().toCalendar(); String DATE_FORMAT = MMdd; SimpleDateFormat sdf =new SimpleDateFormat(DATE_FORMAT); String fromDt=sdf.format(fromDate.getTime()); String toDt=sdf.format(toDate.getTime()); selector.setDateRange(new DateRange(fromDt, toDt)); if(adGrpIds!=null){ Predicate[] adGroupPredicate = new Predicate[adGrpIds.length]; for(int i=0;iadGroupPredicate.length;i++){ adGroupPredicate[i].setField(AdGroupId); adGroupPredicate[i].setOperator(PredicateOperator.IN); adGroupPredicate[i].setValues(new String[] {String.valueOf(adGrpIds[i])}); } selector.setPredicates(adGroupPredicate); } if(cmpIds!=null){ Predicate[] campaignPredicate = new Predicate[cmpIds.length]; for(int i=0;icampaignPredicate.length;i++){ campaignPredicate[i].setField(CampaignId); campaignPredicate[i].setOperator(PredicateOperator.IN); campaignPredicate[i].setValues(new String[] {String.valueOf(cmpIds[i])}); } selector.setPredicates(campaignPredicate); } ReportDefinition reportDefinition = new ReportDefinition(); reportDefinition.setReportName(KeywordSynchronizeReport); reportDefinition.setDateRangeType(ReportDefinitionDateRangeType.CUSTOM_DATE); if(repType[0].equals(Keyword)) {reportDefinition.setReportType(ReportDefinitionReportType.KEYWORDS_PERFORMANCE_REPORT);} else if(repType[0].equals(AdGroup)) {reportDefinition.setReportType(ReportDefinitionReportType.ADGROUP_PERFORMANCE_REPORT);} else if(repType[0].equals(Structure)) {reportDefinition.setReportType(ReportDefinitionReportType.ACCOUNT_PERFORMANCE_REPORT);} reportDefinition.setDownloadFormat(DownloadFormat.XML); reportDefinition.setCrossClient(true); //Client reportDefinition.setClientSelectors(new ClientSelector[]{new ClientSelector(gleSer.getBusAssSeaEngAccountInfo().getClientName(),null)}); reportDefinition.setSelector(selector); ReportDefinitionOperation operation = new ReportDefinitionOperation(); operation.setOperand(reportDefinition); operation.setOperator(Operator.ADD); ReportDefinitionOperation[] operations = new ReportDefinitionOperation[] {operation}; ReportDefinition[] result = rs.mutate(operations); //reportDefinitionResult.getId(); if (result != null) { for (ReportDefinition reportDefinitionResult : result) { System.out.println(Report definition with name \+ reportDefinitionResult.getReportName() + \ and id \ + reportDefinitionResult.getId() + \ was added.); } } else { System.out.println(No report definitions were added.); } Tnx in adv -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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