Hi all, I use Java examples and get standard access dev token for production MCC. I use standard lib from google and sample code to test basic moves. I followed guides for OAuth and API basics.
On test account I used sample GetCampaigns.java from github and tune it a little to get relevant data rows and find possible grouping issues. For test MCC I use my personal email. Same example with production credentials and my work email return empty list. I used typical scheme with client id and client secret. Make bind it to my account used for production MCC and create refresh token with sample RefreshToken.java from same rep. Put production's MCC client customer ID, and company name as suggested in one guide. Get empty list with AWQL request. My first guess I don't have some right to access reporting and try to make service account for my needs. Next I grant it domain wide access rights and start trying to pose as different user in domain. It was a big quest to pass it java, there are no examples for this case in library but I found one in java docs for inner class example that I have to adapt. Typical example with service account return NO_ADS_USER. I fixed with example founded in Java doc for GoogleCredentials.Builder class. Different people in our domain have different rights for our MCC. I ried them all. Each time I get empty list. Whats is can be a catch? Problem with credentials? Problem with credential types (service account against id-secret pair give same result)? Problem with some access rights for API (we have standard level dev token and several analytics providers don't have problem to donwload our stats)? Problem with query? I'm out of Ideas. In production our traders create performance campaigns for mobile and buy installs. We have about 1000+ campaigns This is my query that work for test account and don't work for production environment: String query = "SELECT " + " CampaignStatus" + ",CampaignId" + ",CampaignName" + ",ExternalCustomerId" + ",CustomerDescriptiveName" + ",Amount" + ",BiddingStrategyId" + ",Impressions" + ",Conversions" + ",Cost" + ",CostPerAllConversion" + " FROM CAMPAIGN_PERFORMANCE_REPORT DURING LAST_7_DAYS"; -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and Google+: https://googleadsdeveloper.blogspot.com/ https://plus.google.com/+GoogleAdsDevelopers/posts =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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. Visit this group at https://groups.google.com/group/adwords-api. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/49ea28d0-4f21-4a78-b973-ddc315361f33%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.