Hi, I think it's not a API issue, but rather on how you should handle nil value in ruby. Could you try adding a logic that handles nil correctly?
Best, - Takeshi, AdWords API Team On Thursday, August 29, 2013 7:55:35 PM UTC+9, Alex wrote: > > Hello, > > I am using the adwords api to poll the keywords from a campaing. In my > model initializer I have this line of code > > @firstPageCpc = api_keyword[:first_page_cpc][:amount][:micro_amount] / > 1000000 > > My problem is that for few campaign or adgroups I can poll the data > without any problem, but I have an campaign which gives me this error > message: > > undefined method `[]' for nil:NilClass > > And it points me to that line, and if I remove it everything is working > fine. > Can someone help me please. > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 [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]. For more options, visit https://groups.google.com/groups/opt_out.
