Re: getting all campaigns
Hi i just want to know if this is the right way to get the campaigns.. My client center shows that there are campaigns which confuses me and lead me to believe that i am doing something wrong here.. i would really appreciate a little insight thx shai Am Donnerstag, 19. Juli 2012 12:13:58 UTC+2 schrieb Shaihulud: > > Hi > > i am trying to get the campaigns assoziated with my accounts. I dived > throuh the example classes and build this little bit of code > > [code] > > ... > > ServicedAccountServiceInterface servicedAccountService = null; > // Get the ServicedAccountService. > try { > servicedAccountService = new AdWordsServices().get(session, > ServicedAccountServiceInterface.class); > } catch (ReflectionsException e) { > } > > // Create selector. > ServicedAccountSelector selector = new ServicedAccountSelector(); > // To get the links paging must be disabled. > selector.setEnablePaging(false); > > // Get serviced account graph. > ServicedAccountGraph graph = servicedAccountService.get(selector); > > // Display serviced account graph. > if (graph != null) { > // Create account tree nodes for each account. > for (Account account : graph.getAccounts()) { > CampaignServiceInterface campaignServiceInterface = null; > try { > campaignServiceInterface = new > AdWordsServices().get(session, CampaignServiceInterface.class); > } catch (ReflectionsException e) { > } > > int offset = 0; > > // Create selector. > Selector selector2 = new Selector(); > selector2.setFields(new String[] {"Id", "Name"}); > selector2.setOrdering(new OrderBy[] {new OrderBy("Name", > SortOrder.ASCENDING)}); > selector2.setPaging(new Paging(offset, PAGE_SIZE)); > > CampaignPage page = null; > System.out.println("**CAMPAIGNS**"); > do { > // Get all campaigns. > page = campaignServiceInterface.get(selector2); > > // Display campaigns. > if (page.getEntries() != null) { > for (Campaign campaign : page.getEntries()) { > > [/code] > > Now i have 2 question because it seems im on the wrongt track here. I > would like to get the campaigns specific to an account and not all of them. > How can i do that. > > Also, campaignpage returns null for the entries (Campaign[]), which is > weird because there should be several campaigns for eacht of the clients > (assuming that each account represents a client !? ). > > I would apreciate any help. Isnt there any example code that shows the > basic operation of getting all infos to a client? campaigns, assoziated, > adgroups, associated adtext, assoziated keywords etc? > thx for the help > shai > -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 use "local search trends" (usa) via google api
Hi Kevin, Yes, I can use traffic estimate service. But i am not able to found any date selector. Using this service i cannot get trends for past few months as local search trends. Thanks, chirag On Wednesday, July 6, 2011 8:07:48 PM UTC+5:30, Kevin Winter wrote: > > Hi, > This java example linked from the documentation explains how to use the > TrafficEstimatorService to retrieve the estimated clicks and other > statistics for keywords: > http://www.google.com/codesearch/p?hl=en#9RD3n1d8sRQ/trunk/examples/v201101/GetTrafficEstimates.java&q=Tags:.*TrafficEstimatorService%20v201101%20package:google-api-adwords-java%7Cgoogle-api-adwords-php%7Cgoogle-api-adwords-python-lib%7Cgoogle-api-adwords-dotnet%7Cgoogle-api-adwords-ruby%7Cgoogle-api-ads-ruby%7Cgoogle-api-adwords-perl&sa=N&ct=rx&cd=2 > > - Kevin > -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 read from .js to draw a polyon
> > > > > > > > > > > > Google Maps JavaScript API v3 Example: Polygon Simple > > > href="http://code.google.com/apis/maps/documentation/javascript/examples/default.css"; > > rel="stylesheet" type="text/css" /> > > > > > src="http://maps.googleapis.com/maps/api/js?key=AIzaSyAwJriMKP5K8g7xVrj3nWYJIOw7-awGEj4&sensor=false";> > > >> > > > > > > > > function initialize() { > > var myLatLng = new google.maps.LatLng(21.037403, 105.84383); > > var myOptions = { > > zoom: 14, > > center: myLatLng, > > mapTypeId: google.maps.MapTypeId.ROADMAP > > }; > > >> >> >> var map = new google.maps.Map(document.getElementById("map"), >> myOptions); > > var lm = createOverlay(); > > lm.setMap(map); > > } > > >> >> function createOverlay() { > > >> var overlayCoords = new Array(); > > >> var processedData = rawData.split(";"); > > > > for (var i = 0; i < processedData.length; i++) { > > var xytd = processedData[i].split(","); > > > > overlayCoords.push(new google.maps.LatLng(xytd[0], >> xytd[1])); > > } > > >> >> // Construct the polygon > > var myOverLay = new google.maps.Polygon({ > > paths: createOverlay, > > editable: true, > > strokeColor: "#FF", > > strokeOpacity: 0.8, > > strokeWeight: 2, > > fillColor: "#FF", > > fillOpacity: 0.35 > > >> }); > > >> return myOverLay > > >> >> >> } > > >> > > >> > > > > > > > > > > > > > > > > > > > > >> I can't read from data.js to draw a polygon. This is file data.js > var rawData1 = > "51.1830913,105.9052849;51.1832913,105.9091473;51.1826511,105.9051561;51.1826511,105.9051561"; > Can you help me?. Thank you so much. -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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
AdUrl and GCLID
Hey all, So I've noticed requests coming in from Google that don't have a GCLID present, but look in all manner to be a an ad click. The AdUrl parameter is set, and the rest of the URL bits are set, but just no GCLID. Has anyone seen this? Are these registered as valid ad clicks? -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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: Can we access Adwords API only with developer key?
Hi Vipin, You question is a bit confusing: it suggests you want to access third party AdWords accounts without authority, which is probably not what you mean! If you're asking about the TrafficEstimatorService or TargetingIdeaService, which don't necessarily need access to a specific account, then you can just use your MCC username and password without specifying a customer id. However, the results for some fields, such as the average cpc, are tailored to a specific account so you'll find that entering a customer id might yield different results. Regards, Ewan -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API Forum" group. To post to this group, send email to adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en