Re: Updating ad params from xml

2014-07-22 Thread Marina Rabovolick
Dear Anash,

in my initial request I tried to describe our example. We use dynamic 
parameter {param1} in our Ads not in keywords.

Середа, 16 липня 2014 р. 21:13:19 UTC+3 користувач Anash P. Oommen (AdWords 
API Team) написав:

 Hi Marina,

 Does your keywords still have param1 value set? And did you modify the ad 
 text such that param substitution violates the ads editorial policies? 
 (e.g. length of the ad text)

 Cheers,
 Anash P. Oommen,
 AdWords API Advisor.

 On Wednesday, July 16, 2014 4:00:23 AM UTC-4, Marina Rabovolick wrote:

 Dear Danial,

 we see next on SERP: 

 in case we set {param1:100} we always see 100 instead of {param1} 
 parameter
 in case we set {param1} we see nothing instead of {param1} parameter

 FYI

 earlier in our Ads on SERP we see dynamic prices instead of {param1}. But 
 now for some reason our script stopped to work properly.

 If you can advise us how we can change our script to enable dynamic 
 change of {param1} value on delivery it will be great.

 Пʼятниця, 11 липня 2014 р. 12:40:30 UTC+3 користувач Danial Klimkin 
 написав:

 Hello Marina,


 Setting an AdParam will not change the value displayed in the AdWords 
 UI. The UI will show the default value (ad text) always.

 AdParams are substituted on the delivery only and can be seen on the 
 search results. Did you see your ad on delivery? Was the text replaced 
 properly?


 -Danial, AdWords API Team.



 On Friday, July 11, 2014 1:17:34 PM UTC+4, Marina Rabovolick wrote:


 https://lh3.googleusercontent.com/-5nOiIGAm1aU/U7-rpfgaHCI/BM8/PDpEPOWmkKQ/s1600/param_1.jpg
 Sorry for that. We launched urgent promo yesterday and I've paused many 
 Ads.

 You can find screenshot attached. 
 Keywords for this ad are: київ мінськ, київ мінськ авіа

 Please keep in mind that we are situted in Ukraine so we use campaign 
 with geo tareting Ukraine for test. 

 Четвер, 10 липня 2014 р. 14:37:52 UTC+3 користувач Danial Klimkin 
 написав:

 It looks like the only ad with ad param is currently paused.

 Could you please send me a screenshot with the default value you 
 observe?



 -Danial, AdWords API Team.


 On Thursday, July 10, 2014 11:36:33 AM UTC+4, Marina Rabovolick wrote:

 Dear Danial,

 Unfortunately our campains were paused when you did test. Could you 
 look again at our issue?

 We did test with adding default parameter to {param1} - we place 
 {param1:100} in our Ads. But in this case 100 is always reflected  
 without dynamic price change.

 I will much appreciate if you could help us to understand what we 
 need to fix in our code.

 Thanks in advance

 Marina

 Пʼятниця, 20 червня 2014 р. 15:33:17 UTC+3 користувач Danial Klimkin 
 написав:

 Hello Marina,


 I don't see any active ad for the ad group in the request that has 
 an ad param placeholder. What is the ad you expect the parameter to be 
 shown in?


 -Danial, AdWords API Team.


 On Friday, June 20, 2014 4:17:27 PM UTC+4, Marina Rabovolick wrote:

 Hi Danial,

 Please find requested information attached.

 Четвер, 19 червня 2014 р. 13:12:27 UTC+3 користувач Danial Klimkin 
 написав:

 Hello Marina,


 Could you please send us full request XML and server response for 
 AdParamService call? Please make sure to remove sensitive values such 
 as 
 developer token and OAuth tokens.


 -Danial, AdWords API Team.


 On Thursday, June 19, 2014 11:33:35 AM UTC+4, Marina Rabovolick 
 wrote:

 Hi guys!

 I have an issue with my script.  Earlier it succesfully updated 
 some data (price) in my Ads.

 How it works:

 1)Using 
 https://adwords.google.com/api/adwords/cm/v201309/AdGroupService?wsdl
  
 I get all group IDs with GET operatior.
 2)Using 
 https://adwords.google.com/api/adwords/cm/v201309/AdGroupCriterionService?wsdl
  
 I get BIDDABLE and KEYWORD criterions IDs with GET operatior.
 3)Using 
 https://adwords.google.com/api/adwords/cm/v201309/AdParamService?wsdl
  
 I update all criterions with SET operator with params like:
 $AdParam = array(
 'adGroupId' = $groupID,
'criterionId' = $criterionID,
'insertionText' = $price,
'paramIndex' = 1,
 );

 Variable $price is not empty, but I have empty field instead of 
 price value in my Ad.

 I will appreciate if you can help me to find out what is the 
 trouble with API and why I can't update my Ads.

 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 

Re: API v201406 upgraded urls - is it possible to refer custom parameter set on keyword in ad's url?

2014-07-22 Thread Robert Rodakowski
Thanks for your reply Ray!

I'm not sure, if my question was fully clear... It concerns ads (e.g: 
TextAds), instead of AdGroups. I want to override custom parameters in Ad 
URLs using custom parameters defined in keywords (BiddableAdGroupCriterion).

Cheers!


On Monday, July 21, 2014 9:42:59 PM UTC+2, Ray Tsang (AdWords API Team) 
wrote:

 Robert,

 The custom parameters set in BiddableAdGroupCriterion will override the 
 ones in the AdGroup.  So your scenario should work.

 Thanks,

 Ray

 On Friday, July 18, 2014 12:37:56 PM UTC-4, Robert Rodakowski wrote:

 Source: 
 https://developers.google.com/adwords/api/docs/guides/upgraded-urls#custom_parameters

 In a few words: I would like to use *custom parameters* specified on 
 keywords, in ad's url (the same adgroup). 
 E.g:
 Some keyword has custom parameter defined: 
 *external_id = 123*I want to use the following URL on ad: 
 *http://example.com?extID={_external_id} 
 http://example.com?extID=%7B_external_id%7D*

 In the documentation we can read, that:

 *custom parameters at a lower level entity override the values specified 
 at higher level entities*

 But ads and keywords are at the same level, aren't they? So the question 
 is: whether this will work?

 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.
For more options, visit https://groups.google.com/d/optout.


Re: ReportServiceLogger logs extra stuff with v201406

2014-07-22 Thread Ben Marengo
hi josh,

it seems like that solution will hide all errors forever. i could just pipe 
stderr to stdout for that ;)

i have decided to switch slf4j to bind to log4j instead, because i have 
just noticed that there is a nice 
tutorial... 
https://github.com/googleads/googleads-java-lib#how-do-i-enable-logging

all fixed thanks
ben


