Problems with deleted/paused data in ReportDefinitionService and AdGroupService in v201101 (Java Api)
Hi folks! I have a problem with the AdGroupService and the Report DefintionService and i think it could have the same reason. I like to get the data of all AdGroups and Keywords for a special daterange. That should include "paused" and "deleted" AdGroups or Keywords. I have looked at the examples and i found the predicate filter option. I have insert to the KeywordReportDefiniton: Predicate statusPredicate =new Predicate("Status", PredicateOperator.IN, new String[] {"ACTIVE", "PAUSED", "DELETED"}); // Create selector. Selector selector = new Selector(); selector.setFields(new String[] {"PrimaryUserLogin", "AdGroupId", "Id", "KeywordText", "Status", "KeywordMatchType", "PreferredPosition", "MaxCpc", "MaxCpm", "IsNegative", "DestinationUrl", "QualityScore", "AveragePosition", "FirstPageCpc", "Impressions", "Clicks", "Cost", "Ctr"}); selector.setPredicates(Predicate[] { statusPredicate }); selector.setDateRange(dateRange); // Create report definition. ReportDefinition reportDefinition = new ReportDefinition(); reportDefinition.setReportName("Keywords performance report #" + System.currentTimeMillis()); reportDefinition.setDateRangeType(ReportDefinitionDateRangeType.CUSTOM_DATE); reportDefinition.setReportType(ReportDefinitionReportType.KEYWORDS_PERFORMANCE_REPORT); reportDefinition.setDownloadFormat(DownloadFormat.XML); reportDefinition.setSelector(selector); And the following to the AdGroupService: Selector selector = new Selector(); selector.setFields(new String[] {"Id", "AdGroupId", "Name", "Status", "Headline", "Description1", "Description2", "Clicks", "Cost", "Impressions", "Url", "Ctr", "AdType", "AverageCpc", "AverageCpm", "AveragePosition", "CreativeDestinationUrl"}); selector.setOrdering(new OrderBy[] {new OrderBy("Id", SortOrder.ASCENDING)}); selector.setDateRange(dateRange); Predicate adGroupIdPredicate = new Predicate("AdGroupId", PredicateOperator.IN, new String[] {groupIDl.toString()}); Predicate statusPredicate =new Predicate("Status", PredicateOperator.IN, new String[] {"ENABLED", "PAUSED", "DISABLED"}); selector.setPredicates(new Predicate[] {adGroupIdPredicate, statusPredicate}); AdGroupAdPage page = adGroupAdService.get(selector); if (page.getEntries() != null && page.getEntries().length > 0) { . In both, i didn't get "deleted" or "paused" data but if i take a look in my adwords account their is data which is "paused" or "deleted" for my dataRange. It would be great if you can help me with this problem! best regards Jan -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 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
Re: OAuth for AdwordsApi v201008 (Java Client Libary) ??
Hi Anash, thanks for your answer. So it is necessary for the adwords api to auth with the Login and Passwort every Week to generate a new AuthToken? There are no other ways to authorize with less effort and without using the login and passwort every week? Thanks, Jan On 24 Feb., 09:46, AdWords API Advisor wrote: > Hi Jan, > > OAuth isn't supported in AdWords API Java library. You could add a > feature request for it here:http://code.google.com/p/google-api-adwords-java/ > > Cheers, > Anash P. Oommen, > AdWords API Advisor. > > On Feb 22, 6:43 pm, Jan Ruske wrote: > > > Hi folks, > > > I’m searching for a OAuth with AdwordsApi v201008(Java). I can`t find > > any helpful documentation. > > > I like to get the data of 2-3 Adwords Account`s witch are managed by a > > MMC Account. I’m using a Keyword-Report and the Campaign Service to > > get my data. > > > It would be nice if I can generate the OAuth Tokens for any Account, > > so I must only change the Tokens to get the data for another account. > > > For the Scribe OAuth Libary you need a Scope and a > > "PROTECTED_RESOURCE_URL". I only found a Scope Url`s for other > > googleservices. > > >http://code.google.com/intl/de-DE/apis/gdata/faq.html#AuthScopes > > > Or is there some other way to get long-life Tokens for the > > Account`s ?? > > > best regards , > > > Jan -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 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
OAuth with AdwordsApi v201008(Java) ??
Hi folks, I’m searching for a OAuth with AdwordsApi v201008(Java). I can`t find any helpful documentation. I like to get the data of 2-3 Adwords Account`s witch are managed by a MMC Account. I’m using a Keyword-Report and the Campaign Service to get my data. It would be nice if I can generate the OAuth Tokens for any Account, so I must only change the Tokens to get the data for another account. For the Scribe OAuth Library you need a Scope and a "PROTECTED_RESOURCE_URL". I only found a Scope Url`s for other googleservices. http://code.google.com/intl/de-DE/apis/gdata/faq.html#AuthScopes Or is there some other way to get long-life Tokens for the Account`s ?? best regards , Jan -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 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
OAuth for AdwordsApi v201008 (Java Client Libary) ??
Hi folks, I’m searching for a OAuth with AdwordsApi v201008(Java). I can`t find any helpful documentation. I like to get the data of 2-3 Adwords Account`s witch are managed by a MMC Account. I’m using a Keyword-Report and the Campaign Service to get my data. It would be nice if I can generate the OAuth Tokens for any Account, so I must only change the Tokens to get the data for another account. For the Scribe OAuth Libary you need a Scope and a "PROTECTED_RESOURCE_URL". I only found a Scope Url`s for other googleservices. http://code.google.com/intl/de-DE/apis/gdata/faq.html#AuthScopes Or is there some other way to get long-life Tokens for the Account`s ?? best regards , Jan -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 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