Hello Agnaldo,

Assuming you are talking about old Java client library.
When using it, you should write like in the following code.

      // Get AdWordsUser from "~/adwords.properties".
      AdWordsUser user = new AdWordsUser();

      // Get the ReportDefinitionService.
      ReportDefinitionServiceInterface reportDefinitionService =
          user.getService(AdWordsService.V201209.REPORT_DEFINITION_SERVICE);


And currently there are two active versions for AdWords API (v201206, 
v201209), thus
AdWordsService class has two REPORT_DEFINITION_SERVICE.
Each of them are fields of subclass V201206, V201209.

Note that REPORT_DEFINITION_SERVICE is only used for retrieving the report 
fields.
If you want to retrieve reports data, you should use 
AWQL<https://developers.google.com/adwords/api/docs/guides/awql>or AdHoc 
Reports <https://developers.google.com/adwords/api/docs/guides/reporting>.
Client libraries support both ways.

Best,
- Takeshi, AdWords API Team


On Thursday, December 20, 2012 1:48:39 AM UTC+9, Agnaldo Oliveira wrote:
>
> Hello all,
>
> I need use REPORT_DEFINITION_SERVICE, but i get the error: "no property 
> definition" on class com.google.api.adwords.lib.AdWordsService, but on it 
> has twice definition of REPORT_DEFINITION_SERVICE.
>
> some one can help me?
>
> com.google.api.adwords.lib.AdWordsService
>
> /**
>      * Uses the interface
>      * {@link com.google.api.adwords.v201209.cm.ReportDefinitionService}.
>      */
>     public static final AdWordsService REPORT_DEFINITION_SERVICE =
>         new AdWordsService("ReportDefinitionService", new 
> AdWordsVersionV201209("cm"), "cm");
>
> /**
>      * Uses the interface
>      * {@link com.google.api.adwords.v201206.cm.ReportDefinitionService}.
>      */
>     public static final AdWordsService REPORT_DEFINITION_SERVICE =
>         new AdWordsService("ReportDefinitionService", new 
> AdWordsVersionV201206("cm"), "cm");
>
>
> Tks.
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en



Reply via email to