On Monday, July 21, 2014 5:13:55 PM UTC+2, Josh Radcliff (AdWords API Team) 
wrote:

 Hi Ben,

 You are seeing messages on stderr because that's the destination used by 
 ConsoleHandler - see the ConsoleHandler javadoc 
 http://docs.oracle.com/javase/7/docs/api/java/util/logging/ConsoleHandler.html
 .

 If you want to change that behavior, the following post on stackoverflow 
 may be helpful:


 http://stackoverflow.com/questions/194165/how-do-i-change-java-logging-console-output-from-std-err-to-std-out

 Cheers,
 Josh, AdWords API Team

 On Monday, July 21, 2014 11:05:51 AM UTC-4, Ben Marengo wrote:

 Hi Josh

 Thanks for your reply. i've done a bit more research into what slf4j is 
 and how it works since my last post. let me clarify the problem :)

 The problem is that those info messages i posted above are logging to 
 stderr instead of stdout

 This is the command i am using to call the jar i compiled
 java -Djava.util.logging.config.file=./src/main/resources/logging.properties 
 -jar ./target/adwordsConnectorV2-account.jar

 I am sure that the messages are of INFO level, because when I set the 
 property java.util.logging.ConsoleHandler.level to ALL, the messages show, 
 but when it is set to SEVERE, they don't show.

 Are you seeing other log messages written to stderr as well?
 no - but i am not logging anything else, or even using those libraries. i 
 have literally taken the DownloadCriteriaReport.java example 
 https://github.com/googleads/googleads-java-lib/blob/master/examples/adwords_axis/src/main/java/adwords/axis/v201406/reporting/DownloadCriteriaReport.java
  from 
 git and adapted it for my customer numbers and fields

 Could you share the configuration file you are using for your SLF4J 
 binding?
 Here is what is in logging.properties:
 # from 
 http://stackoverflow.com/questions/5416769/how-to-configure-the-jdk14-loggings-pattern
 handlers = java.util.logging.ConsoleHandler
 java.util.logging.ConsoleHandler.level = ALL
 java.util.logging.ConsoleHandler.formatter = java.util.logging.
 SimpleFormatter
 java.util.logging.SimpleFormatter.format = [%1$tc] %4$s: %2$s - %5$s %6$s
 %n

 thanks
 ben


 On Monday, July 21, 2014 4:41:45 PM UTC+2, Josh Radcliff (AdWords API 
 Team) wrote:

 Hi Ben,

 Sorry, I didn't notice you had specified the binding in your original 
 post. I see you're using JDK logging. Could you address the last two 
 questions in my post?

 Are you seeing other log messages written to stderr as well?
 Could you share the configuration file you are using for your SLF4J 
 binding?

 Thanks,
 Josh, AdWords API Team

 On Monday, July 21, 2014 10:39:11 AM UTC-4, Josh Radcliff (AdWords API 
 Team) wrote:

 Hi Ben,

 The change to log reporting requests was requested in issue #12 
 https://github.com/googleads/googleads-java-lib/issues/12 and 
 released in 1.28.0 
 https://github.com/googleads/googleads-java-lib/releases/tag/1.28.0. 
 With that change, the library will log successful reporting requests 
 (header and payload) to INFO and failed reporting requests (header and 
 payload) to WARN. Prior to that change, the library would not log 
 reporting 
 requests at all.

 You can control this report-specific logging by setting the log level 
 for *com.google.api.ads.adwords.lib.utils.report_download*. For 
 example, if you are using JDK logging then you could set the following if 
 you only wanted failed requests logged.

 com.google.api.ads.adwords.lib.utils.report_download=WARNING

 As to why this is being logged to stderr, which SLF4J binding do you 
 have on your classpath http://www.slf4j.org/manual.html#swapping? 
 We recently upgraded to SLF4J 1.7.7, which included some changes to 
 how SLF4J handles missing bindings 
 http://www.slf4j.org/manual.html#libraries, although the fact that 
 you're getting messages logged to stderr suggests that you do have a 
 binding present. Are you seeing other log messages written to stderr as 
 well? Could you share the configuration file you are using for your SLF4J 
 binding?

 Thanks,
 Josh Radcliff, AdWords API Team

 On Friday, July 18, 2014 4:47:47 AM UTC-4, Ben Marengo wrote:

 ps. this is also being logged to stderror - which i find quite odd 
 considering it is just info



 On Friday, 18 July 2014 10:42:07 UTC+2, Ben Marengo wrote:

 hi all

 i have just upgraded my account performance report download script to 
 the new api (details of version numbers used below) and it has suddenly 
 started logging a lot more stuff than before (log below).

 does anyone know how to get control of / stop what is being logged?

 log messages are being triggered by the line of code:
 ReportDownloadResponse response = 

Re: [4-4442000004368] Is there a test merchant center account for test mcc?

2014-07-22 Thread Udo Gröbner
Hi Sérgio,

thanks for getting back to me.
I'd like to change cpc bids on shopping product dimensions.
We already have bid updating for ordinary keywords with the mutatejobservice in 
place.
But it turned out, that this approach doesn't work for shopping criteria.
I thought, it might be a good idea to develop against a test mcc (and also 
create an integration test afterwards).

Btw, it would be good, if the MutateJobService documentation mentioned, that it 
doesn't support shopping campaigns.
I just found out via this forum entry: 
https://groups.google.com/d/msg/adwords-api/GatUStOL82c/FoSduDn8OtIJ

Thanks,

Udo
-- 
Udo Groebner
Software developer innovationhub

Tel. +49 851-213728-42
Fax +49 851-213728-88
ugroeb...@crealytics.de

www.crealytics.com
blog.crealytics.com

crealytics GmbH - Semantic PPC Advertising Technology

Brunngasse 1 - 94032 Passau - Germany
Oranienstraße 185 - 10999 Berlin - Germany

Managing directors: Andreas Reiffen, Christof König, Daniel Trost
Register court: Amtsgericht Passau, HRB 7466 

Geschäftsführer: Andreas Reiffen, Christof König, Daniel Trost
Reg.-Gericht: Amtsgericht Passau, HRB 7466

Am 22.07.2014 um 11:35 schrieb adwords-api@googlegroups.com:

 Hi Udo,
 
 There's currently no test account we can share, but you can feel free to 
 create one. Depending on what sort of integration tests you want to run, 
 though, we may need to enable some flags on it.
 
 Could you elaborate a bit on what you're planning to try?
 
 Cheers,
 Sérgio
 
 ---
 Sérgio Gomes
 Developer Relations
 
 Google UK Limited
 Registered Office: Belgrave House, 76 Buckingham Palace Road, London SW1W 9TQ
 Registered in England Number: 3977902
 
 =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
 Also find us on our blog and discussion group:
 http://googleadsdeveloper.blogspot.com/search/label/adwords_api
 https://developers.google.com/adwords/api/community/
 =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
 
 On 07/17/14 15:35:41 ugroeb...@crealytics.de wrote:
 Hi,
 
 we've successfully created a Test-MCC. I'd like to try out some calls for 
 shopping campaigns. When trying to create a shopping campaign, the adwords UI 
 states You can't create a Shopping campaign until you link your AdWords 
 account within a Google Merchant Center account..
 Is there a test merchant center account that I could use? Or can I create one?
 
 Thank you!
 
 -- 
 -- 
 =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
 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.
 For more options, visit https://groups.google.com/d/optout.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
For more options, visit https://groups.google.com/d/optout.


Re: [4-4442000004368] Is there a test merchant center account for test mcc?

2014-07-22 Thread Udo Gröbner
Hi Sérgio,

