Re: Which API errors should be retried?

2014-11-20 Thread Oliver
We retry when we see these errors:

ReportDownloadError.ERROR_GETTING_RESPONSE_FROM_BACKEND
ReportDownloadError.INTERNAL_SERVER_ERROR
ReportDownloadError.ERROR_WRITING_REPORT_TO_FILE
InternalApiError.UNEXPECTED_INTERNAL_API_ERROR
AuthorizationError.CUSTOMER_SYNC_DISABLED
DatabaseError.CONCURRENT_MODIFICATION
RateExceededError.RATE_EXCEEDED
AuthenticationError.OAUTH_TOKEN_INVALID

Also, any error that contains the following strings:

"temporary error"
"try again"
"404"


Oliver


On Tuesday, November 18, 2014 9:35:34 PM UTC, Kristopher Windsor wrote:
>
> Hi,
>
> When the Adwords API throws an Exception, I'd like to know if I should 
> retry (intermittent errors) or not (bad input on my end).
> I am using the PHP client library.
>
> For example, I should retry for this case:
> InternalApiError.UNEXPECTED_INTERNAL_API_ERROR
>
> But not for this case:
> BiddingError.BID_TOO_MANY_FRACTIONAL_DIGITS
>
> Is there some way to determine if I should retry, other than just building 
> a big list of retry-able / non-retry-able Exceptions?
>
> 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/85d91b22-860b-4cc3-9f06-ca9dca9ce6e6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Get Targetting Keywords Based on Radius

2014-11-20 Thread Chirag
Hello Josh,

Gotcha!

Thank You for your kind reply.


On Thursday, 20 November 2014 00:00:50 UTC+5:30, Josh Radcliff (AdWords API 
Team) wrote:
>
> Hi,
>
> As far as I know, neither the API nor the UI will provide keyword 
> suggestions using Proximity targeting. The closest you can get to that 
> functionality is to use the *LocationSearchParameter* I mentioned in my 
> previous response.
>
> Cheers,
> Josh, AdWords API Team
>
> On Wednesday, November 19, 2014 1:29:15 AM UTC-5, Chirag wrote:
>>
>> Hello Josh,
>>
>> Thanks for your input.
>>
>> Can you please guide me any other way to get those keywords so that my 
>> new campaign has relevance data.
>>
>> Thanks
>>
>>
>> On Tuesday, 18 November 2014 21:08:43 UTC+5:30, Josh Radcliff (AdWords 
>> API Team) wrote:
>>>
>>> Hi Chirag,
>>>
>>> Proximity/radius targeting is not supported by *TargetingIdeaService*. 
>>> However, you can target specific locations using a 
>>> LocationSearchParameter 
>>> 
>>>  on 
>>> your TargetingIdeaSelector 
>>> 
>>> .
>>>
>>> Best regards,
>>> Josh, AdWords API Team
>>>
>>> On Tuesday, November 18, 2014 7:46:50 AM UTC-5, Chirag wrote:

 Hello,

 I want to get the keyword ideas based on location cities, and radius of 
 the  address located within city.Say for example I would pick a target 
 whether it was specific cities or a 10-100 miles radius around a specific 
 address and I could get the keyword ideas.

 Is it possible through adwords api?

 Thanks,
 Chirag

>>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/6020c0b8-b0f2-4a31-b59e-72e5efbdbf41%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Which API errors should be retried?

2014-11-20 Thread Kristopher Windsor
Thanks Michael and Oliver.

I want the default to be "do retry," and I wrote this today (PHP):

  public static function isRetriable($e){
if ($e instanceof SoapFault && @$e->detail->ApiExceptionFault->errors[0
]->enc_value instanceof ApiError){
  $err = $e->detail->ApiExceptionFault->errors[0]->enc_value;
  if ($err instanceof ApiError){
// ie CRITERIA_TYPE_INVALID_FOR_BIDDING_STRATEGY_CONFIGURATION
if ($err->ApiErrorType == 'AdGroupCriterionError')
  return false;
// ie INVALID_FORMAT_FOR_PLACEMENT_URL
if ($err->ApiErrorType == 'CriterionError')
  return false;
  }
}
return true;
  }

I don't plan to handle all of the possible errors, just the ones I know we 
waste time retrying.

My main question is... should I be inspecting SoapFault this closely?
It seems like it is tedious to find the actual instances of ApiError within 
SoapFault.

On Tuesday, November 18, 2014 1:35:34 PM UTC-8, Kristopher Windsor wrote:
>
> Hi,
>
> When the Adwords API throws an Exception, I'd like to know if I should 
> retry (intermittent errors) or not (bad input on my end).
> I am using the PHP client library.
>
> For example, I should retry for this case:
> InternalApiError.UNEXPECTED_INTERNAL_API_ERROR
>
> But not for this case:
> BiddingError.BID_TOO_MANY_FRACTIONAL_DIGITS
>
> Is there some way to determine if I should retry, other than just building 
> a big list of retry-able / non-retry-able Exceptions?
>
> 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/8802838e-c187-48c5-9079-7f478313c2b9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Offline conversion feed - Update conversion value or Delete conversion

2014-11-20 Thread Torben Sominka
Hello Ray,

are there any changes/features planned on this? I'm also thinking about 
using the offline conversions for adjusting the conversion_value. Thanks!

Best,
Torben

Am Mittwoch, 9. Juli 2014 21:39:51 UTC+2 schrieb Ray Tsang (AdWords API 
Team):
>
> Ian,
>
> I'll submit a request for that.  Thanks for the feedback!
>
> Cheers,
>
> Ray
>
> On Tuesday, July 8, 2014 3:38:36 PM UTC-4, Ian Walker-Sperber wrote:
>>
>> Would it be possible to update the documentation to reflect the 
>> unavailability of this feature? My team spent a significant amount of time 
>> trying to get this to work before discovering it was impossible.
>>
>> Thanks!
>> Ian
>>
>> On Tuesday, June 24, 2014 2:51:21 PM UTC-7, Ray Tsang (AdWords API Team) 
>> wrote:
>>>
>>> Thomas,
>>>
>>> This is currently not supported.
>>>
>>> Thanks,
>>>
>>> Ray
>>>
>>> On Tuesday, June 24, 2014 2:52:19 AM UTC-7, Thomas Heller wrote:

 Any Updates here? I need this as well.

 Just tested von v201402, still OPERATOR_NOT_SUPPORTED for SET/REMOVE.

 Regards,
 /thomas

 On Thursday, February 13, 2014 6:30:26 PM UTC+1, Ray Tsang (AdWords API 
 Team) wrote:
>
> Vlad,
>
> You are correct that this is not supported at the moment.  I'll 
> investigate this bit more.
>
> Thanks,
>
> --
> Ray Tsang (AdWords API Advisor)
>
>
> On Thursday, February 13, 2014 8:22:37 AM UTC-5, Vlad Zloteanu wrote:
>>
>> Can one remove an offline conversion, or edit its value ?
>>
>> According to documentation, the SET or REMOVE operations are 
>> available: (
>> https://developers.google.com/adwords/api/docs/reference/v201309/OfflineConversionFeedService.OfflineConversionFeedOperation),
>>  
>> but trying to use them results in a 
>> OperatorError.OPERATOR_NOT_SUPPORTED.
>>
>> The use case: An online store pushes a conversion to AdWords, but 10 
>> days later the client returns the product. We need to either remove the 
>> conversion, or set its value to 0. What are our options, other than 
>> buffering them on client side, and not sending them until the sale is 
>> 'definitive'? 
>>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/b917b312-d5df-40ff-ab44-6054b57a5f59%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Which API errors should be retried?

2014-11-20 Thread Michael Cloonan (AdWords API Team)
Hello,

If you are going to include automatic retry code, please do make sure that 
you use an exponential backoff in case you are accidentally retrying 
something that is never going to succeed. Even for a call that might 
eventually succeed, constantly hitting the server when there are server 
issues causing it to fail is counterproductive.

Thanks!
-Mike, AdWords API Team

On Thursday, November 20, 2014 4:42:10 AM UTC-5, Kristopher Windsor wrote:
>
> Thanks Michael and Oliver.
>
> I want the default to be "do retry," and I wrote this today (PHP):
>
>   public static function isRetriable($e){
> if ($e instanceof SoapFault && @$e->detail->ApiExceptionFault->errors[
> 0]->enc_value instanceof ApiError){
>   $err = $e->detail->ApiExceptionFault->errors[0]->enc_value;
>   if ($err instanceof ApiError){
> // ie CRITERIA_TYPE_INVALID_FOR_BIDDING_STRATEGY_CONFIGURATION
> if ($err->ApiErrorType == 'AdGroupCriterionError')
>   return false;
> // ie INVALID_FORMAT_FOR_PLACEMENT_URL
> if ($err->ApiErrorType == 'CriterionError')
>   return false;
>   }
> }
> return true;
>   }
>
> I don't plan to handle all of the possible errors, just the ones I know we 
> waste time retrying.
>
> My main question is... should I be inspecting SoapFault this closely?
> It seems like it is tedious to find the actual instances of ApiError 
> within SoapFault.
>
> On Tuesday, November 18, 2014 1:35:34 PM UTC-8, Kristopher Windsor wrote:
>>
>> Hi,
>>
>> When the Adwords API throws an Exception, I'd like to know if I should 
>> retry (intermittent errors) or not (bad input on my end).
>> I am using the PHP client library.
>>
>> For example, I should retry for this case:
>> InternalApiError.UNEXPECTED_INTERNAL_API_ERROR
>>
>> But not for this case:
>> BiddingError.BID_TOO_MANY_FRACTIONAL_DIGITS
>>
>> Is there some way to determine if I should retry, other than just 
>> building a big list of retry-able / non-retry-able Exceptions?
>>
>> 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/0790c669-8181-40a8-8aba-cf58d40fa560%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Offline conversion feed - Update conversion value or Delete conversion

2014-11-20 Thread Michael Cloonan (AdWords API Team)
Hello Torben,

This is still not available. Please watch our blog 
 for any new feature announcements.

Regards,
Mike, AdWords API Tema

On Thursday, November 20, 2014 8:53:03 AM UTC-5, Torben Sominka wrote:
>
> Hello Ray,
>
> are there any changes/features planned on this? I'm also thinking about 
> using the offline conversions for adjusting the conversion_value. Thanks!
>
> Best,
> Torben
>
> Am Mittwoch, 9. Juli 2014 21:39:51 UTC+2 schrieb Ray Tsang (AdWords API 
> Team):
>>
>> Ian,
>>
>> I'll submit a request for that.  Thanks for the feedback!
>>
>> Cheers,
>>
>> Ray
>>
>> On Tuesday, July 8, 2014 3:38:36 PM UTC-4, Ian Walker-Sperber wrote:
>>>
>>> Would it be possible to update the documentation to reflect the 
>>> unavailability of this feature? My team spent a significant amount of time 
>>> trying to get this to work before discovering it was impossible.
>>>
>>> Thanks!
>>> Ian
>>>
>>> On Tuesday, June 24, 2014 2:51:21 PM UTC-7, Ray Tsang (AdWords API Team) 
>>> wrote:

 Thomas,

 This is currently not supported.

 Thanks,

 Ray

 On Tuesday, June 24, 2014 2:52:19 AM UTC-7, Thomas Heller wrote:
>
> Any Updates here? I need this as well.
>
> Just tested von v201402, still OPERATOR_NOT_SUPPORTED for SET/REMOVE.
>
> Regards,
> /thomas
>
> On Thursday, February 13, 2014 6:30:26 PM UTC+1, Ray Tsang (AdWords 
> API Team) wrote:
>>
>> Vlad,
>>
>> You are correct that this is not supported at the moment.  I'll 
>> investigate this bit more.
>>
>> Thanks,
>>
>> --
>> Ray Tsang (AdWords API Advisor)
>>
>>
>> On Thursday, February 13, 2014 8:22:37 AM UTC-5, Vlad Zloteanu wrote:
>>>
>>> Can one remove an offline conversion, or edit its value ?
>>>
>>> According to documentation, the SET or REMOVE operations are 
>>> available: (
>>> https://developers.google.com/adwords/api/docs/reference/v201309/OfflineConversionFeedService.OfflineConversionFeedOperation),
>>>  
>>> but trying to use them results in a 
>>> OperatorError.OPERATOR_NOT_SUPPORTED.
>>>
>>> The use case: An online store pushes a conversion to AdWords, but 10 
>>> days later the client returns the product. We need to either remove the 
>>> conversion, or set its value to 0. What are our options, other than 
>>> buffering them on client side, and not sending them until the sale is 
>>> 'definitive'? 
>>>
>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/3e1f330d-098d-4944-bb9b-c0f69b6bf3d7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Update "conversion_value" via API

2014-11-20 Thread Michael Cloonan (AdWords API Team)
Hello,

As I believe you have seen on this other topic 
, this 
feature is unfortunately not available.

Regards,
Mike, AdWords API Team

On Wednesday, November 19, 2014 10:55:51 AM UTC-5, Torben Sominka wrote:
>
> Hello @ all,
>
> I was wondering whether it is possible to update the "conversion_value" 
> via the Google AdWords API. I know the parameter normally reflects the 
> order value as sent by the shop system. However, I know the net revenue of 
> each conversion after cancellations and returns as well. In my eyes it 
> makes more sense to use the net revenue instead of the order value as 
> optimization criteria for the ROAS optimization. That's why I want to 
> insert the net revenue into "conversion_value". Thanks in advance!
>
> Best regards,
> Torben
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/61616e63-5b46-42c1-aaa4-53ce0b06e0c5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Display URL vs Landing URL for new Ads?

2014-11-20 Thread apiapi



I will have a need to create several dozen ads for multiple clients using 
the API. This page:

https://support.google.com/adwords/answer/2404246?hl=en

"URL Policies" states that the display URL and the landing URL should be on 
the same website. However, some of the advertisers have tracking/logging 
servers that are in the same domain but on different servers. 

For example, with two hosts *33403.log.clientsite.com*   and
*www.clientsite.com*

The landing URL would be 
*https://33403.log.clientsite.com/product5?param1=a¶m2=b¶m3=etc*
because the server "33403"  has code that will log everything and then HTTP 
302 redirect the client browser to
*http://www.clientsite.com/product5*

I have a concern that if we create hundreds of ads this way with the API, 
they will all fail because the display URL and the landing URL are not the 
same.

Can anyone weigh-in on how this might work before we invest programming 
hours/resources on making a bulk tool that might "blow up"?

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/cdcb4de4-b33a-42fa-baf5-8377f299bfd0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Criteria Performance Report stop working since Octuber 27

2014-11-20 Thread Oscar Martinez
Hi all, 

I have a Marketing Report that executes different requests to different API 
reports. We get, for example, CriteriaType (selector) from Criteria 
Performance Report, using Id, AdGroupId and CampaignId as filters 
(predicates). It has been working, but we realized that this report stopped 
working in Octuber 27 (we are not getting data). We modified the report to 
select Id and removed all the predicates, but it still empty. 

Here is our code:
ReportDefinition definition = new ReportDefinition();

definition.reportName = "CRITERIA_PERFORMANCE_REPORT";
definition.reportType = 
ReportDefinitionReportType.CRITERIA_PERFORMANCE_REPORT;
definition.downloadFormat = DownloadFormat.XML;
definition.dateRangeType = 
ReportDefinitionDateRangeType.ALL_TIME;
definition.includeZeroImpressions = true;

// Create selector, only the criteria type field.
Selector selector = new Selector();
selector.fields = new string[] { "CriteriaType" };

//Create the condition by keywordId, adGroupId, CampaignId
Predicate predicate = new Predicate();
predicate.field = "Id";
predicate.@operator = PredicateOperator.EQUALS;
predicate.values = new string[] { keywordId };

Predicate predicate2 = new Predicate();
predicate2.field = "AdGroupId";
predicate2.@operator = PredicateOperator.EQUALS;
predicate2.values = new string[] { adGroupId };

Predicate predicate3 = new Predicate();
predicate3.field = "CampaignId";
predicate3.@operator = PredicateOperator.EQUALS;
predicate3.values = new string[] { campaignId };

selector.predicates = new Predicate[] { predicate, 
predicate2, predicate3 };

definition.selector = selector;
definition.includeZeroImpressions = false;

//Apply the customer id
(user.Config as AdWordsAppConfig).ClientCustomerId = 
pCustomerCliendId;

ReportUtilities utilities = new ReportUtilities(user);
utilities.ReportVersion = "v201406";
ClientReport criteriaPerformanceReport = 
utilities.GetClientReport(definition);

Here is the response:



  
  
  

  

  


Notes: I found a thread with a similar problem, but the problem was 
distinct, because the guy has the problem when he use Date as selector.

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/9249150c-5675-4036-be9d-14dd01a48819%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Adward Script not working

2014-11-20 Thread jitendra rawat
This is the script I have written in adword script writer but this script 
not give any row in the query, But when i was running report for campaign 
performance then it will give data.

this script not giving me any row in query

function main(){
  var report = AdWordsApp.report("Select 
CampaignName,Clicks,Impressions,Cost From CAMPAIGN_PERFORMANCE_REPORT 
DURING LAST_7_DAYS");
var rows = report.rows();
   while (rows.hasNext()) {
var row = rows.next();
var campaignName = row['CampaignName'];
var clicks = row['Clicks'];
var impressions = row['Impressions'];
var cost = row['Cost'];
Logger.log(campaignName + ',' + clicks + ',' + impressions + ',' + 
cost);
  }
}

So please give me hint or script how I can get same data for campaign 
performance report in my script. 

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/0d3b7a96-eeb1-4c89-92be-bef872a450d3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Error: [AuthorizationError.USER_PERMISSION_DENIED @ ; trigger:'']

2014-11-20 Thread eric haberman
Hello,

I *thought* that I was all ready for the new API sunset, but apparently not.

Using my MCC account, a new refresh token, and the clientID for my MCC 
account I'm getting this error when instantiating the user object (PHP 
library)

Error: [AuthorizationError.USER_PERMISSION_DENIED @ ; trigger:'']

Why would my MCC account be denied from accessing the API?

Thanks for any help you can provide!

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/92cc4136-7771-48b4-ab13-929b4656b07f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Error: [AuthorizationError.USER_PERMISSION_DENIED @ ; trigger:'']

2014-11-20 Thread Michael Cloonan (AdWords API Team)
Hello,

You shouldn't need to generate a new refresh token to upgrade to a new 
version of the API. Your existing refresh token should continue to work.

As seen on our common errors page 
,
 
this error message means that the MCC you're authenticating as isn't linked 
to the client account against which you're trying to operate, meaning that 
you don't have permissions to act on that account. Please make sure that 
your refresh token is linked to the correct MCC account, and that that MCC 
account is linked to the account you're trying to use.

Regards,
Mike, AdWords API Team

On Thursday, November 20, 2014 2:09:33 PM UTC-5, eric haberman wrote:
>
> Hello,
>
> I *thought* that I was all ready for the new API sunset, but apparently 
> not.
>
> Using my MCC account, a new refresh token, and the clientID for my MCC 
> account I'm getting this error when instantiating the user object (PHP 
> library)
>
> Error: [AuthorizationError.USER_PERMISSION_DENIED @ ; trigger:'']
>
> Why would my MCC account be denied from accessing the API?
>
> Thanks for any help you can provide!
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/e34beaec-1276-419d-bfa8-cabb20da16e4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Tracking user journey

2014-11-20 Thread mradwan
Hi all,

I'm working on a project where I need to integrate with GA and AdWords to 
track user's journey starting from seeing my ad till landing on my page and 
submitting a form.

I know that in order to be able to do so, I need to link my GA with my 
AdWords first... 
Via GA I can get utm cookies of the visitor and extract the visitor's 
unique ID.

My question is, is there a way to link this unique ID that comes from GA 
with the the ID of users that views and clicks my ad?  In other words, I 
need to pull two campaign reports, one for impressions (views) and one for 
ad clicks, were both reports should include a unique ID that will match the 
ID that comes from GA utm cookies.

Thanks in advance.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/fd600a38-5e9f-4b69-bb96-7ff200d17a62%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Invalid Token Header

2014-11-20 Thread htang5555
Hey,

I am getting an Invalid Token Header whenever i try to make an API Call.

I am using NodeJS for this and creating the soap requests manually using a 
client called node-soap

I am setting the header like so...

RequestHeader:{
developerToken:"XX",
userAgent:"MyAppName"
}

I am not setting the customerClientId because the purpose of this web app 
is for clients to export their data into an external database. Is there 
anything i am doing wrong?
This is the response.

http://schemas.xmlsoap.org/soap/envelope/";>https://adwords.google.com/api/adwords/cm/v201409"; 
xmlns="https://adwords.google.com/api/adwords/mcm/v201409";>0005084c430c10110ae0d8c4d8002aa6CustomerServiceget040soap:Server[QuotaCheckError.INVALID_TOKEN_HEADER
 
@ ]https://adwords.google.com/api/adwords/mcm/v201409"; 
xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201409";>[QuotaCheckError.INVALID_TOKEN_HEADER
 
@ 
]ApiExceptionhttp://www.w3.org/2001/XMLSchema-instance"; 
xsi:type="ns2:QuotaCheckError">QuotaCheckError.INVALID_TOKEN_HEADERQuotaCheckErrorINVALID_TOKEN_HEADER

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/d684371d-02ff-47bf-aa3c-0fc7f40b003d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Error thrown while using Adwords API using Test MCC account and developer token generated from production MCC account

