Re: Auth Caching on Java Client Library v201109

2012-08-15 Thread stepanian
Oliver, 

Thank you very much for responding to me and attaching the link. 

I looked at the thread thoroughly. I'm not 100% sure if the answer to my 
first question is yes or no. 

Tozor said that "from looking at the stack trace, it looks like the Adwords 
client library is actually reloading the auth token". So, the answer to my 
first question is yes - the AdWordsUser is caching the token. However, 
later he says "we are caching the AdwordsUser instance in our code (which 
contains the token)". So, it seems like, if he has to cache the AdWordsUser 
instance, then it is not done automatically by the library, so the answer 
to my first question is no. 

Assuming the answer to my first question is no, my operation is looping 
through many accounts and running operations on them. Each operation must 
create a new AdWordsUser because the AdWordsUser instance is tied to an 
account. Is that also the case for the AuthToken? If each AuthToken is tied 
to an account, then running operations on multiple accounts, each with its 
own AuthToken shouldn't generate the CAPTCHA error, right? 

Finally, if I was able to create an AdWordsUser instance for each of the 
accounts and store them for a week, can I just reuse them? Should I 
serialize the objects to disk? How are others storing the AdWordsUser 
objects?

On Tuesday, August 14, 2012 11:09:12 PM UTC-7, Oliver wrote:
>
> This recent thread discusses what needs to be cached:
>
>
> https://groups.google.com/forum/?fromgroups#!topic/adwords-api/xr8pRG8NkF8[1-25]
>
> Oliver
>
>
> On Wednesday, August 15, 2012 1:12:45 AM UTC+1, stepanian wrote:
>>
>> When I create an AdWordsUser object using the Java client 
>> library v201109, does it cache the authentication token behind the scenes? 
>>
>> If no, do I need to account for it manually? How?
>>
>> If yes, does it also do it when creating AdWordsUser objects in separate 
>> threads (processes)? 
>>
>> Recently I have been getting the "CAPCHA Required" message when running 
>> automatic operations and I am suspecting that I am not properly caching the 
>> authentication token. 
>>
>> If running operations in separate threads, how do I make sure that the 
>> authentication token is cached? 
>>
>> Thanks.
>>
>

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en


Re: Auth Caching on Java Client Library v201109

2012-08-15 Thread stepanian
OK - this is what I got so far - I just need a confirmation that this is 
correct: 

1) It seems like the auth token is associated with a user only not with an 
account (in other words, the client email is tied to the auth token).
2) The AuthToken object can be created from an email and a password. Once 
created, you can use the getAuthToken method on the AuthToken object to get 
a String representation of the auth token. This String can be stored for 
later use.
3) You can associate the string representation of a previously created 
AuthToken with an AdWordsUser instance using the method setAuthToken on the 
AdWordsUser object.

This way, you can keep the auth token string around for multiple uses. 

Assuming this is correct, I have one more question: Currently, when I 
create an AdWordsUser instance, I don't manually associate an auth token 
with it. It somehow happens by itself. When does that happen? If I manually 
attach an auth token to the AdWordsUser instance, does that stop it from 
getting a new one? 

On Wednesday, August 15, 2012 12:53:28 AM UTC-7, stepanian wrote:
>
> Oliver, 
>
> Thank you very much for responding to me and attaching the link. 
>
> I looked at the thread thoroughly. I'm not 100% sure if the answer to my 
> first question is yes or no. 
>
> Tozor said that "from looking at the stack trace, it looks like the 
> Adwords client library is actually reloading the auth token". So, the 
> answer to my first question is yes - the AdWordsUser is caching the token. 
> However, later he says "we are caching the AdwordsUser instance in our code 
> (which contains the token)". So, it seems like, if he has to cache the 
> AdWordsUser instance, then it is not done automatically by the library, so 
> the answer to my first question is no. 
>
> Assuming the answer to my first question is no, my operation is looping 
> through many accounts and running operations on them. Each operation must 
> create a new AdWordsUser because the AdWordsUser instance is tied to an 
> account. Is that also the case for the AuthToken? If each AuthToken is tied 
> to an account, then running operations on multiple accounts, each with its 
> own AuthToken shouldn't generate the CAPTCHA error, right? 
>
> Finally, if I was able to create an AdWordsUser instance for each of the 
> accounts and store them for a week, can I just reuse them? Should I 
> serialize the objects to disk? How are others storing the AdWordsUser 
> objects?
>
> On Tuesday, August 14, 2012 11:09:12 PM UTC-7, Oliver wrote:
>>
>> This recent thread discusses what needs to be cached:
>>
>>
>> https://groups.google.com/forum/?fromgroups#!topic/adwords-api/xr8pRG8NkF8[1-25]
>>
>> Oliver
>>
>>
>> On Wednesday, August 15, 2012 1:12:45 AM UTC+1, stepanian wrote:
>>>
>>> When I create an AdWordsUser object using the Java client 
>>> library v201109, does it cache the authentication token behind the scenes? 
>>>
>>> If no, do I need to account for it manually? How?
>>>
>>> If yes, does it also do it when creating AdWordsUser objects in separate 
>>> threads (processes)? 
>>>
>>> Recently I have been getting the "CAPCHA Required" message when running 
>>> automatic operations and I am suspecting that I am not properly caching the 
>>> authentication token. 
>>>
>>> If running operations in separate threads, how do I make sure that the 
>>> authentication token is cached? 
>>>
>>> Thanks.
>>>
>>

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en


