Can I use the sandbox with a developer token being approved ?

2012-07-11 Thread remiCarrere
Everything is said in the title :
Can I use the sandbox with a developer token being approved ?
I would like to use the sandbox to start making tests the connection with 
the API.

Thank

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 target only Wi-Fi carrier

2012-07-11 Thread PatrickvKleef
If I look at the available Carrier criterionIds ( 
https://developers.google.com/adwords/api/docs/appendix/mobilecarriers ) I 
don't see a criterionId for only the Wi-Fi option that's available in the 
Adwords UI?

Op dinsdag 10 juli 2012 17:58:13 UTC+2 schreef jstedman het volgende:


 Use this criterion type in the CampaignCriterionService:


 https://developers.google.com/adwords/api/docs/reference/latest/CampaignCriterionService.Carrier

 Use the criterionId from:

 https://developers.google.com/adwords/api/docs/appendix/mobilecarriers

 Or better yet, use the ConstantDataService to get the ids:


 https://developers.google.com/adwords/api/docs/reference/latest/ConstantDataService


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


Total number of keywords in an account

2012-07-11 Thread neilpaterson
Hi all

I have what I hope is a simple question: 

Is there a way to obtain the total number of keywords that are in an 
ACCOUNT?

I don't need all the keyword IDs, just the count.

Thanks

Neil

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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: getFirstPageCpc() of BiddableAdGroupCriterion returns null

2012-07-11 Thread Stamatina Thomaidou
Sorry, I have found the problem, I just had to use in the Selector the 
proper field:

selector.setFields(new String[] {Id, AdGroupId, MatchType, 
KeywordText, FirstPageCpc});

On Tuesday, July 10, 2012 6:37:41 PM UTC+3, Stamatina Thomaidou wrote:

 Hello everyone,

 I'm trying to retrieve an estimated first page cpc for a completely new 
 keyword, but when I use getFirstPageCpc() it returns null as a result, thus 
 I cannot understand what I'm doing wrong.

 I use v201109 of AdWords API Java.


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


Getting Started API

2012-07-11 Thread francesco bottoni
I'm finding some difficulties.
I'm studying Objec Oriented of PHP and i want learn to use API Adwords!

*Where I get start?*
I talked with an expert and he suggested me to read the doc parts - 
https://developers.google.com/adwords/api/docs/

I created yesterday the first application in OOP, but is still 5 months 
that I study procedural PHP.
You think is too early to study the API?

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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: Total number of keywords in an account

2012-07-11 Thread Dorian Kind
Hi Neil,

you can use the AdGroupCriterionService for this. Construct a suitable 
selector for the keyword types you are interested in, and set 
paging.numberResults 
to zero. The returned AdGroupCriterionPage will contain the number of 
keywords in the totalNumEntries field.

Cheers,
Dorian

On Wednesday, July 11, 2012 12:24:58 PM UTC+2, neilpaterson wrote:

 Hi all

 I have what I hope is a simple question: 

 Is there a way to obtain the total number of keywords that are in an 
 ACCOUNT?

 I don't need all the keyword IDs, just the count.

 Thanks

 Neil


-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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: Criteria report: criteriaType documentation

2012-07-11 Thread Jesper Feldthaus JF
Have a look at this:
https://developers.google.com/adwords/api/docs/appendix/reports?#criteria

Den onsdag den 11. juli 2012 07.35.59 UTC+2 skrev dkasak:

 Hi all. Is there some documentation on the different criteriaType values 
 we can expect in the Criteria report? I had previously seen placement data 
 under User Interest ( at least I thought it was placement data ), but now 
 I'm seeing it under Placement.


-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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: Campaign Progress

2012-07-11 Thread Dorian Kind
Hi Marco,

when using the CampaignService, you can only get total statistic data for 
the whole dateRange that you specify in your selector. Also, only a subset 
of all available metrics is 
supported:https://developers.google.com/adwords/api/docs/reference/latest/CampaignService.Stats.
To get daily stats for a given time frame, use ad hoc reports and add 
Date to your fields list, causing the returned data to be segmented by 
day.
HTH, cheers,
Dorian

On Wednesday, July 11, 2012 12:50:38 AM UTC+2, Marco Contreras wrote:

 Hello

 I am working with php library version v201109, reviewing the documentation 
 in which I saw examples of working with 'CampaignService' which allows me 
 to retrieve the cpc, clicks, etc.

 My question is whether you can recover data from campaigns within a 
 specified date range, but show me the progress of the campaign for days

 I tried but without success, I could after the reports with the statement 
 'dateRangeType', but I have not seen option to 'CampaignService'

 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: Campaign Progress

2012-07-11 Thread Dorian Kind
Sorry, linked to the wrong reference page, here's the correct one: 
https://developers.google.com/adwords/api/docs/reference/latest/CampaignService.CampaignStats

On Wednesday, July 11, 2012 1:44:51 PM UTC+2, Dorian Kind wrote:

 Hi Marco,

 when using the CampaignService, you can only get total statistic data for 
 the whole dateRange that you specify in your selector. Also, only a 
 subset of all available metrics is supported:
 https://developers.google.com/adwords/api/docs/reference/latest/CampaignService.Stats
 .
 To get daily stats for a given time frame, use ad hoc reports and add 
 Date to your fields list, causing the returned data to be segmented by 
 day.
 HTH, cheers,
 Dorian

 On Wednesday, July 11, 2012 12:50:38 AM UTC+2, Marco Contreras wrote:

 Hello

 I am working with php library version v201109, reviewing the 
 documentation in which I saw examples of working with 'CampaignService' 
 which allows me to retrieve the cpc, clicks, etc.

 My question is whether you can recover data from campaigns within a 
 specified date range, but show me the progress of the campaign for days

 I tried but without success, I could after the reports with the statement 
 'dateRangeType', but I have not seen option to 'CampaignService'

 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: Retrieve ImageAd by ImageAd id

2012-07-11 Thread Dorian Kind
Hi Tal,

The ImageAd type inherits the field id from type Ad, which you can use in 
your selector's predicate as Id (notice the different capitalization). 
https://developers.google.com/adwords/api/docs/reference/latest/AdGroupAdService.ImageAd

Cheers,
Dorian

On Monday, July 9, 2012 5:19:58 PM UTC+2, Tal Ater wrote:

 After creating a new ImageAd, I save its id to my database, and can then 
 later use that id with adToCopyImageFrom.

 How can I retrieve ImageAds from the API by that ImageAd id? Do I use the 
 selector and predicates? Is there another way to fetch data besides the 
 selector/predicate?

 I managed to select it on the ImageCreativeName, but not the ImageAd Id:

   $service = $this-user-GetService('AdGroupAdService', 
 self::API_VERSION);

   $selector = new GoogleApiAdsAdWords_Selector();
   $selector-fields = array('MediaId', 'Width', 'Height', 'Name');

   // Create predicates.
   $selector-predicates[] =
 new GoogleApiAdsAdWords_Predicate('ImageCreativeName', 'EQUALS', 
 array($adwordsId));

   $page = $service-get($selector);




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


Report contents are invalid. - !!!1|||-1|||Unexpected exception???

2012-07-11 Thread aengland
 Last night (7/10/2012) I received the below error message while calling 
the GetClientReport(oDefinition) method for the KEYWORDS_PERFORMANCE_REPORT 
report type.  

Google.Api.Ads.AdWords.Util.ReportsException: Report contents are invalid. 
- !!!1|||-1|||Unexpected exception???

I have tried re-running the same process this morning several times and 
have received the same error message.  The report is pulling for the 
previous days data so it is a small data set.  I have 457 clients to call 
the report for so I am calling the method in batches of 10. I am using v14 
of the DotNet Client Library.  This process has been running fine since 
January so I am not sure why this issue starting occurring all of a 
sudden.  It seems this error is internal to AdWords.

Thank you for any help in advance.  This issue is causing major problems 
since our data is now out of date.

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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: Retrieve ImageAd by ImageAd id

2012-07-11 Thread Tal Ater
How very *not*-elegant... But it works perfectly. You're a life-saver!

Cheers,

Tal Ater
t...@talater.com


On Wednesday, July 11, 2012 2:54:43 PM UTC+3, Dorian Kind wrote:

 Hi Tal,

 The ImageAd type inherits the field id from type Ad, which you can use 
 in your selector's predicate as Id (notice the different capitalization). 
 
 https://developers.google.com/adwords/api/docs/reference/latest/AdGroupAdService.ImageAd
 

 Cheers,
 Dorian

 On Monday, July 9, 2012 5:19:58 PM UTC+2, Tal Ater wrote:

 After creating a new ImageAd, I save its id to my database, and can then 
 later use that id with adToCopyImageFrom.

 How can I retrieve ImageAds from the API by that ImageAd id? Do I use the 
 selector and predicates? Is there another way to fetch data besides the 
 selector/predicate?

 I managed to select it on the ImageCreativeName, but not the ImageAd Id:

   $service = $this-user-GetService('AdGroupAdService', 
 self::API_VERSION);

   $selector = new GoogleApiAdsAdWords_Selector();
   $selector-fields = array('MediaId', 'Width', 'Height', 'Name');

   // Create predicates.
   $selector-predicates[] =
 new GoogleApiAdsAdWords_Predicate('ImageCreativeName', 'EQUALS', 
 array($adwordsId));

   $page = $service-get($selector);




-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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: Report contents are invalid. - !!!1|||-1|||Unexpected exception???

2012-07-11 Thread aengland
I continued to run the process periodically to see if I could get it to run 
without error and it finally went through during the 9 AM EST hour after 
five more failures during the 7 and 8 AM EST hours this morning.  I am 
concerned this will be an ongoing issue.  Please advise.

On Wednesday, July 11, 2012 8:47:03 AM UTC-4, aengland wrote:

 Last night (7/10/2012) I received the below error message while calling 
 the GetClientReport(oDefinition) method for the KEYWORDS_PERFORMANCE_REPORT 
 report type.  

 Google.Api.Ads.AdWords.Util.ReportsException: Report contents are invalid. 
 - !!!1|||-1|||Unexpected exception???

 I have tried re-running the same process this morning several times and 
 have received the same error message.  The report is pulling for the 
 previous days data so it is a small data set.  I have 457 clients to call 
 the report for so I am calling the method in batches of 10. I am using v14 
 of the DotNet Client Library.  This process has been running fine since 
 January so I am not sure why this issue starting occurring all of a 
 sudden.  It seems this error is internal to AdWords.

 Thank you for any help in advance.  This issue is causing major problems 
 since our data is now out of date.


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

2012-07-11 Thread Francois Sivade

 Hello, I try to use the API Google Adwords. I follow the instructions of 
the gettin started videohttp://code.google.com/p/google-api-adwords-dotnet/, 
but when i put the addCampaign command in the debugguer of my exemple 
project, i have this error:

v201109_1.GetAdGroups : This code example illustrates how to retrieve all 
the ad
 groups for a campaign. To create an ad group, run AddAdGroup.cs.
v201109_1.GetAccountAlerts : This code example gets all alerts for all 
clients o
f an MCC account. The effective user (ClientCustomerId or AuthToken) must 
be an
MCC user to get results.

It's strange because in the app.config, i've filled the corresponding tag. 
Do you have an idea of the problem ?

Thank's for you're attention.

PS: Sorry for my language, i'm French :-)

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 I use the sandbox with a developer token being approved ?

2012-07-11 Thread Ewan Heming
You don't need a developer token to use the sandbox, you just need a Google 
account. The developer token in the sandbox is just your account email plus 
a chosen currency. You can find out more about using the sandbox 
herehttps://developers.google.com/adwords/api/docs/sandbox
. 

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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: Getting Started API

2012-07-11 Thread Ewan Heming
If you can understand the example code that comes with the PHP Client 
Library http://code.google.com/p/google-api-adwords-php/, then you should 
be able to learn how to use the AdWords API. You can also check out this 
blog post that explains how to use the 
exampleshttp://googleadsdeveloper.blogspot.co.uk/2012/02/streamline-your-coding-with-adwords-api.html
. 

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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: adCore is using the AdWords API Feel free to ask us questions

2012-07-11 Thread Rebecca Brandon
Hi! We are looking into trying this out at our agency. You say its free up 
to 5 campaigns, is there any limits on how big a campaign can be? 

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: Campaign Progress

2012-07-11 Thread Marco Contreras


Hi Dorian

Thanks for the help, but what I really wanted to have this format.

Data 01/05/2012 to 04/05/2012
  
*Date*
 
*Campaign*
 
*Clics*
 
*CPC*
  
01/05/2012
 
demo
 
1500
 
0,25
  
02/05/2012
 
demo
 
1235
 
0,24
  
03/05/2012
 
demo
 
1874
 
0,27
  
01/05/2012
 
autos
 
1200
 
0,15
  
02/05/2012
 
autos
 
1500
 
0,26
  
03/05/2012
 
autos
 
1369
 
0,3
  
04/05/2012
 
autso
 
1247
 
0,5
  
 

The definition CampaignStats startDate and endDate is only in the case of 
endDate only shows me the last time interval. I tested the generation of 
reports by the ReportDefinitionService which has dateRangeType = 
'All_Time', which did not give me many results, any other ideas of how to 
obtain these data

Thanks

On Tuesday, July 10, 2012 5:50:38 PM UTC-5, Marco Contreras wrote:

 Hello

 I am working with php library version v201109, reviewing the documentation 
 in which I saw examples of working with 'CampaignService' which allows me 
 to retrieve the cpc, clicks, etc.

 My question is whether you can recover data from campaigns within a 
 specified date range, but show me the progress of the campaign for days

 I tried but without success, I could after the reports with the statement 
 'dateRangeType', but I have not seen option to 'CampaignService'

 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


GetTextAds.php and GetAdGroups.php returning no ads/adgroups

2012-07-11 Thread iateadonut
Hi,

I'm trying to get text ads.  But first, I've tried to get ad groups using 
GetAdGroups.php.

From a daily report I run, I can see that the following ad groups coincide 
with the following campaign:

+++
| campaignId | adGroupId  |
+++
|   79779018 | 3782999778 | 
|   79779018 | 3782999898 | 
|   79779018 | 378318 | 
|   79779018 | 3783000258 | 
|   79779018 | 3783000378 | 
|   79779018 | 3783000498 | 
|   79779018 | 3783000618 | 
|   79779018 | 3783000738 | 
|   79779018 | 3783001098 | 
|   79779018 | 3783001218 | 
|   79779018 | 3783001338 | 
|   79779018 | 3783001578 | 
|   79779018 | 3783001818 | 
|   79779018 | 3783001938 | 
|   79779018 | 3783002058 | 
|   79779018 | 3783002298 | 
|   79779018 | 3783002418 | 
+++

However, my SOAP request returns no adGroups found (I'm using 201109_1, but 
couldn't find a php library to download that had the 201206 version):

# php ./GetAdGroups.php
No ad groups were found.

SOAP LOG:
[Jul 11 2012 15:54:07.00 - INFO] POST 
/api/adwords/cm/v201109_1/AdGroupService HTTP/1.1
Host: adwords.google.com
Connection: Keep-Alive
User-Agent: PHP-SOAP/5.2.14, gzip
Accept-Encoding: gzip, deflate
Content-Encoding: gzip
Content-Type: text/xml; charset=utf-8
SOAPAction: 
Content-Length: 670

?xml version=1.0 encoding=UTF-8?
SOAP-ENV:Envelope 
xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/; 
xmlns:ns1=https://adwords.google.com/api/adwords/cm/v201109_1;
  SOAP-ENV:Header
ns1:RequestHeader
  ns1:authToken*/ns1:authToken
  ns1:developerToken*/ns1:developerToken
  ns1:userAgentAwApi-PHP-3.1.0-*'s Test App/ns1:userAgent
/ns1:RequestHeader
  /SOAP-ENV:Header
  SOAP-ENV:Body
ns1:get
  ns1:serviceSelector
ns1:fieldsId/ns1:fields
ns1:fieldsName/ns1:fields
ns1:predicates
  ns1:fieldCampaignId/ns1:field
  ns1:operatorIN/ns1:operator
  ns1:values79779018/ns1:values
/ns1:predicates
ns1:ordering
  ns1:fieldName/ns1:field
  ns1:sortOrderASCENDING/ns1:sortOrder
/ns1:ordering
ns1:paging
  ns1:startIndex0/ns1:startIndex
  ns1:numberResults500/ns1:numberResults
/ns1:paging
  /ns1:serviceSelector
/ns1:get
  /SOAP-ENV:Body
/SOAP-ENV:Envelope

HTTP/1.1 200 OK
Content-Type: text/xml; charset=UTF-8
Content-Encoding: gzip
Date: Wed, 11 Jul 2012 19:54:07 GMT
Expires: Wed, 11 Jul 2012 19:54:07 GMT
Cache-Control: private, max-age=0
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
Content-Length: 308
Server: GSE

?xml version=1.0?
soap:Envelope xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/;
  soap:Header
ResponseHeader 
xmlns=https://adwords.google.com/api/adwords/cm/v201109_1;
  requestId0004c49335b68a422b4f4ea1/requestId
  serviceNameAdGroupService/serviceName
  methodNameget/methodName
  operations1/operations
  responseTime342/responseTime
  units1/units
/ResponseHeader
  /soap:Header
  soap:Body
getResponse 
xmlns=https://adwords.google.com/api/adwords/cm/v201109_1;
  rval
totalNumEntries0/totalNumEntries
Page.TypeAdGroupPage/Page.Type
  /rval
/getResponse
  /soap:Body
/soap:Envelope




Same for get text ads:

# php ./GetTextAds.php
No text ads were found.

I got frustrated and used all the adGroupIds from my database in the last 2 
days as my array:
array (
  0 = '2418977898',
  1 = '2418978258',
  2 = '2418978498',
  3 = '2418978858',
  4 = '2418979098',
  5 = '2418979698',
  6 = '2418979818',
  7 = '2418980178',
  8 = '2418980418',
  9 = '2418980538',
  10 = '2418981498',
  11 = '2418981738',
  12 = '2418982098',
  13 = '2418982338',
  14 = '2418982698',
  15 = '2418982818',
  16 = '2418982938',
  17 = '2418983058',
  18 = '2418983178',
  19 = '2418983298',
  20 = '2418983418',
  21 = '2418983538',
  22 = '2418983658',
  23 = '2418984018',
  24 = '2418984378',
  25 = '2418984498',
  26 = '2418985098',
  27 = '2418985338',
  28 = '2418985698',
  29 = '2418985938',
  30 = '2418986538',
  31 = '2418986658',
  32 = '2418986778',
  33 = '2418987018',
  34 = '2418987138',
  35 = '2418987378',
  36 = '2418987618',
  37 = '2418987738',
  38 = '2418988098',
  39 = '2418988698',
  40 = '2418988818',
  41 = '2418989418',
  42 = '2418989658',
  43 = '2418989778',
  44 = '2418990138',
  45 = '2418990258',
  46 = '2418991218',
  47 = '2418991338',
  48 = '2418991458',
  49 = '2418991698',
  50 = '2418991818',
  51 = '2418992178',
  52 = '2418992298',
  53 = '2418992658',
  54 = '2418992778',
  55 = '2418993018',
  56 = '2418993498',
  57 = '2418993618',
  58 = '2418993858',
  59 = '2418993978',
  60 = '2418994098',
  61 = '2418994338',
  62 = '2418994578',
  63 = '2418994698',
  64 = '2418994938',
  65 = '2418995178',
  66 = '2418995298',
  67 = '2418996018',
  68 = '2418996138',
  69 = '2418996258',
  70 = '2418996498',
  71 =