Re: Adding CriterionUserInterest to Campaign always returns CriterionError.CANNOT_ADD_CRITERIA_TYPE

2012-07-16 Thread Tal Ater
Yes, I did.

I created two campaigns through the API, then through the web interface I 
went to *Campaign Name** > **Display Network** > **Interests & Remarketing**> 
**Exclusions** > **Interests & Remarketing** > **Campaign Level* and chose 
the interests I want to exclude.

I then used the API to retrieve those criteria from that campaign and see 
all their settings, including the id which I needed in order to exclude 
those interests from the other campaign using the code I showed above.


On Monday, July 16, 2012 3:40:55 AM UTC+3, Ewan Heming wrote:
>
> Have you tried adding a negative User Interest Criterion to a campaign in 
> the normal web interface? I know that I tried a similar thing with a 
> negative Proximity target and got an error because it isn't actually 
> possible at the moment.

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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: Do AdParams changes show in CustomerChangeData?

2012-07-16 Thread Akil Burgess
Ping?

On Thursday, July 12, 2012 7:05:38 AM UTC+1, Akil Burgess wrote:
>
>
> Hi All,
>
> Are changes made to AdParams accessible via the CustomerSyncSelector? If 
> not, any suggestions for ways to keep AdParams information up-to-date?
>
> Thanks,
> Akil
>

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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


google calendar api update event error

2012-07-16 Thread Sy Buena
currently im developing google calendar with my own version of codes and, 
lucking i manage's to work with auth and other api rather than this update 
event that use's put curl
this is my codes: 
//this is just an example 
$url = '
https://www.googleapis.com/calendar/v3/calendars/sybuena2%40gmail.com/events/jplm392ehi1bv4sjghto3uaitk?access_token=ya29.AHES6ZQ4z4YH3wq0LsAozy7r9iv0v_P-0IJLiSORfAt2qj2YJ7VnL8w&key=AIzaSyBL8l1-TdF7DnYIutuZwVzz2MbgsTF2orM
';
//this is just an example 
$query = '
{"end":{"dateTime":"2012-07-17T00:00:00+08:00"},"start":{"dateTime":"2012-07-16T00:00:00+08:00"},"description":"WTF"}
';
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "PUT");
curl_setopt($ch, CURLOPT_PUT, 1); 
curl_setopt($ch, CURLOPT_POSTFIELDS,$query);
 $response = curl_exec($ch);

and for this code im getting an error of :

{
 "error": {
  "errors": [
   {
"domain": "global",
"reason": "required",
"message": "Required"
   }
  ],
  "code": 400,
  "message": "Required"
 }
}


and thats the problem... hopefully someone can help me!

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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: API developer token taking crazy long

2012-07-16 Thread max
Hi Kevin

I have also been waiting for more than 6 weeks, my customer id is 
545-289-7010

On a similar note, is there a similar API offering for Doubleclick? Ideally 
I need to be able to pull client report data from adwords and doubleclick 
but i'm finding it much more difficult to find any info about the DC api?

Thanks,
Max

