© 2013 CERN. Published by the American Physical Society under the terms of the Creative Commons Attribution 3.0 License. Further distribution of this work must maintain attribution to the author(s) and the published article's title, journal citation, and DOI. The integrated and differential fiducial cross sections for the production of a W or Z boson in association with a high-energy photon are measured using pp collisions at √s=7 TeV. The analyses use a data sample with an integrated luminosity of 4.6 fb-1 collected by the ATLAS detector during the 2011 LHC data-taking period. Events are selected using leptonic decays of the W and Z bosons [W(eν,μν) and Z(e+e-, μ+μ-,νν¯)] with the requirement of an associated isolated photon. The data are used to test the electroweak sector of the Standard Model and search for evidence for new phenomena. The measurements are used to probe the anomalous WWγ, ZZγ, and Zγγ triple-gauge-boson couplings and to search for the production of vector resonances decaying to Zγ and Wγ. No deviations from Standard Model predictions are observed and limits are placed on anomalous triple-gauge-boson couplings and on the production of new vector meson resonances.