2014-11-20 Thread ravindra naik

Hi,

I am trying to use keyword planner api. I have generated a developer token 
from Production MCC account and I am using a test MCC account for testing. 
I have created Client Id and client secret key using test account 
credentials.

But I have been getting this exception:

Exception in thread "main" java.lang.NullPointerException
at 
com.google.api.client.repackaged.com.google.common.base.Preconditions.checkNotNull(Preconditions.java:191)
at 
com.google.api.client.util.Preconditions.checkNotNull(Preconditions.java:127)
at 
com.google.api.client.json.jackson2.JacksonFactory.createJsonParser(JacksonFactory.java:92)
at 
com.google.api.client.json.JsonObjectParser.parseAndClose(JsonObjectParser.java:85)
at 
com.google.api.client.json.JsonObjectParser.parseAndClose(JsonObjectParser.java:81)
at 
com.google.api.client.auth.oauth2.TokenResponseException.from(TokenResponseException.java:88)
at 
com.google.api.client.auth.oauth2.TokenRequest.executeUnparsed(TokenRequest.java:287)
at 
com.google.api.client.auth.oauth2.TokenRequest.execute(TokenRequest.java:307)
at 
com.google.api.client.auth.oauth2.Credential.executeRefreshToken(Credential.java:570)
at 
com.google.api.client.googleapis.auth.oauth2.GoogleCredential.executeRefreshToken(GoogleCredential.java:362)
at 
com.google.api.client.auth.oauth2.Credential.refreshToken(Credential.java:489)
at 
com.google.api.ads.common.lib.auth.OAuth2Helper.callRefreshToken(OAuth2Helper.java:70)
at 
com.google.api.ads.common.lib.auth.OfflineCredentials.generateCredential(OfflineCredentials.java:144)


Can anyone suggest me as to what to do. I have been trying to fix this 
since last two days. Please revert back to this as soon as possible

Thanks in advance

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/67fe3129-6473-41d1-a962-77bdcb7aef33%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Label creation with Python

2014-11-20 Thread Mark Prentice
I had this same problem too...would be nice if this was made clear in the 
documentation, or possibly a slightly more helpful error? I was trying to 
work out what Label.Type they were wanting, especially given that in the 
documentation it didn't list this as required. 

It was most confusing.

On Friday, 31 October 2014 22:22:52 UTC+1, Josh Radcliff (AdWords API Team) 
wrote:
>
> Hi Martin,
>
> The type *Label* is an abstract type -- you'll want to create/specify a 
> TextLabel 
> 
>  when 
> creating a new label.
>
> Cheers,
> Josh, AdWords API Team
>
> On Friday, October 31, 2014 12:56:58 PM UTC-4, odo...@gmail.com wrote:
>>
>> I tried to add a Label to a campaign. In order to do that, I need the ID 
>> of the Label so I tried to create the Label before.
>>
>> operation = [
>>   {
>>   'operator': 'ADD',
>>   'operand': {
>>   'name': 'New label',
>>   'status': 'ENABLED',
>>   # 'xsi_type': '???',
>>   }
>>   }
>> ]
>> label_service.mutate(operation)
>>
>> They ask me a Type.Label but there is nowhere I can find which type I can 
>> use ... Then I get this error.
>>
>> INVALID_LABEL_TYPEInvalid Label type. A specific type of Label is 
>> required.
>> Thank you for your answer,
>>
>> Martin
>>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/1f2ddbb1-e60c-4d3e-a069-d84d9ceefb84%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


V201409, How to get a full list of accounts via ManagedCustomerService

2014-11-20 Thread Liqun Chen
After upgraded to V201409, for all request, we need to provide customer id, 
otherwise you get CLIENT_CUSTOMER_ID_IS_REQUIRED, but you provided a valid 
customer id, only return this customer/account. 
Now I am not able to get a full list of accounts, please advise.



-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/3cbd6bf3-9b00-4940-b127-d80dd8d27fe1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: CRITERIA PERFORMANCE REPORT is empty

2014-11-20 Thread Aram T
However , when I put includeZeroImpressions = true in the definition, the 
report is returning data.

Have checked  impressions column in the report , for most rows it is empty 
but there are also a lot of rows with non zero values.