thank you for the quick reply!
I've created a merchant center in the meantime and connected it to our test mcc.
But now I'm facing the problem that we don't have a real shop ourselves for the 
merchant center (we're basically a service provider).
You have to claim your website for uploading a feed, as far as I can see (which 
makes total sense for production environments).

Is there a way I can upload a product feed to the merchant center in order to 
create a shopping campaign in the test mcc?
Or could you create 3-4 products in the merchant center by hand?
The merchant center is Developer's finest test shop (Account ID 100916991)

Thanks

Udo
-- 
Udo Groebner
Software developer innohub

Tel. +49 851-213728-42
Fax +49 851-213728-88
ugroeb...@crealytics.de

www.crealytics.com
blog.crealytics.com

crealytics GmbH - Semantic PPC Advertising Technology

Brunngasse 1 - 94032 Passau - Germany
Oranienstraße 185 - 10999 Berlin - Germany

Managing directors: Andreas Reiffen, Christof König, Daniel Trost
Register court: Amtsgericht Passau, HRB 7466 

Geschäftsführer: Andreas Reiffen, Christof König, Daniel Trost
Reg.-Gericht: Amtsgericht Passau, HRB 7466

Am 22.07.2014 um 12:06 schrieb adwords-api@googlegroups.com:

 Hi Udo,
 
 Yes, that sounds fine, as long as you don't need actual product data or ads 
 to serve (in which case you'd run into problems, for bad product data, 
 assuming you were using fake data there). It sounds like you're just looking 
 at manipulating shopping campaigns, though, so you should be fine.
 
 I'll see about adding a warning to the MutateJobService documentation, thanks 
 for the suggestion!
 
 Cheers,
 Sérgio
 
 ---
 Sérgio Gomes
 Developer Relations
 
 Google UK Limited
 Registered Office: Belgrave House, 76 Buckingham Palace Road, London SW1W 9TQ
 Registered in England Number: 3977902
 
 =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
 Also find us on our blog and discussion group:
 http://googleadsdeveloper.blogspot.com/search/label/adwords_api
 https://developers.google.com/adwords/api/community/
 =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
 
 On 07/22/14 10:45:54 ugroeb...@crealytics.de wrote:
 Hi Sérgio,
 
 thanks for getting back to me.
 I'd like to change cpc bids on shopping product dimensions.
 We already have bid updating for ordinary keywords with the mutatejobservice 
 in place.
 But it turned out, that this approach doesn't work for shopping criteria.
 I thought, it might be a good idea to develop against a test mcc (and also 
 create an integration test afterwards).
 
 Btw, it would be good, if the MutateJobService documentation mentioned, that 
 it doesn't support shopping campaigns.
 I just found out via this forum entry: 
 https://groups.google.com/d/msg/adwords-api/GatUStOL82c/FoSduDn8OtIJ
 
 Thanks,
 
 Udo
 -- 
 Udo Groebner
 Software developer innovationhub
 
 Tel. +49 851-213728-42
 Fax +49 851-213728-88
 ugroeb...@crealytics.de
 
 www.crealytics.com
 blog.crealytics.com
 
 crealytics GmbH - Semantic PPC Advertising Technology
 
 Brunngasse 1 - 94032 Passau - Germany
 Oranienstraße 185 - 10999 Berlin - Germany
 
 Managing directors: Andreas Reiffen, Christof König, Daniel Trost
 Register court: Amtsgericht Passau, HRB 7466 
 
 Geschäftsführer: Andreas Reiffen, Christof König, Daniel Trost
 Reg.-Gericht: Amtsgericht Passau, HRB 7466
 
 Am 22.07.2014 um 11:35 schrieb adwords-api@googlegroups.com:
 
 Hi Udo,
 
 There's currently no test account we can share, but you can feel free to 
 create one. Depending on what sort of integration tests you want to run, 
 though, we may need to enable some flags on it.
 
 Could you elaborate a bit on what you're planning to try?
 
 Cheers,
 Sérgio
 
 ---
 Sérgio Gomes
 Developer Relations
 
 Google UK Limited
 Registered Office: Belgrave House, 76 Buckingham Palace Road, London SW1W 9TQ
 Registered in England Number: 3977902
 
 =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
 Also find us on our blog and discussion group:
 http://googleadsdeveloper.blogspot.com/search/label/adwords_api
 https://developers.google.com/adwords/api/community/
 =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
 
 On 07/17/14 15:35:41 ugroeb...@crealytics.de wrote:
 Hi,
 
 we've successfully created a Test-MCC. I'd like to try out some calls for 
 shopping campaigns. When trying to create a shopping campaign, the adwords 
 UI states You can't create a Shopping campaign until you link your AdWords 
 account within a Google Merchant Center account..
 Is there a test merchant center account that I could use? Or can I create 
 one?
 
 Thank you!
 
 -- 
 -- 
 =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
 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 

AuthorizationError USER_PERMISSION_DENIED

2014-07-22 Thread Chad Ruff
Hi ,

I have adwords google api asp.net code 
sample googleads-dotnet-lib-master.zip

I have also generated the OAuth2RefreshToken using the OAuthTokenGenerator 
project

i have made changes to the app.config file 
 add key=UserAgent value=GoogleAdwordsTest/
 add key=DeveloperToken value=DeveloperToken/
  add key=ClientCustomerId value=123-456-7890/
  add key=AuthorizationMethod value=OAuth2 /
  add key=Email value=t...@gmail.com/
  add key=Password value=Password/
  add key=OAuth2ClientId 
value=.apps.googleusercontent.com /
 add key=OAuth2ClientSecret value=xx /
 add key=OAuth2Mode value=APPLICATION /

i am running the Google.Api.Adwords.Examples.VB.v201406.GetCampaigns sample 
from 

Adwords.Examples.VB Project v201406--BasicOperations-- GetCampaigns.vb 
class

i have just added these two lines

  Public Sub Run(ByVal user As AdWordsUser)
  ' Get the CampaignService.
  Dim campaignService As CampaignService = user.GetService( _
  AdWordsService.v201406.CampaignService)

  *  Dim config As AdWordsAppConfig = DirectCast(user.Config, 
AdWordsAppConfig)*
*config.ClientCustomerId = 
987-654-4321.ToString().Replace(-, )*
*config.DeveloperToken = DeveloperToken*

  Dim selector As New Selector
  selector.fields = New String() {Id, Name, Status}

  ' Set the selector paging.
  selector.paging = New Paging

  Dim offset As Integer = 0
  Dim pageSize As Integer = 500

  Dim page As New CampaignPage

  Try
Do
  selector.paging.startIndex = offset
  selector.paging.numberResults = pageSize

  ' Get the campaigns.
  page = campaignService.get(selector)

*I am getting  this error [AuthorizationError.USER_PERMISSION_DENIED @ ; 
trigger:'null'] on the above line*

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
For more options, visit https://groups.google.com/d/optout.


Re: How to retrieve Sitelinks urls.

2014-07-22 Thread Emiliano Busiello
Hi Josh, thanks for the documentation link to the queryable fields and the 
code example, this is exactly what I was looking for.

On Monday, July 21, 2014 7:59:17 PM UTC+2, Josh Radcliff (AdWords API Team) 
wrote:

 Hi Emiliano,

 If I'm understanding your previous posts, you are trying to use the Java 
 client library https://github.com/googleads/googleads-java-lib to 
 retrieve the URLs of sitelinks for a specific campaign.

 In order to do this, you'll have to navigate through a few different types 
 of objects. Note that when performing *get* (or *query*) requests, you 
 can find the list of selectable fields with the proper names on our Selector 
 Fields page 
 https://developers.google.com/adwords/api/docs/appendix/selectorfields.

1. Use CampaignFeedService.get 

 https://developers.google.com/adwords/api/docs/reference/v201406/CampaignFeedService#get
  to 
fetch the CampaignFeed 

 https://developers.google.com/adwords/api/docs/reference/v201406/CampaignFeedService.CampaignFeed
  object 
for your campaign by filtering on *CampaignId* equal to your campaign 
ID, *Status* equal to ENABLED, and *PlaceholderTypes 
https://developers.google.com/adwords/api/docs/appendix/placeholders 
 *equal 
to 1. (Note: for simplicity's sake, I'm ignoring the *CampaignFeed*'s 
matchingFunction 

 https://developers.google.com/adwords/api/docs/reference/v201406/CampaignFeedService.CampaignFeed#matchingFunction,
  
which may further limit the *FeedItem*s by *feedItemId*).
2. Use FeedMappingService.get 

 https://developers.google.com/adwords/api/docs/reference/v201406/FeedMappingService#get
  
to fetch the *FeedMappings* for *PlaceholderType *1. Look through the 
returned *FeedMappings* and their attributeFieldMapping 

 https://developers.google.com/adwords/api/docs/reference/v201406/FeedMappingService.AttributeFieldMappings
  
to determine which attribute 

 https://developers.google.com/adwords/api/docs/reference/v201406/FeedService.FeedAttribute
  
of your *Feed* is mapped to field placeholder 2 (for URL 
https://developers.google.com/adwords/api/docs/appendix/placeholders
).
3. Use FeedItemService.get 

 https://developers.google.com/adwords/api/docs/reference/v201406/FeedItemService#get
  
to retrieve all *FeedItems* for the *feedId* found in step 1. On each 
*FeedItem* returned, Inspect the attribute identified in step 2 to get 
the *URL* field value.

 Below is a complete code sample I put together in Java. Please let me know 
 if this does not cover your questions.

 Cheers,
 Josh, AdWords API Team

 import com.google.api.ads.adwords.axis.factory.AdWordsServices;
 import com.google.api.ads.adwords.axis.utils.v201406.SelectorBuilder;
 import com.google.api.ads.adwords.axis.v201406.cm.AttributeFieldMapping;
 import com.google.api.ads.adwords.axis.v201406.cm.CampaignFeed;
 import 
 com.google.api.ads.adwords.axis.v201406.cm.CampaignFeedServiceInterface;
 import com.google.api.ads.adwords.axis.v201406.cm.FeedItem;
 import com.google.api.ads.adwords.axis.v201406.cm.FeedItemAttributeValue;
 import com.google.api.ads.adwords.axis.v201406.cm.FeedItemServiceInterface;
 import com.google.api.ads.adwords.axis.v201406.cm.FeedMapping;
 import 
 com.google.api.ads.adwords.axis.v201406.cm.FeedMappingServiceInterface;
 import com.google.api.ads.adwords.axis.v201406.cm.Selector;
 import com.google.api.ads.adwords.lib.client.AdWordsSession;
 import com.google.api.ads.common.lib.auth.OfflineCredentials;
 import com.google.api.ads.common.lib.auth.OfflineCredentials.Api;
 import com.google.api.client.auth.oauth2.Credential;

 public class GetCampaignSiteLinks {

   public static void main(String[] args) throws Exception {
 Credential oAuth2Credential = new 
 OfflineCredentials.Builder().forApi(Api.ADWORDS).fromFile()
 .build().generateCredential();

 // Construct an AdWordsSession.
 AdWordsSession session =
 new 
 AdWordsSession.Builder().fromFile().withOAuth2Credential(oAuth2Credential).build();

 AdWordsServices adWordsServices = new AdWordsServices();

 Long campaignId = Long.valueOf(INSERT_CAMPAIGN_ID_HERE);
 
 getCampaignSitelinkUrls(campaignId, session, adWordsServices);
   }
   
   private static void getCampaignSitelinkUrls(Long campaignId, 
 AdWordsSession session,
   AdWordsServices adWordsServices) throws Exception {
 // Find the ENABLED CampaignFeed that's mapped to the Campaign for 
 sitelinks (placeholder type
 // of 1).
 CampaignFeedServiceInterface campaignFeedService = 
 adWordsServices.get(session,
 CampaignFeedServiceInterface.class);
 Selector selector = new SelectorBuilder()
 .fields(CampaignId, FeedId)
 .equals(PlaceholderTypes, 1)
 .equals(CampaignId, campaignId.toString())
 .equals(Status, ENABLED)
 .build();
 CampaignFeed campaignFeed = 
 campaignFeedService.get(selector).getEntries(0);
   

Re: Get ad group's target optimization status through API

2014-07-22 Thread Eugene
Any news regarding my question?

On Monday, July 14, 2014 4:41:04 PM UTC+3, Michael Cloonan (AdWords API 
Team) wrote:

 Hello,

 I am trying to confirm that this works the way you suggest.

 Regards,
 Mike, AdWords API Team

 On Friday, July 11, 2014 9:00:09 AM UTC-4, Eugene wrote:

 OK. So there is no setting to retrieve conservative mode, right?
 And does AdGroup.Settings.ExplorerAutoOptimizerSetting actually means DCO 
 aggressive optimization mode? 

 On Friday, July 11, 2014 3:50:20 PM UTC+3, Michael Cloonan (AdWords API 
 Team) wrote:

 Hello,

 This feature is not currently available in the AdWords API.

 Regards,
 Mike, AdWords API Team

 On Thursday, July 10, 2014 11:42:43 AM UTC-4, Eugene wrote:

 Hello.

 I want to get Ad Group's target optimization status through API.

 What's the properties I should retrieve for conservative and aggressive 
 optimization appropriately?



-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
For more options, visit https://groups.google.com/d/optout.


QuotaCheckError.INCOMPLETE_SIGNUP

2014-07-22 Thread Adnan Doric
Hi,

I know this was already mentioned, but I followed all steps and am still 
getting this error:

QuotaCheckError.INCOMPLETE_SIGNUP

1) My MCC Prod account is set up, ToS accepted and billing up, with a 
developer token (Pending approval)
2) My MCC Test account is set up too
3) I use Prod developer token and all other information is from Test 
account (client_id, client_secret and oath2 login)

So I am effectively trying to retrieve information from Test account.

I also contacted the AdWords API Compliance 
https://services.google.com/fb/forms/apicontact/ without answer from 
their side.

Is there anything else I could do to fix this problem ? Do the MCC accounts 
need to be linked in some way ?

Thank you for your help

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
For more options, visit https://groups.google.com/d/optout.


Re: Validation rules for phone numbers

2014-07-22 Thread Danial Klimkin
Hello,


We don't have rules specific to the API. Please check with the general 
AdWords documentation / support for details.


-Danial, AdWords API Team.


On Tuesday, July 22, 2014 3:02:13 AM UTC+4, srohde wrote:

 I am looking for the validation rules that AdWords applies to 
 *phoneNumber* values when creating or mutating MobileAds 
 https://developers.google.com/adwords/api/docs/reference/v201406/AdGroupAdService.MobileAd,
  
 call feed items and location feed items.

 Are such rules published in the AdWords API documentation?

 Does location targeting influence the validation rules (i.e., are 
 country-specific validation rules applied based on targeting?)



-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
For more options, visit https://groups.google.com/d/optout.


Server error 500 while requesting the developer token access.

2014-07-22 Thread Athlan
Howdy,

I have requested for an developer key for Google AdWords. You have sent me 
mail to fill out the form to complete the process:
https://services.google.com/fb/forms/newtoken/

But I still receive Internal server error – 500 while accessing the link.

Please tell me, when the service will be available again.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
For more options, visit https://groups.google.com/d/optout.


Sample Keywords Iterator

2014-07-22 Thread Ori Gal
I want to make an AdWords script that iterates over all of the Ad Groups of 
a campaign and adds all sample keywords which are the keywords based on a 
scan of your website. 

https://lh5.googleusercontent.com/-hEuM1N4HfK0/U85P7Vop5sI/ABo/JezvdHS2Krc/s1600/LE1YI.png
(Sample keyword list shown to the right)

I see the possibility to iterate over Campaigns, AdGroups and Keywords.
Is there a way to iterate over the sample keywords, which are suggested 
based on the scanned URL?

Again, the final goal I'm trying to achieve is - iterate over AdGroups, and 
for each one, add all suggested samples keywords. Is that list also 
reachable through the API?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
For more options, visit https://groups.google.com/d/optout.


Re: Geo performance report CityCriteriaId misguides developers

2014-07-22 Thread Marc Lladó
Hello Ray, 

There is any new update on this issue, we would also like to have numeric 
Location id's on the GEO PERFORMANCE REPORTS.

BR, 

Marc.

Chirag,

 My apologies - we don't yet have an update to this.   Thank you for your 
 patience.

 Thanks,

 Ray

 On Tuesday, February 25, 2014 12:26:23 AM UTC-5, Chirag wrote:

 Hello Paul,

 Any update regarding this?



 On Thursday, December 19, 2013 11:00:59 PM UTC+5:30, Paul Matthews 
 (AdWords API Team) wrote:

 Hi Chirag,

 We're still looking at this issue, but no new information as yet.

 Regards,

 - Paul, AdWords API Team.

 On Tuesday, 3 December 2013 17:27:11 UTC, Chirag wrote:

 Hello Paul,

 Any information ragrding this?


 On Monday, October 28, 2013 4:18:25 PM UTC+5:30, Chirag wrote:

 Hello Paul,

 Thanks for reply.

 When i can expect this to be update?

 On Friday, October 25, 2013 9:23:04 PM UTC+5:30, Paul Matthews 
 (AdWords API Team) wrote:

 Hi Chirag,

 You're correct, though it's listed off as a Integer, it's actually 
 returned as a String. I'll see if we can get this (or a similar) column 
 to 
 be an integer to provide the level of granularity required. I'll update 
 this thread as soon as I have new information.

 Regards,

 - Paul, Adwords Api Team.

 On Tuesday, 22 October 2013 11:35:34 UTC+1, Chirag wrote:

 Hello Team,

 Under Geo performance report CityCriteriaId gives us string for city 
 and not the original criteria id for which city is targeted.

 Lets see if i am going to fetch report for city = Mexico for Indiana 
 targeted.
 But unfortunately i am getting report for city targeted 
 Mexico,Missouri that wrong.

 So how i can identify for city i wants to target is correct.

 In geography list am getting  
 31017200  Mexico  Mexico,Indiana,United States 21148  US City   
 Active41018941   
 Mexico  Mexico,Maine,United States  
 21154US City   Active51020483Mexico  Mexico,Missouri,United 
 States  21157   
 US   City   
   Active61023144Mexico 
 Mexico,New York,United States  21167 
 USCity
 Active



-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
For more options, visit https://groups.google.com/d/optout.


Re: Change from deleted to removed

2014-07-22 Thread Eric Maas
Hi,

We are also having trouble with this.  More specifically, using v201406, if 
we attempt to add a new AdGroup with the same name as a currently removed 
AdGroup, we still get a DUPLICATE_ADGROUP_NAME error.  However, we are 
unable to update the name of the removed AdGroup to something different (or 
change it's status to Paused/Active and then change the name and 
re-delete), as we get the OPERATION_NOT_PERMITTED_FOR_REMOVED_ENTITY.

It seems that if you no longer allow operations on removed AdGroups, then 
there should no longer be a DUPLICATE_ADGROUP_NAME error when attempting to 
add a new AdGroup with it's name?

Thanks,
Eric


On Thursday, July 17, 2014 5:18:14 AM UTC-4, MarcF wrote:

 Hi,
 When an adgroup entity status is set to Removed with v201406, we can not 
 switch status to Enabled or Paused 
 (OPERATION_NOT_PERMITTED_FOR_REMOVED_ENTITY).

 But with the UI it's possible, and if we use 201402, the entity removed, 
 can be restored with the wanted status (Paused,..)

 How can we have the same behavior between UI and the API  v201406 ?

 Thanks,
 Regards


 On Tuesday, July 15, 2014 7:53:39 PM UTC+2, Anash P. Oommen (AdWords API 
 Team) wrote:

 Hi Rodrigo,

 This will also affect API, but this change is versioned. If you use 
 v201402 or earlier, you will get old values (e.g. Deleted), whereas you get 
 the new values (e.g. Removed) when using v201406 or later. So you'd need to 
 fix your code when migrating to v201406.

 Cheers,
 Anash P. Oommen,
 AdWords API Advisor.

 On Tuesday, July 15, 2014 6:22:20 AM UTC-4, Rodrigo Lopez Guerra wrote:

 Hi i just got the msg :
 The Status column values in reports will soon be changed to show 
 Removed instead of Deleted. This change makes it clear that certain 
 items, like campaigns, remain available for future reference.

 If you use spreadsheets or other scripting languages for your downloaded 
 reports, you might need to update them.

 Is this impacting only the reports , or the status returned by the api 
 will change as well ?

 Thanks , 
 Regards



-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
For more options, visit https://groups.google.com/d/optout.


Re: Server error 500 while requesting the developer token access.

2014-07-22 Thread Danial Klimkin
Hello Athlan,


This issue should be resolved now. Thank you for reporting.


-Danial, AdWords API Team.


On Tuesday, July 22, 2014 9:56:38 AM UTC+4, Athlan wrote:

 Howdy,

 I have requested for an developer key for Google AdWords. You have sent me 
 mail to fill out the form to complete the process:
 https://services.google.com/fb/forms/newtoken/

 But I still receive Internal server error – 500 while accessing the link.

 Please tell me, when the service will be available again.


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
For more options, visit https://groups.google.com/d/optout.


Re: NullPointerException in Java-Client-Library

2014-07-22 Thread Stacie Waleyko
Hi,

We saw the exact same error on July 17 when trying to get a new access 
token. Since we have never seen it before, and it happened on the 17th, I 
was wondering if it was possibly triggered by errors from this other 
thread: Failed to refresh access token. { error : invalid_client } on 
perfectly good client 
https://groups.google.com/forum/?fromgroups=#!topic/adwords-api/LuT8mGtYKTY? 
Unfortunately we didn't log any of the HTTP request/responses so I do not 
have anymore information but the error did go away later in the day.

Thanks,

Stacie


On Thursday, July 17, 2014 9:11:56 AM UTC-7, Josh Radcliff (AdWords API 
Team) wrote:

 Hi,

 Thanks for pointing this out. I believe this is the same issue highlighted 
 on our github issues list:

 https://github.com/googleads/googleads-java-lib/issues/19

 We're working on a fix -- please subscribe to notifications on the github 
 issue for updates.

 Thanks,
 Josh, AdWords API Team

 On Thursday, July 17, 2014 5:11:26 AM UTC-4, Alex wrote:

 If the httpRequest is not successfull then the client-library tries to 
 throw a TokenResponseException in 
 com.google.api.client.auth.oauth2.TokenRequest.executeUnparsed(). But 
 during the construction of that exception a NullPointerException is thrown.

 java.lang.NullPointerException


 com.google.api.client.repackaged.com.google.common.base.Preconditions.checkNotNull(Preconditions.java:191)


 com.google.api.client.util.Preconditions.checkNotNull(Preconditions.java:127)


 com.google.api.client.json.jackson2.JacksonFactory.createJsonParser(JacksonFactory.java:96)


 com.google.api.client.json.JsonObjectParser.parseAndClose(JsonObjectParser.java:85)


 com.google.api.client.json.JsonObjectParser.parseAndClose(JsonObjectParser.java:81)


 com.google.api.client.auth.oauth2.TokenResponseException.from(TokenResponseException.java:88)


 com.google.api.client.auth.oauth2.TokenRequest.executeUnparsed(TokenRequest.java:287)


 com.google.api.client.auth.oauth2.TokenRequest.execute(TokenRequest.java:307)


 com.google.api.client.auth.oauth2.Credential.executeRefreshToken(Credential.java:570)


 com.google.api.client.googleapis.auth.oauth2.GoogleCredential.executeRefreshToken(GoogleCredential.java:248)


 com.google.api.client.auth.oauth2.Credential.refreshToken(Credential.java:489)


 com.google.api.ads.common.lib.auth.OAuth2Helper.callRefreshToken(OAuth2Helper.java:70)


 com.google.api.ads.common.lib.auth.OfflineCredentials.generateCredential(OfflineCredentials.java:144)



-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
For more options, visit https://groups.google.com/d/optout.


Any ways to get description of error in runtime

2014-07-22 Thread Dzmitry Zahusta
Hi!

I need to get the human description of the error that I get during 
creation of campaigns. Like as it described on developers api pages.

For example: BUDGET_IN_USE - The budget is associated with at least one 
campaign, and so the budget cannot be removed, BUDGET_PERIOD_NOT_AVAILABLE 
- Customer is not whitelisted for this budget period.

Any ideas how it can be achieved?

Thank you 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.
For more options, visit https://groups.google.com/d/optout.


Geo lookup failed for location Error in Canonical_Name field

2014-07-22 Thread satyendra dewangan
Hi,

I am facing error on geo location adWord API. Followings are the details

I have downloaded latest.csv file from 
https://developers.google.com/adwords/api/docs/appendix/geotargeting
I have uploaded these geo locations data as it is on Dynamic Profile Feed 
as new content. I have also tried to create new profile with latest.csv but 
getting following error.

 Error Geo lookup failed 
http://support.google.com/richmedia/answer/3399874 for location 
Braila,Judetul Braila,Romania referenced in the field labeled 
Canonical_Name for record number 11.
 Error Geo lookup failed 
http://support.google.com/richmedia/answer/3399874 for location 
Botosani,Judetul Botosani,Romania referenced in the field labeled 
Canonical_Name for record number 12.
 Error Geo lookup failed 
http://support.google.com/richmedia/answer/3399874 for location 
Brasov,Judetul Brasov,Romania referenced in the field labeled 
Canonical_Name for record number 13.
 Error Geo lookup failed 
http://support.google.com/richmedia/answer/3399874 for location 
Buzau,Judetul Buzau,Romania referenced in the field labeled 
Canonical_Name for record number 14.
 Error Geo lookup failed 
http://support.google.com/richmedia/answer/3399874 for location 
Korolyov,Moskovskaya oblast,Russia referenced in the field labeled 
Canonical_Name for record number 131.
 Error Geo lookup failed 
http://support.google.com/richmedia/answer/3399874 for location 
Stupino,Moskovskaya oblast,Russia referenced in the field labeled 
Canonical_Name for record number 139.
 Error Geo lookup failed 
http://support.google.com/richmedia/answer/3399874 for location 
Zhukovsky,Moskovskaya oblast,Russia referenced in the field labeled 
Canonical_Name for record number 140.
 Error Geo lookup failed 
http://support.google.com/richmedia/answer/3399874 for location 
Yakutsk,Саха (Якутия) Републиц,Russia referenced in the field labeled 
Canonical_Name for record number 172.
 Error Geo lookup failed 
http://support.google.com/richmedia/answer/3399874 for location 
Engels,Saratov Oblast,Russia referenced in the field labeled 
Canonical_Name for record number 179.
 Error Geo lookup failed 
http://support.google.com/richmedia/answer/3399874 for location 
Resita,Judetul Caras-Severin,Romania referenced in the field labeled 
Canonical_Name for record number 19.
 


Can anyone please help me out to get rid of this error?

Thanks,
Satyendra Dewangan

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
For more options, visit https://groups.google.com/d/optout.


Re: QuotaCheckError.INCOMPLETE_SIGNUP

2014-07-22 Thread Danial Klimkin
Hello Adnan,


Please send us full XML request (with HTTP headers) over *email* (Reply to 
author on the right).


-Danial, AdWords API Team.


On Monday, July 21, 2014 11:10:35 PM UTC+4, Adnan Doric wrote:

 Hi,

 I know this was already mentioned, but I followed all steps and am still 
 getting this error:

 QuotaCheckError.INCOMPLETE_SIGNUP

 1) My MCC Prod account is set up, ToS accepted and billing up, with a 
 developer token (Pending approval)
 2) My MCC Test account is set up too
 3) I use Prod developer token and all other information is from Test 
 account (client_id, client_secret and oath2 login)

 So I am effectively trying to retrieve information from Test account.

 I also contacted the AdWords API Compliance 
 https://services.google.com/fb/forms/apicontact/ without answer from 
 their side.

 Is there anything else I could do to fix this problem ? Do the MCC 
 accounts need to be linked in some way ?

 Thank you for your help


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
For more options, visit https://groups.google.com/d/optout.


