estimate_keyword_traffic.pl example fails if StatsEstimate is missing values
Closed this issue · 1 comments
jradcliff commented
If any of the StatsEstimate
attributes used in the example are undef
then the example fails with:
Can't call method "get_microAmount" on an undefined value at estimate_keyword_traffic.pl line 125.
This was not an issue prior to v201406 of the API, but in v201406 the TrafficEstimatorService
no longer returns 0
for a derived field if its denominator is zero. Instead, it omits the field from the response.
https://developers.google.com/adwords/api/docs/reference/#v201406