Hope this helps. Let me know if you need something else. Request: https://www.google.com/accounts/ClientLogin Data: "accountType=GOOGLE&Email=adwordsapi%40brightwhistle.com&Passwd=sW4mfWwJh5AH&service=adwords" HTTPI executes HTTP POST using the curb adapter Report request to: 'https://adwords.google.com/api/adwords/reportdownload/v201302' HTTP headers: [Content-Type: application/x-www-form-urlencoded, Authorization: GoogleLogin auth=DQAAAOwAAACJA0TVtkA4cbwJFMVbZ7De6tvhQqqbbWlwpHRLF8LVCOkVq6nkk5ruxDnttiZ_9iUHHgf5BSWoQoRaGjpFVy3qB81jGreASPJKDXSGz3lw0dTrjWgQjl7phtq1_WAOthL0-hxa4_LhYmoadLg-2Rx55rC2jsJulMUawhIjvnrx-6rQm0RQcJzvJ_VXV9bXR22QMZuTaeoWkSKdI5eGoCLB2l7rYKA1ASK2RD9H9iRH2CtPnpTkIoBGVoRnKFdNqo2Rl5L5hYe8FC9bvLDqdmNeJxLMeAtzSX4vpk4HRIGJ5tWWWqbyD1hSWyVa59R5M58, User-Agent: bw_console (AwApi-Ruby/0.9.1, Common-Ruby/0.9.2, Savon/1.2.0, ruby/1.9.3, HTTPI/1.1.1, curb), clientCustomerId: 515-330-0961, developerToken: h6A2BJY3lXnVK6Wy9EAweg] __rdxml=%3CreportDefinition%3E%3Cselector%3E%3Cfields%3EConversionRateManyPerClickSignificance%3C%2Ffields%3E%3Cfields%3EConversionRateSignificance%3C%2Ffields%3E%3Cfields%3EParameter%3C%2Ffields%3E%3Cfields%3EViewThroughConversionsSignificance%3C%2Ffields%3E%3Cfields%3EAccountCurrencyCode%3C%2Ffields%3E%3Cfields%3EAccountDescriptiveName%3C%2Ffields%3E%3Cfields%3EAccountTimeZoneId%3C%2Ffields%3E%3Cfields%3EAdGroupId%3C%2Ffields%3E%3Cfields%3EAdGroupName%3C%2Ffields%3E%3Cfields%3EAdGroupStatus%3C%2Ffields%3E%3Cfields%3EAdNetworkType1%3C%2Ffields%3E%3Cfields%3EAdNetworkType2%3C%2Ffields%3E%3Cfields%3EAdvertiserExperimentSegmentationBin%3C%2Ffields%3E%3Cfields%3EApprovalStatus%3C%2Ffields%3E%3Cfields%3EAverageCpc%3C%2Ffields%3E%3Cfields%3EAverageCpm%3C%2Ffields%3E%3Cfields%3EAveragePosition%3C%2Ffields%3E%3Cfields%3EBottomPosition%3C%2Ffields%3E%3Cfields%3ECampaignId%3C%2Ffields%3E%3Cfields%3ECampaignName%3C%2Ffields%3E%3Cfields%3ECampaignStatus%3C%2Ffields%3E%3Cfields%3EClicks%3C%2Ffie lds%3E%3Cfields%3EClickSignificance%3C%2Ffields%3E%3Cfields%3EClickType%3C%2Ffields%3E%3Cfields%3EConversionCategoryName%3C%2Ffields%3E%3Cfields%3EConversionManyPerClickSignificance%3C%2Ffields%3E%3Cfields%3EConversionRate%3C%2Ffields%3E%3Cfields%3EConversionRateManyPerClick%3C%2Ffields%3E%3Cfields%3EConversions%3C%2Ffields%3E%3Cfields%3EConversionSignificance%3C%2Ffields%3E%3Cfields%3EConversionsManyPerClick%3C%2Ffields%3E%3Cfields%3EConversionTypeName%3C%2Ffields%3E%3Cfields%3EConversionValue%3C%2Ffields%3E%3Cfields%3ECost%3C%2Ffields%3E%3Cfields%3ECostPerConversion%3C%2Ffields%3E%3Cfields%3ECostPerConversionManyPerClick%3C%2Ffields%3E%3Cfields%3ECostPerConversionManyPerClickSignificance%3C%2Ffields%3E%3Cfields%3ECostPerConversionSignificance%3C%2Ffields%3E%3Cfields%3ECostSignificance%3C%2Ffields%3E%3Cfields%3ECpcBidSource%3C%2Ffields%3E%3Cfields%3ECpcSignificance%3C%2Ffields%3E%3Cfields%3ECpmSignificance%3C%2Ffields%3E%3Cfields%3ECriteria%3C%2Ffields%3E%3Cfields%3ECriteriaDestinat ionUrl%3C%2Ffields%3E%3Cfields%3ECriteriaType%3C%2Ffields%3E%3Cfields%3ECtr%3C%2Ffields%3E%3Cfields%3ECtrSignificance%3C%2Ffields%3E%3Cfields%3ECustomerDescriptiveName%3C%2Ffields%3E%3Cfields%3EDate%3C%2Ffields%3E%3Cfields%3EDayOfWeek%3C%2Ffields%3E%3Cfields%3EDevice%3C%2Ffields%3E%3Cfields%3EDisplayName%3C%2Ffields%3E%3Cfields%3EExternalCustomerId%3C%2Ffields%3E%3Cfields%3EFirstPageCpc%3C%2Ffields%3E%3Cfields%3EId%3C%2Ffields%3E%3Cfields%3EImpressions%3C%2Ffields%3E%3Cfields%3EImpressionSignificance%3C%2Ffields%3E%3Cfields%3EIsNegative%3C%2Ffields%3E%3Cfields%3EMaxCpc%3C%2Ffields%3E%3Cfields%3EMaxCpm%3C%2Ffields%3E%3Cfields%3EMonth%3C%2Ffields%3E%3Cfields%3EMonthOfYear%3C%2Ffields%3E%3Cfields%3EPercentCpa%3C%2Ffields%3E%3Cfields%3EPositionSignificance%3C%2Ffields%3E%3Cfields%3EPreferredPosition%3C%2Ffields%3E%3Cfields%3EPrimaryCompanyName%3C%2Ffields%3E%3Cfields%3EPrimaryUserLogin%3C%2Ffields%3E%3Cfields%3EProxyMaxCpc%3C%2Ffields%3E%3Cfields%3EQualityScore%3C%2Ffields%3E%3Cfields%3E Quarter%3C%2Ffields%3E%3Cfields%3ESlot%3C%2Ffields%3E%3Cfields%3EStatus%3C%2Ffields%3E%3Cfields%3ETopOfPageCpc%3C%2Ffields%3E%3Cfields%3ETotalConvValue%3C%2Ffields%3E%3Cfields%3EValuePerConv%3C%2Ffields%3E%3Cfields%3EValuePerConversion%3C%2Ffields%3E%3Cfields%3EValuePerConversionManyPerClick%3C%2Ffields%3E%3Cfields%3EValuePerConvManyPerClick%3C%2Ffields%3E%3Cfields%3EViewThroughConversions%3C%2Ffields%3E%3Cfields%3EWeek%3C%2Ffields%3E%3Cfields%3EYear%3C%2Ffields%3E%3Cpaging%3E%3CstartIndex%3E0%3C%2FstartIndex%3E%3CnumberResults%3E500%3C%2FnumberResults%3E%3C%2Fpaging%3E%3C%2Fselector%3E%3CreportName%3Etest%3C%2FreportName%3E%3CreportType%3ECRITERIA_PERFORMANCE_REPORT%3C%2FreportType%3E%3CdateRangeType%3ELAST_30_DAYS%3C%2FdateRangeType%3E%3CdownloadFormat%3ECSV%3C%2FdownloadFormat%3E%3C%2FreportDefinition%3E Request: https://adwords.google.com/api/adwords/reportdownload/v201302 Data: "__rdxml=%3CreportDefinition%3E%3Cselector%3E%3Cfields%3EConversionRateManyPerClickSignificance%3C%2Ffields%3E%3Cfields%3EConversionRateSignificance%3C%2Ffields%3E%3Cfields%3EParameter%3C%2Ffields%3E%3Cfields%3EViewThroughConversionsSignificance%3C%2Ffields%3E%3Cfields%3EAccountCurrencyCode%3C%2Ffields%3E%3Cfields%3EAccountDescriptiveName%3C%2Ffields%3E%3Cfields%3EAccountTimeZoneId%3C%2Ffields%3E%3Cfields%3EAdGroupId%3C%2Ffields%3E%3Cfields%3EAdGroupName%3C%2Ffields%3E%3Cfields%3EAdGroupStatus%3C%2Ffields%3E%3Cfields%3EAdNetworkType1%3C%2Ffields%3E%3Cfields%3EAdNetworkType2%3C%2Ffields%3E%3Cfields%3EAdvertiserExperimentSegmentationBin%3C%2Ffields%3E%3Cfields%3EApprovalStatus%3C%2Ffields%3E%3Cfields%3EAverageCpc%3C%2Ffields%3E%3Cfields%3EAverageCpm%3C%2Ffields%3E%3Cfields%3EAveragePosition%3C%2Ffields%3E%3Cfields%3EBottomPosition%3C%2Ffields%3E%3Cfields%3ECampaignId%3C%2Ffields%3E%3Cfields%3ECampaignName%3C%2Ffields%3E%3Cfields%3ECampaignStatus%3C%2Ffields%3E%3Cfields%3EClicks%3 C%2Ffields%3E%3Cfields%3EClickSignificance%3C%2Ffields%3E%3Cfields%3EClickType%3C%2Ffields%3E%3Cfields%3EConversionCategoryName%3C%2Ffields%3E%3Cfields%3EConversionManyPerClickSignificance%3C%2Ffields%3E%3Cfields%3EConversionRate%3C%2Ffields%3E%3Cfields%3EConversionRateManyPerClick%3C%2Ffields%3E%3Cfields%3EConversions%3C%2Ffields%3E%3Cfields%3EConversionSignificance%3C%2Ffields%3E%3Cfields%3EConversionsManyPerClick%3C%2Ffields%3E%3Cfields%3EConversionTypeName%3C%2Ffields%3E%3Cfields%3EConversionValue%3C%2Ffields%3E%3Cfields%3ECost%3C%2Ffields%3E%3Cfields%3ECostPerConversion%3C%2Ffields%3E%3Cfields%3ECostPerConversionManyPerClick%3C%2Ffields%3E%3Cfields%3ECostPerConversionManyPerClickSignificance%3C%2Ffields%3E%3Cfields%3ECostPerConversionSignificance%3C%2Ffields%3E%3Cfields%3ECostSignificance%3C%2Ffields%3E%3Cfields%3ECpcBidSource%3C%2Ffields%3E%3Cfields%3ECpcSignificance%3C%2Ffields%3E%3Cfields%3ECpmSignificance%3C%2Ffields%3E%3Cfields%3ECriteria%3C%2Ffields%3E%3Cfields%3ECriteriaD estinationUrl%3C%2Ffields%3E%3Cfields%3ECriteriaType%3C%2Ffields%3E%3Cfields%3ECtr%3C%2Ffields%3E%3Cfields%3ECtrSignificance%3C%2Ffields%3E%3Cfields%3ECustomerDescriptiveName%3C%2Ffields%3E%3Cfields%3EDate%3C%2Ffields%3E%3Cfields%3EDayOfWeek%3C%2Ffields%3E%3Cfields%3EDevice%3C%2Ffields%3E%3Cfields%3EDisplayName%3C%2Ffields%3E%3Cfields%3EExternalCustomerId%3C%2Ffields%3E%3Cfields%3EFirstPageCpc%3C%2Ffields%3E%3Cfields%3EId%3C%2Ffields%3E%3Cfields%3EImpressions%3C%2Ffields%3E%3Cfields%3EImpressionSignificance%3C%2Ffields%3E%3Cfields%3EIsNegative%3C%2Ffields%3E%3Cfields%3EMaxCpc%3C%2Ffields%3E%3Cfields%3EMaxCpm%3C%2Ffields%3E%3Cfields%3EMonth%3C%2Ffields%3E%3Cfields%3EMonthOfYear%3C%2Ffields%3E%3Cfields%3EPercentCpa%3C%2Ffields%3E%3Cfields%3EPositionSignificance%3C%2Ffields%3E%3Cfields%3EPreferredPosition%3C%2Ffields%3E%3Cfields%3EPrimaryCompanyName%3C%2Ffields%3E%3Cfields%3EPrimaryUserLogin%3C%2Ffields%3E%3Cfields%3EProxyMaxCpc%3C%2Ffields%3E%3Cfields%3EQualityScore%3C%2Ffields%3E%3Cfi elds%3EQuarter%3C%2Ffields%3E%3Cfields%3ESlot%3C%2Ffields%3E%3Cfields%3EStatus%3C%2Ffields%3E%3Cfields%3ETopOfPageCpc%3C%2Ffields%3E%3Cfields%3ETotalConvValue%3C%2Ffields%3E%3Cfields%3EValuePerConv%3C%2Ffields%3E%3Cfields%3EValuePerConversion%3C%2Ffields%3E%3Cfields%3EValuePerConversionManyPerClick%3C%2Ffields%3E%3Cfields%3EValuePerConvManyPerClick%3C%2Ffields%3E%3Cfields%3EViewThroughConversions%3C%2Ffields%3E%3Cfields%3EWeek%3C%2Ffields%3E%3Cfields%3EYear%3C%2Ffields%3E%3Cpaging%3E%3CstartIndex%3E0%3C%2FstartIndex%3E%3CnumberResults%3E500%3C%2FnumberResults%3E%3C%2Fpaging%3E%3C%2Fselector%3E%3CreportName%3Etest%3C%2FreportName%3E%3CreportType%3ECRITERIA_PERFORMANCE_REPORT%3C%2FreportType%3E%3CdateRangeType%3ELAST_30_DAYS%3C%2FdateRangeType%3E%3CdownloadFormat%3ECSV%3C%2FdownloadFormat%3E%3C%2FreportDefinition%3E"
-- Matthew Ledom Software Engineering Manager BrightWhistle Inc. 404.964.8061 http://brightwhistle.com (http://www.brightwhistle.com/) @brightwhistle (http://www.twitter.com/brightwhistle) Sent with Sparrow (http://www.sparrowmailapp.com/?sig) On Wednesday, July 10, 2013 at 12:17 PM, adwords-api@googlegroups.com wrote: > Hello Matthew, > > > Can you please enable debug logging by adding setting log level: > logger.level = Logger::DEBUG > and send me the resulting log file? > > > -Danial, AdWords API Team. > > =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ > Also find us on our blog and discussion group: > http://googleadsdeveloper.blogspot.com/search/label/adwords_api > https://developers.google.com/adwords/api/community/ > =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ > > On 07/10/13 04:01:48 mle...@brightwhistle.com > (mailto:mle...@brightwhistle.com) wrote: > > #setup the api > > @params[:version] ||= 'v201302' > > config = File.join( Rails.root, 'config', 'adwords_api.yml' ) > > @api = AdwordsApi::Api.new( config ) > > > > @api.logger = Logger.new( "log/google.log" ) > > > > credentials = @api.credential_handler() > > credentials.set_credential(:client_customer_id, > > params[:ad_account_identifier] ) > > > > > > @service = @api.report_utils( params[:version].to_sym ) > > > > #lives in another file that sets up the query > > query = GoogleQuery.new( params ) > > #query = query.where_not( :status => 'DISABLED' ) > > #query = query.where( :client_customer_id => > > params[:ad_account_identifier] ) > > query = query.query > > query[:fields] = params[:fields] > > > > data = { > > :selector => query, > > :report_name => (params[:report_name] || 'test'), > > :report_type => "CRITERIA_PERFORMANCE_REPORT", > > :download_format => 'CSV', > > :date_range_type => (params[:date_range_type] || 'LAST_30_DAYS') > > } > > # I have attached what the data object looks like > > download( data, params[:file_name]||'test' ) > > > > #the download method > > def download( report_def, file_name ) > > begin > > if file_name.blank? > > self.service.download_report( report_def, @params[ > > :ad_account_identifier ].gsub( '-', '' ) ) > > else > > self.service.download_report_as_file( report_def, file_name, > > @params[ :ad_account_identifier ] ) > > end > > rescue Exception => e > > return { :success => false, :message => parse_error( e ) } > > end > > end > > > > On Tuesday, July 9, 2013 6:18:47 PM UTC-4, Danial Klimkin wrote: > > > This is very strange. Can you share the application code and your > > > configuration file with me over email (Reply to Author link)? > > > > > > > > > -Danial, AdWords API Team. > > > > > > On Tuesday, July 9, 2013 2:59:00 AM UTC+4, Matthew Ledom wrote: > > > > I'm sending the clientCustomerId as a string "xxx-xxx-xxxx" and passing > > > > it in the download_report and download_report_as_file methods. I also > > > > have the id set in the headers of the request as > > > > "clientCustomerId"=>"xxx-xxx-xxxx". > > > > > > > > On Monday, July 8, 2013 4:42:43 PM UTC-4, Danial Klimkin wrote: > > > > > Hi Matthew, > > > > > > > > > > > > > > > This error means you are not sending the clientCustomerId correctly. > > > > > How do you pass the account ID to the library? > > > > > > > > > > > > > > > -Danial, AdWords API Team. > > > > > > > > > > > > > > > On Monday, July 8, 2013 10:47:23 PM UTC+4, Matthew Ledom wrote: > > > > > > I'm trying to download the CRITERIA_PERFORMANCE_REPORT for all the > > > > > > fields that are allowed. I keep receiving the following error: > > > > > > > > > > > > <reportDownloadError><ApiError><type>ReportDownloadError.INVALID_PARAMETER</type><trigger>Missing > > > > > > client > > > > > > information</trigger><fieldPath></fieldPath></ApiError></reportDownloadError> > > > > > > > > > > > > I'm currently setting the clientCustomerId header value and auth > > > > > > params like so: > > > > > > > > > > > > {"Content-Type"=>"application/x-www-form-urlencoded", > > > > > > "Authorization"=> > > > > > > "GoogleLogin auth=auth token", > > > > > > "User-Agent"=> > > > > > > "test_client (AwApi-Ruby/0.9.1, Common-Ruby/0.9.2, Savon/1.2.0, > > > > > > ruby/1.9.3, HTTPI/1.1.1, curb)", > > > > > > "clientCustomerId"=>"xxx-xxx-xxxx", > > > > > > "developerToken"=>"my_dev_token"} > > > > > > > > > > > > > > > > > > Is there something I'm missing with regards to the client > > > > > > information. I tried adding the client customer id as a predicate > > > > > > for filtering but that didnt work either. I was trying to follow > > > > > > the examples at > > > > > > https://code.google.com/p/google-api-ads-ruby/source/browse/adwords_api/examples/v201302/reporting/download_criteria_report.rb > > > > > > but I'm not having an luck due to this "Missing Client > > > > > > Information" problem. -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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.