Hi,

I'm developing an automation tool which requires access to adwords account. 
I've gone through several blogs to access adwords API using java which says 
that a developer token is required for that. For that I need to create am 
mcc account it seems which I couldn't. So, please let me know, how to 
access adwords API to pull some reports using Java.

Here is the sample code that I'm using.

// Construct an AdWordsSession.
   AdWordsSession session = new AdWordsSession.Builder()
    .withClientCustomerId(clientCustomerId)
    .fromFile()
       .withClientCustomerId(clientCustomerId)
       .withOAuth2Credential(oAuth2Credential)
       .build();

ReportingConfiguration reportingConfiguration =
       new ReportingConfiguration.Builder()
           // Skip all header and summary lines since the loop below expects
           // every field to be present in each line.
           .skipReportHeader(true)
           .skipColumnHeader(true)
           .skipReportSummary(true)
           // Enable to include rows with zero impressions.
           .includeZeroImpressions(false)
           .build();
   session.setReportingConfiguration(reportingConfiguration);

   ReportDownloaderInterface reportDownloader =
       adWordsServices.getUtility(session, ReportDownloaderInterface.class);

*Note: I have a client_id, client_secret and a refreshToken.*


*Appreciate your help in this.*

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/a72dff4a-7911-412e-ada8-2f11a3f13d6c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • How to access Ad... vmuddana via AdWords API Forum
    • Re: How to ... 'Vincent Racaza (AdWords API Team)' via AdWords API Forum

Reply via email to