Re: Any ways to get description of error in runtime

2014-07-22 Thread Danial Klimkin
Hello Dzmitry,


Descriptions are available in the wsdl files, e.g.:

  https://adwords.google.com/api/adwords/cm/v201406/BudgetService?wsdl

You can parse and extract documentation fields from there.


-Danial, AdWords API Team.


On Tuesday, July 22, 2014 5:50:48 PM UTC+4, Dzmitry Zahusta wrote:

 Hi!

 I need to get the human description of the error that I get during 
 creation of campaigns. Like as it described on developers api pages.

 For example: BUDGET_IN_USE - The budget is associated with at least one 
 campaign, and so the budget cannot be removed, BUDGET_PERIOD_NOT_AVAILABLE 
 - Customer is not whitelisted for this budget period.

 Any ideas how it can be achieved?

 Thank you 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.
For more options, visit https://groups.google.com/d/optout.


Re: NullPointerException in Java-Client-Library

2014-07-22 Thread Josh Radcliff (AdWords API Team)
Hi Stacie,

It's quite possible that the transient *invalid_client* errors were leading 
to the NPEs. I definitely would like to improve the error handling so we do 
not mask the underlying OAuth error with an NPE.

Cheers,
Josh, AdWords API TEam

On Monday, July 21, 2014 3:01:27 PM UTC-4, Stacie Waleyko wrote:

 Hi,

 We saw the exact same error on July 17 when trying to get a new access 
 token. Since we have never seen it before, and it happened on the 17th, I 
 was wondering if it was possibly triggered by errors from this other 
 thread: Failed to refresh access token. { error : invalid_client } 
 on perfectly good client 
 https://groups.google.com/forum/?fromgroups=#!topic/adwords-api/LuT8mGtYKTY?
  
 Unfortunately we didn't log any of the HTTP request/responses so I do not 
 have anymore information but the error did go away later in the day.

 Thanks,

 Stacie


 On Thursday, July 17, 2014 9:11:56 AM UTC-7, Josh Radcliff (AdWords API 
 Team) wrote:

 Hi,

 Thanks for pointing this out. I believe this is the same issue 
 highlighted on our github issues list:

 https://github.com/googleads/googleads-java-lib/issues/19

 We're working on a fix -- please subscribe to notifications on the github 
 issue for updates.

 Thanks,
 Josh, AdWords API Team

 On Thursday, July 17, 2014 5:11:26 AM UTC-4, Alex wrote:

 If the httpRequest is not successfull then the client-library tries to 
 throw a TokenResponseException in 
 com.google.api.client.auth.oauth2.TokenRequest.executeUnparsed(). But 
 during the construction of that exception a NullPointerException is thrown.

 java.lang.NullPointerException


 com.google.api.client.repackaged.com.google.common.base.Preconditions.checkNotNull(Preconditions.java:191)


 com.google.api.client.util.Preconditions.checkNotNull(Preconditions.java:127)


 com.google.api.client.json.jackson2.JacksonFactory.createJsonParser(JacksonFactory.java:96)


 com.google.api.client.json.JsonObjectParser.parseAndClose(JsonObjectParser.java:85)


 com.google.api.client.json.JsonObjectParser.parseAndClose(JsonObjectParser.java:81)


 com.google.api.client.auth.oauth2.TokenResponseException.from(TokenResponseException.java:88)


 com.google.api.client.auth.oauth2.TokenRequest.executeUnparsed(TokenRequest.java:287)


 com.google.api.client.auth.oauth2.TokenRequest.execute(TokenRequest.java:307)


 com.google.api.client.auth.oauth2.Credential.executeRefreshToken(Credential.java:570)


 com.google.api.client.googleapis.auth.oauth2.GoogleCredential.executeRefreshToken(GoogleCredential.java:248)


 com.google.api.client.auth.oauth2.Credential.refreshToken(Credential.java:489)


 com.google.api.ads.common.lib.auth.OAuth2Helper.callRefreshToken(OAuth2Helper.java:70)


 com.google.api.ads.common.lib.auth.OfflineCredentials.generateCredential(OfflineCredentials.java:144)