On Thursday, 20 November 2014 00:06:00 UTC+4, Josh Radcliff (AdWords API 
Team) wrote:
>
> Hi Aram,
>
> The *Date* field is not zero impression rows 
> 
>  
> compatible (see the *Supports Zero Impressions* column in the report 
> fields list 
> ). 
> This means that when you add *Date* to your request's list of fields, 
> AdWords will only return rows for which the row's criterion has *Impressions 
> > 0*.
>
> Do the campaigns/adgroups/criteria you're selecting actually have any 
> impressions for the date range of your report?
>
> Cheers,
> Josh, AdWords API Team
>
> On Wednesday, November 19, 2014 8:28:52 AM UTC-5, Aram T wrote:
>>
>> Starting from October 28 , we are getting empty 
>> CRITERIA_PERFORMANCE_REPORT  .
>>
>> I have updated to later API version (201409) and found that it is empty 
>> when "Date" field is included in the selector fields list for any Date 
>> range, otherwise it is not empty.
>>
>> Customer Id 302-410-1700.
>>
>> Thanks
>>
>> Aram
>>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/c2e85174-986e-4a23-a94e-3e465dbb9e3b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Invalid Token Header

2014-11-20 Thread Michael Cloonan (AdWords API Team)
Hello,

Please take a look at our common errors page 

 
for this message and make sure that you double check that your developer 
token and namespacing are correct. If that doesn't help resolve the 
problem, please include your generated SOAP request in addition to the 
response so I can take a closer look. Make sure you strip out any sensitive 
data.

Regards,
Mike, AdWords API Team

On Thursday, November 20, 2014 10:54:25 AM UTC-5, htan...@gmail.com wrote:
>
> Hey,
>
> I am getting an Invalid Token Header whenever i try to make an API Call.
>
> I am using NodeJS for this and creating the soap requests manually using a 
> client called node-soap
>
> I am setting the header like so...
>
> RequestHeader:{
> developerToken:"XX",
> userAgent:"MyAppName"
> }
>
> I am not setting the customerClientId because the purpose of this web app 
> is for clients to export their data into an external database. Is there 
> anything i am doing wrong?
> This is the response.
>
>  xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";>  
> xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201409"; xmlns="
> https://adwords.google.com/api/adwords/mcm/v201409";>0005084c430c10110ae0d8c4d8002aa6CustomerServiceget040soap:Server[QuotaCheckError.INVALID_TOKEN_HEADER
>  
> @ ]https://adwords.google.com/api/adwords/mcm/v201409"; xmlns:ns2="
> https://adwords.google.com/api/adwords/cm/v201409";>[QuotaCheckError.INVALID_TOKEN_HEADER
>  
> @ 
> ]ApiException  
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
> xsi:type="ns2:QuotaCheckError">QuotaCheckError.INVALID_TOKEN_HEADERQuotaCheckErrorINVALID_TOKEN_HEADER
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/f9f704c1-96be-476a-b386-0c259463954e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Error: [AuthorizationError.USER_PERMISSION_DENIED @ ; trigger:'']

2014-11-20 Thread eric haberman
Thanks Mike for the quick response!

Sorry for the confusion :/  

"there is no link between the MCC account authenticated in the request and 
the client account specified in the headers."

Since I'm using my MCC account client ID (not a sub-client account), 
shouldn't it already be authorized?  The refresh token was generated for my 
MCC, using the MCC secret and client ID.





 

On Thursday, November 20, 2014 1:25:16 PM UTC-6, Michael Cloonan (AdWords 
API Team) wrote:
>
> Hello,
>
> You shouldn't need to generate a new refresh token to upgrade to a new 
> version of the API. Your existing refresh token should continue to work.
>
> As seen on our common errors page 
> ,
>  
> this error message means that the MCC you're authenticating as isn't linked 
> to the client account against which you're trying to operate, meaning that 
> you don't have permissions to act on that account. Please make sure that 
> your refresh token is linked to the correct MCC account, and that that MCC 
> account is linked to the account you're trying to use.
>
> Regards,
> Mike, AdWords API Team
>
> On Thursday, November 20, 2014 2:09:33 PM UTC-5, eric haberman wrote:
>>
>> Hello,
>>
>> I *thought* that I was all ready for the new API sunset, but apparently 
>> not.
>>
>> Using my MCC account, a new refresh token, and the clientID for my MCC 
>> account I'm getting this error when instantiating the user object (PHP 
>> library)
>>
>> Error: [AuthorizationError.USER_PERMISSION_DENIED @ ; trigger:'']
>>
>> Why would my MCC account be denied from accessing the API?
>>
>> Thanks for any help you can provide!
>>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/245b92da-0901-462e-9fab-697eb83e42d3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Adward Script not working

2014-11-20 Thread Michael Cloonan (AdWords API Team)
Hello,

This forum is for help with the AdWords API. We have a separate forum for 
help with AdWords Scripts 
. Please try 
asking your question there.

Regards,
Mike, AdWords API Team

On Thursday, November 20, 2014 11:54:18 AM UTC-5, jitendra rawat wrote:
>
> This is the script I have written in adword script writer but this script 
> not give any row in the query, But when i was running report for campaign 
> performance then it will give data.
>
> this script not giving me any row in query
>
> function main(){
>   var report = AdWordsApp.report("Select 
> CampaignName,Clicks,Impressions,Cost From CAMPAIGN_PERFORMANCE_REPORT 
> DURING LAST_7_DAYS");
> var rows = report.rows();
>while (rows.hasNext()) {
> var row = rows.next();
> var campaignName = row['CampaignName'];
> var clicks = row['Clicks'];
> var impressions = row['Impressions'];
> var cost = row['Cost'];
> Logger.log(campaignName + ',' + clicks + ',' + impressions + ',' + 
> cost);
>   }
> }
>
> So please give me hint or script how I can get same data for campaign 
> performance report in my script. 
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/600d6a80-877f-4e56-954f-4f05f13a3c80%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Error: [AuthorizationError.USER_PERMISSION_DENIED @ ; trigger:'']

2014-11-20 Thread eric haberman
Mike it appears that my MCC account cannot access my MCC account :)

Or am I missing a step where I need to authorize my MCC client ID with the 
same accounts developer and refresh tokens?

If so, any idea how to go about doing that?

Thanks!

On Thursday, November 20, 2014 1:25:16 PM UTC-6, Michael Cloonan (AdWords 
API Team) wrote:
>
> Hello,
>
> You shouldn't need to generate a new refresh token to upgrade to a new 
> version of the API. Your existing refresh token should continue to work.
>
> As seen on our common errors page 
> ,
>  
> this error message means that the MCC you're authenticating as isn't linked 
> to the client account against which you're trying to operate, meaning that 
> you don't have permissions to act on that account. Please make sure that 
> your refresh token is linked to the correct MCC account, and that that MCC 
> account is linked to the account you're trying to use.
>
> Regards,
> Mike, AdWords API Team
>
> On Thursday, November 20, 2014 2:09:33 PM UTC-5, eric haberman wrote:
>>
>> Hello,
>>
>> I *thought* that I was all ready for the new API sunset, but apparently 
>> not.
>>
>> Using my MCC account, a new refresh token, and the clientID for my MCC 
>> account I'm getting this error when instantiating the user object (PHP 
>> library)
>>
>> Error: [AuthorizationError.USER_PERMISSION_DENIED @ ; trigger:'']
>>
>> Why would my MCC account be denied from accessing the API?
>>
>> Thanks for any help you can provide!
>>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/b390c0e4-8eb6-4ed8-b045-d92c9776b19e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: CRITERIA PERFORMANCE REPORT is empty

2014-11-20 Thread Josh Radcliff (AdWords API Team)
Hi Aram,

Could you provide the exact report request (field names, predicates, date 
range) that you are submitting that does not return any data? I just ran 
Criteria Performance Reports for that account *excluding* zero impressions 
for THIS_MONTH and received many rows back, both with and without the *Date* 
field 
in the request, so I'd like to see how our requests differ.

Thanks,
Josh, AdWords API Team

On Wednesday, November 19, 2014 4:16:10 PM UTC-5, Aram T wrote:
>
> However , when I put includeZeroImpressions = true in the definition, the 
> report is returning data.
>
> Have checked  impressions column in the report , for most rows it is empty 
> but there are also a lot of rows with non zero values.
>
> On Thursday, 20 November 2014 00:06:00 UTC+4, Josh Radcliff (AdWords API 
> Team) wrote:
>>
>> Hi Aram,
>>
>> The *Date* field is not zero impression rows 
>> 
>>  
>> compatible (see the *Supports Zero Impressions* column in the report 
>> fields list 
>> ). 
>> This means that when you add *Date* to your request's list of fields, 
>> AdWords will only return rows for which the row's criterion has *Impressions 
>> > 0*.
>>
>> Do the campaigns/adgroups/criteria you're selecting actually have any 
>> impressions for the date range of your report?
>>
>> Cheers,
>> Josh, AdWords API Team
>>
>> On Wednesday, November 19, 2014 8:28:52 AM UTC-5, Aram T wrote:
>>>
>>> Starting from October 28 , we are getting empty 
>>> CRITERIA_PERFORMANCE_REPORT  .
>>>
>>> I have updated to later API version (201409) and found that it is empty 
>>> when "Date" field is included in the selector fields list for any Date 
>>> range, otherwise it is not empty.
>>>
>>> Customer Id 302-410-1700.
>>>
>>> Thanks
>>>
>>> Aram
>>>
>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/f70f96eb-b219-41c5-86ce-50a4ec3e228a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Relatórios AdHoc em XML

