Getting a second token with readonly access

2017-09-12 Thread Assaf Frank
Hi,

We currently have a standard token (read/write) but would like to offer a 
service to customers that only requires read access.
We would like to display the "grant access"  message to the users that we 
would like access to "read" only and not to fully manage their accounts (I 
understand this message is according to the token access).

Is there a way to as for ready only access from the user - even if the 
token has full read/write access?
If not, can we under the same Manager ID get a second token with only read 
access for this purpose?

Thanks,

Assaf

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/a3d1fbb9-b381-4f7b-a9f1-abd8f2283ad8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Performance issue with ACCOUNT_PERFORMANCE_REPORT

2016-01-06 Thread Assaf Frank
I would like to add that these reports* ran OK up to a couple of days ago.*
Now the same reports seem to be taking too much time so we get an exception 
- com.google.api.ads.adwords.lib.utils.ReportException: Problem sending 
data to report download server

Is there currently an issue with the reporting on large accounts causing 
the report to fail?

Thanks.

On Wednesday, January 6, 2016 at 9:59:14 AM UTC+2, di...@easyleads.com 
wrote:
>
> Hi,
>
> We encounter a heavy performance issue with ACCOUNT_PERFORMANCE_REPORT on 
> one of our accounts. 
>
> We understand that the query isn't the simplest in terms of complexity, 
> but the response time is reasonable for several hundreds of accounts we 
> tested.
>
> Query 1 (last year): SELECT Device, AdNetworkType1, Date, Impressions, 
> Clicks, Cost, ConvertedClicks, AveragePosition, SearchImpressionShare, 
> ContentImpressionShare FROM ACCOUNT_PERFORMANCE_REPORT DURING 20150101, 
> 20151231
> Result on the problematic account: 1095 rows retrieved in 21.8 seconds (
> *21.164* seconds spent on the google api call)
> Result on one of other accounts: 1095 rows retrieved in 3.49 seconds (
> *2.79* seconds spent on the google api call)
>
> Query 2 (all time): SELECT Device, AdNetworkType1, Date, Impressions, 
> Clicks, Cost, ConvertedClicks, AveragePosition, SearchImpressionShare, 
> ContentImpressionShare FROM ACCOUNT_PERFORMANCE_REPORT DURING 20001101, 
> 20160106
> Result on the problematic account: 5436 rows retrieved in 42.204 seconds (
> *40.967* seconds spent on the google api call)
> Result on one of other accounts: 11013 rows retrieved in 6.543 seconds (
> *4.604* seconds spent on the google api call)
>
> What could be the reason?
>
> Thanks
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/06e83625-e1b6-4ca5-b502-18d1243ccf13%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Large number of 'Problem sending data to report download server.' errors

2016-01-06 Thread Assaf Frank
Hi Anash,

This same issue is happening since yesterday.
We have a few large clients that their  account performance report with 
several segments (date/device) is causing time out and failing.
The same reports worked fine up to yesterday.
We are using Java to fetch the reports.

Is there any know issue at the moment?

Thanks,

Assaf

On Friday, August 22, 2014 at 10:07:33 PM UTC+3, Anash P. Oommen (AdWords 
API Team) wrote:
>
> Hi,
>
> We had some issues with our reporting server yesterday, that should be the 
> cause for the errors you were seeing. This has been fixed at our end, your 
> code should work fine now.
>
> Cheers,
> Anash P. Oommen,
> AdWords API Advisor.
>
> On Thursday, August 21, 2014 8:00:44 PM UTC-4, mm wrote:
>>
>> Hey guys -
>> This afternoon we started seeing a large number of these errors, across 
>> multiple accounts in our production environment. They seem to resolve 
>> themselves with a lot of wait/retry-ing, but in some cases that is taking 
>> as much as 30 mins. These are all just reports for today's performance 
>> data, so the reports are generally of reasonable size.  Is there any other 
>> way to handle these besides wait/retry? 
>>
>> Thanks -
>> mm
>>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/98434199-6346-472b-88ce-1e66fb95e3b1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Exception downloading Performance Report with java

2015-08-20 Thread Assaf Frank
Hi Anash,

Is there anyway to use the AccountPerformaceReport (or any other report) to 
get statistics for each account (1 row per account) under my MCC account?

Many thanks,