Currencies and TimeZones in ConstantService

2012-08-15 Thread Rob
Hi,

Thanks for the ConstantService - it's a great addition.  Is there any 
chance of adding time zone and currency codes to it as well please?

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en


Re: Currencies and TimeZones in ConstantService

2012-08-15 Thread Rob
Of course I meant the ConstantDataService :)

On Wednesday, August 15, 2012 9:55:45 AM UTC+1, Rob wrote:
>
> Hi,
>
> Thanks for the ConstantService - it's a great addition.  Is there any 
> chance of adding time zone and currency codes to it as well please?
>

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en


Re: Timezone reference table updated

2012-08-15 Thread Oliver
Brandon, are you saying you only just started getting inaccurate results 
for timezone?  Has it not always been like this?

On Tuesday, August 14, 2012 9:31:51 PM UTC+1, Brandon Parise wrote:
>
> The timezone is not being shifted based upon the observance of daylight 
> savings time.
>
> I pulled a report for today:
>
> 103526900,2012-08-14,1.0,4,1,7.59,9,(GMT-05:00) Eastern Time
>
> The current offset should be GMT-04:00
>
> B
>
> On Wednesday, February 29, 2012 6:05:16 PM UTC-5, Eric Koleda wrote:
>>
>> Hi All,
>>
>> We've recently updated the timezone reference table in our documentation:
>>
>> http://code.google.com/apis/adwords/docs/appendix/timezones.html
>>
>> This table now includes the POSIX name of the timezone used by the 
>> CreateAccountService as well as the display name returned in the 
>> AccountTimeZoneId file of reports.  For example, the timezone 
>> "America/New_York" is displayed as "(GMT-05:00) Eastern Time" in reports. 
>>  The offset displayed in the parenthesis will change based upon 
>> the observance of daylight savings time, etc.
>>
>> We are still working to making it simpler to retrieve the timezone of an 
>> account, but for now downloading it in a report is the only method 
>> available.
>>
>> Best,
>> - Eric Koleda, AdWords API Team
>>
>

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en


Account Names

2012-08-15 Thread Rob
Hi,

I'm trying to find the name of a non-MCC account, but the CustomerService 
is returning an empty descriptiveName.  The descriptiveName is listed as 
optioanl, so that makes sense, but it means there's no name available for 
this account.

I've used the ManagedCustomerService instead (it seems to work even for 
non-MCC logins) to expose the companyName and use that but it doesn't feel 
like the best solution for a single, non-MCC account.

Is there another way to get account names reliably?  Could the companyName 
(and login?) field be added to the CustomerService for some consistency 
between the two services?

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en


Re: Campaigns not being returned in API call but appear when doing report from UI

2012-08-15 Thread Danial Klimkin
Hello gabe,


It is hard to tell from the information provided. Please send me UI and API 
reports over email in full so I could compare and find the reason. Also, 
let me know the account CID and the exact definition used for the API query.


-Danial, AdWords API Team.


On Monday, August 13, 2012 12:33:22 AM UTC+4, gabe wrote:
>
> I have attached sq.png which shows the report definition that returns more 
> campaigns than the code in sq.php.  What is the reason for this?  
>
> If you need more information, I can provide you with a list of campaigns 
> that are returned by the report (both unpaused and paused) but not from the 
> php call.
>

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en


Re: Change History Data

2012-08-15 Thread Danial Klimkin
Hello Chirag,


This server was designed to help synchronizing the local database with the 
server-side state. It is not possible to retrieve the exact change - just 
the fact the object was changed. To identify change you need to compare the 
new values to the old ones saved locally.


-Danial, AdWords API Team.


On Sunday, August 12, 2012 8:22:21 PM UTC+4, Chirag wrote:
>
> Hello Dmitriy,
>  
> I didn't get you properly, you mean to say that i will get only that 
> keyword or Ad id whose status has been changed.let me explain you with the 
> example
>
> In my change history data i am getting total 60 keywords changed, and out 
> of that 57 keywords status were changed and for 3 keywords max cpc was 
> increased  and the customer sync service will give me Ad Id in changedAds 
> field and Keyword Id in changedCriteria field  now my question is that how 
> will i know that for 57 keyword Status was changed and for 3 keywords Max 
> CPC was changed.
>
> I want to know that what criteria is changed in my ad or keyword through 
> adwords api. 
>
> Thanks
> Chirag
>
> On Sunday, August 12, 2012 12:50:37 AM UTC+5:30, Dmitriy wrote:
>>
>> Hi Chirag.
>>
>> Only Status can be changed in particular keyword or any Ad. If you change 
>> some else, there will be new Criteria or Ad having other Id.
>>
>> Пʼятниця, 10 серпня 2012 р. 16:08:55 UTC+3 користувач Chirag написав:
>>>
>>> Hello All,
>>>  
>>> I have implemented the change history data for my campaigns but this 
>>> gives me the data like changedAds, changedCriteria which includes the 
>>> relevant Ad Id and keyword Id but i want to to know that which criteria has 
>>> been changed corresponding to that  Ad Id and keyword Id.
>>> Is there any way to get exactly what has been changed in particular 
>>> keyword or any Ad? 
>>>
>>> Thanks
>>> Chirag
>>>
>>

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en