-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
For more options, visit https://groups.google.com/d/optout.


Re: AuthorizationError USER_PERMISSION_DENIED

2014-07-22 Thread Chad Ruff
Hi,

From the below Code i have removed the ClientCustomerId from App.config

*Now it works and does not give any error *
*but i don't get any campaign  records for my clients *

Now i am just assigning the clientCustomerID  as stated below

  *  Dim config As AdWordsAppConfig = DirectCast(user.Config, 
AdWordsAppConfig)*
*config.ClientCustomerId = 
987-654-4321.ToString().Replace(-, )*
*config.DeveloperToken = DeveloperToken*

*here i am just assigning the client's CustomerID but it is returning me 
zero records*

*but actually campaigns do exist for this client*

*Can you tell me what i am doing wrong *

*or am i missing anything*

On Tuesday, July 22, 2014 4:32:46 PM UTC+5:30, Chad Ruff wrote:

 Hi ,

 I have adwords google api asp.net code 
 sample googleads-dotnet-lib-master.zip

 I have also generated the OAuth2RefreshToken using the OAuthTokenGenerator 
 project

 i have made changes to the app.config file 
  add key=UserAgent value=GoogleAdwordsTest/
  add key=DeveloperToken value=DeveloperToken/
   add key=ClientCustomerId value=123-456-7890/
   add key=AuthorizationMethod value=OAuth2 /
   add key=Email value=t...@gmail.com/
   add key=Password value=Password/
   add key=OAuth2ClientId value=
 .apps.googleusercontent.com /
  add key=OAuth2ClientSecret value=xx /
  add key=OAuth2Mode value=APPLICATION /

 i am running the Google.Api.Adwords.Examples.VB.v201406.GetCampaigns 
 sample from 

 Adwords.Examples.VB Project v201406--BasicOperations-- GetCampaigns.vb 
 class

 i have just added these two lines

   Public Sub Run(ByVal user As AdWordsUser)
   ' Get the CampaignService.
   Dim campaignService As CampaignService = user.GetService( _
   AdWordsService.v201406.CampaignService)

   *  Dim config As AdWordsAppConfig = DirectCast(user.Config, 
 AdWordsAppConfig)*
 *config.ClientCustomerId = 
 987-654-4321.ToString().Replace(-, )*
 *config.DeveloperToken = DeveloperToken*

   Dim selector As New Selector
   selector.fields = New String() {Id, Name, Status}

   ' Set the selector paging.
   selector.paging = New Paging

   Dim offset As Integer = 0
   Dim pageSize As Integer = 500

   Dim page As New CampaignPage

   Try
 Do
   selector.paging.startIndex = offset
   selector.paging.numberResults = pageSize

   ' Get the campaigns.
   page = campaignService.get(selector)

 *I am getting  this error [AuthorizationError.USER_PERMISSION_DENIED @ ; 
 trigger:'null'] on the above line*



