AdWords API How to test in sand box with sample code provided by Google?
Hello, I'm new to adwrods. I want to test to create new campaign by using the following sample codes. But when I run it, the following error appeared. java.lang.NullPointerException at com.google.api.adwords.v13.CampaignServiceSoapBindingStub.addCampaign_aroundBody1$advice (CampaignServiceSoapBindingStub.java:146) at com.google.api.adwords.v13.CampaignServiceSoapBindingStub.addCampaign (CampaignServiceSoapBindingStub.java:1) at main.AddCampaign.main(AddCampaign.java:76) I'm running in Windows OS. Could u pls help me how to start testing in sand box? With sample codes and procedure will be more helpful. The following is the testing codes. Thanks import com.google.api.adwords.v13.AdSchedule; import com.google.api.adwords.v13.AdScheduleStatus; import com.google.api.adwords.v13.BudgetPeriod; import com.google.api.adwords.v13.Campaign; import com.google.api.adwords.v13.CampaignInterface; import com.google.api.adwords.v13.CampaignServiceLocator; import com.google.api.adwords.v13.CountryTargets; import com.google.api.adwords.v13.DayOfWeek; import com.google.api.adwords.v13.GeoTarget; import com.google.api.adwords.v13.SchedulingInterval; import org.apache.axis.client.Stub; public class AddCampaign { // Provide AdWords login information. private static final String email = a...@gmail.com; private static final String password = aa; private static final String clientEmail = client_1+...@gmail.com; private static final String useragent = JJJ: AdWords API Java Sample Code; private static final String developerToken = a...@gmail.com++jpy; private static final String applicationToken = ; private static final String namespace = https://sandbox.google.com/ api/adwords/v13; public static void main(String[] args) { try { // Set up service connection. CampaignInterface service = new CampaignServiceLocator ().getCampaignService(); // Define SOAP headers. ((Stub) service).setHeader(namespace, email, email); ((Stub) service).setHeader(namespace, password, password); ((Stub) service).setHeader(namespace, clientEmail, clientEmail); ((Stub) service).setHeader(namespace, useragent, useragent); ((Stub) service).setHeader(namespace, developerToken, developerToken); ((Stub) service).setHeader(namespace, applicationToken, applicationToken); // BEGIN CampaignService.addCampaign: v13 // Create new campaign structure with ad scheduling set to show ads on // Monday, Wednesday, and Friday from 8:00am to 5:00pm. Each bid is // multiplied by 1.0. SchedulingInterval intervalMonday = new SchedulingInterval (); intervalMonday.setDay(DayOfWeek.Monday); intervalMonday.setEndHour(17); intervalMonday.setEndMinute(0); intervalMonday.setMultiplier(1.0); intervalMonday.setStartHour(8); intervalMonday.setStartMinute(0); SchedulingInterval intervalWednesday = new SchedulingInterval (); intervalWednesday.setDay(DayOfWeek.Wednesday); intervalWednesday.setEndHour(17); intervalWednesday.setEndMinute(0); intervalWednesday.setMultiplier(1.0); intervalWednesday.setStartHour(8); intervalWednesday.setStartMinute(0); SchedulingInterval intervalFriday = new SchedulingInterval (); intervalFriday.setDay(DayOfWeek.Friday); intervalFriday.setEndHour(17); intervalFriday.setEndMinute(0); intervalFriday.setMultiplier(1.0); intervalFriday.setStartHour(8); intervalFriday.setStartMinute(0); AdSchedule schedule = new AdSchedule(); schedule.setIntervals(new SchedulingInterval[]{intervalMonday, intervalWednesday, intervalFriday}); schedule.setStatus(AdScheduleStatus.Enabled); // Create new campaign structure. Campaign campaign = new Campaign(); campaign.setName(Sample Campaign); campaign.setBudgetAmount(new Long(10)); campaign.setBudgetPeriod(BudgetPeriod.Daily); GeoTarget geoTargeting = new GeoTarget(); geoTargeting.setCountryTargets(new CountryTargets(new String[] {JP},new String[]{}));
AdWords API Adwords Reports and API Report Service differences in statistics
Hi, Recently I noticed unexpected behaviour with some of my keywords. I wanted to check the CTR of my keywords, looking closely on clicks and impressions as well, and here are my observations ( different information from different sources ) 1.I checked the CTR, clicks and impressions via Adwords User Interface, and over the last 7 days it showed no clicks at all. 2.I run the report via Adwords User Interface to confirm that, again no clicks during that last 7 days period. 3.I downloaded all the data via Adwords Editor and I run Statistics, as I expected no clicks were recorded. 4.I wrote a short script to download keyword stats via Adwords API - no clicks were shown. 5.Last case - I run the report creation via API Report Service and as a result, the report showed one click for my keyword ( along with low number of impressions that increased my CTR a lot ). I read Adwords help topics concerning Invalid Clicks, but still I do not follow, how is it possible that requesting Adwords API for a report returns different results compared to data obtained in different ways. After all, these data should come from the same source. Is it a problem of caching? If so, how come that asking for keyword stats returned no clicks? Till now, I based the functionality of application on reports generated via API thinking that these are the most accurate (no caching via API calls?). Now, it is hard to judge. Please elaborate upon that issue. Regards Rafal --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
AdWords API Re: Adwords Reports and API Report Service differences in statistics
Hello Rafal, Reports requested via the AdWords API's ReportService and reports requested using the AdWords web interface both are processed by the same backend reporting code and use the same data sources. I would recommend that you try running a report from the AdWords web interface one more time and ensure that you're requesting exactly the same parameters and date ranges as you request when you use the AdWords API's ReportService. Cheers, -Jeff Posnick, AdWords API Team On Mar 10, 7:20 am, rkal rafal.kali...@gmail.com wrote: Hi, Recently I noticed unexpected behaviour with some of my keywords. I wanted to check the CTR of my keywords, looking closely on clicks and impressions as well, and here are my observations ( different information from different sources ) 1.I checked the CTR, clicks and impressions via Adwords User Interface, and over the last 7 days it showed no clicks at all. 2.I run the report via Adwords User Interface to confirm that, again no clicks during that last 7 days period. 3.I downloaded all the data via Adwords Editor and I run Statistics, as I expected no clicks were recorded. 4.I wrote a short script to download keyword stats via Adwords API - no clicks were shown. 5.Last case - I run the report creation via API Report Service and as a result, the report showed one click for my keyword ( along with low number of impressions that increased my CTR a lot ). I read Adwords help topics concerning Invalid Clicks, but still I do not follow, how is it possible that requesting Adwords API for a report returns different results compared to data obtained in different ways. After all, these data should come from the same source. Is it a problem of caching? If so, how come that asking for keyword stats returned no clicks? Till now, I based the functionality of application on reports generated via API thinking that these are the most accurate (no caching via API calls?). Now, it is hard to judge. Please elaborate upon that issue. Regards Rafal --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
AdWords API Re: Missing 'email' from header (but shouldn't be)
Hello Andras, Have you turned on SOAP logging in SOAPpy and taken a look at the SOAP request you're sending to confirm that the email and clientEmail headers both look correct? If the headers do look correct and yet your request is getting flagged by the AdWords API for missing a header, could you please let me know what the value of the requestId header is in the SOAP fault you're getting back? If the headers in your request don't look correct and there's no obvious cause for it in your code, then it sounds like SOAPpy is not behaving properly. I know that ZSI is considered the current SOAP library of choice in the Python community, in that it's actually still supported and being developed, so perhaps that's a better option? Cheers, -Jeff Posnick, AdWords API Team On Mar 10, 10:14 am, zodcode zodc...@gmail.com wrote: Hi! I'm getting all campaigns of a client, then trying to retrieve ad group stats for each campaign (with Python/SOAPpy). adgroup_stats = adgroup_srv.getAdGroupStats(camp_id, adgroup_ids, date1, date2) I get the error 1 here, however. I supply the service object 'adgoup_srv' with the *same* header as the CampaignService object which I get 'camp_id' with. Then using this 'adgroup_srv' successfully to collect 'adgroup_ids' for the given campaign. The two email addresses in the header are correct (and certainly are in there). I wonder what I might be doing wrong. Can you give me a hint? Cheers, Andras --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
AdWords API Re: Adwords Reports and API Report Service differences in statistics
OK, and how about resport via API and data being displayed on the web user interface? Rafal On 10 Mar, 16:20, AdWords API Advisor adwordsapiadvi...@google.com wrote: Hello Rafal, Reports requested via the AdWords API's ReportService and reports requested using the AdWords web interface both are processed by the same backend reporting code and use the same data sources. I would recommend that you try running a report from the AdWords web interface one more time and ensure that you're requesting exactly the same parameters and date ranges as you request when you use the AdWords API's ReportService. Cheers, -Jeff Posnick, AdWords API Team On Mar 10, 7:20 am, rkal rafal.kali...@gmail.com wrote: Hi, Recently I noticed unexpected behaviour with some of my keywords. I wanted to check the CTR of my keywords, looking closely on clicks and impressions as well, and here are my observations ( different information from different sources ) 1.I checked the CTR, clicks and impressions via Adwords User Interface, and over the last 7 days it showed no clicks at all. 2.I run the report via Adwords User Interface to confirm that, again no clicks during that last 7 days period. 3.I downloaded all the data via Adwords Editor and I run Statistics, as I expected no clicks were recorded. 4.I wrote a short script to download keyword stats via Adwords API - no clicks were shown. 5.Last case - I run the report creation via API Report Service and as a result, the report showed one click for my keyword ( along with low number of impressions that increased my CTR a lot ). I read Adwords help topics concerning Invalid Clicks, but still I do not follow, how is it possible that requesting Adwords API for a report returns different results compared to data obtained in different ways. After all, these data should come from the same source. Is it a problem of caching? If so, how come that asking for keyword stats returned no clicks? Till now, I based the functionality of application on reports generated via API thinking that these are the most accurate (no caching via API calls?). Now, it is hard to judge. Please elaborate upon that issue. Regards Rafal --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
AdWords API Re: Adwords Reports and API Report Service differences in statistics
Hello Rafal, I don't have any particular insight as to why data from an AdWords report might not match data displayed on the AdWords web interface, other than to suggest that you're asking for something in the report that you're not filtering on when you use the AdWords web interface. A discrepancy between data in the reports backend and the AdWords web interface is somewhat outside of the scope of the AdWords API, and might be best followed up on in the general AdWords discussion group. If there is anything specific to the AdWords API, like a report that you're absolutely certain has the same options and run at around the same time looking different when requested via the API than it does via the web's report center, I can investigate further. Cheers, -Jeff Posnick, AdWords API Team On Mar 10, 12:41 pm, rkal rafal.kali...@gmail.com wrote: OK, and how about resport via API and data being displayed on the web user interface? Rafal On 10 Mar, 16:20, AdWords API Advisor adwordsapiadvi...@google.com wrote: Hello Rafal, Reports requested via the AdWords API's ReportService and reports requested using the AdWords web interface both are processed by the same backend reporting code and use the same data sources. I would recommend that you try running a report from the AdWords web interface one more time and ensure that you're requesting exactly the same parameters and date ranges as you request when you use the AdWords API's ReportService. Cheers, -Jeff Posnick, AdWords API Team On Mar 10, 7:20 am, rkal rafal.kali...@gmail.com wrote: Hi, Recently I noticed unexpected behaviour with some of my keywords. I wanted to check the CTR of my keywords, looking closely on clicks and impressions as well, and here are my observations ( different information from different sources ) 1.I checked the CTR, clicks and impressions via Adwords User Interface, and over the last 7 days it showed no clicks at all. 2.I run the report via Adwords User Interface to confirm that, again no clicks during that last 7 days period. 3.I downloaded all the data via Adwords Editor and I run Statistics, as I expected no clicks were recorded. 4.I wrote a short script to download keyword stats via Adwords API - no clicks were shown. 5.Last case - I run the report creation via API Report Service and as a result, the report showed one click for my keyword ( along with low number of impressions that increased my CTR a lot ). I read Adwords help topics concerning Invalid Clicks, but still I do not follow, how is it possible that requesting Adwords API for a report returns different results compared to data obtained in different ways. After all, these data should come from the same source. Is it a problem of caching? If so, how come that asking for keyword stats returned no clicks? Till now, I based the functionality of application on reports generated via API thinking that these are the most accurate (no caching via API calls?). Now, it is hard to judge. Please elaborate upon that issue. Regards Rafal --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
AdWords API Local Database Sync 1.1.0
I'm happy to announce the release of AdWords API Local Database Sync 1.1.0. The most noticeable change in this release is that the configuration file defaults to v13 of the AdWords API instead of v12. There are many behind the scenes changes in terms of code organization and a few optimizations in this release as well. For more information on the project, please see the initial blog post at http://adwordsapi.blogspot.com/2008/09/now-available-adwords-api-local.html The new release is available at its Google Code project page: http://code.google.com/p/awapi-local-db-sync/ Cheers, -Jeff Posnick, AdWords API Team --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
AdWords API AdWords Downtime: March 14, 10am-2pm PDT
We'll be performing routine system maintenance on Saturday, March 14 from approximately 10:00am to 2:00pm PDT. You won't be able to access AdWords or the API during this time frame, but your ads will continue to run as normal. Cheers, -Jeffrey Posnick, AdWords API Team --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
AdWords API Is the sandbox down right now?
Is any one else having problems using the sand box? Everything worked fine a couple of hours ago and now I get An internal error has occurred. Please retry your request. on all types of requests. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
AdWords API Re: Is the sandbox down right now?
I don't remember that if I had the same problem at the same time. But I do had the same problem with you sometime. And I want to find the way to check connection to sandbox or adword if it is available to get any request. Do you have any idea? --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---