2014-11-20 Thread agencia . f2f
Ola pessoal,

Sou novo no Forum e estou precisando da ajuda de alguma boa alma... hehehehe

Estou fazendo o download de um relatório em XML e preciso converter os 
dados de retorno em um objeto.
Alguém tem um exemplo para facilitar minha vida?
Como seria a estrutura da classe que devo criar?

Valeu,
Guilherme

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/23003696-1c2a-4597-872a-64a992342ace%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Display URL vs Landing URL for new Ads?

2014-11-20 Thread Josh Radcliff (AdWords API Team)
Hi,

For policy questions, please contact the Policy team via this link 
.

Thanks,
Josh, AdWords API Team

On Thursday, November 20, 2014 10:24:00 AM UTC-5, apiapi wrote:
>
>
>
>
> I will have a need to create several dozen ads for multiple clients using 
> the API. This page:
>
> https://support.google.com/adwords/answer/2404246?hl=en
>
> "URL Policies" states that the display URL and the landing URL should be 
> on the same website. However, some of the advertisers have tracking/logging 
> servers that are in the same domain but on different servers. 
>
> For example, with two hosts *33403.log.clientsite.com 
> *   and*www.clientsite.com 
> *
>
> The landing URL would be 
> *https://33403.log.clientsite.com/product5?param1=a¶m2=b¶m3=etc 
> *
> because the server "33403"  has code that will log everything and then 
> HTTP 302 redirect the client browser to
> *http://www.clientsite.com/product5 *
>
> I have a concern that if we create hundreds of ads this way with the API, 
> they will all fail because the display URL and the landing URL are not the 
> same.
>
> Can anyone weigh-in on how this might work before we invest programming 
> hours/resources on making a bulk tool that might "blow up"?
>
> 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/024941f5-6146-4d32-b46a-d57756eda2ea%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Criteria Performance Report stop working since Octuber 27

2014-11-20 Thread Josh Radcliff (AdWords API Team)
Hi,

Could you send over a sample campaign ID for which you are getting an empty 
response?

Thanks,
Josh, AdWords API Team

On Thursday, November 20, 2014 10:55:58 AM UTC-5, Oscar Martinez wrote:
>
> Hi all, 
>
> I have a Marketing Report that executes different requests to different 
> API reports. We get, for example, CriteriaType (selector) from Criteria 
> Performance Report, using Id, AdGroupId and CampaignId as filters 
> (predicates). It has been working, but we realized that this report stopped 
> working in Octuber 27 (we are not getting data). We modified the report to 
> select Id and removed all the predicates, but it still empty. 
>
> Here is our code:
> ReportDefinition definition = new ReportDefinition();
>
> definition.reportName = "CRITERIA_PERFORMANCE_REPORT";
> definition.reportType = 
> ReportDefinitionReportType.CRITERIA_PERFORMANCE_REPORT;
> definition.downloadFormat = DownloadFormat.XML;
> definition.dateRangeType = 
> ReportDefinitionDateRangeType.ALL_TIME;
> definition.includeZeroImpressions = true;
>
> // Create selector, only the criteria type field.
> Selector selector = new Selector();
> selector.fields = new string[] { "CriteriaType" };
>
> //Create the condition by keywordId, adGroupId, CampaignId
> Predicate predicate = new Predicate();
> predicate.field = "Id";
> predicate.@operator = PredicateOperator.EQUALS;
> predicate.values = new string[] { keywordId };
>
> Predicate predicate2 = new Predicate();
> predicate2.field = "AdGroupId";
> predicate2.@operator = PredicateOperator.EQUALS;
> predicate2.values = new string[] { adGroupId };
>
> Predicate predicate3 = new Predicate();
> predicate3.field = "CampaignId";
> predicate3.@operator = PredicateOperator.EQUALS;
> predicate3.values = new string[] { campaignId };
>
> selector.predicates = new Predicate[] { predicate, 
> predicate2, predicate3 };
>
> definition.selector = selector;
> definition.includeZeroImpressions = false;
>
> //Apply the customer id
> (user.Config as AdWordsAppConfig).ClientCustomerId = 
> pCustomerCliendId;
>
> ReportUtilities utilities = new ReportUtilities(user);
> utilities.ReportVersion = "v201406";
> ClientReport criteriaPerformanceReport = 
> utilities.GetClientReport(definition);
>
> Here is the response:
>
> 
> 
>   
>   
>   
> 
>   
> 
>   
> 
>
> Notes: I found a thread with a similar problem, but the problem was 
> distinct, because the guy has the problem when he use Date as selector.
>
> 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/b0075242-59ed-4cc4-a4e6-d54186785619%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Criteria Performance Report stop working since Octuber 27

2014-11-20 Thread Oscar Martinez
Hi Josh, 

You can try with: 21831951 and 128445621

On Thursday, November 20, 2014 9:55:58 AM UTC-6, Oscar Martinez wrote:
>
> Hi all, 
>
> I have a Marketing Report that executes different requests to different 
> API reports. We get, for example, CriteriaType (selector) from Criteria 
> Performance Report, using Id, AdGroupId and CampaignId as filters 
> (predicates). It has been working, but we realized that this report stopped 
> working in Octuber 27 (we are not getting data). We modified the report to 
> select Id and removed all the predicates, but it still empty. 
>
> Here is our code:
> ReportDefinition definition = new ReportDefinition();
>
> definition.reportName = "CRITERIA_PERFORMANCE_REPORT";
> definition.reportType = 
> ReportDefinitionReportType.CRITERIA_PERFORMANCE_REPORT;
> definition.downloadFormat = DownloadFormat.XML;
> definition.dateRangeType = 
> ReportDefinitionDateRangeType.ALL_TIME;
> definition.includeZeroImpressions = true;
>
> // Create selector, only the criteria type field.
> Selector selector = new Selector();
> selector.fields = new string[] { "CriteriaType" };
>
> //Create the condition by keywordId, adGroupId, CampaignId
> Predicate predicate = new Predicate();
> predicate.field = "Id";
> predicate.@operator = PredicateOperator.EQUALS;
> predicate.values = new string[] { keywordId };
>
> Predicate predicate2 = new Predicate();
> predicate2.field = "AdGroupId";
> predicate2.@operator = PredicateOperator.EQUALS;
> predicate2.values = new string[] { adGroupId };
>
> Predicate predicate3 = new Predicate();
> predicate3.field = "CampaignId";
> predicate3.@operator = PredicateOperator.EQUALS;
> predicate3.values = new string[] { campaignId };
>
> selector.predicates = new Predicate[] { predicate, 
> predicate2, predicate3 };
>
> definition.selector = selector;
> definition.includeZeroImpressions = false;
>
> //Apply the customer id
> (user.Config as AdWordsAppConfig).ClientCustomerId = 
> pCustomerCliendId;
>
> ReportUtilities utilities = new ReportUtilities(user);
> utilities.ReportVersion = "v201406";
> ClientReport criteriaPerformanceReport = 
> utilities.GetClientReport(definition);
>
> Here is the response:
>
> 
> 
>   
>   
>   
> 
>   
> 
>   
> 
>
> Notes: I found a thread with a similar problem, but the problem was 
> distinct, because the guy has the problem when he use Date as selector.
>
> 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/356e1301-2250-4497-9cfb-87a97dfe4a3f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Error thrown while using Adwords API using Test MCC account and developer token generated from production MCC account

2014-11-20 Thread Josh Radcliff (AdWords API Team)
Hi,

You may want to check out the discussion on the related closed issue 
 for the Java 
client library. That NullPointerException means that your request is 
failing, probably due to missing parameters in your ~/ads.properties file.

Are you using the latest version of the client library? I ask because the 
issue was fixed recently by the release of google-oauth-client 
 
19.0.

Thanks,
Josh, AdWords API Team