Re: How to set this parameter when using AWQL?

2012-08-15 Thread Danial Klimkin
Hello Oliver,


Looks like this feature is lacking in the AWQL at the moment. I will log a 
feature request for it.


-Danial, AdWords API Team.


On Wednesday, August 8, 2012 9:40:41 AM UTC+4, Oliver wrote:
>
> What if I want to include zero impressions when using AWQL i.e. I want to 
> do the equivalent of:
>
> reportDefinition.setIncludeZeroImpressions(true);
>
>
> Comparing the code that downloads an adhoc report using ReportDefinition:
>
> http://google-api-adwords-java.googlecode.com/svn/trunk/examples/v201206/DownloadAdHocReport.java
>
> and the code that does the same using AWQL, I can see the only difference 
> is, with AWQL I have no way of doing  setIncludeZeroImpressions(true).
>
> Is there a solution to the above?
>
> Oliver
>
>
>
> On Wednesday, August 8, 2012 3:24:05 AM UTC+1, Anash P. Oommen wrote:
>>
>> Hi Oliver,
>>
>> Try Impressions >= 100 in the query and see if that works for you.
>>
>> Cheers,
>> Anash P. Oommen,
>> AdWords API Advisor.
>>
>> On Tuesday, 7 August 2012 22:46:37 UTC+5:30, Oliver wrote:
>>>
>>> When downloading adhoc reports using AWQL as shown in this example:
>>>
>>>
>>> http://google-api-adwords-java.googlecode.com/svn/trunk/examples/v201206/DownloadAdHocReportWithAwql.java
>>>
>>> how do you set the 'includeZeroImpressions' field? We used to set it on 
>>> the ReportDefinition object before.
>>>
>>> Oliver
>>>
>>

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en


Re: best method for getting customerId in v201109?

2012-08-15 Thread Rob
Hi Kevin,

I've just started using the v201206 ManagedCustomerService and it appears 
to work even for non-MCC logins, showing the customer ID as well as the 
time zone and currency code.

Can you please confirm this is expected behaviour and that we can use the 
new service to get information for all accounts?

On Tuesday, May 15, 2012 3:12:51 PM UTC+1, Kevin Winter wrote:
>
> Hi Ben (and future forum viewers),
>   We discussed this offline.  Because this is an unlinked account (no 
> parent MCC) the ServicedAccountService can't operate on it (it can only 
> "see" accounts with parents).  As a workaround, making an InfoService 
> request for this account (as I mentioned in my message on 2/22) will work.
>
> - Kevin Winter
> AdWords API Team
>
> On Tuesday, May 8, 2012 12:26:53 PM UTC-4, Ben Vincent wrote:
>>
>> Hi Kevin,
>>  
>> Are there still issues with the CustomerID = 0? 
>>  
>> For most my clients, I have no problems and can look up the Customer ID. 
>> But sometimes it comes back as 0. 
>>  
>> For example I just got this response:
>>  
>> http://schemas.xmlsoap.org/soap/envelope/";>
>> 
>> https://adwords.google.com/api/adwords/cm/v201109"; xmlns="
>> https://adwords.google.com/api/adwords/mcm/v201109";>
>> 0004bf88a41487c80aec782b3b94
>> ServicedAccountService
>> get
>> 0
>> 25
>> 0
>> 
>> 
>> 
>> https://adwords.google.com/api/adwords/mcm/v201109"; 
>> xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201109";>
>> 
>>
>> 0false
>> 
>> 
>> 
>> 
>>  
>>  
>> I am trying to run AdHoc reports for clients, for which I need the 
>> customerID. My code checks to see if I have the customer ID in my local DB, 
>> and if not it looks it up. Usually this works, but occasionally it fails. 
>> If I then look up the ID manually by logging into the web interface and 
>> copying the CustomerID, AdHoc reports work fine. 
>>  
>> Any ideas why?
>>  
>> Thanks
>>  
>> Ben
>>  
>>  
>>  
>>  
>>
>> On Thursday, 23 February 2012 16:52:09 UTC, Kevin Winter wrote:
>>
>>> Hi Chris,
>>>   Yes, that should work.  It bases this behavior on the authenticated 
>>> user (which needs to be a non-MCC account).
>>>
>>> - Kevin Winter
>>> AdWords API Team
>>>
>>> On Thursday, February 23, 2012 11:44:15 AM UTC-5, chris h wrote:

 Hi Kevin,
 Should this work with an existing oauth token? Or do I need to get a 
 new token? I'm sure my token was created before you made this change.

