Get campaign performance report with API

690 views
Skip to first unread message

ros...@rlogicaltechsoft.onmicrosoft.com

unread,
Sep 9, 2016, 4:17:12 AM9/9/16
to AdWords API Forum
How to get campaign performance report with adword API?

Peter Oliquino

unread,
Sep 9, 2016, 4:35:27 AM9/9/16
to AdWords API Forum
Hi Roshni,

You may refer to our reporting guide in order to get the basics on how to generate reports such as the Campaign Performance Report using the AdWords API. You may also refer to our example code (other languages are also available in the link) for additional information. Let me know if this helps.

Best regards,
Peter
AdWords API Team

ros...@rlogicaltechsoft.onmicrosoft.com

unread,
Sep 9, 2016, 5:19:02 AM9/9/16
to AdWords API Forum
from created test accounts campaign am i able to get the campaign performance report?

Peter Oliquino

unread,
Sep 9, 2016, 6:23:19 AM9/9/16
to AdWords API Forum
Hi Roshni,

Yes, you may still be able to generate reports using your test account. However, it will not provide any actual data since test accounts don't serve impressions and don't produce actual metrics. You may refer here for more information about developing using test accounts.

ros...@rlogicaltechsoft.onmicrosoft.com

unread,
Sep 9, 2016, 6:32:25 AM9/9/16
to AdWords API Forum
From which code i have to  use? because i need in campaign report in c#.net using API.
Can you help me out?


On Friday, September 9, 2016 at 1:47:12 PM UTC+5:30, ros...@rlogicaltechsoft.onmicrosoft.com wrote:

ros...@rlogicaltechsoft.onmicrosoft.com

unread,
Sep 9, 2016, 6:41:28 AM9/9/16
to AdWords API Forum
can i get campaign report using test account? I know that generate campaign in it but i need it but with .net code API.


On Friday, September 9, 2016 at 1:47:12 PM UTC+5:30, ros...@rlogicaltechsoft.onmicrosoft.com wrote:

Peter Oliquino

unread,
Sep 9, 2016, 6:52:17 AM9/9/16
to AdWords API Forum
Hi Roshni,

You may refer here for the example code in .NET. Please also refer to the Campaign Performance Report for the supported fields. I hope this helps and please let me know if you still have any other concerns.

ros...@rlogicaltechsoft.onmicrosoft.com

unread,
Sep 9, 2016, 7:20:40 AM9/9/16
to AdWords API Forum
public static void Main(string[] args) {
DownloadCriteriaReportWithAwql codeExample = new DownloadCriteriaReportWithAwql();
Console.WriteLine(codeExample.Description);
try {
string fileName = "INSERT_FILE_NAME_HERE";
codeExample.Run(new AdWordsUser(), fileName);
} catch (Exception e) {
Console.WriteLine("An exception occurred while running this code example. {0}",
ExampleUtilities.FormatException(e));
}
} public override string Description { get { return "This code example gets and downloads a criteria Ad Hoc report from an AWQL " + "query. See https://developers.google.com/adwords/api/docs/guides/awql for AWQL " + "documentation."; } } In description I got error of - no suitable method found and form filename which file name i write?

On Friday, September 9, 2016 at 1:47:12 PM UTC+5:30, ros...@rlogicaltechsoft.onmicrosoft.com wrote:

ros...@rlogicaltechsoft.onmicrosoft.com

unread,
Sep 10, 2016, 2:18:03 AM9/10/16
to AdWords API Forum
Have you got this post? reply immerdiately please.


On Friday, September 9, 2016 at 1:47:12 PM UTC+5:30, ros...@rlogicaltechsoft.onmicrosoft.com wrote:

Peter Oliquino

unread,
Sep 11, 2016, 9:59:29 PM9/11/16
to AdWords API Forum
Hi Roshni,

My apologies for the delay. You will need to indicate the name of the report file you wish to generate like for example "campaign_performance_report_file".
Message has been deleted

Eric Christoph

unread,
Sep 12, 2016, 12:40:26 PM9/12/16
to AdWords API Forum
Do you need to pull directly from .NET, or can you run a script and drop the report to a spreadsheet or database first then process it in .NET?

Peter Oliquino

unread,
Sep 12, 2016, 10:27:28 PM9/12/16
to AdWords API Forum
Hi Roshni,

I had to delete your previous response as it contained sensitive information. I highly recommend that you revoke that refresh token using the Account Settings page as described in the OAuth guide. Please see our forum posting guidelines for any future posts or you may reply using Reply privately to author if you wish to share with us such information. Moving forward, you may still generate reports using a test account, however, test accounts do not serve impressions since they do not generate metrics, hence, the reports you download will only contain zero impressions. 

Regarding the error you encountered, it occurs when you are making calls to a production account using an unapproved token. Please use the account ID of your test account as the value of the clientCustomerId while you are waiting approval of your developer token. Could you confirm if you have already requested for basic access using this application form? If no, please do so and follow the steps in this guide. In case you already have (please follow the step 3 of the guide), you may then check the email you have specified in the AdWords API Center and see if AdWords have sent an email containing the link to the follow up application form. Please fill this form and submit. AdWords will then contact you within 2 business days for the status of your developer token.

jimmyrkfe...@gmail.com

unread,
Mar 2, 2017, 5:57:29 AM3/2/17
to AdWords API Forum
Hi peter,

please help me on somewhat same

i have test account for google adword
i got source code from provided by google adwords

but it stuck with me below error

[QuotaCheckError.INVALID_TOKEN_HEADER @ ; trigger:'INSERT_YOUR_DEVELOPER_TOKEN_HERE']

while i am searching for developer token then 
Google Adword Account > Account Setting > AdWords Api Center 
in document they are asking for

bur in test account no such a thing like AdWords Api
now for campaign performance may i able to get with test account or i have to spend money to it?

Thanks,
Jimmy Darji

Peter Oliquino

unread,
Mar 2, 2017, 9:18:04 PM3/2/17
to AdWords API Forum
Hi Jimmy,

You will need to login using your production MCC account and not your test accounts to get your developer token via the AdWords API Center. Once you get your developer token, you will need to include it in your configuration file to fix the issue, as the error you encountered indicates that the developer token is either missing or invalid. I hope this helps.

If the issue persists, I would recommend that you open a new thread and include your concerns for better tracking. We'll continue our discussion from there.
Reply all
Reply to author
Forward
0 new messages