-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
For more options, visit https://groups.google.com/d/optout.


Re: Unable to get Adgroup Mobile Bid Adjustment using Adwords API

2014-07-22 Thread Danial Klimkin
Hi Nenad,


Glad to see the issue was resolved. I'll check with the PHP library owner 
to see if it can be improved.


-Danial, AdWords API Team.


On Monday, July 21, 2014 7:21:32 PM UTC+4, Nesha wrote:

 Danial,

 with your help i have resolved this issue.

 When i looked better in response XML i found that each adgroup have 3 
 entries, and i was looking just for HighEndMobile (ID = 3001)

 entries
   campaignId35768944/campaignId
   adGroupId977693464/adGroupId
   criterion xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; 
 xsi:type=Platform
 id3/id
 typePLATFORM/type
 Criterion.TypePlatform/Criterion.Type
   /criterion
 /entries
 entries
   campaignId35768944/campaignId
   adGroupId977693464/adGroupId
   criterion xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; 
 xsi:type=Platform
 id30001/id
 typePLATFORM/type
 Criterion.TypePlatform/Criterion.Type
   /criterion
   bidModifier0.0/bidModifier
 /entries
 entries
   campaignId35768944/campaignId
   adGroupId977693464/adGroupId
   criterion xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; 
 xsi:type=Platform
 id30002/id
 typePLATFORM/type
 Criterion.TypePlatform/Criterion.Type
   /criterion 

 /entries

 So i have returned 0.0 and in AdWords Editor that is -100%
 I have used this formula to translate API values to those from AdWords 
 Editor

 $value = - (1 - round($modifier-bidModifier, 2)) * 100;

 // possible values for bid modifier (adwords editor = API value)
 -10% = 0.9
 -90% = 0.1
 -100% = 0
 100% = 2
 200% = 3
 300% = 4 

 Basically i think that this issue happened because in official PHP AdWords 
 API located here:

 https://github.com/googleads/googleads-php-lib/blob/master/examples/AdWords/v201406/AdvancedOperations/GetAdGroupBidModifiers.php

 There is bad condition 

 $value = 'none';
 if (!empty($modifier-bidModifier)) {
$value = $modifier-bidModifier;
 }
 There shoud be used is_numeric instead of !empty, since 0.0 looks like empty, 
 but it's actually -100%, and that should be treated as well. Small issue but 
 it took me in wrong direction.

 Hopefully now everything should be ok.

 Thanks again for your help. 


 On Friday, July 18, 2014 11:05:40 AM UTC+2, Nesha wrote:

 We are using 3 different tools to get Adwords data: 
 - AdWords Editor
 - AdWords Web Site
 - AdWords API (PHP version)

 And there is an issue to get Mobile Bid Adjustment using API or Web 
 Site.

 In AdWords Editor here is sample adgroup with value -100%


 https://lh5.googleusercontent.com/-lJiL3JH4LQY/U8jirL2ML5I/IE0/Loo-076p1LY/s1600/bid.jpg


 Now with Adwords API I am trying to fetch that info using 
 AdGroupBidModifierService with latest available API (v201406)

 https://developers.google.com/adwords/api/docs/guides/adgroup-bid-modifiers

 Here is API response for adgroup with Mobile Bid Adjustment = -100%

 AdGroupBidModifier Object
 (
 [campaignId] = 35768944
 [adGroupId] = 977693464
 [criterion] = Platform Object
 (
 [platformName] = 
 [id] = 3
 [type] = PLATFORM
 [CriterionType] = Platform
 [_parameterMap:Criterion:private] = Array
 (
 [Criterion.Type] = CriterionType
 )

 )

 [bidModifier] = 
 [bidModifierSource] = 
 )

 As you can see, there is no -100% value for bidModifier that I have in 
 AdWords Editor.
 How i can get this adgroup Mobile Bid Adjustment value using API ?
 I am not sure is this available via API at the moment.

 Thanks,
 Nenad Milosavljevic