>>>

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en


Re: Timezone reference table updated

2012-08-15 Thread Brandon Parise
This is the first time that we pulled AccountTimeZoneId in reports so I am
not sure if this has always been the case. It's creating issues on our end
since at the moment -05:00 is US/Central, not Eastern so our DateTime logic
gets messed up;

$date = new DateTime('2012-07-15 00:00:00 -05:00'); // 2012-07-15 00:00:00
$date->setTimeZone(new DateTimeZone('America/New_York')); // 2012-07-15
01:00:00

Changing TimeZone to EST shifts the time +1 hour due to the incorrect
offset coming down through the reports.

Brandon

On Wed, Aug 15, 2012 at 5:39 AM, Oliver  wrote:

> Brandon, are you saying you only just started getting inaccurate results
> for timezone?  Has it not always been like this?
>
>
> On Tuesday, August 14, 2012 9:31:51 PM UTC+1, Brandon Parise wrote:
>>
>> The timezone is not being shifted based upon the observance of daylight
>> savings time.
>>
>> I pulled a report for today:
>>
>> 103526900,2012-08-14,1.0,4,1,**7.59,9,(GMT-05:00) Eastern Time
>>
>> The current offset should be GMT-04:00
>>
>> B
>>
>> On Wednesday, February 29, 2012 6:05:16 PM UTC-5, Eric Koleda wrote:
>>>
>>> Hi All,
>>>
>>> We've recently updated the timezone reference table in our documentation:
>>>
>>> http://code.google.com/apis/**adwords/docs/appendix/**timezones.html
>>>
>>> This table now includes the POSIX name of the timezone used by the
>>> CreateAccountService as well as the display name returned in the
>>> AccountTimeZoneId file of reports.  For example, the timezone
>>> "America/New_York" is displayed as "(GMT-05:00) Eastern Time" in reports.
>>>  The offset displayed in the parenthesis will change based upon
>>> the observance of daylight savings time, etc.
>>>
>>> We are still working to making it simpler to retrieve the timezone of an
>>> account, but for now downloading it in a report is the only method
>>> available.
>>>
>>> Best,
>>> - Eric Koleda, AdWords API Team
>>>
>>  --
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
> Also find us on our blog and discussion group:
> http://adwordsapi.blogspot.com
> http://groups.google.com/group/adwords-api
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
>
> You received this message because you are subscribed to the Google
> Groups "AdWords API Forum" group.
> To post to this group, send email to adwords-api@googlegroups.com
> To unsubscribe from this group, send email to
> adwords-api+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/adwords-api?hl=en
>

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en


Problem with google adwords .net liblrary example

2012-08-15 Thread atosdo
Good day.
I have a problem with google .net library example.

My App.config - http://pastebin.com/GSjhAJ0t

And my code - http://pastebin.com/KSeSpCRz

I generate authToken with the help of that link - 
https://www.google.com/accounts/ClientLogin?accountType=GOOGLE&Email=em...@gmail.com&Passwd=myPassword&service=adwords&source=FuriousPro-WoWMaker-1

Error: [ AuthenticationError.GOOGLE_ACCOUNT_COOKIE_INVALID @ ]

I am a junior and don't known what will I do, please help.

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en


Re: How to set this parameter when using AWQL?

2012-08-15 Thread Oliver
That's great, thanks.

I guess the question now is, will AWQL work properly without this feature?  
Do I even need this feature for any reason?

Oliver

On Wednesday, August 15, 2012 12:21:40 PM UTC+1, Danial Klimkin wrote:
>
> Hello Oliver,
>
>
> Looks like this feature is lacking in the AWQL at the moment. I will log a 
> feature request for it.
>
>
> -Danial, AdWords API Team.
>
>
> On Wednesday, August 8, 2012 9:40:41 AM UTC+4, Oliver wrote:
>>
>> What if I want to include zero impressions when using AWQL i.e. I want to 
>> do the equivalent of:
>>
>> reportDefinition.setIncludeZeroImpressions(true);
>>
>>
>> Comparing the code that downloads an adhoc report using ReportDefinition:
>>
>> http://google-api-adwords-java.googlecode.com/svn/trunk/examples/v201206/DownloadAdHocReport.java
>>
>> and the code that does the same using AWQL, I can see the only difference 
>> is, with AWQL I have no way of doing  setIncludeZeroImpressions(true).
>>
>> Is there a solution to the above?
>>
>> Oliver
>>
>>
>>
>> On Wednesday, August 8, 2012 3:24:05 AM UTC+1, Anash P. Oommen wrote:
>>>
>>> Hi Oliver,
>>>
>>> Try Impressions >= 100 in the query and see if that works for you.
>>>
>>> Cheers,
>>> Anash P. Oommen,
>>> AdWords API Advisor.
>>>
>>> On Tuesday, 7 August 2012 22:46:37 UTC+5:30, Oliver wrote:

 When downloading adhoc reports using AWQL as shown in this example:


 http://google-api-adwords-java.googlecode.com/svn/trunk/examples/v201206/DownloadAdHocReportWithAwql.java

 how do you set the 'includeZeroImpressions' field? We used to set it on 
 the ReportDefinition object before.

 Oliver