On Thursday, May 3, 2012 7:45:07 PM UTC+1, Kevin Winter wrote:
>
> Hi Maarten,
>   The review process currently takes a while, due to a backlog of 
> applications and more stringent requirements (see here for more info: 
> https://developers.google.com/adwords/api/docs/signingup ).  However, end 
> of last year is pretty long ago.  Could you please contact me off-list with 
> your account details? Particularly the Customer ID of the MCC account you 
> applied on.
>
> - Kevin Winter
> AdWords API Team
>
> On Tuesday, May 1, 2012 9:19:01 AM UTC-4, maarten wrote:
>>
>> Hi,
>>
>> Could someone tell me what the normal duration is for the API developer 
>> token approval? We have requested access late 2011, and the token is still 
>> "Pending Approval". We have had requests for additional information three 
>> times now, and have sent the information each time.
>>
>> Is there any way to speed up the process? We have customers waiting for 
>> our software, and they are getting very impatient. When sending email to 
>> adwordsapi-tok...@google.com there is no reply at all.
>>
>> Regards,
>>
>> Maarten
>>
>

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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: API developer token taking crazy long

2012-07-16 Thread max
Hi Kevin

I have also been waiting for more than 6 weeks, my customer id is 
545-289-7010

On a similar note, is there a similar API offering for Doubleclick? Ideally 
I need to be able to pull client report data from adwords and doubleclick 
but i'm finding it much more difficult to find any info about the DC api?

Thanks,
Max

On Thursday, May 3, 2012 7:45:07 PM UTC+1, Kevin Winter wrote:
>
> Hi Maarten,
>   The review process currently takes a while, due to a backlog of 
> applications and more stringent requirements (see here for more info: 
> https://developers.google.com/adwords/api/docs/signingup ).  However, end 
> of last year is pretty long ago.  Could you please contact me off-list with 
> your account details? Particularly the Customer ID of the MCC account you 
> applied on.
>
> - Kevin Winter
> AdWords API Team
>
> On Tuesday, May 1, 2012 9:19:01 AM UTC-4, maarten wrote:
>>
>> Hi,
>>
>> Could someone tell me what the normal duration is for the API developer 
>> token approval? We have requested access late 2011, and the token is still 
>> "Pending Approval". We have had requests for additional information three 
>> times now, and have sent the information each time.
>>
>> Is there any way to speed up the process? We have customers waiting for 
>> our software, and they are getting very impatient. When sending email to 
>> adwordsapi-tok...@google.com there is no reply at all.
>>
>> Regards,
>>
>> Maarten
>>
>

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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: Any server configuration required to run OAuth 1.0a - getting OAUTH_TOKEN_HEADER_INVALID error on server where as running successfully on local setup and one server.

2012-07-16 Thread Eric Koleda
Great, glad you got it working!

- Eric


On Sat, Jul 7, 2012 at 3:38 AM, Chirag  wrote:

> Hi Eric,
>
> Yes, i am successfully able to use Report Download Request from command
> line on both server.
> When i set date_default_timezone_set('Asia/Calcutta'); That PHP warning
> also gone.
>
> Please look at final result:
>
> OAuth authorization successful.
> Report with name 'Criteria performance report #4ff7dd422ea1a' was
> downloaded to '/var/www/html/cron/report_command_line.csv'.
>
> Thanks,
> Chirag
>
>
>
> On Wednesday, June 13, 2012 12:15:31 AM UTC+5:30, Eric Koleda wrote:
>>
>> Hi Chirag,
>>
>> I would encourage you to set the timezone on that server in the php.ini
>> file, to ensure the timestamps are accurate. Can you try replacing the
>> CampaignService.get() call in the UseOAuth.php example with a report
>> download request, and then run that on both servers?
>>
>> Best,
>> - Eric
>>
>> On Tue, Jun 12, 2012 at 3:51 AM, Chirag  wrote:
>>
>>> Hello Eric,
>>> Sorry for late reply.
>>>
>>> Finally i got access from server to run command line example
>>> "UseOAuth.php".
>>> Yes on both server it works fine, but on server where adhoc report is
>>> not working there i got php warning for date.
>>>
>>> PHP Warning:  date(): It is not safe to rely on the system's timezone
>>> settings. You are *required* to use the date.timezone setting or the
>>> date_default_timezone_set() function. In case you used any of those methods
>>> and you are still getting this warning, you most likely misspelled the
>>> timezone identifier. We selected 'Asia/Calcutta' for 'IST/5.0/no DST'
>>> instead in /var/www/html/src/Google/Api/**Ads/Common/Util/Logger.php on
>>> line 234
>>>
>>> Thanks,
>>> chirag
>>>
>>>
>>> On Monday, June 4, 2012 11:27:57 PM UTC+5:30, Eric Koleda wrote:

 Hi Chirag,

 Certainly a tricky problem. As a baseline, can you try running the
 command line example "UseOAuth.php" on both servers, to see if that works?

 - Eric

  On Mon, Jun 4, 2012 at 12:28 PM, Chirag wrote:

> Hi Eric,
>
> Are these new OAuth tokens or are you using the same token on both
> servers?
> I am using same Oauth tokens for both servers.
>
> Can you double check that you are using the same consumer key and
> secret on both servers?
> Yes, I am using same consumer key and secret.
>
> Thanks,
> chirag
>
> On Monday, June 4, 2012 7:11:25 PM UTC+5:30, Eric Koleda wrote:
>>
>> Hi Chirag,
>>
>> I didn't see any problems or noticeable differences with the broken
>> request. Are these new OAuth tokens or are you using the same token on 
>> both
>> servers? Can you double check that you are using the same consumer key 
>> and
>> secret on both servers?
>>
>> - Eric
>>
>> On Mon, Jun 4, 2012 at 7:23 AM, Chirag wrote:
>>
>>> Hi Eric,
>>>
>>> Sorry for late reply.
>>> Please find both server's response.
>>>
>>> Thanks,
>>> chirag
>>>
>>>
>>> On Friday, June 1, 2012 11:56:15 PM UTC+5:30, Eric Koleda wrote:

 My apologies again, I was parsing it as milliseconds and not
 seconds. That does appear to be correct.

 Regarding my other point, it would be helpful to compare the
 Authorization header from the server that is working with the one from 
 the
 server that is not working. Can you post the sanitized version of both?

 - Eric

 On Fri, Jun 1, 2012 at 1:33 PM, Chirag wrote:

> Hello Eric,
>
> I think timestamp is correct.
>
> oauth_timestamp="1338338512" is refers to the Wed, 30 May 2012
> 00:41:52 GMT
>
> What are the timestamps like for working requests?
> I am not getting this. I am working with timezone 'Asia/Calcutta'.
>
> Thanks,
> Chirag
>
>
> On Friday, June 1, 2012 10:19:58 PM UTC+5:30, Eric Koleda wrote:
>>
>> Hi Chirag,
>>
>> My apologies, I forgot this was for report downloads, so you
>> should only get a log with the report request. For report requests 
>> the
>> OAuth parameters are passed in the Authorization header.  The value 
>> of the
>> timestamp used seems to be wrong:
>>
>> oauth_timestamp="1338338512"
>>
>> This corresponds to Fri Jan 16 1970 06:45:38 GMT-0500 (EST),
>> which is not correct.  What are the timestamps like for working 
>> requests?
>>
>> Best,
>> - Eric
>>
>> On Fri, Jun 1, 2012 at 12:32 PM, Chirag > > wrote:
>>
>>> Hello Eric,
>>>
>>> Thanks for reply.
>>> Yes i will look into date and time suggestion you mentioned.
>>> But,for logging, I have $user->LogAll(); is set.
>>> but i a

Re: Sporadic DUPLICATE_KEY errors when creating keywords using AdGroupCriterionService.mutate()

2012-07-16 Thread Kevin
Hello? Nobody?

On Thursday, July 12, 2012 8:40:57 AM UTC-7, Kevin wrote:
>
> Hi Anash,
>
> Do you have any update for us on this issue?
>
> Thanks,
> Kevin
>
> On Thursday, June 28, 2012 3:06:29 AM UTC-7, Anash P. Oommen wrote:
>>
>> Hi Jim,
>>
>> Could you please mail the SOAP logs for a failed request to 
>> anash.p.oom...@google.com and ping this thread? I'll investigate this 
>> further at our end.
>>
>> Cheers,
>> Anash P. Oommen,
>> AdWords API Advisor.
>>
>> On Thursday, 28 June 2012 00:09:34 UTC+5:30, Jim McCabe wrote:
>>>
>>> Starting on June 19, we started to see sporadic DUPLICATE_KEY errors 
>>> from v201109 AdGroupCriterionService.mutate().  This is surprising on 
>>> several levels:
>>>
>>>
>>>1. We didn't change our production code on June 19, and we are 
>>>definitely not sending duplicate keywords (our schema prevents it).
>>>2. If we repost the attempt later (10 or 20 minutes for example) 
>>>they usually post just fine, without the error.
>>>3. Even though the overall mutate() call fails, the keywords often 
>>>still show up in the AdWords UI but our system doesn't get a chance to 
>>> see 
>>>the ID.
>>>
>>>
>>> According to the AdGroupCriterionService 
>>> documentation,
>>>  
>>> DUPLICATE_KEY is an error that the API experiences when inserting into the 
>>> database.
>>>
>>> Does anyone have experience with this kind of error?  (The API forum 
>>> search for "DUPLICATE_KEY" returns no results.)
>>>
>>> Jim
>>>
>>

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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: Re-initializing a sandbox account

2012-07-16 Thread Florian Eckerstorfer
Hello,

I still see 0 when I call GetAccountHierachy (via the PHP client library). 
However, when I look at the log files (soap_xml.log) I can see the 
customerId.

On Tuesday, March 13, 2012 7:36:34 AM UTC+1, Anash P. Oommen wrote:
>
> Hi everyone,
>
> The sandbox should behave fine now. Let me know if you are still seeing 0 
> for customer ids for a fresh sandbox account.
>
> Cheers,
> Anash P. Oommen,
> AdWords API Advisor.
>
> On Tuesday, 13 March 2012 02:08:49 UTC+5:30, Slava wrote:
>>
>> I created several more new sandboxes and some of them came up ok, with 
>> customer ids set correctly.
>>
>> On Friday, March 9, 2012 12:03:24 AM UTC-8, Name Surname wrote:
>>>
>>> I have exactly the same problem when using the php client library in the 
>>> sandbox enviroment...has anyone found a solution/workaround to this problem?
>>>
>>> Τη Παρασκευή, 9 Μαρτίου 2012 12:01:19 π.μ. UTC+2, ο χρήστης Slivka 
>>> έγραψε:

 Same here using .NET lib. 

 Fresh Google account.  Fresh sandbox.  Ran GetCampaigns.cs  Running 
 GetAccountHierarch.cs  gives MCC sandbox account id but the rest 5 client 
 accounts have customerId = 0!  Running the same against production works 
 fine.

 More over.

 Running GetClientCustomerId.cs with one of the client's emails 
 (client_1+...) generates ApiUsageError.INVALID_CLIENT_EMAIL @ selector; 
 exception.  Running GetClientUnitUsage.cs with MCC sandbox id generates 
 ApiUsageError.INVALID_CLIENT_CUSTOMER_ID @ selector; exception.

 How do I get customerIds for sandbox client acounts?

 Is sandbox currently broken?




-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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


Criteria report now returns keywordPlacement='*' instead of keywordPlacement='All products'

2012-07-16 Thread HK

Hi,
 
On 7/14, the criteria report (using v201109) returned keywordPlacement='All 
products' for a product target, but on 7/15, it comes back as 
keywordPlacement='*'. This is breaking the reports for a large number of 
our customers. Is this a permanent change or a glitch? I hope it's a glitch 
as these types of changes are hopefully reserved for future versions.
 
More details:
 

 

 
This is blocking a number of our customers, so a quick answer would be much 
appreciated.
 
Thanks,
Hans

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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: IsCookieInvalidError and SSL/TLS error reported

2012-07-16 Thread Minh Le
I have never turn off the logging. The above is what you can see from the 
log.

I've had to restart the service every 2 weeks to prevent the error. I just 
did that 15 minutes ago. Nothing could be found in the  API documentation 
to fix this error.

On Wednesday, 25 April 2012 02:51:13 UTC-7, Anash P. Oommen wrote:
>
> Hi Minh,
>
> Could you turn on logging and send me the log that causes this error to be 
> thrown to anash.p.oom...@google.com? I'll look into it and provide a fix 
> for the null pointer exception.
>
> Cheers,
> Anash P. Oommen,
> AdWords API Advisor.
>
> On Tuesday, 24 April 2012 00:36:28 UTC+5:30, Minh Le wrote:
>>
>> I've got this error in 3 days since April 20:
>>
>> System.NullReferenceException: Object reference not set to an instance of 
>> an object. 
>> at 
>> Google.Api.Ads.AdWords.Lib.AdWordsSoapClient.IsCookieInvalidError(AdWordsApiException
>>  
>> awapiException) 
>> at Google.Api.Ads.AdWords.Lib.AdWordsSoapClient.ShouldRetry(Exception ex) 
>> at Google.Api.Ads.Common.Lib.AdsSoapClient.MakeApiCall(String methodName, 
>> Object[] parameters) 
>> at Google.Api.Ads.AdWords.Lib.AdWordsSoapClient.MakeApiCall(String 
>> methodName, Object[] parameters) 
>> at Google.Api.Ads.Common.Lib.AdsSoapClient.Invoke(String methodName, 
>> Object[] parameters) at 
>> Google.Api.Ads.AdWords.v201109.CampaignCriterionService.mutate(CampaignCriterionOperation[]
>>  
>> operations) 
>> at SemUpdateBiz.SEMUtils.addCampaignCriteria(AdWordsUser user, Int64 
>> campaignId, List`1 criteria, CampaignCriterionService 
>> campaignCriterionService, googleNameAndID googleCampaign)
>>
>> Here is the method which is being used:
>>
>>  public static void addCampaignCriteria(AdWordsUser user, long 
>> campaignId, 
>> 
>> List criteria, 
>> 
>> CampaignCriterionService campaignCriterionService,
>> googleNameAndID 
>> googleCampaign)
>> {
>> List operations = new 
>> List();
>>
>> foreach (CampaignCriterion criterion in criteria)
>> {  
>> CampaignCriterionOperation operation = new 
>> CampaignCriterionOperation();
>> operation.@operator = Operator.ADD;
>> operation.operand = criterion;
>> operations.Add(operation);
>> }
>>
>> try
>> {
>> if (operations.Count > 0)
>> {
>> CampaignCriterionReturnValue retVal = 
>> campaignCriterionService.mutate(operations.ToArray());
>>
>> //display added criteria
>> if (retVal != null && retVal.value != null && 
>> retVal.value.Length > 0)
>> {
>> foreach (CampaignCriterion temp in retVal.value)
>> {
>> Console.WriteLine("Campaign criterion with 
>> campaign id = \"{0}\", criterion id = " +
>>  "\"{1}\" and type = 
>> \"{2}\" was added.",
>>  temp.campaignId,
>>  temp.criterion.id,
>>  
>> temp.criterion.CriterionType);
>> }
>> }
>> else
>> {
>> Console.WriteLine("No campaign criteria were 
>> added.");
>> }
>> }
>> }
>> catch (AdWordsApiException ex)
>> {
>> // This block will be hit if there is a validation error 
>> from the server.
>> Console.WriteLine("There were validation error(s) while 
>> adding campaigns.");
>>
>> if (ex.ApiException != null)
>> {
>> foreach (ApiError error in 
>> ((ApiException)ex.ApiException).errors)
>> {
>> Console.WriteLine("  Error type is '{0}' and 
>> fieldPath is '{1}'.",
>> error.ApiErrorType, error.fieldPath);
>> }
>> }
>> }
>> catch (Exception ex)
>> {
>> Logger.LogThis(string.Format("addCampaignCriteria() 
>> inside UpdateTheseGoogleGEOTargets(): " + googleCampaign.gname + " " + 
>> googleCampaign.gid + "\n" + ex.ToString(), Logger.MsgTypeEnum.Error));
>> }
>>
>> operations = null;
>> }
>>
>>
>> To generate the user:
>>
>> Dictionary headers = new Dictionary> string>();
>> headers.Add("email", campaign_email);
>> headers.Add("password", campaign_password);
>> headers.Add("useragent", 
>> ConfigurationManager.AppSettings["useragent"]);
>> headers.Add("deve

How to download named report C#

2012-07-16 Thread road11
Using the C# v201109_1 code samples as a model, I'm trying to download one 
of our many previously defined and named reports. Here's the code that 
Google gave us to get our report definitions that isn't working (assuming a 
valid AdwordsUser object)...


  ReportDefinitionService reportDefinitionService = 
(ReportDefinitionService) user.GetService(
  AdWordsService.v201109_1.ReportDefinitionService);
 
  // Create the selector.
  ReportDefinitionSelector selector = new ReportDefinitionSelector();
 
  try {
// Get all report definitions.
ReportDefinitionPage page = reportDefinitionService.get(selector);
 
// Display report definitions.
if (page != null && page.entries != null && page.entries.Length > 0) {
  foreach (ReportDefinition reportDefinition in page.entries) {
writer.WriteLine("ReportDefinition with name \"{0}\" and id \"{1}\" 
was found.",
reportDefinition.reportName, reportDefinition.id);
  }
} else {
  writer.WriteLine("No report definitions were found.");
}
 
  } catch (Exception ex) {
throw new System.ApplicationException("Failed to retrieve report 
definitions.", ex);
  }


...however, this code keeps telling me that page.entries is null. We've got at 
least 1400 named reports defined in this Google Adwords account. How is it 
possible that this code can find none of them? I thought the selector might be 
the problem, but the ReportDefinitionSelector doesn't even have a fields 
property, so that can't be the issue. 


I would be most grateful if someone could post a (working) C# example of how to 
get a list of available reports and how to download a single named report from 
an Adwords account.


Thank you in advance.

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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: Dynamic Search Ads missing in Ad Performance Report

2012-07-16 Thread valeriy
We upgraded to v201206 reporting API and still no Dynamic Search Ads in 
results.

Valeriy

On Monday, March 26, 2012 1:42:54 PM UTC-7, Kevin Winter wrote:
>
> Hi Richard,
>   Unfortunately, at this time I don't have any information about when this 
> feature will be available in the API.  In the meantime, these Ads are 
> created via the UI and can still be reported on via the UI.
>
> - Kevin Winter
> AdWords API Team
>
> On Monday, March 26, 2012 11:01:36 AM UTC-4, Richard wrote:
>>
>> Thanks for the quick response.
>>
>> This raises 2 important questions:
>>  
>> - When will support for Dynamic Search Ads, especially at the report 
>> level be added to the API?
>>
>> - What are our options until official support is added?
>>
>> Advertisers spend large amounts of money on Dynamic Search Ads and use 
>> tools to track their campaigns and justify their expenses. Not having 
>> access to this data is bad for business.
>>
>> Richard
>>
>>
>> On Monday, March 26, 2012 10:11:00 AM UTC-4, Kevin Winter wrote:
>>>
>>> Hi,
>>>   This is an intentional change.  Dynamic Search Ads were never 
>>> officially supported in the AdWords API - you could never create them via 
>>> the API.  We recently fixed a bug that allowed these Ads to show up in 
>>> results for AdGroupAdService calls as well as the Ad Performance report. 
>>>  This is the same behavior for other features not supported by the AdWords 
>>> API (such as Video Campaigns).
>>>
>>> - Kevin Winter
>>> AdWords API Team
>>>
>>> On Wednesday, March 21, 2012 2:03:38 PM UTC-4, Antonio Tajuelo wrote:

 Hello everyone,

 I'm downloading an Ad Performance Report. It seems that Dynamic Search 
 Ads stopped appearing in this report for dates 2012-03-19 until now. This 
 report is being downloaded using AdWords PHP library.

 Are there any known issues about this?

>>>

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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: ReportDefinition Class object for v201206

2012-07-16 Thread valeriy
They are in a separate xsd now:


https://adwords.google.com/api/adwords/reportdownload/v*MM*/reportDefinition.xsd



On Thursday, July 12, 2012 1:47:33 PM UTC-7, Ian wrote:
>
> I have been tasked with upgrading our solution to v201206 from v201109, 
> and I am running into a major road block. We use our own custom built .Net 
> proxy and clients to access the api, and while running wsdl I noticed 
> several missing classes related to reports, specifically ReportDefinition. 
> I know VS tends to hide/remove classes, but these aren't in 
> https://adwords.google.com/api/adwords/cm/v201206/ReportDefinitionService?wsdl;
>  however 
> from the release notes it looks like they should still be 
> present. I realize the predefined reports have been sunset, but the class 
> was helpful in building the xml for the ad-hoc reports. Any indication as 
> to whether this was permanently removed would be very helpful. 

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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: Adding CriterionUserInterest to Campaign always returns CriterionError.CANNOT_ADD_CRITERIA_TYPE

2012-07-16 Thread Ewan Heming
I checked out your code in more detail: The problem is that "Linux & Unix" 
isn't a CriterionUserInterest, it's a 
Vertical. 
This code's working for me in the sandbox:

$interestId = 736; //Linux & Unix
$interest = new Vertical();
$interest->id = $interestId;
$interest->path = array("Computers & Electronics", "Software", "Operating 
Systems", "Linux & Unix");
$campaignCriterion = new NegativeCampaignCriterion();
$campaignCriterion->campaignId = $campaignId;
$campaignCriterion->criterion = $interest;
$operations = array();
$operations[] = new CampaignCriterionOperation($campaignCriterion, 'ADD');
$campaignCriterionService->mutate($operations);

Note that you also need to enter the category path, even though you've 
already entered an id. 

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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: Sandbox Problem: [OperationAccessDenied.ADD_OPERATION_NOT_PERMITTED @ operations[0]]

2012-07-16 Thread Wasi
I am also facing this same issue. can anybody please help me for this? I've 
also spent hours getting more and more frustrated. Please can someone tell 
me how to get the sandbox working? I am unable to add Campaigns.
i have also followed the following steps but the same issue is there. 

a. Call GetAllCampaigns example to initialize the sandbox if not done 
already.
b. Call GetAccountHierarchy example to get the list of sandbox accounts.
c. Use one of those customerIds to make remaining calls.

GetAccountHierarchy return 0.




On Monday, March 5, 2012 6:43:10 AM UTC+5, Rallan wrote:
>
> In my live Adwords account I can add a new campaign without a problem, 
> but I have been trying to use the sandbox without success. I can test for 
> existing campaigns in the sandbox (none found) but I am unable to add a 
> new campaign. I get the error:
>
> [OperationAccessDenied.ADD_OPERATION_NOT_PERMITTED @ operations[0]]
>
> I am logging in with the following set-up:
>
> AUTH.INI
>
> email = "x...@gmail.com"
> password = ""
> userAgent = "My Adwords Tool"
> applicationToken = "ignored"
> developerToken = "x...@gmail.com++GBP"
>
> SETTINGS
>
> DEFAULT_VERSION = "v201109"
> DEFAULT_SERVER = "https://adwords-sandbox.google.com";
> COMPRESSION = 1
> COMPRESSION_LEVEL = 1
> WSDL_CACHE = 0
> VERIFY_PEER = 0
>
> MY SCRIPT
>
> $campaignService = $user->GetCampaignService('v201109', '
> https://adwords-sandbox.google.com');
>
>
> I have looked around online but found no actual answers. As far as I can 
> tell I what's missing is a sandbox generated clientId, or possibly 
> a clientCustomerId? However, I have been unable to find out how I get this! 
> I have tried using my normal clientId but it is rejected 
> (AuthenticationError.CUSTOMER_NOT_FOUND). 
>
> I'm going nuts here. I've spent hours getting more and more frustrated. 
> Please can someone tell me how to get the sandbox working?
>

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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