-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
For more options, visit https://groups.google.com/d/optout.


v201406 - service account not working (v201402 does)

2014-07-22 Thread Justin Coon
I have a test account and service account working for v201402, but when i 
update to the v201406 client libraries, I get 
Failed to get access token for service account.\n{\n  \error\ : 
\access_denied\,\n  \error_description\ : \Requested client not 
authorized.\\n}

Any idea why the service account would not work with the new version of API?

Thanks
Justin

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
For more options, visit https://groups.google.com/d/optout.


Re: Reduced results for TargetingIdeaService when migrated from v201309 to v201402

2014-07-22 Thread Josh Radcliff (AdWords API Team)
Hi Shashank,

Good suggestion on the migration guide. I will work on adding a note on the 
change in behavior there once I have the full story of what exactly changed.

Regarding some of the German and Spanish words that still return results 
for English, that is probably happening because English speakers actually 
searched for those terms as well, although it looks like the volume is 
relatively low.

Cheers,
Josh, AdWords API Team

On Monday, July 21, 2014 6:58:00 PM UTC-4, Shashank Pedamallu wrote:

 Hi Josh,

 Thanks again for the update. I appreciate your timely responses and 
 updates. If I'm permitted to suggest, could you notify this change in the 
 Migration Guide to v201402?

 Also, this does not explain why I get result for certain words like 
 Müller, ümbrella,café when I select language as English.

 Thanks,
 Shashank


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
For more options, visit https://groups.google.com/d/optout.


How to Handle file upload to google drive at server side only?

2014-07-22 Thread testpluginsandapi


We are trying to upload a document from Java to Google drive. Sample 
example given in google API doc provides authorization URL from where we 
get a token. 
After passing that token on console we able to upload file to Drive.  We 
want to skip a step where we need to access URL  then pass token 
explicitly.

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.
For more options, visit https://groups.google.com/d/optout.


Re: [PHP] Getting a non-MCC account Customer ID with v201402

2014-07-22 Thread Ray Tsang (AdWords API Team)
Stephen,

Please send the full request/response XML in private, and also ensure that 
the client customer ID is set properly, i.e., 
$user-SetClientCustomerId(...) 
http://googleads.github.io/googleads-php-lib/AdWords/.

Thanks,

Ray

On Monday, July 21, 2014 6:47:57 PM UTC-4, Stephen Yeargin wrote:

 We recently successfully converted to v201402 (right at the deadline) and 
 are using the PHP SDK. One non-documented change that appears to have 
 broken with this release is the ability to call:

 $customerService = $this-GetService('CustomerService');
 $return = $customerService-get();

 Where $this is an authenticated AdsUser instance and $return would contain 
 an object that contained descriptiveName and customerId. I confirmed this 
 worked with v201309. When I used v201402, it returns:

 AuthError.CLIENT_CUSTOMER_ID_IS_REQUIRED

 Which, incidentally, is exactly why I'm trying to access the 
 CustomerService endpoint -- in order to get the CustomerId to store with 
 subsequent requests. :)

 - Stephen


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
For more options, visit https://groups.google.com/d/optout.


Re: API v201406 upgraded urls - is it possible to refer custom parameter set on keyword in ad's url?

2014-07-22 Thread Ray Tsang (AdWords API Team)
Robert,

That sounds right as well.  Please refer to this table 
https://developers.google.com/adwords/api/docs/guides/upgraded-urls#whats_changing.
 
It's ordered by level, highest level on the top.

Thanks,

Ray

On Tuesday, July 22, 2014 3:28:36 AM UTC-4, Robert Rodakowski wrote:

 Thanks for your reply Ray!

 I'm not sure, if my question was fully clear... It concerns ads (e.g: 
 TextAds), instead of AdGroups. I want to override custom parameters in Ad 
 URLs using custom parameters defined in keywords (BiddableAdGroupCriterion).

 Cheers!


 On Monday, July 21, 2014 9:42:59 PM UTC+2, Ray Tsang (AdWords API Team) 
 wrote:

 Robert,

 The custom parameters set in BiddableAdGroupCriterion will override the 
 ones in the AdGroup.  So your scenario should work.

 Thanks,

 Ray

 On Friday, July 18, 2014 12:37:56 PM UTC-4, Robert Rodakowski wrote:

 Source: 
 https://developers.google.com/adwords/api/docs/guides/upgraded-urls#custom_parameters

 In a few words: I would like to use *custom parameters* specified on 
 keywords, in ad's url (the same adgroup). 
 E.g:
 Some keyword has custom parameter defined: 
 *external_id = 123*I want to use the following URL on ad: 
 *http://example.com?extID={_external_id} 
 http://example.com?extID=%7B_external_id%7D*

 In the documentation we can read, that:

 *custom parameters at a lower level entity override the values specified 
 at higher level entities*

 But ads and keywords are at the same level, aren't they? So the question 
 is: whether this will work?

 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.
For more options, visit https://groups.google.com/d/optout.


Re: Geo performance report CityCriteriaId misguides developers

2014-07-22 Thread Ray Tsang (AdWords API Team)
Marc,

I won't be able to comment on roadmaps and/or features at the moment.

Thanks,

Ray

On Monday, July 21, 2014 12:26:20 PM UTC-4, Marc Lladó wrote:

 Hello Ray, 

 There is any new update on this issue, we would also like to have numeric 
 Location id's on the GEO PERFORMANCE REPORTS.

 BR, 

 Marc.

 Chirag,

 My apologies - we don't yet have an update to this.   Thank you for your 
 patience.

 Thanks,

 Ray

 On Tuesday, February 25, 2014 12:26:23 AM UTC-5, Chirag wrote:

 Hello Paul,

 Any update regarding this?



 On Thursday, December 19, 2013 11:00:59 PM UTC+5:30, Paul Matthews 
 (AdWords API Team) wrote:

 Hi Chirag,

 We're still looking at this issue, but no new information as yet.

 Regards,

 - Paul, AdWords API Team.

 On Tuesday, 3 December 2013 17:27:11 UTC, Chirag wrote:

 Hello Paul,

 Any information ragrding this?


 On Monday, October 28, 2013 4:18:25 PM UTC+5:30, Chirag wrote:

 Hello Paul,

 Thanks for reply.

 When i can expect this to be update?

 On Friday, October 25, 2013 9:23:04 PM UTC+5:30, Paul Matthews 
 (AdWords API Team) wrote:

 Hi Chirag,

 You're correct, though it's listed off as a Integer, it's actually 
 returned as a String. I'll see if we can get this (or a similar) column 
 to 
 be an integer to provide the level of granularity required. I'll update 
 this thread as soon as I have new information.

 Regards,

 - Paul, Adwords Api Team.

 On Tuesday, 22 October 2013 11:35:34 UTC+1, Chirag wrote:

 Hello Team,

 Under Geo performance report CityCriteriaId gives us string for 
 city and not the original criteria id for which city is targeted.

 Lets see if i am going to fetch report for city = Mexico for 
 Indiana targeted.
 But unfortunately i am getting report for city targeted 
 Mexico,Missouri that wrong.

 So how i can identify for city i wants to target is correct.

 In geography list am getting  
 31017200  Mexico  Mexico,Indiana,United States 21148  US City   
 Active41018941   
 Mexico  Mexico,Maine,United States  
 21154US City   Active51020483Mexico  Mexico,Missouri,United 
 States  21157   
 US   City   
   Active61023144Mexico 
 Mexico,New York,United States  21167 
 USCity
 Active



-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
For more options, visit https://groups.google.com/d/optout.


Re: AuthorizationError USER_PERMISSION_DENIED

2014-07-22 Thread Josh Radcliff (AdWords API Team)
Hi,

Could you provide the following information?