On Thursday, November 20, 2014 1:59:34 AM UTC-5, ravindra naik wrote:
>
>
> Hi,
>
> I am trying to use keyword planner api. I have generated a developer token 
> from Production MCC account and I am using a test MCC account for testing. 
> I have created Client Id and client secret key using test account 
> credentials.
>
> But I have been getting this exception:
>
> Exception in thread "main" java.lang.NullPointerException
> at 
> com.google.api.client.repackaged.com.google.common.base.Preconditions.checkNotNull(Preconditions.java:191)
> at 
> com.google.api.client.util.Preconditions.checkNotNull(Preconditions.java:127)
> at 
> com.google.api.client.json.jackson2.JacksonFactory.createJsonParser(JacksonFactory.java:92)
> at 
> com.google.api.client.json.JsonObjectParser.parseAndClose(JsonObjectParser.java:85)
> at 
> com.google.api.client.json.JsonObjectParser.parseAndClose(JsonObjectParser.java:81)
> at 
> com.google.api.client.auth.oauth2.TokenResponseException.from(TokenResponseException.java:88)
> at 
> com.google.api.client.auth.oauth2.TokenRequest.executeUnparsed(TokenRequest.java:287)
> at 
> com.google.api.client.auth.oauth2.TokenRequest.execute(TokenRequest.java:307)
> at 
> com.google.api.client.auth.oauth2.Credential.executeRefreshToken(Credential.java:570)
> at 
> com.google.api.client.googleapis.auth.oauth2.GoogleCredential.executeRefreshToken(GoogleCredential.java:362)
> at 
> com.google.api.client.auth.oauth2.Credential.refreshToken(Credential.java:489)
> at 
> com.google.api.ads.common.lib.auth.OAuth2Helper.callRefreshToken(OAuth2Helper.java:70)
> at 
> com.google.api.ads.common.lib.auth.OfflineCredentials.generateCredential(OfflineCredentials.java:144)
>
>
> Can anyone suggest me as to what to do. I have been trying to fix this 
> since last two days. Please revert back to this as soon as possible
>
> Thanks in advance
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/aa6edf64-54e2-4736-b8b0-f18b37124f06%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


MCC's own client ID Access Denied - Using same account's secret and refresh token

2014-11-20 Thread eric haberman
Hello,

I'm getting the error:

AuthorizationError. USER_PERMISSION_DENIED

The MCC client ID (581-880-2635), developers token, and Google Developers 
Console refresh token and secret are all from the same account.  (refresh 
token authorized in the same browser as the MCC account is logged into)

In other words, my MCC client ID is being denied from using it's own API 
credentials.

Anyone run into this before?  I've dug around and can't find a solution, 
any help would be appreciated.

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/76deb042-7a59-4deb-8436-69ca1659acf6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Criteria Performance Report stop working since Octuber 27

2014-11-20 Thread Josh Radcliff (AdWords API Team)
Hi Oscar,

Please try adding at least one metric field (such as *Impressions*) to your 
report and let me know if that resolves the problem.

Thanks,
Josh, AdWords API Team

On Thursday, November 20, 2014 4:25:23 PM UTC-5, Oscar Martinez wrote:
>
> Hi Josh, 
>
> You can try with: 21831951 and 128445621
>
> On Thursday, November 20, 2014 9:55:58 AM UTC-6, Oscar Martinez wrote:
>>
>> Hi all, 
>>
>> I have a Marketing Report that executes different requests to different 
>> API reports. We get, for example, CriteriaType (selector) from Criteria 
>> Performance Report, using Id, AdGroupId and CampaignId as filters 
>> (predicates). It has been working, but we realized that this report stopped 
>> working in Octuber 27 (we are not getting data). We modified the report to 
>> select Id and removed all the predicates, but it still empty. 
>>
>> Here is our code:
>> ReportDefinition definition = new ReportDefinition();
>>
>> definition.reportName = "CRITERIA_PERFORMANCE_REPORT";
>> definition.reportType = 
>> ReportDefinitionReportType.CRITERIA_PERFORMANCE_REPORT;
>> definition.downloadFormat = DownloadFormat.XML;
>> definition.dateRangeType = 
>> ReportDefinitionDateRangeType.ALL_TIME;
>> definition.includeZeroImpressions = true;
>>
>> // Create selector, only the criteria type field.
>> Selector selector = new Selector();
>> selector.fields = new string[] { "CriteriaType" };
>>
>> //Create the condition by keywordId, adGroupId, CampaignId
>> Predicate predicate = new Predicate();
>> predicate.field = "Id";
>> predicate.@operator = PredicateOperator.EQUALS;
>> predicate.values = new string[] { keywordId };
>>
>> Predicate predicate2 = new Predicate();
>> predicate2.field = "AdGroupId";
>> predicate2.@operator = PredicateOperator.EQUALS;
>> predicate2.values = new string[] { adGroupId };
>>
>> Predicate predicate3 = new Predicate();
>> predicate3.field = "CampaignId";
>> predicate3.@operator = PredicateOperator.EQUALS;
>> predicate3.values = new string[] { campaignId };
>>
>> selector.predicates = new Predicate[] { predicate, 
>> predicate2, predicate3 };
>>
>> definition.selector = selector;
>> definition.includeZeroImpressions = false;
>>
>> //Apply the customer id
>> (user.Config as AdWordsAppConfig).ClientCustomerId = 
>> pCustomerCliendId;
>>
>> ReportUtilities utilities = new ReportUtilities(user);
>> utilities.ReportVersion = "v201406";
>> ClientReport criteriaPerformanceReport = 
>> utilities.GetClientReport(definition);
>>
>> Here is the response:
>>
>> 
>> 
>>   
>>   
>>   
>> 
>>   
>> 
>>   
>> 
>>
>> Notes: I found a thread with a similar problem, but the problem was 
>> distinct, because the guy has the problem when he use Date as selector.
>>
>> 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/a1aa8d2b-ffd5-49e6-9c6c-1502ebb23152%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: V201409, How to get a full list of accounts via ManagedCustomerService

2014-11-20 Thread Josh Radcliff (AdWords API Team)
Hi,

You can get the full list of accounts under an MCC by setting 
clientCustomerId 
 
to your *MCC*'s customer ID and running the GetAccountHierarchy.java 

 example.

To get the customer ID of the authenticated user (derived from your OAuth 
credentials) you can use CustomerService.get 

 -- 
that's the one service that does not require *clientCustomerId* (see the 
release 
notes ).

Cheers,
Josh, AdWords API Team

On Thursday, November 20, 2014 10:01:52 AM UTC-5, Liqun Chen wrote:
>
> After upgraded to V201409, for all request, we need to provide customer 
> id, otherwise you get CLIENT_CUSTOMER_ID_IS_REQUIRED, but you provided a 
> valid customer id, only return this customer/account. 
> Now I am not able to get a full list of accounts, please advise.
>
>
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/e3e22534-3bec-475c-a384-984af873b29c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: MCC's own client ID Access Denied - Using same account's secret and refresh token

2014-11-20 Thread Josh Radcliff (AdWords API Team)
Hi,

Looking at your failed requests, the underlying errors suggest that perhaps 
you are not passing an access token in your Authorization 
 
header. 
Could you check your logs and confirm that the *Authorization* header is 
being sent?

If you find that it is being sent, please append the *access token* (*not* 
the refresh token) to the end of the following URL. This will let you know 
the token's scope, expiry time, and status. Note that this URL won't work 
for expired tokens.

https://www.googleapis.com/oauth2/v1/tokeninfo?access_token=
*YOUR_ACCESS_TOKEN*


Output for a valid AdWords access token will look like this:

{
 "issued_to": "*...*",
 "audience": "*...*",
 "scope": "https://www.googleapis.com/auth/adwords";,
 "expires_in": 212,
 "access_type": "offline"
}

Thanks,
Josh, AdWords API Team


On Thursday, November 20, 2014 4:36:37 PM UTC-5, eric haberman wrote:
>
> Hello,
>
> I'm getting the error:
>
> AuthorizationError. USER_PERMISSION_DENIED
>
> The MCC client ID (581-880-2635), developers token, and Google Developers 
> Console refresh token and secret are all from the same account.  (refresh 
> token authorized in the same browser as the MCC account is logged into)
>
> In other words, my MCC client ID is being denied from using it's own API 
> credentials.
>
> Anyone run into this before?  I've dug around and can't find a solution, 
> any help would be appreciated.
>
> 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/3953a272-291b-4aa6-b1a5-758f83645114%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Invalid Token Header

2014-11-20 Thread htang5555
Hey Michael,

I am doing the Soap requests in node JS therefore using a node js client 
for this and not one of the ones provided.

var 
url='https://adwords.google.com/api/adwords/mcm/v201409/CustomerService?wsdl';
soap.createClient(url,function(err,client) {
   client.addSoapHeader({RequestHeader: {
  developerToken: "X",
  userAgent: "API Project"
   }},"","ns1","https://adwords.google.com/api/adwords/mcm/v201409";);
   client.setSecurity(new soap.BearerSecurity(accessToken));
   client.get({},function(err,res){
  console.log(err);
  console.log(res);
   })
});

the client is specified here: https://github.com/vpulim/node-soap
the last two parameters in the addSoapHeader function are Namespace Prefix 
and Namespace.

Would that be it?

