With a quick look at the AC and BD websites, it seems to me that you would be able to earn AC (Aeroplan) miles on this ticket if you chose to do so, but you would not earn BD (Diamond Club) miles if that's the frequent flyer scheme you select.
I know they're both in the Star Alliance, but this is far from being the only intra-alliance earning quirk in the world.