Hi, I'm trying to create a CAMPAIGN_PERFORMANCE_REPORT using a custom date range, and I'm coding in perl and NOT using AWQL.
Essentially, I've "borrowed" a lot of code from the first example at: https://developers.google.com/adwords/api/docs/samples/perl/reporting My program works with a dateRangeType => "TODAY". However, when I try dateRangeType => "CUSTOM_DATE", I get errors. I create my selector with code that looks like: 30 my $selector = Google::Ads::AdWords::Reports::Selector->new({ 31 fields => [ 32 "AccountDescriptiveName", 33 "Date", 34 "HourOfDay", 35 "CampaignId", 36 "CampaignName", 37 "AveragePosition", 38 "Impressions", 39 "Clicks", 40 "Cost" 41 ], 42 date_range => { "min" => "2018-01-01", "max" => "2018-01-02"}, 43 predicates => [$predicate]}); However, when I run my script, I get: Unknown field date_range in Google::Ads::AdWords::Reports::Selector. Valid fields are: fields, predicates, dateRange, ordering, paging Structure given: $VAR1 = { 'predicates' => [ bless( do{\(my $o = 5)}, 'Google::Ads::AdWords::Reports::Predicate' ) ], 'fields' => [ 'AccountDescriptiveName', 'Date', 'HourOfDay', 'CampaignId', 'CampaignName', 'AveragePosition', 'Impressions', 'Clicks', 'Cost' ], 'date_range' => { 'min' => '2018-01-01', 'max' => '2018-01-02' } }; at ./modules/adwords.pm line 30. So, what am I doing wrong? Thanks in advance. Mike Diehl. -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 [email protected] To unsubscribe from this group, send email to [email protected] 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 [email protected]. 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/81f90976-4c75-405b-b439-94825be35436%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