Also i have had problems with my billing information, after the credentials 
are logged in and I submit it, I get an error message where it says the 
engineers have been notified

Would that be the cause of the invalid_header_token error?

Thanks.


On Thursday, November 20, 2014 2:34:40 PM UTC-5, Michael Cloonan (AdWords 
API Team) wrote:
>
> Hello,
>
> Please take a look at our common errors page 
> 
>  
> for this message and make sure that you double check that your developer 
> token and namespacing are correct. If that doesn't help resolve the 
> problem, please include your generated SOAP request in addition to the 
> response so I can take a closer look. Make sure you strip out any sensitive 
> data.
>
> Regards,
> Mike, AdWords API Team
>
> On Thursday, November 20, 2014 10:54:25 AM UTC-5, htan...@gmail.com wrote:
>>
>> Hey,
>>
>> I am getting an Invalid Token Header whenever i try to make an API Call.
>>
>> I am using NodeJS for this and creating the soap requests manually using 
>> a client called node-soap
>>
>> I am setting the header like so...
>>
>> RequestHeader:{
>> developerToken:"XX",
>> userAgent:"MyAppName"
>> }
>>
>> I am not setting the customerClientId because the purpose of this web app 
>> is for clients to export their data into an external database. Is there 
>> anything i am doing wrong?
>> This is the response.
>>
>> > xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";>>  
>> xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201409"; xmlns="
>> https://adwords.google.com/api/adwords/mcm/v201409";>0005084c430c10110ae0d8c4d8002aa6CustomerServiceget040soap:Server[QuotaCheckError.INVALID_TOKEN_HEADER
>>  
>> @ ]https://adwords.google.com/api/adwords/mcm/v201409"; xmlns:ns2="
>> https://adwords.google.com/api/adwords/cm/v201409";>[QuotaCheckError.INVALID_TOKEN_HEADER
>>  
>> @ 
>> ]ApiException>  
>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
>> xsi:type="ns2:QuotaCheckError">QuotaCheckError.INVALID_TOKEN_HEADERQuotaCheckErrorINVALID_TOKEN_HEADER
>>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/19054142-9329-4204-952b-77a2779f4e2c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: MCC's own client ID Access Denied - Using same account's secret and refresh token

2014-11-20 Thread eric haberman
You're the man Josh!  

I'm using the PHP library, I thought the library handled the access token?

Any pointers on where to find an example of this in PHP, I can't find 
anything in the examples repo?  (no worries if not, I can figure it out)

Thanks!





On Thursday, November 20, 2014 4:03:55 PM UTC-6, Josh Radcliff (AdWords API 
Team) wrote:
>
> Hi,
>
> Looking at your failed requests, the underlying errors suggest that 
> perhaps you are not passing an access token in your Authorization 
>  
> header. 
> Could you check your logs and confirm that the *Authorization* header is 
> being sent?
>
> If you find that it is being sent, please append the *access token* (*not* 
> the refresh token) to the end of the following URL. This will let you know 
> the token's scope, expiry time, and status. Note that this URL won't work 
> for expired tokens.
>
> https://www.googleapis.com/oauth2/v1/tokeninfo?access_token=
> *YOUR_ACCESS_TOKEN*
>
>
> Output for a valid AdWords access token will look like this:
>
> {
>  "issued_to": "*...*",
>  "audience": "*...*",
>  "scope": "https://www.googleapis.com/auth/adwords";,
>  "expires_in": 212,
>  "access_type": "offline"
> }
>
> Thanks,
> Josh, AdWords API Team
>
>
> On Thursday, November 20, 2014 4:36:37 PM UTC-5, eric haberman wrote:
>>
>> Hello,
>>
>> I'm getting the error:
>>
>> AuthorizationError. USER_PERMISSION_DENIED
>>
>> The MCC client ID (581-880-2635), developers token, and Google 
>> Developers Console refresh token and secret are all from the same account.  
>> (refresh token authorized in the same browser as the MCC account is logged 
>> into)
>>
>> In other words, my MCC client ID is being denied from using it's own API 
>> credentials.
>>
>> Anyone run into this before?  I've dug around and can't find a solution, 
>> any help would be appreciated.
>>
>> 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/ef356477-9acb-4b20-b381-b50af63d4063%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: MCC's own client ID Access Denied - Using same account's secret and refresh token

2014-11-20 Thread eric haberman
Thanks Josh, you're the man!

I'm using the PHP library, I can't find an example for generating the 
access token (sorry, I took over this code from someone else in the company)

Any tips?

On Thursday, November 20, 2014 4:03:55 PM UTC-6, Josh Radcliff (AdWords API 
Team) wrote:
>
> Hi,
>
> Looking at your failed requests, the underlying errors suggest that 
> perhaps you are not passing an access token in your Authorization 
>  
> header. 
> Could you check your logs and confirm that the *Authorization* header is 
> being sent?
>
> If you find that it is being sent, please append the *access token* (*not* 
> the refresh token) to the end of the following URL. This will let you know 
> the token's scope, expiry time, and status. Note that this URL won't work 
> for expired tokens.
>
> https://www.googleapis.com/oauth2/v1/tokeninfo?access_token=
> *YOUR_ACCESS_TOKEN*
>
>
> Output for a valid AdWords access token will look like this:
>
> {
>  "issued_to": "*...*",
>  "audience": "*...*",
>  "scope": "https://www.googleapis.com/auth/adwords";,
>  "expires_in": 212,
>  "access_type": "offline"
> }
>
> Thanks,
> Josh, AdWords API Team
>
>
> On Thursday, November 20, 2014 4:36:37 PM UTC-5, eric haberman wrote:
>>
>> Hello,
>>
>> I'm getting the error:
>>
>> AuthorizationError. USER_PERMISSION_DENIED
>>
>> The MCC client ID (581-880-2635), developers token, and Google 
>> Developers Console refresh token and secret are all from the same account.  
>> (refresh token authorized in the same browser as the MCC account is logged 
>> into)
>>
>> In other words, my MCC client ID is being denied from using it's own API 
>> credentials.
>>
>> Anyone run into this before?  I've dug around and can't find a solution, 
>> any help would be appreciated.
>>
>> 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/75c4200f-c1c3-486c-91e1-d3d30b936b45%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: MCC's own client ID Access Denied - Using same account's secret and refresh token

2014-11-20 Thread eric haberman
Here is my request from the log, it looks like the access token is NOT 
being sent by the PHP library, though I am sending the 'access_token' in 
the $oauth2Info array when instantiating the AdWordsUser:


http://schemas.xmlsoap.org/soap/envelope/"; 
xmlns:ns1="https://adwords.google.com/api/adwords/o/v201409"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201409";>
  

  581-880-2635
  deleted
  CAB (AwApi-PHP/5.2.3, Common-PHP/5.2.3, 
PHP/5.3.10-1ubuntu3.14)

  
  

  

  weight loss


KEYWORD
IDEAS

KEYWORD_TEXT

SEARCH_VOLUME

COMPETITION

TARGETED_MONTHLY_SEARCHES

  0
  50

  

  


On Thursday, November 20, 2014 4:03:55 PM UTC-6, Josh Radcliff (AdWords API 
Team) wrote:
>
> Hi,
>
> Looking at your failed requests, the underlying errors suggest that 
> perhaps you are not passing an access token in your Authorization 
>  
> header. 
> Could you check your logs and confirm that the *Authorization* header is 
> being sent?
>
> If you find that it is being sent, please append the *access token* (*not* 
> the refresh token) to the end of the following URL. This will let you know 
> the token's scope, expiry time, and status. Note that this URL won't work 
> for expired tokens.
>
> https://www.googleapis.com/oauth2/v1/tokeninfo?access_token=
> *YOUR_ACCESS_TOKEN*
>
>
> Output for a valid AdWords access token will look like this:
>
> {
>  "issued_to": "*...*",
>  "audience": "*...*",
>  "scope": "https://www.googleapis.com/auth/adwords";,
>  "expires_in": 212,
>  "access_type": "offline"
> }
>
> Thanks,
> Josh, AdWords API Team
>
>
> On Thursday, November 20, 2014 4:36:37 PM UTC-5, eric haberman wrote:
>>
>> Hello,
>>
>> I'm getting the error:
>>
>> AuthorizationError. USER_PERMISSION_DENIED
>>
>> The MCC client ID (581-880-2635), developers token, and Google 
>> Developers Console refresh token and secret are all from the same account.  
>> (refresh token authorized in the same browser as the MCC account is logged 
>> into)
>>
>> In other words, my MCC client ID is being denied from using it's own API 
>> credentials.
>>
>> Anyone run into this before?  I've dug around and can't find a solution, 
>> any help would be appreciated.
>>
>> 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/c42c893a-1672-4386-86db-5cd3758c38e6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: MCC's own client ID Access Denied - Using same account's secret and refresh token