>>>

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en


AdWords Conversion Tracking for Mobile Apps

2012-08-15 Thread bluesky2008
Hi,

I have created a Mobile App conversion using AdWords UI. but I am unable to 
retrieve it using ConversionTrackerService (v201206) , also when I create a 
ConversionTracker of type APPLE_IOS_REMARKETING its status is set to HIDDEN 
by AdWords even if I set it to ENABLED, same issue with 
ANDROID_REMARKETING. I tried with category DEFAULT and REMARKETING.

I am not sure how to create these type of Conversion Trackers.

Please Help!

Thanks

 

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en


Re: Can't compile AdWords API Example File?

2012-08-15 Thread Kevin Winter
Hi James,
  Unfortunately, we don't use maven on Windows, so our ability to continue 
troubleshooting is somewhat limited.  Perhaps a maven mailing 
listmay be able to help?

That said, you aren't required to use maven to work with the new java 
library.  You can also download the tarball labeled "-dependencies" for 
adwords-axis which has the entire library (sans examples) plus all required 
jars.  Add these jars to your classpath and you should be good to go.  You 
will have to manually update (which is why a lot of people prefer maven), 
but it does have the advantage of being simple and quick to get up and 
running (if you aren't already using maven).

- Kevin Winter
AdWords API Team

On Tuesday, August 14, 2012 10:43:08 AM UTC-4, Whistler Media wrote:
>
> Hey,
> I don't think it is a corporate firewall issue because I can get an 
> example to work easily easily on my Linux Mint partition. 
>
>  I tried a basic hello world example which was what I provided snapshots 
> of before and it failed to work on Win 7. It did get further in the process 
> when I turned my personal firewall off on the  Win 7. Has there been in 
> other issues with Maven 2.2.1 on a 64 bit Win 7 machine? 
>
> It does bother me somewhat that the latest Windows operating system 
> mentioned at maven.apache.org is Win XP and the installation for Maven 
> 3.0.4 is the same Maven 2.2.1 which is wrong because the directory 
> structure is different between these two versions and if you follow the 
> Maven 3.0.4 example exactly it will fail to work. I also tried to download 
> the eclipse plugin in Eclipse and it has crashed.
>
> Best Regards,
>
> James R. 
>
>
>
> On Monday, August 13, 2012 1:45:52 PM UTC-5, Kevin Winter wrote:
>>
>> Hi James,
>>   Based on these screenshots, it doesn't look like it's getting far 
>> enough to execute our library.  Besides your Window's machine firewall, are 
>> you perhaps behind a corporate firewall?  I'd recommend trying to compile 
>> another project with maven to make sure maven can reach any repositories.
>>
>> - Kevin Winter
>> AdWords API Team
>>
>> On Monday, August 13, 2012 12:58:14 PM UTC-4, Whistler Media wrote:
>>>
>>>
>>> Hey, 
>>> I have some snapshots before and after the firewall here.  I tried using 
>>> the "hello world" example found on this link  
>>> http://www.sonatype.com/books/mvnex-book/reference/simple-project-sect-create-simple.html
>>> .
>>> Best Regards,
>>> James R.
>>> On Monday, August 13, 2012 8:48:03 AM UTC-5, Kevin Winter wrote:

 Hi,
   I'd like to echo jstedman's comments.  The commandline output 
 definitely makes it sound like a firewall or network issue.  The values in 
 ads.properties are only used when the example is run, and the stacktrace 
 would look much different if it got that far.  I suspect that your Mint 
 machine has a different network environment from the windows machine, 
 allowing maven to pull the dependecies, etc, that it needs.

 - Kevin Winter
 AdWords API Team

 On Friday, August 10, 2012 1:01:10 PM UTC-4, jstedman wrote:
>
> I would also try to create and compile a simple maven project using a 
> basic archetype and see if it works on your windows machine. I don't 
> think 
> newlines should matter much in a pom.xml or java source file and I 
> wouldn't 
> think a properties file would cause build headaches like this.
>


-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en


Re: best method for getting customerId in v201109?

2012-08-15 Thread Kevin Winter
Hi,
  Technically, the ManagedCustomerService will return results for any 
AdWords account that matches the selector (i.e. the authenticated account) 
as long as it is managed by an MCC account.  This limitation will prevent 
the MCS from returning results for client accounts (even when 
authenticated) if this account is not managed by any MCC.  For this reason, 
we recommend using the CustomerService if you are authenticating directly 
with a client account (which will always return results) or if you know the 
clientCustomerId and just want to get account information.

- Kevin Winter
AdWords API Team

On Wednesday, August 15, 2012 7:28:47 AM UTC-4, Rob wrote:
>
> Hi Kevin,
>
> I've just started using the v201206 ManagedCustomerService and it appears 
> to work even for non-MCC logins, showing the customer ID as well as the 
> time zone and currency code.
>
> Can you please confirm this is expected behaviour and that we can use the 
> new service to get information for all accounts?
>
> On Tuesday, May 15, 2012 3:12:51 PM UTC+1, Kevin Winter wrote:
>>
>> Hi Ben (and future forum viewers),
>>   We discussed this offline.  Because this is an unlinked account (no 
>> parent MCC) the ServicedAccountService can't operate on it (it can only 
>> "see" accounts with parents).  As a workaround, making an InfoService 
>> request for this account (as I mentioned in my message on 2/22) will work.
>>
>> - Kevin Winter
>> AdWords API Team
>>
>> On Tuesday, May 8, 2012 12:26:53 PM UTC-4, Ben Vincent wrote:
>>>
>>> Hi Kevin,
>>>  
>>> Are there still issues with the CustomerID = 0? 
>>>  
>>> For most my clients, I have no problems and can look up the Customer ID. 
>>> But sometimes it comes back as 0. 
>>>  
>>> For example I just got this response:
>>>  
>>> http://schemas.xmlsoap.org/soap/envelope/";>
>>> 
>>> https://adwords.google.com/api/adwords/cm/v201109"; xmlns="
>>> https://adwords.google.com/api/adwords/mcm/v201109";>
>>> 0004bf88a41487c80aec782b3b94
>>> ServicedAccountService
>>> get
>>> 0
>>> 25
>>> 0
>>> 
>>> 
>>> 
>>> https://adwords.google.com/api/adwords/mcm/v201109"; 
>>> xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201109";>
>>> 
>>>
>>> 0false
>>> 
>>> 
>>> 
>>> 
>>>  
>>>  
>>> I am trying to run AdHoc reports for clients, for which I need the 
>>> customerID. My code checks to see if I have the customer ID in my local DB, 
>>> and if not it looks it up. Usually this works, but occasionally it fails. 
>>> If I then look up the ID manually by logging into the web interface and 
>>> copying the CustomerID, AdHoc reports work fine. 
>>>  
>>> Any ideas why?
>>>  
>>> Thanks
>>>  
>>> Ben
>>>  
>>>  
>>>  
>>>  
>>>
>>> On Thursday, 23 February 2012 16:52:09 UTC, Kevin Winter wrote:
>>>
 Hi Chris,
   Yes, that should work.  It bases this behavior on the authenticated 
 user (which needs to be a non-MCC account).

 - Kevin Winter
 AdWords API Team

 On Thursday, February 23, 2012 11:44:15 AM UTC-5, chris h wrote:
>
> Hi Kevin,
> Should this work with an existing oauth token? Or do I need to get a 
> new token? I'm sure my token was created before you made this change.
>


-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en


Re: best method for getting customerId in v201109?

2012-08-15 Thread Rob
Hi Kevin, and thanks for the reply.

That makes sense, so I'll stick to polling both the CustomerService and the 
ManagedCustomerService.  It's a shame there isn't one service that will 
provide this information reliably for all logins. The new Customer services 
are definitely an improvement over the old Account services but they still 
fall a little short :(

On Wednesday, August 15, 2012 2:52:28 PM UTC+1, Kevin Winter wrote:
>
> Hi,
>   Technically, the ManagedCustomerService will return results for any 
> AdWords account that matches the selector (i.e. the authenticated account) 
> as long as it is managed by an MCC account.  This limitation will prevent 
> the MCS from returning results for client accounts (even when 
> authenticated) if this account is not managed by any MCC.  For this reason, 
> we recommend using the CustomerService if you are authenticating directly 
> with a client account (which will always return results) or if you know the 
> clientCustomerId and just want to get account information.
>
> - Kevin Winter
> AdWords API Team
>
> On Wednesday, August 15, 2012 7:28:47 AM UTC-4, Rob wrote:
>>
>> Hi Kevin,
>>
>> I've just started using the v201206 ManagedCustomerService and it appears 
>> to work even for non-MCC logins, showing the customer ID as well as the 
>> time zone and currency code.
>>
>> Can you please confirm this is expected behaviour and that we can use the 
>> new service to get information for all accounts?
>>
>> On Tuesday, May 15, 2012 3:12:51 PM UTC+1, Kevin Winter wrote:
>>>
>>> Hi Ben (and future forum viewers),
>>>   We discussed this offline.  Because this is an unlinked account (no 
>>> parent MCC) the ServicedAccountService can't operate on it (it can only 
>>> "see" accounts with parents).  As a workaround, making an InfoService 
>>> request for this account (as I mentioned in my message on 2/22) will work.
>>>
>>> - Kevin Winter
>>> AdWords API Team
>>>
>>> On Tuesday, May 8, 2012 12:26:53 PM UTC-4, Ben Vincent wrote:

 Hi Kevin,
  
 Are there still issues with the CustomerID = 0? 
  
 For most my clients, I have no problems and can look up the Customer 
 ID. But sometimes it comes back as 0. 
  
 For example I just got this response:
  
 http://schemas.xmlsoap.org/soap/envelope/";>
 
 https://adwords.google.com/api/adwords/cm/v201109"; xmlns="
 https://adwords.google.com/api/adwords/mcm/v201109";>
 0004bf88a41487c80aec782b3b94
 ServicedAccountService
 get
 0
 25
 0
 
 
 
 https://adwords.google.com/api/adwords/mcm/v201109"; 
 xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201109";>
 

 0false
 
 
 
 
  
  
 I am trying to run AdHoc reports for clients, for which I need the 
 customerID. My code checks to see if I have the customer ID in my local 
 DB, 
 and if not it looks it up. Usually this works, but occasionally it fails. 
 If I then look up the ID manually by logging into the web interface and 
 copying the CustomerID, AdHoc reports work fine. 
  
 Any ideas why?
  
 Thanks
  
 Ben
  
  
  
  

 On Thursday, 23 February 2012 16:52:09 UTC, Kevin Winter wrote:

