Regarding migration from Adwords to Google Ads api Campaign service

33 views
Skip to first unread message

venu.B.S Shetty

unread,
Mar 25, 2022, 6:39:14 AM3/25/22
to Google Ads API and AdWords API Forum
H Team,
I am trying to migrate from Google Adwords to Google Ads Api  in C#,

Below is the code which is calling 
CampaignPage googleCampaignPageActive = null;

            var s = new Selector()
                       {
                           fields = new string[] { "Id", "Name", "Status" }
                       };

            googleCampaignPageActive = CampaignService.@get(s);

What will be the equivalent in Google Ads Api to get the campaigns based on account id Or account email.

And can you please share the links to Google Ads API example code 

Thanks & Regards,
Venu

Google Ads API Forum Advisor

unread,
Mar 25, 2022, 4:41:41 PM3/25/22
to vnb...@gmail.com, adwor...@googlegroups.com
Hi Venu,

Thank you for reaching out to the Google Ads API support team.

With regards to your concern, you can use customer.id field while making campaign report. You can pull fields from the reports in the "attributed resources”. Let me know if you have any question.

Thanks,
Google Logo
Nirmita
Google Ads API Team
 


ref:_00D1U1174p._5004Q2YrNtZ:ref
Reply all
Reply to author
Forward
0 new messages