2014-11-20 Thread eric haberman
*Here is a var_dump of the $user object's header elements:*

["requestHeaderElements":"AdsUser":private]=>  array(4) {["userAgent"]=>
string(94) "deleted:targetfinder:v1.9 (AwApi-PHP/5.2.3, Common-PHP/5.2.3, 
PHP/5.3.10-1ubuntu3.14)"["clientCustomerId"]=>string(12) "581-880-2635" 
   ["developerToken"]=>string(22) "deleted"["applicationToken"]=>
NULL  }

*And the oauth2Info:*

["oauth2Info":"AdsUser":private]=>  array(7) {["client_id"]=>string(73) 
"deleted"["client_secret"]=>string(24) "deleted"["refresh_token"]=> 
   string(66) "deleted"["access_token"]=>string(83) "deleted"
["token_type"]=>string(6) "Bearer"["expires_in"]=>int(3600)
["timestamp"]=>int(1416529531)  }

The oauth 2 info is correct, an access token is refreshing, but the headers do 
not include an access_token.  



On Thursday, November 20, 2014 5:34:51 PM UTC-6, eric haberman wrote:
>
> Here is my request from the log, it looks like the access token is NOT 
> being sent by the PHP library, though I am sending the 'access_token' in 
> the $oauth2Info array when instantiating the AdWordsUser:
>
> 
> http://schemas.xmlsoap.org/soap/envelope/"; xmlns:ns1="
> https://adwords.google.com/api/adwords/o/v201409"; xmlns:xsi="
> http://www.w3.org/2001/XMLSchema-instance"; xmlns:ns2="
> https://adwords.google.com/api/adwords/cm/v201409";>
>   
> 
>   581-880-2635
>   deleted
>   CAB (AwApi-PHP/5.2.3, Common-PHP/5.2.3, 
> PHP/5.3.10-1ubuntu3.14)
> 
>   
>   
> 
>   
> 
>   weight loss
> 
>  xsi:type="ns1:IncludeAdultContentSearchParameter"/>
> KEYWORD
> IDEAS
> 
> KEYWORD_TEXT
> 
> SEARCH_VOLUME
> 
> COMPETITION
> 
> TARGETED_MONTHLY_SEARCHES
> 
>   0
>   50
> 
>   
> 
>   
> 
>
> On Thursday, November 20, 2014 4:03:55 PM UTC-6, Josh Radcliff (AdWords 
> API Team) wrote:
>>
>> Hi,
>>
>> Looking at your failed requests, the underlying errors suggest that 
>> perhaps you are not passing an access token in your Authorization 
>>  
>> header. 
>> Could you check your logs and confirm that the *Authorization* header is 
>> being sent?
>>
>> If you find that it is being sent, please append the *access token* (
>> *not* the refresh token) to the end of the following URL. This will let 
>> you know the token's scope, expiry time, and status. Note that this URL 
>> won't work for expired tokens.
>>
>> https://www.googleapis.com/oauth2/v1/tokeninfo?access_token=
>> *YOUR_ACCESS_TOKEN*
>>
>>
>> Output for a valid AdWords access token will look like this:
>>
>> {
>>  "issued_to": "*...*",
>>  "audience": "*...*",
>>  "scope": "https://www.googleapis.com/auth/adwords";,
>>  "expires_in": 212,
>>  "access_type": "offline"
>> }
>>
>> Thanks,
>> Josh, AdWords API Team
>>
>>
>> On Thursday, November 20, 2014 4:36:37 PM UTC-5, eric haberman wrote:
>>>
>>> Hello,
>>>
>>> I'm getting the error:
>>>
>>> AuthorizationError. USER_PERMISSION_DENIED
>>>
>>> The MCC client ID (581-880-2635), developers token, and Google 
>>> Developers Console refresh token and secret are all from the same account.  
>>> (refresh token authorized in the same browser as the MCC account is logged 
>>> into)
>>>
>>> In other words, my MCC client ID is being denied from using it's own API 
>>> credentials.
>>>
>>> Anyone run into this before?  I've dug around and can't find a solution, 
>>> any help would be appreciated.
>>>
>>> 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/5b08f807-bc0d-40a9-82a5-ab737787eed9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: MCC's own client ID Access Denied - Using same account's secret and refresh token

2014-11-20 Thread eric haberman
Resolved!  Thank you for your help.

The problem was a fluke caused by a locked file not being overwritten, 
after I updated the library using CLI instead of dragndrop, it worked fine.

On Thursday, November 20, 2014 6:24:40 PM UTC-6, eric haberman wrote:
>
> *Here is a var_dump of the $user object's header elements:*
>
> ["requestHeaderElements":"AdsUser":private]=>  array(4) {["userAgent"]=>  
>   string(94) "deleted:targetfinder:v1.9 (AwApi-PHP/5.2.3, Common-PHP/5.2.3, 
> PHP/5.3.10-1ubuntu3.14)"["clientCustomerId"]=>string(12) 
> "581-880-2635"["developerToken"]=>string(22) "deleted"
> ["applicationToken"]=>NULL  }
>
> *And the oauth2Info:*
>
> ["oauth2Info":"AdsUser":private]=>  array(7) {["client_id"]=>
> string(73) "deleted"["client_secret"]=>string(24) "deleted"
> ["refresh_token"]=>string(66) "deleted"["access_token"]=>
> string(83) "deleted"["token_type"]=>string(6) "Bearer"
> ["expires_in"]=>int(3600)["timestamp"]=>int(1416529531)  }
>
> The oauth 2 info is correct, an access token is refreshing, but the headers 
> do not include an access_token.  
>
>
>
> On Thursday, November 20, 2014 5:34:51 PM UTC-6, eric haberman wrote:
>>
>> Here is my request from the log, it looks like the access token is NOT 
>> being sent by the PHP library, though I am sending the 'access_token' in 
>> the $oauth2Info array when instantiating the AdWordsUser:
>>
>> 
>> http://schemas.xmlsoap.org/soap/envelope/"; xmlns:ns1="
>> https://adwords.google.com/api/adwords/o/v201409"; xmlns:xsi="
>> http://www.w3.org/2001/XMLSchema-instance"; xmlns:ns2="
>> https://adwords.google.com/api/adwords/cm/v201409";>
>>   
>> 
>>   581-880-2635
>>   deleted
>>   CAB (AwApi-PHP/5.2.3, Common-PHP/5.2.3, 
>> PHP/5.3.10-1ubuntu3.14)
>> 
>>   
>>   
>> 
>>   
>> > xsi:type="ns1:RelatedToQuerySearchParameter">
>>   weight loss
>> 
>> > xsi:type="ns1:IncludeAdultContentSearchParameter"/>
>> KEYWORD
>> IDEAS
>> 
>> KEYWORD_TEXT
>> 
>> SEARCH_VOLUME
>> 
>> COMPETITION
>> 
>> TARGETED_MONTHLY_SEARCHES
>> 
>>   0
>>   50
>> 
>>   
>> 
>>   
>> 
>>
>> On Thursday, November 20, 2014 4:03:55 PM UTC-6, Josh Radcliff (AdWords 
>> API Team) wrote:
>>>
>>> Hi,
>>>
>>> Looking at your failed requests, the underlying errors suggest that 
>>> perhaps you are not passing an access token in your Authorization 
>>>  
>>> header. 
>>> Could you check your logs and confirm that the *Authorization* header 
>>> is being sent?
>>>
>>> If you find that it is being sent, please append the *access token* (
>>> *not* the refresh token) to the end of the following URL. This will let 
>>> you know the token's scope, expiry time, and status. Note that this URL 
>>> won't work for expired tokens.
>>>
>>> https://www.googleapis.com/oauth2/v1/tokeninfo?access_token=
>>> *YOUR_ACCESS_TOKEN*
>>>
>>>
>>> Output for a valid AdWords access token will look like this:
>>>
>>> {
>>>  "issued_to": "*...*",
>>>  "audience": "*...*",
>>>  "scope": "https://www.googleapis.com/auth/adwords";,
>>>  "expires_in": 212,
>>>  "access_type": "offline"
>>> }
>>>
>>> Thanks,
>>> Josh, AdWords API Team
>>>
>>>
>>> On Thursday, November 20, 2014 4:36:37 PM UTC-5, eric haberman wrote:

 Hello,

 I'm getting the error:

 AuthorizationError. USER_PERMISSION_DENIED

 The MCC client ID (581-880-2635), developers token, and Google 
 Developers Console refresh token and secret are all from the same account. 
  
 (refresh token authorized in the same browser as the MCC account is logged 
 into)

 In other words, my MCC client ID is being denied from using it's own 
 API credentials.

 Anyone run into this before?  I've dug around and can't find a 
 solution, any help would be appreciated.

 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://