> Hi Chris,
>   Yes, that should work.  It bases this behavior on the authenticated 
> user (which needs to be a non-MCC account).
>
> - Kevin Winter
> AdWords API Team
>
> On Thursday, February 23, 2012 11:44:15 AM UTC-5, chris h wrote:
>>
>> Hi Kevin,
>> Should this work with an existing oauth token? Or do I need to get a 
>> new token? I'm sure my token was created before you made this change.
>>
>

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en


Re: CUSTOMER_NOT_WHITELISTED_FOR_API only for some clients?

2012-08-15 Thread veseo
Hi,

update - I tested with a bit of a bigger test group and concluded that the 
whitelist are on an MCC account level. Is that true and, if yes, is that by 
design or a bug?

On Tuesday, August 14, 2012 5:27:34 PM UTC+3, veseo wrote:
>
> Hi,
>
> I've been implementing the BudgetOrderService and tried to get the budgets 
> for a bunch of clients (I have been whitelisted) and, to my surprise, while 
> it works for some of the clients, it 
> returns CUSTOMER_NOT_WHITELISTED_FOR_API for most of the clients (talking 
> in numbers: 18 "working" and more than 40 returning that error). I thought 
> that the whitelist is on developer level, not on customer level. How come 
> some of our customers are whitelisted and some are not? What am I doing 
> wrong? I'll be happy to provide more details if needed.
>

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en


Blank CriteriaParameters in URL Performance Report

2012-08-15 Thread GregT
Hi,

For a particular new client, running the URL Performance Report results in 
many rows that have an empty value for the CriteriaParameters field.  We 
have never seen this before, and it's causing issues for us because we 
don't know what generated the clicks, conversions, etc. to occur at the 
URL.  From downloading the report to a file and looking through it, it 
appears that all of the rows that are like this are from topics (based upon 
the fact that the campaign name for the row is a campaign that only has 
topics in it -- no manual or automatic placements and no keywords).  

With other clients that are using topics [vertical placements], we see 
something like "docvertical::##" [where "##" is just a number] for the 
value of the CriteriaParameters field, and that is the case for this client 
as well for some of the rows, but there are hundreds of rows in the report 
that have a completely blank CriteriaParameters field.  Spot checking some 
of the rows that do have something like "docvertical::##" for the 
CriteriaParameters, I can see them in the AdWords UI listed under Automatic 
Placements [i.e. I see the domain of the URL on the Automatic Placements 
tab, and if I select that row in the UI and select "See details", I see the 
specific URL with the same numbers I see in the report].  For those rows in 
the downloaded report that have a blank CriteriaParameters field, of the 10 
or so I spot checked, those URLs don't show up in the AdWords UI at all for 
that day.

So, my questions are:
- Is this a bug on google's side that no value is getting returned in the 
CriteriaParameters field?  We've never seen it on any other client.
- If it is not a bug, is it safe to assume that a blank CriteriaParameters 
field indicates that it is a URL that was displayed as a result of a topic 
/ vertical?

Thanks,
Greg


-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en


How to Determine Device Type with the Php Client Library

2012-08-15 Thread Ashley Bennett
I am wondering what the best way is to determine what the device type a 
campaign is targeting is.

Within the web interface this is set at the campaign level, and so I assume 
I would use CampaignService or CampaignCriterionService for this api call, 
but I can't determine which field I am supposed to request in order to get 
this information within my php-based reporting file which returns data in a 
set and inserts it into our own C.R.M.

I am looking for enumerations like 'Tablet' or 'Mobile' or 'Desktop', or 
some version of the like.

Any assistance would be appreciated.

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en


Re: State/Province list for Location Extension

2012-08-15 Thread Joshua Chan
Are there any updates on this, by any chance?