1. Were you logged in under a) an MCC account or b) an AdWords account when 
you generated the refresh token in your config?
2. Is the client customer ID you are using in the code snippet below for an 
MCC account or an AdWords account?

I ask these questions because if you do not specify a client customer ID in 
your request then AdWords will infer the customer ID to use from the 
credentials on the request. Therefore, if the credentials are from an MCC 
account then you'll get back zero campaigns because an MCC account does not 
have any campaigns of its own.

Thanks,
Josh, AdWords API Team

On Tuesday, July 22, 2014 11:13:48 AM UTC-4, Chad Ruff wrote:

 Hi,

 From the below Code i have removed the ClientCustomerId from App.config

 *Now it works and does not give any error *
 *but i don't get any campaign  records for my clients *

 Now i am just assigning the clientCustomerID  as stated below

   *  Dim config As AdWordsAppConfig = DirectCast(user.Config, 
 AdWordsAppConfig)*
 *config.ClientCustomerId = 
 987-654-4321.ToString().Replace(-, )*
 *config.DeveloperToken = DeveloperToken*

 *here i am just assigning the client's CustomerID but it is returning me 
 zero records*

 *but actually campaigns do exist for this client*

 *Can you tell me what i am doing wrong *

 *or am i missing anything*




-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
For more options, visit https://groups.google.com/d/optout.


Correct way to change ads so that UI change history makes sense

2014-07-22 Thread Martin
Hi, I am making changes to our adds sending a REMOVE operator followed by 
an ADD operator in a batch of operations using the mutate_job_service.
If I am just editing one ad per adgroup this is shown nicely in the UI 
Change History as Text ad changed.
However, if I'm changing two ads, it shows up as a deletion, an addition 
and a change.
How should I do to get a coherent change history? I have tried switching 
the order of the operations and the result is the same.

Thank you,
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.
For more options, visit https://groups.google.com/d/optout.


Re: Setting the CPC bid on product in shopping campaign.

2014-07-22 Thread Chuck Reeves
I was trying to push the partition tree using MutateJobService.  I sent 
2,500 partitions to be added and started polling for a response.  The stats 
for the job showed as status of PROCESSING and  at 60 percent complete. 
 After 20 min, no change in the status or progress.  I then decided to try 
again with another ad group.  The 2nd attempt I got a status of PROCESSING 
with no percentage gain.  Now when I try to view those ad groups in the UI, 
I keep getting a red banner stating: 

There was an error with your operation. If you were trying to make a 
change, it may not have saved. 
Please refresh this page to try again. 
If the error continues, log out of your AdWords account, then log in again 
and return to this page. 

Aside from starting the campaign and groups over again, I cannot dismiss 
this error, or get the jobs I sent to complete. Is there anything that I 
can do to resolve this error?  

Is there another way for me to send the tree?

On Monday, July 21, 2014 10:44:00 AM UTC-4, Josh Radcliff (AdWords API 
Team) wrote:

 Hi Greg,

 Thanks for all of the feedback - the details you've provided are extremely 
 helpful in explaining why the mutate limit is problematic for you. I've 
 passed this information on to the Shopping team and will let you know as 
 soon as I have any news.

 Thanks,
 Josh, AdWords API Team

 On Friday, July 18, 2014 4:12:01 PM UTC-4, GregT wrote:

 Hi, Josh.

 Thanks much for looking into it and for the good news -- that will be 
 extremely helpful for us, and will solve a large part of the issue on an 
 ongoing basis.  I do, unfortunately, think that the limitation on ADD 
 operations is still going to be an issue.  On a shorter term basis, we have 
 some clients with over 1 million products in their PLA campaigns in a 
 single AdWords account.  Converting clients like them over to shopping 
 campaigns right now would take 500,000 calls to the 
 AdGroupCriterionService.  I'm sure you have a much better idea of the rate 
 limiting effect on this, but I wouldn't be surprised if it took weeks to 
 make those 500,000 calls [each with very, very little data in them] for 
 clients like those.  On an ongoing basis, we don't really need to change 
 the partitions after creation (except to change bids), but we would have 
 new ad groups ( their partitions) created as new products are added to our 
 clients' merchant center accounts, which happens pretty frequently.  Most 
 of the time, there won't be a ton of new products at any given time, but 
 there are occasions where we'll need to add multiple thousands of new 
 products for a client, and this will probably be an issue then as well.

 Given that an entire tree does not have to be created in a single ADD 
 call like I had thought (but just needs to be valid), that seems to me to 
 make it even more reasonable to change the limit from an ad group level one 
 to a ProductPartition one?  I.e. instead of adding product partitions in 2 
 ad groups being the limit, it instead being something like 2,000 or 5,000 
 product partitions in a call, regardless of how many ad groups they happen 
 to be in.  Just a suggestion. :)  Even a relatively low limit by AdWords 
 API standards, like 500, would probably be enough to be able to work around 
 this.

 Thanks again, we appreciate it!
 Greg


 On Friday, July 18, 2014 1:58:59 PM UTC-5, Josh Radcliff (AdWords API 
 Team) wrote:

 Hi,

 David - thanks for clarifying. You are absolutely correct: your mutates 
 simply need to keep the tree in a valid state, but you can send a mutate 
 that only touches a subtree.

 I have some good news - the limit of 2 ad groups per mutate request does 
 *not* apply to *SET* operations anymore. This means that you can mutate 
 more than 2 ad groups in a single call as long as you are updating 
 *existing* BiddableAdGroupCriterion or NegativeAdGroupCriterion 
 objects, e.g., changing their bids. Would that help with your one ad group 
 per product approach, or will you have large, ongoing changes to the 
 population of products as well?

 Thanks,
 Josh, AdWords API Team

 On Thursday, July 17, 2014 4:56:39 AM UTC-4, david wrote:



 On Wednesday, 16 July 2014 15:56:38 UTC+1, GregT wrote:

  (because the API requires you to send the entire product partition 
 tree for an ad group in one call, and an ad group's partition tree could 
 be 
 up to 20,000 criterion), 


 Slightly OT but just in case it helps, the above isn't quite the case. 
 You just need to make sure you have a valid tree after each call.
 So our first call creates a SUBDIVISION + single UNIT child for the 
 other case. We take a note of the parentId.
 Then we add UNITs in call batches of 2000 to that parent. You can also 
 update UNIT (eg. change the maxCpc) with a mutate applying to a single 
 child.
 See Matt Scales post here:

 https://groups.google.com/forum/#!msg/adwords-api/BbbsW1MSobw/7GnXo5wP2F8J



-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and 

Re: v201406 - service account not working (v201402 does)

2014-07-22 Thread Justin Coon
If this can help anyone I figured out what it was - I had to go back to

https://admin.google.com/AdminHome?chromeless=1#OGX:ManageOauthClients

and add a new authorization for the new AdWords API scope - 
*https://www.googleapis.com/auth/adwords*

it used to be - *https://adwords.google.com/api/adwords/*

I wish this was in the migration documentation somewhere - I apologize if 
its not, but I didnt see it anywhere



On Tuesday, July 22, 2014 11:46:49 AM UTC-5, Justin Coon wrote:

 I have a test account and service account working for v201402, but when i 
 update to the v201406 client libraries, I get 
 Failed to get access token for service account.\n{\n  \error\ : 
 \access_denied\,\n  \error_description\ : \Requested client not 
 authorized.\\n}

 Any idea why the service account would not work with the new version of 
 API?

 Thanks
 Justin


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
For more options, visit https://groups.google.com/d/optout.


Re: v201406 - service account not working (v201402 does)

2014-07-22 Thread Justin Coon
*Correction - I apologize if it *IS *in the migration documentation (but 
I'm fairly certain it is not)...

On Tuesday, July 22, 2014 9:35:34 PM UTC-5, Justin Coon wrote:

 If this can help anyone I figured out what it was - I had to go back to

 https://admin.google.com/AdminHome?chromeless=1#OGX:ManageOauthClients

 and add a new authorization for the new AdWords API scope - 
 *https://www.googleapis.com/auth/adwords 
 https://www.googleapis.com/auth/adwords*

 it used to be - *https://adwords.google.com/api/adwords/ 
 https://adwords.google.com/api/adwords/*

 I wish this was in the migration documentation somewhere - I apologize if 
 its not, but I didnt see it anywhere



 On Tuesday, July 22, 2014 11:46:49 AM UTC-5, Justin Coon wrote:

 I have a test account and service account working for v201402, but when i 
 update to the v201406 client libraries, I get 
 Failed to get access token for service account.\n{\n  \error\ : 
 \access_denied\,\n  \error_description\ : \Requested client not 
 authorized.\\n}

 Any idea why the service account would not work with the new version of 
 API?

 Thanks
 Justin



-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
For more options, visit https://groups.google.com/d/optout.