On Monday, February 4, 2013 at 9:40:19 AM UTC+2, Anash P. Oommen (AdWords 
API Team) wrote:
>
> Hi Adrian,
>
> When setting String Cid = "XXX-XXX-"; is this an advertiser account's 
> CID or an MCC account's CID? From the error it looks like you are setting 
> an MCC account CID here.
>
> Cheers,
> Anash P. Oommen,
> AdWords API Advisor.
>
> On Wednesday, January 30, 2013 10:12:20 PM UTC+5:30, Adrian Castro SolĂ­s 
> wrote:
>>
>> Hi
>>
>> Im having this error in my java code, when I trying to download an adhoc 
>> report...  This is exception:
>>
>> Report was not downloaded. 400: HTTP code: 400, type: 
>> "ReportDefinitionError.CUSTOMER_SERVING_TYPE_REPORT_MISMATCH", trigger: "", 
>> fieldPath: ""
>>
>> This is the java code
>>
>>
>>
>> import com.google.api.adwords.lib.AdWordsServiceLogger;
>>
>> import com.google.api.adwords.lib.AdWordsUser;
>>
>> import com.google.api.adwords.lib.AuthToken;
>>
>> import com.google.api.adwords.lib.utils.v201209.ReportDownloadResponse;
>>
>> import com.google.api.adwords.lib.utils.v201209.ReportUtils;
>>
>> import com.google.api.adwords.v201209.jaxb.cm.DownloadFormat;
>>
>> import com.google.api.adwords.v201209.jaxb.cm.ReportDefinition;
>>
>> import 
>> com.google.api.adwords.v201209.jaxb.cm.ReportDefinitionDateRangeType;
>>
>> import com.google.api.adwords.v201209.jaxb.cm.ReportDefinitionReportType;
>>
>> import com.google.api.adwords.v201209.jaxb.cm.Selector;
>>
>>
>> import java.io.File;
>>
>> import java.io.FileOutputStream;
>>
>> import java.net.HttpURLConnection;
>>
>> import java.util.List;
>>
>>
>> public class AddMccReportDefinition {
>>
>>   public static void main(String[] args) {
>>
>> try {
>>
>> String email = "xxx...@mail.com";
>>
>> String password = "";
>>
>> String userAgent = "mycompany.com";
>>
>> String developerToken = "";
>>
>> String Cid = "XXX-XXX-";
>>
>>   // Log SOAP XML request and response.
>>
>>   AdWordsServiceLogger.log();
>>
>>
>>   // Get AdWordsUser from "~/adwords.properties".
>>
>>   AdWordsUser user = new AdWordsUser(email, password, Cid, 
>> userAgent, developerToken);
>>
>>   // Location to download report to.
>>
>>   String reportFile = "report.csv";
>>
>>
>>   // Create selector.
>>
>>   Selector selector = new Selector();
>>
>>   List fields = selector.getFields();
>>
>>   fields.add("AdGroupId");
>>
>>   fields.add("Id");
>>
>>   fields.add("KeywordText");
>>
>>   fields.add("KeywordMatchType");
>>
>>   fields.add("Impressions");
>>
>>   fields.add("Clicks");
>>
>>   fields.add("Cost");
>>
>>
>>   // Create report definition.
>>
>>   ReportDefinition reportDefinition = new ReportDefinition();
>>
>>   reportDefinition.setReportName("Keywords performance report #" + 
>> System.currentTimeMillis());
>>
>>   reportDefinition.setDateRangeType(ReportDefinitionDateRangeType.
>> LAST_30_DAYS );
>>
>>   reportDefinition.setReportType(ReportDefinitionReportType.
>> ACCOUNT_PERFORMANCE_REPORT);
>>
>>   reportDefinition.setDownloadFormat(DownloadFormat.CSV);
>>
>>   reportDefinition.setIncludeZeroImpressions(false);
>>
>>   reportDefinition.setSelector(selector);
>>
>>
>>   
>>
>>   FileOutputStream fos = new FileOutputStream(new File(reportFile));
>>
>>   
>>
>>  
>>
>>   ReportDownloadResponse response = ReportUtils.downloadReport( user 
>> , reportDefinition, fos);
>>
>>   
>>
>>   if (response.getHttpStatus() == HttpURLConnection.HTTP_OK) {
>>
>> System.out.println("Report successfully downloaded: " + 
>> reportFile);
>>
>>   } else {
>>
>> System.out.println("Report was not downloaded. " + 
>> response.getHttpStatus() + ": "
>>
>> + response.getHttpResponseMessage());
>>
>>   }
>>
>> } catch (Exception e) {
>>
>>   e.printStackTrace();
>>
>> }
>>
>>   }
>>
>> }
>>
>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 http://groups.google.com/group/adwords-api.
To view this discussion on the we

Error during creation of ads - CANNOT_SET_FIELD - URL - V201502

2015-07-14 Thread Assaf Frank
Hi,

My creation of ads *worked properly a week ago and now *, for some reason, 
I can't create ads.
Is this due to the last changed in upgraded URLs etc ?

I do set all parameters -

AdWordsServices adwordsServices = new AdWordsServices();
// Get the CampaignService.
AdGroupAdServiceInterface adGroupAdService = 
adwordsServices.get(session, AdGroupAdServiceInterface.class);
 
 long adGroupId = Long.parseLong(pAdGroupID);

 // Create ad group ad.
  AdGroupAd textAdGroupAd = new AdGroupAd();
  textAdGroupAd.setAdGroupId(adGroupId);
 
  textAdGroupAd.setStatus(pStatus);
  
  TextAd textAd = new TextAd();
  textAd.setHeadline(pHeadline);
  textAd.setDescription1(pDescription1);
  textAd.setDescription2(pDescription2);
  textAd.setDisplayUrl(pDisplayURL);
  textAd.setUrl(pURL);
 
  textAdGroupAd.setAd(textAd);

  // Create operations.
  AdGroupAdOperation textAdGroupAdOperation = new AdGroupAdOperation();
  textAdGroupAdOperation.setOperand(textAdGroupAd); 
 textAdGroupAdOperation.setOperator(Operator.ADD);

  AdGroupAdOperation[] operations = new AdGroupAdOperation[] 
{textAdGroupAdOperation};   
  // Add ads.
  AdGroupAdReturnValue result = adGroupAdService.mutate(operations);

The error I get is: 

faultString: [AdError.CANNOT_SET_FIELD @ operations[0].operand.ad.url]
 faultActor: 
 faultNode: 
 faultDetail: 
{https://adwords.google.com/api/adwords/cm/v201502}ApiExceptionFault:[AdError.CANNOT_SET_FIELD
 
@ 
operations[0].operand.ad.url]ApiExceptionhttp://www.w3.org/2001/XMLSchema-instance"; 
xsi:type="AdError">operations[0].operand.ad.urlAdError.CANNOT_SET_FIELDAdErrorCANNOT_SET_FIELD

[AdError.CANNOT_SET_FIELD @ operations[0].operand.ad.url]

Thanks,



-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/273407b1-9588-4c67-bcbd-4cb043caead7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.