LocationExtensionOperand with GeoTargetOperand causing connection to hang up.

2015-03-31 Thread Edward Grave
I've been having a bit of difficulty with the new LocationExtensionOperand.

I want to be able to meet the requirement C.21 Set distance targeting.

My C# code looks like this:
var locationCriterion = new LocationGroups {
 matchingFunction = new Function
{
operatorSpecified = true,
@operator = FunctionOperator.AND,
lhsOperand = new FunctionArgumentOperand[]
{  
new LocationExtensionOperand
{
radius = new ConstantOperand
{
typeSpecified = true,
type = ConstantOperandConstantType.
LONG,
unitSpecified = true,
unit = ConstantOperandUnit.MILES,
longValueSpecified = true,
longValue = distance   
 
}
},

},
rhsOperand = new FunctionArgumentOperand[] {
new GeoTargetOperand
{
locations = new long[123456789]
} 
}
}

};


When I send the request through I get the "The request was aborted: The 
connection was closed unexpectedly."


Can anyone see something obvious that is wrong with this Criterion? The 
remainder of the code works perfectly with other Criterions.


Having a few issues getting the actual SOAP request but will try and get it if 
I need to.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/a41586e9-976b-444f-8b6c-f68c23a92cd3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: invalid grant when generating refresh token

2015-03-31 Thread Mark
I have no affiliation with google. Just a fellow user like you. In my 
experience there are 2 cases where the refresh doesn't work:

1. When you exchange their code with non-empty scopes as a parameter. Make 
sure to leave this blank (not sure which client library you're using) and 
only include non-empty scopes when you create the initial redirect url.
2. When the redirect url parm of the exchange code request is not the same 
as the redirect url you provided the user (must be identical)

Also, make sure to start over FRESH, ie log in and 
visit https://security.google.com/settings/security/permissions and REVOKE 
your application, then repeat the process.

I also can't find this in the documentation or anywhere else in the forum; 
I just had to figure it out painfully.

On Friday, March 27, 2015 at 11:51:13 AM UTC-7, Sean Gottschalk wrote:
>
> Hello,
>
> I'm trying to create a refresh token for a client using my adwords 
> developer credentials but when I enter the generated code I get a 400 
> invalid grant error from the adwords API.
>
> I logged into my developer console on my MCC account and verified that I 
> have the following OAuth credentials:
>
> Client ID
> 379545466128.apps.googleusercontent.com
> Client secret
> 
> Redirect URIs
>
> urn:ietf:wg:oauth:2.0:oob
> http://localhost 
>
> I am using this example to generate the token, and have successfully 
> generated tokens for other client accounts in the past:
>
> https://github.com/googleads/googleads-java-lib/blob/master/examples/dfp_axis/src/main/java/dfp/axis/auth/GetRefreshToken.java
>
> This is the url that I have the clients visit to generate the token:
>
> https://accounts.google.com/o/oauth2/auth?access_type=offline&client_id=379545466128.apps.googleusercontent.com&redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=code&scope=https://adwords.google.com/api/adwords
>
> I'm not sure where to go from here, does anyone have any debugging tips?
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/9f4e7803-413d-4a7b-8503-c4c9e5f00ecc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: IP Blocking via API Issue

2015-03-31 Thread Yuval Haimov
Any updates on that matter? 

On Wednesday, April 16, 2014 at 10:23:50 PM UTC+3, Michael Cloonan (AdWords 
API Team) wrote:
>
> Hi,
>
> I was also able to reproduce this, despite the documentation saying that 
> these masks should be accepted. I'm going to file a bug for this so we can 
> investigate further. I will update this thread when I hear more information.
>
> Regards,
> Mike, AdWords API Advisor
>
> On Monday, April 14, 2014 3:21:25 PM UTC-4, Jon wrote:
>>
>>
>> I'm using the new IP blocking functionality added in V201402 (
>> https://developers.google.com/adwords/api/docs/reference/v201402/CampaignCriterionService.IpBlock),
>>  
>> but having an issue trying to block anything but a single IP. That link 
>> shows that we should be able to block Class C network using a mask, but I 
>> get an invalid IP address method when I try to block 70.210.9.1/24:
>>
>> http://www.w3.org/2001/XMLSchema-instance"; 
>> xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"; 
>> >https://adwords.google.com/api/adwords/cm/v201402";>> xmlns="https://adwords.google.com/api/adwords/cm/v201402";>REDACTED>  
>> xmlns="https://adwords.google.com/api/adwords/cm/v201402";>REDACTED>  
>> xmlns="https://adwords.google.com/api/adwords/cm/v201402";>REDACTED>  
>> xmlns="https://adwords.google.com/api/adwords/cm/v201402";>false>  
>> xmlns="https://adwords.google.com/api/adwords/cm/v201402";>false>  
>> xmlns="https://adwords.google.com/api/adwords/cm/v201402";>ADD>  
>> xsi:type="NegativeCampaignCriterion" 
>> >181798627> >70.210.9.1/24
>> 
>>
>> [14 Apr 2014 18:57:31,612 - INFO ] Incoming response:
>>
>> > xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";>>  
>> xmlns="https://adwords.google.com/api/adwords/cm/v201402";>0004f705416b1e980ae67d823d24CampaignCriterionServicemutate0309soap:Server[CriterionError.INVALID_IP_ADDRESS
>>  
>> @ 
>> operations[0].operand.criterion.ipAddress]>  
>> xmlns="https://adwords.google.com/api/adwords/cm/v201402";>[CriterionError.INVALID_IP_ADDRESS
>>  
>> @ 
>> operations[0].operand.criterion.ipAddress]ApiException>  
>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
>> xsi:type="CriterionError">operations[0].operand.criterion.ipAddressCriterionError.INVALID_IP_ADDRESSCriterionErrorUNKNOWN
>>
>> Plain IPs (70.210.9.1) and using a /32 (70.210.9.1/32) both work fine, 
>> which implies (along with the docs) that I should be using the format 
>> above. I also tried with 70.210.9.* as the UI uses but get the same 
>> error there.
>>
>> Ideas?
>>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/84fe57b9-2c98-4409-9554-d99f6c363c77%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Why always EstimateKeywordTraffic gives always zero excpet for ad postions

2015-03-31 Thread saif
Hey Mike, 

I get the same errors. 

base = {"AdWordsReportsException: Report download errors occurred. 
\r\n\r\nError: AuthenticationError.CUSTOMER_NOT_FOUND, Trigger: , 
FieldPath: \r\n\r\n"}

StackTrace = "   at 
Google.Api.Ads.AdWords.Examples.CSharp.v201502.DownloadCriteriaReport.Run(AdWordsUser
 
user, String fileName) in C:\\Users\\nmodal3\\Documents\\Visual Studio 
2013\\Projects\\adWords\\googleads-dotnet-lib-master\\examples\\AdWords\\CSharp\\v201502\\Rep...

Please advise. 

On Wednesday, February 25, 2015 at 9:03:29 AM UTC-5, Michael Cloonan 
(AdWords API Team) wrote:
>
> Hello,
>
> These two error messages are different from your original problem; did you 
> change your code?
>
> The CUSTOMER_NOT_FOUND 
> 
>  error 
> means that the ClientCustomerId you specified in your SOAP headers does not 
> correspond to a real account. Please make sure this is set properly.
>
> The REQUIRED error means that the specified field 
> (selector.searchParameters.searchParameters[1].queries[0]) is empty or 
> null, but needs to be present in order to make a valid request. If you were 
> getting results before, then you had this configured properly in a previous 
> iteration.
>
> In order to troubleshoot the original problem, I would still need you to 
> provide a SOAP request/response.
>
> Regards,
> Mike, AdWords API Team
>
> On Tuesday, February 24, 2015 at 11:58:20 PM UTC-5, Shobhan Babu wrote:
>>
>>
>> And Now the error is :
>>
>> An error has occurred: [RequiredError.REQUIRED @ 
>> selector.searchParameters.searchParameters[1].queries[0]] 
>>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/5828974b-1c64-4c01-bb04-aec81d9a61cf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Forecasting CPC costs

2015-03-31 Thread george corbeil
Hi, hoping for some guidance. I am new to this world and can really use som 
advice. I have a website under construction which will be geared towards cats. 
My keyword search shows a monthly search volume of about 3 in the USA. 
There is really no competition for my product when I actually google the 
keywords. It is showing a cost per click of about $2. Is it likely to be this 
much? With no real competition connected to my keywords (they are just free 
sites not for profit) is it likely to be significantly less? I know given the 
scarcity of information nobody can give me a definite answer, but I am open to 
ballpark guesses?

Thank you kindly,
George

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/e1169a34-3938-4863-b9a7-5a642784904f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Adwords Api with OAuth 2.0 in Asp.Net

2015-03-31 Thread Marcin Gdak
Hi, 
I need to get the access to the Adwords campaign of other users after 
consent.
The User is logging through OAuth 2.0 (is giving the login name and the 
password), best with the AspNet.Membership use.
I am working on ASP.Net Web Forms .I have Client ID, Client secret for web 
application and token_developer.
Anybody can tell me how to do it? Am I use the Flow Web or Account Service?
How to get signet in Customer ID ?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/b8836ba9-5776-4b63-a0a1-649f2f89394b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


What is the max number of APIs which can access an AW account?

2015-03-31 Thread Emma Watson
What is the max number of APIs which can access an AW account?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/0269490b-02b7-4af3-9485-3309cd4b41cc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Adwords Api with OAuth 2.0 in Asp.Net

2015-03-31 Thread Danial Klimkin
Hello Marcin,


Please see this page for details regarding OAuth2 implementation with 
DotNet library:

  https://github.com/googleads/googleads-dotnet-lib/wiki/Using-OAuth2

Also, see an example here:

  
https://github.com/googleads/googleads-dotnet-lib/tree/master/examples/AdWords/CSharp/OAuth


-Danial, AdWords API Team.


On Tuesday, March 31, 2015 at 2:24:38 PM UTC+3, Marcin Gdak wrote:
>
> Hi, 
> I need to get the access to the Adwords campaign of other users after 
> consent.
> The User is logging through OAuth 2.0 (is giving the login name and the 
> password), best with the AspNet.Membership use.
> I am working on ASP.Net Web Forms .I have Client ID, Client secret for 
> web application and token_developer.
> Anybody can tell me how to do it? Am I use the Flow Web or Account Service
> ?
> How to get signet in Customer ID ?
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/d9dabd2e-26f9-4b0b-ad5c-785e941a0260%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Why always EstimateKeywordTraffic gives always zero excpet for ad postions

2015-03-31 Thread Danial Klimkin
Hello,



It looks like you are providing a wrong clientCustomerId in your request. 
Please see the response from Mike above.


-Danial, AdWords API Team.


On Tuesday, March 31, 2015 at 2:24:28 PM UTC+3, sa...@nmodal.com wrote:
>
> Hey Mike, 
>
> I get the same errors. 
>
> base = {"AdWordsReportsException: Report download errors occurred. 
> \r\n\r\nError: AuthenticationError.CUSTOMER_NOT_FOUND, Trigger: , 
> FieldPath: \r\n\r\n"}
>
> StackTrace = "   at 
> Google.Api.Ads.AdWords.Examples.CSharp.v201502.DownloadCriteriaReport.Run(AdWordsUser
>  
> user, String fileName) in C:\\Users\\nmodal3\\Documents\\Visual Studio 
> 2013\\Projects\\adWords\\googleads-dotnet-lib-master\\examples\\AdWords\\CSharp\\v201502\\Rep...
>
> Please advise. 
>
> On Wednesday, February 25, 2015 at 9:03:29 AM UTC-5, Michael Cloonan 
> (AdWords API Team) wrote:
>>
>> Hello,
>>
>> These two error messages are different from your original problem; did 
>> you change your code?
>>
>> The CUSTOMER_NOT_FOUND 
>> 
>>  error 
>> means that the ClientCustomerId you specified in your SOAP headers does not 
>> correspond to a real account. Please make sure this is set properly.
>>
>> The REQUIRED error means that the specified field 
>> (selector.searchParameters.searchParameters[1].queries[0]) is empty or 
>> null, but needs to be present in order to make a valid request. If you were 
>> getting results before, then you had this configured properly in a previous 
>> iteration.
>>
>> In order to troubleshoot the original problem, I would still need you to 
>> provide a SOAP request/response.
>>
>> Regards,
>> Mike, AdWords API Team
>>
>> On Tuesday, February 24, 2015 at 11:58:20 PM UTC-5, Shobhan Babu wrote:
>>>
>>>
>>> And Now the error is :
>>>
>>> An error has occurred: [RequiredError.REQUIRED @ 
>>> selector.searchParameters.searchParameters[1].queries[0]] 
>>>
>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/8230d329-249c-4a1f-baeb-5d7692972132%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: What is the max number of APIs which can access an AW account?

2015-03-31 Thread Danial Klimkin
Hello,


There is no limit of API clients to access any AdWords account.


-Danial, AdWords API Team.


On Tuesday, March 31, 2015 at 5:13:38 PM UTC+3, Emma Watson wrote:
>
> What is the max number of APIs which can access an AW account?
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/6e481197-5ce3-47a8-9431-334693ef8b5d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


How get CustomerId with OAuth 2.0

2015-03-31 Thread Marcin Gdak

Hi,

How get Customer ID of the user with OAuth 2.0 web flow. 
How I wrote down by hand customer id in webconfig, that's all is acting. 
But I need to take the id after the Authorization. How I can get Customer 
Id of the user?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/e24f154a-fa6d-4d09-a0da-585d24b53289%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: LocationExtensionOperand with GeoTargetOperand causing connection to hang up.

2015-03-31 Thread Danial Klimkin
Hello Edward,


The error message is not directly related to the type of the operation you 
are performing. Do you see the same error for other requests?

Also, see this library example:

  
https://github.com/googleads/googleads-dotnet-lib/blob/master/examples/AdWords/CSharp/v201502/Targeting/AddCampaignTargetingCriteria.cs


-Danial, AdWords API Team.

On Tuesday, March 31, 2015 at 12:36:22 PM UTC+3, Edward Grave wrote:
>
> I've been having a bit of difficulty with the new LocationExtensionOperand.
>
> I want to be able to meet the requirement C.21 Set distance targeting.
>
> My C# code looks like this:
> var locationCriterion = new LocationGroups {
>  matchingFunction = new Function
> {
> operatorSpecified = true,
> @operator = FunctionOperator.AND,
> lhsOperand = new FunctionArgumentOperand[]
> {  
> new LocationExtensionOperand
> {
> radius = new ConstantOperand
> {
> typeSpecified = true,
> type = ConstantOperandConstantType
> .LONG,
> unitSpecified = true,
> unit = ConstantOperandUnit.MILES,
> longValueSpecified = true,
> longValue = distance 
>
> }
> },
> 
> },
> rhsOperand = new FunctionArgumentOperand[] {
> new GeoTargetOperand
> {
> locations = new long[123456789]
> } 
> }
> }
>
> };
>
>
> When I send the request through I get the "The request was aborted: The 
> connection was closed unexpectedly."
>
>
> Can anyone see something obvious that is wrong with this Criterion? The 
> remainder of the code works perfectly with other Criterions.
>
>
> Having a few issues getting the actual SOAP request but will try and get it 
> if I need to.
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/7b09d718-081c-4879-80dc-cfd511933a90%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: IP Blocking via API Issue

2015-03-31 Thread Danial Klimkin
Hello Yuval,


Did you try specifying network as A.B.C.0/24, instead of A.B.C.1/24 as in 
the error on this thread?


-Danial, AdWords API Team.


On Tuesday, March 31, 2015 at 2:24:23 PM UTC+3, Yuval Haimov wrote:
>
> Any updates on that matter? 
>
> On Wednesday, April 16, 2014 at 10:23:50 PM UTC+3, Michael Cloonan 
> (AdWords API Team) wrote:
>>
>> Hi,
>>
>> I was also able to reproduce this, despite the documentation saying that 
>> these masks should be accepted. I'm going to file a bug for this so we can 
>> investigate further. I will update this thread when I hear more information.
>>
>> Regards,
>> Mike, AdWords API Advisor
>>
>> On Monday, April 14, 2014 3:21:25 PM UTC-4, Jon wrote:
>>>
>>>
>>> I'm using the new IP blocking functionality added in V201402 (
>>> https://developers.google.com/adwords/api/docs/reference/v201402/CampaignCriterionService.IpBlock),
>>>  
>>> but having an issue trying to block anything but a single IP. That link 
>>> shows that we should be able to block Class C network using a mask, but I 
>>> get an invalid IP address method when I try to block 70.210.9.1/24:
>>>
>>> http://www.w3.org/2001/XMLSchema-instance"; 
>>> xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"; 
>>> >https://adwords.google.com/api/adwords/cm/v201402";>>> xmlns="https://adwords.google.com/api/adwords/cm/v201402";>REDACTED>>  
>>> xmlns="https://adwords.google.com/api/adwords/cm/v201402";>REDACTED>>  
>>> xmlns="https://adwords.google.com/api/adwords/cm/v201402";>REDACTED>>  
>>> xmlns="https://adwords.google.com/api/adwords/cm/v201402";>false>>  
>>> xmlns="https://adwords.google.com/api/adwords/cm/v201402";>false>>  
>>> xmlns="https://adwords.google.com/api/adwords/cm/v201402";>ADD>>  
>>> xsi:type="NegativeCampaignCriterion" 
>>> >181798627>> >70.210.9.1/24
>>> 
>>>
>>> [14 Apr 2014 18:57:31,612 - INFO ] Incoming response:
>>>
>>> >> xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";>>>  
>>> xmlns="https://adwords.google.com/api/adwords/cm/v201402";>0004f705416b1e980ae67d823d24CampaignCriterionServicemutate0309soap:Server[CriterionError.INVALID_IP_ADDRESS
>>>  
>>> @ 
>>> operations[0].operand.criterion.ipAddress]>>  
>>> xmlns="https://adwords.google.com/api/adwords/cm/v201402";>[CriterionError.INVALID_IP_ADDRESS
>>>  
>>> @ 
>>> operations[0].operand.criterion.ipAddress]ApiException>>  
>>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
>>> xsi:type="CriterionError">operations[0].operand.criterion.ipAddressCriterionError.INVALID_IP_ADDRESSCriterionErrorUNKNOWN
>>>
>>> Plain IPs (70.210.9.1) and using a /32 (70.210.9.1/32) both work fine, 
>>> which implies (along with the docs) that I should be using the format 
>>> above. I also tried with 70.210.9.* as the UI uses but get the same 
>>> error there.
>>>
>>> Ideas?
>>>
>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/8c7348bf-c83b-437b-8955-ca09f07e2f8a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: invalid grant when generating refresh token

2015-03-31 Thread Josh Radcliff (AdWords API Team)
Hi,

Thanks for the helpful tips. Point #2 is covered in the OAuth guide for the 
web flow 
, 
in case that's helpful.

Note that you shouldn't have to revoke the application before getting 
another refresh token. I personally have multiple refresh tokens for the 
same application on several of my accounts.

Cheers,
Josh, AdWords API Team

On Tuesday, March 31, 2015 at 7:25:24 AM UTC-4, Mark wrote:
>
> I have no affiliation with google. Just a fellow user like you. In my 
> experience there are 2 cases where the refresh doesn't work:
>
> 1. When you exchange their code with non-empty scopes as a parameter. Make 
> sure to leave this blank (not sure which client library you're using) and 
> only include non-empty scopes when you create the initial redirect url.
> 2. When the redirect url parm of the exchange code request is not the same 
> as the redirect url you provided the user (must be identical)
>
> Also, make sure to start over FRESH, ie log in and visit 
> https://security.google.com/settings/security/permissions and REVOKE your 
> application, then repeat the process.
>
> I also can't find this in the documentation or anywhere else in the forum; 
> I just had to figure it out painfully.
>
> On Friday, March 27, 2015 at 11:51:13 AM UTC-7, Sean Gottschalk wrote:
>>
>> Hello,
>>
>> I'm trying to create a refresh token for a client using my adwords 
>> developer credentials but when I enter the generated code I get a 400 
>> invalid grant error from the adwords API.
>>
>> I logged into my developer console on my MCC account and verified that I 
>> have the following OAuth credentials:
>>
>> Client ID
>> 379545466128.apps.googleusercontent.com
>> Client secret
>> 
>> Redirect URIs
>>
>> urn:ietf:wg:oauth:2.0:oob
>> http://localhost 
>>
>> I am using this example to generate the token, and have successfully 
>> generated tokens for other client accounts in the past:
>>
>> https://github.com/googleads/googleads-java-lib/blob/master/examples/dfp_axis/src/main/java/dfp/axis/auth/GetRefreshToken.java
>>
>> This is the url that I have the clients visit to generate the token:
>>
>> https://accounts.google.com/o/oauth2/auth?access_type=offline&client_id=379545466128.apps.googleusercontent.com&redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=code&scope=https://adwords.google.com/api/adwords
>>
>> I'm not sure where to go from here, does anyone have any debugging tips?
>>
>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/130ffbcb-d615-4ca1-8a79-472195dabca3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Forecasting CPC costs

2015-03-31 Thread Nadine Sundquist (AdWords API Team)
Hello George,

If you are using the *AdWords API*, I would recommend reading through our 
guide 

 for 
estimating traffic and cost. 

For more general questions that aren't specific to the API, we have some 
great experts who can help you out in the AdWords Community 
.

Regards,
Nadine, AdWords API Team 

On Tuesday, March 31, 2015 at 7:24:33 AM UTC-4, george corbeil wrote:
>
> Hi, hoping for some guidance. I am new to this world and can really use 
> som advice. I have a website under construction which will be geared 
> towards cats. My keyword search shows a monthly search volume of about 
> 3 in the USA. There is really no competition for my product when I 
> actually google the keywords. It is showing a cost per click of about $2. 
> Is it likely to be this much? With no real competition connected to my 
> keywords (they are just free sites not for profit) is it likely to be 
> significantly less? I know given the scarcity of information nobody can 
> give me a definite answer, but I am open to ballpark guesses? 
>
> Thank you kindly, 
> George

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/8f643efd-e39f-4460-9bda-dafc978ddc62%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How get CustomerId with OAuth 2.0

2015-03-31 Thread Nadine Sundquist (AdWords API Team)
Hello Marcin,

Once you've authenticated, you can retrieve the current customer id from 
the Customer Service 
.
 
The Customer 

 object 
contains the *customerId* as a 10-digit number.

Cheers,
Nadine, AdWords API Team

On Tuesday, March 31, 2015 at 11:15:57 AM UTC-4, Marcin Gdak wrote:
>
>
> Hi,
>
> How get Customer ID of the user with OAuth 2.0 web flow. 
> How I wrote down by hand customer id in webconfig, that's all is acting. 
> But I need to take the id after the Authorization. How I can get Customer 
> Id of the user?
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/fba5bc86-bd29-4900-8bdf-846882f8bbfb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: "caseValue" for ProductPartition unexpectedly null when subdivided by "Channel" or "Channel Exclusivity".

2015-03-31 Thread Josh Radcliff (AdWords API Team)
Hi Hans,

In case others who are staying on v201409 a bit longer encounter this 
issue, we have added forwardCompatibilityMap 

 entries 
to *AdGroupCriterion* and *CampaignCriterion*.

For example, using v201409 to retrieve a campaign's ProductScope 

 criterion, 
you'll get something like this if the scope includes the new 
*ProductChannelExclusivity* dimension type (this example is for *Channel 
Exclusivity = Multi channel*):

   123456
   false
   http://www.w3.org/2001/XMLSchema-instance";>
  78901234
  PRODUCT_SCOPE
  ProductScope
   
   
  ProductScope.channel
  
   
   
  ProductScope.exclusivity
  MULTI_CHANNEL
   
  
 CampaignCriterion

Similarly, when retrieving product partitions of an ad group using v201409, 
you'll get the following if a partition uses one of the new 
*ProductDimension* types introduced in v201502:

BIDDABLE

123456789
PRODUCT_PARTITION
ProductPartition
UNIT
60408125302


ProductPartition.exclusivity
NULL


ProductPartition.channel
LOCAL


In both cases, the returned *forwardCompatibilityMap.value* will be one of 
LOCAL, ONLINE, or ALL.

Cheers,
Josh Radcliff, AdWords API Team

On Thursday, March 26, 2015 at 4:06:03 PM UTC-4, HK wrote:
>
> Hi, Mike
>
> Just wanted to let you know that this is not a priority for us anymore as 
> we are moving to v201502 sooner than originally planned as we need this 
> resolved quickly. Other might of course still be affected though.
>
> Thanks,
> Hans
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/edf5fb6c-d4f4-4039-8e4e-fa6ff877f007%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: "caseValue" for ProductPartition unexpectedly null when subdivided by "Channel" or "Channel Exclusivity".

2015-03-31 Thread HK
Thanks, Josh!

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/6336fdb2-8d29-4ab5-8885-15ac7f3f2094%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


How to Get Campaign Data in C# Grid

2015-03-31 Thread Pravin Yadav
Hi

I am using *Google.Api.Ads.AdWords.v201406* with dot.net code and getting 
campaign using CampaignService. 
But I am getting error.  *"**Failed to get campaigns. Exception says "The 
request failed with HTTP status 404: Not Found."**"*. Please see in line 
of  code for error with Red mark.

Is there any changes to AdWords API? Please let me know and give me DLL for 
updated version or link to download it.

*Here is code :*

 Selector selector = new Selector();
selector.fields = new string[] { "Id", "Name", "Status" };

OrderBy orderByName = new OrderBy();
orderByName.field = "Name";
orderByName.sortOrder = SortOrder.ASCENDING;

selector.ordering = new OrderBy[] { orderByName };
(user.Config as AdWordsAppConfig).ClientCustomerId = 
txtCustomerId.Text;

try
{
CampaignService service = 
(CampaignService)user.GetService(AdWordsService.v201406.CampaignService);
 
CampaignPage page = service.get(selector);

// Display campaigns.
if (page != null && page.entries != null && 
page.entries.Length > 0)
{
DataTable dataTable = new DataTable();
dataTable.Columns.AddRange(new DataColumn[] 
 {
   new DataColumn("Serial No.", typeof(int)),
   new DataColumn("Campaign Id", typeof(long)),
   new DataColumn("Campaign Name", typeof(string)),
   new DataColumn("Status", typeof(string))
});
for (int i = 0; i < page.entries.Length; i++)
{
Campaign campaign = page.entries[i];
DataRow dataRow = dataTable.NewRow();
dataRow.ItemArray = new object[] { i + 1, 
campaign.id, campaign.name, campaign.status.ToString() };
dataTable.Rows.Add(dataRow);
}
CampaignGrid.DataSource = dataTable;
CampaignGrid.DataBind();
}
else
{
Response.Write("No campaigns were found.");
} 

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/caea7b1b-13bd-4496-b46e-3d78f147a58f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.