On Thursday, August 9, 2012 4:04:42 PM UTC-7, Joshua Chan wrote:
>
> Hi Eric,
>
> Do you know why using the provinceCode in a request for a South African 
> address returns an InvalidGeoLocation?
>
> Using the address of the Google Johannesburg office, here's a request that 
> works:
> 'streetAddress2': None, 
> 'countryCode': 'ZA', 
> 'cityName': 'Bryanston, Johannesburg', 
> 'streetAddress': 'Cnr Main & Sloane Street', 
> 'provinceCode': 'GT', 
> 'postalCode': '2012'
>
> But adding any of these makes it not work:
> 'provinceCode': 'ZA-GT'
> 'provinceCode': 'GT'
>
> Johannesburg is in the province of Gauteng and the province code of 
> 'ZA-GT' is retrieved from 
> https://developers.google.com/adwords/api/docs/appendix/provincecodes#South%20Africa
> Also noticed that in the UI, there's no dropdown for the province for 
> South Africa. Is provinceCode needed then?
>
> Thanks,
> Josh
>
>
> On Friday, September 30, 2011 1:57:01 PM UTC-7, Eric Koleda wrote:
>>
>> Hi Alexander,
>>
>> I'm able to geocode that address without any problems:
>>
>> 
>>   
>>  235 Regent Street
>>  London
>>  England
>>  ENG
>>  W1B 2EL
>>  GB
>>   
>> 
>>
>> 
>>   
>>  51514343
>>  -141765
>>   
>>   
>>  235 Regent Street
>>  London
>>  ENG
>>  England
>>  W1B 2EL
>>  GB
>>   
>>   qrvM3...
>>   GeoLocation
>> 
>>
>> Best,
>> - Eric
>>
>

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en


Re: I am getting this error message intermittently when i am running GetRelatedKeywords.php. Failed to get authToken. Reason....

2012-08-15 Thread Lucas Schultze
I am also having this same issue.  I'm running the API on a share webhost.  
I had originally thought it was an IPv6 issue with cURL.  At a loss.  I am 
thinking I am going to have to move this script to another host.  

On Tuesday, August 7, 2012 9:02:43 PM UTC-5, Blode Wong wrote:
>
> I am getting this error message intermittently when i am running 
> GetRelatedKeywords.php.
>
> The Error Message is:
> "Failed to get authToken. Reason: Failed to connect to 
> 2607:f8b0:4007:801::1010: Network is unreachable"
>
> Can anyone help me out?
>

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en


Re: Downloading the JS Remarketing Tag

2012-08-15 Thread prashant sharma
Is there a way to get the google conversion id via API which is mentioned 
in the remarketing tag?

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en


What do I pass into SOAP authToken header when using OAuth2.

2012-08-15 Thread Patrick Ma
Really confused about the authToken header from the documentation. Because 
we're not using client login.

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en


Re: How to Determine Device Type with the Php Client Library

2012-08-15 Thread Ewan Heming
Hi,

I think that the device type is called a Platform 
targetin
 the CampaignCriterionService, so you need to issue a 
getrequest
 with a 
predicateto
 filter the 
Criterion.Type
 so 
the results only include targets of the *PLATFORM* type; you should get a 
response with a list of 
CampaignCriterion
 objects from 
which you can extract the campaignId to obtain a list of campaigns that are 
using device targeting. If you need the specific device that is being used, 
then you can look at the id of each criterion to find out which 
platform has 
been selected.

If you're using v201206, then you could also check out the 
query
 operation 
of the CampaignCriterionService to do the same thing using 
AWQL instead 
of a predicate; AWQL is a recent addition to the AdWords API that lets you 
select objects using an SQL-like syntax.
  
Regards,

Ewan

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en


Why do get many same adgroup records?

2012-08-15 Thread jerryhouse
I tried to get the adgroup by  adwords java api with the code below:

List adGroups = new LinkedList();
adGroups = new LinkedList();
AdGroupServiceInterface gs = ServiceFactory.getAdGroupService();
// Create selector.
Selector selector = new Selector();
String[] fields = AdwordsFieldUitl.getAdGroupField();
selector.setFields(fields);
Predicate p = new Predicate("Status", PredicateOperator.IN, new 
String[]{"ENABLED"});
selector.setPredicates(new Predicate[]{p});
selector.setPaging(new Paging(0, PAGE_SIZE));
try {
AdGroupPage page = gs.get(selector);
int offset = 0;
while (offset < page.getTotalNumEntries()) {
for (AdGroup g : page.getEntries())
adGroups.add(g);
offset += PAGE_SIZE;
selector.setPaging(new Paging(offset, offset + PAGE_SIZE));
}
} catch (ApiException e) {
e.printStackTrace();
} catch (RemoteException e) {
e.printStackTrace();
}
return adGroups;
When I check the results, I am so confused that there are many adgroup 
records has the same id and other contents, shouldn't the id of the adgroup 
be unique for each different adgroups? 

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en


Re: What do I pass into SOAP authToken header when using OAuth2.

2012-08-15 Thread Patrick Ma
Does anyone have a working request output?

I am unsure of what parameters to send to Adwords.

On Thursday, August 16, 2012 11:09:49 AM UTC+8, Patrick Ma wrote:
>
> Really confused about the authToken header from the documentation. Because 
> we're not using client login.

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en