Re: Retrieving Adhoc Reports using OAuth

2013-08-21 Thread Takeshi Hagikura (AdWords API Team)
Hi, 

When you use OAuth2, the header should be like this in *HTTP* header not in 
the SOAP header like when you use ClientLogin. 

Authorization: Bearer  

Please see this 
guide
. 
If you are using our client library, it should take care of that. 

Best,
- Takeshi, AdWords API Team

On Friday, August 16, 2013 5:49:14 AM UTC+9, Alistair Ballantine wrote:
>
> I'm having a little difficulty figuring out how to Download AdHoc reports 
> using OAuth2 as the authentication mechanism. I can retrieve an 
> access_token just fine using OAuth, but I only ever get the 
> error GOOGLE_ACCOUNT_COOKIE_INVALID when using it. I can successfully 
> connect and download a report using the old ClientLogin method, and I'm 
> wondering if I'm missing a step in OAuth that would retrieve an "authToken" 
> or if there's some other change to the headers I have to make to pull the 
> report. 
>
> The headers I'm using for downloading a report are effectively (in PHP):
>
> 'Authorization: GoogleLogin auth=' . $access_token,
> 'clientCustomerId: ' . $client_id,
> 'developerToken: ' . $dev_token
>
> The $access token is what would be retrieved as a response to this 
> essential POST request (taken from 
> https://developers.google.com/accounts/docs/OAuth2WebServer?csw=1#refresh)
>
> POST /o/oauth2/token HTTP/1.1
> Host: accounts.google.com
> Content-Type: application/x-www-form-urlencoded
>
> client_id=8819981768.apps.googleusercontent.com&
> client_secret={client_secret}&
> refresh_token=1/6BMfW9j53gdGImsiyUH5kU5RsR4zwI9lUVX-tqf8JXQ&
> grant_type=refresh_token
>
> Am I using the wrong token? Am I missing a step? Should I change the Adhoc 
> report HTTP Headers? Any guidance or direction would be much appreciated. 
>
> Thank you 
>

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

--- 
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/groups/opt_out.


Re: Adding sitelinks to AdGroups via API

2013-08-21 Thread Takeshi Hagikura (AdWords API Team)
Hi, 

As we announced 
here,
 
now we have upgraded extensions. 
Those can be managed via Feed Services (please see this 
guide
). 
Legacy sitelink extensions (can be managed via CampaignAdExtension) will be 
no longer available after September 23 as also announced in the same post.

So it isn't direct answer for your question, but I highly recommend you to 
go through the guide and use upgraded extensions moving forward. 

Best,
- Takeshi, AdWords API Team

On Friday, August 16, 2013 6:26:14 AM UTC+9, Heidi Schuster wrote:
>
>
> Hi there, I have managed to add a sitelink to a campaign using the 
> following code:
>
> Sitelink[] links = new Sitelink[]{new Sitelink("API TEST", "
> http://bla.com";)};
> SitelinksExtension se = new SitelinksExtension();
> se.setSitelinks(links);
>
> CampaignAdExtension ad = new CampaignAdExtension();
> ad.setCampaignId(131958273L);
> ad.setAdExtension(se);
> CampaignAdExtensionOperation[] ops = new 
> CampaignAdExtensionOperation[]{new 
> CampaignAdExtensionOperation(Operator.ADD, null, ad)};
>
> CampaignAdExtensionServiceInterface service = 
> adWordsUser.getService(AdWordsService.V201302.CAMPAIGN_AD_EXTENSION_SERVICE);
> CampaignAdExtensionReturnValue result = service.mutate(ops);
> 
>
> However when I do the same thing using AdExtensionOverrideServiceInterface 
> I am getting an error on SitelinksExtension.id:
>
>   [AdExtensionOverrideError.INVALID_ADEXTENSION_ID @ operations[0].
> operand.adExtension.id; trigger:'']
>
> I am adding the sitelink so it shouldn't be complaining that the id is 
> null. If I set the id to a value it tells me it is invalid.
>
> Also the sitelink that was added to the campaign shows as '(Not 
> upgraded)'. Why is that?
>
>
> thank you,
>  Heidi
>

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

--- 
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/groups/opt_out.


Re: Getting AdError.AD_FORMAT_NOT_SPECIFIED trying to add a TemplateAd

2013-08-21 Thread Takeshi Hagikura (AdWords API Team)
Hi,

Thanks for the report.
Do you happen to have the full request and response soap logs that failed?
And if it's possible do you also have the pair of request and response that 
succeeded?

(Please remove the sensitive info such as developer token, auth token. )

Best,
- Takeshi, AdWords API Team


On Friday, August 16, 2013 5:14:00 AM UTC+9, Yassir Aguila wrote:
>
> Hi all,
>
> I'm getting ad error response AD_FORMAT_NOT_SPECIFIED trying to add a 
> TemplateAd. The currrent implementation was working before but suddenly 
> stopped working.
>
> Request:
> 
> ADD
> 
> 7795861716
> https://adwords.google.com/api/adwords/cm/v201306"; 
> xsi:type="ns2:TemplateAd">
> 
> http://www.ivntest.com?v=1&source=3D7097CC&akw={keyword}
> 
> www.ivntest.com
> TemplateAd
> 277
> 
> 68449356
> 
> 
> adData
> 
> creationContext
> TEXT
> 
> WORKFLOW:DEFAULT,TEMPLATE_SOURCE:BROWSING_CONTENT_PAGE
> 
> 
> backgroundColor
> ENUM
> #ff
> 
> 
> CUSTOM_IMAGE_0_Z
> NUMBER
> 1
> 
> 
> CUSTOM_TEXT_0_Height
> NUMBER
> 25
> 
> 
> CUSTOM_TEXT_0_Width
> NUMBER
> 120
> 
> 
> CUSTOM_TEXT_0_Z
> NUMBER
> 2
> 
> 
> CUSTOM_TEXT_0_TextSize
> NUMBER
> 20
> 
> 
> CUSTOM_TEXT_0_TextColor
> ENUM
> #00
> 
> 
> CUSTOM_TEXT_0_TextFont
> ENUM
> arialuni
> 
> 
> CUSTOM_TEXT_0_Text
> TEXT
> My Template Ad2
> 
> 
> CUSTOM_BUTTON_0_Height
> NUMBER
> 30
> 
> 
> CUSTOM_BUTTON_0_Width
> NUMBER
> 100
> 
> 
> CUSTOM_BUTTON_0_Z
> NUMBER
> 3
> 
> 
> CUSTOM_BUTTON_0_TextSize
> NUMBER
> 18
> 
> 
> CUSTOM_BUTTON_0_ButtonColor
> ENUM
> #00
> 
> 
> CUSTOM_BUTTON_0_TextColor
> ENUM
> #ff
> 
> 
> CUSTOM_BUTTON_0_TextFont
> ENUM
> arialuni
> 
> 
> CUSTOM_BUTTON_0_Text
> TEXT
> My link
> 
> 
> 
> 468
> 60
> 
> First Template Ad
> 
> ENABLED
> DISAPPROVED
> true
> 
> SEARCH
> AdStats
> 0.0
> 
> 
> 
>
> Response:
> 
> 
> soap:Server
> [AdError.AD_FORMAT_NOT_SPECIFIED @ 
> operations[0].operand.ad.adFormat, AdError.AD_FORMAT_NOT_SPECIFIED @ 
> operations[1].operand.ad.adFormat, AdError.AD_FORMAT_NOT_SPECIFIED @ 
> operations[2].operand.ad.adFormat, AdError.AD_FORMAT_NOT_SPECIFIED @ 
> operations[3].operand.ad.adFormat, AdError.AD_FORMAT_NOT_SPECIFIED @ 
> operations[4].operand.ad.adFormat, AdError.AD_FORMAT_NOT_SPECIFIED @ 
> operations[5].operand.ad.adFormat]
> 
> https://adwords.google.com/api/adwords/cm/v201306";>
> [AdError.AD_FORMAT_NOT_SPECIFIED @ 
> operations[0].operand.ad.adFormat, AdError.AD_FORMAT_NOT_SPECIFIED @ 
> operations[1].operand.ad.adFormat, AdError.AD_FORMAT_NOT_SPECIFIED @ 
> operations[2].operand.ad.adFormat, AdError.AD_FORMAT_NOT_SPECIFIED @ 
> operations[3].operand.ad.adFormat, AdError.AD_FORMAT_NOT_SPECIFIED @ 
> operations[4].operand.ad.adFormat, AdError.AD_FORMAT_NOT_SPECIFIED @ 
> operations[5].operand.ad.adFormat]
> 
> ApiException
> http://www.w3.org/2001/XMLSchema-instance"; xsi:type="AdError">
> 
> 

Re: Adding sitelink to AdGroup via API returns error

2013-08-21 Thread Takeshi Hagikura (AdWords API Team)
Hi, 

Please see another 
thread
.

Best,
- Takeshi

On Friday, August 16, 2013 10:03:16 PM UTC+9, Heidi Schuster wrote:
>
>
> Hi there, I have managed to add a sitelink to a campaign using the 
> following code:
>
> Sitelink[] links = new Sitelink[]{new Sitelink("API TEST", "
> http://bla.com";)};
> SitelinksExtension se = new SitelinksExtension();
> se.setSitelinks(links);
>
> CampaignAdExtension ad = new CampaignAdExtension();
> ad.setCampaignId(131958273L);
> ad.setAdExtension(se);
> CampaignAdExtensionOperation[] ops = new 
> CampaignAdExtensionOperation[]{new 
> CampaignAdExtensionOperation(Operator.ADD, null, ad)};
>
> CampaignAdExtensionServiceInterface service = 
> adWordsUser.getService(AdWordsService.V201302.CAMPAIGN_AD_EXTENSION_SERVICE);
> CampaignAdExtensionReturnValue result = service.mutate(ops);
> 
>
> However when I do the same thing using AdExtensionOverrideServiceInterface 
> I am getting an error on SitelinksExtension.id:
>
>   [AdExtensionOverrideError.INVALID_ADEXTENSION_ID @ operations[0].
> operand.adExtension.id; trigger:'']
>
> I am adding the sitelink so it shouldn't be complaining that the id is 
> null. If I set the id to a value it tells me it is invalid.
>
> Also the sitelink that was added to the campaign shows as '(Not 
> upgraded)'. Why is that?
>  
>  Thank you, Heidi
>

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

--- 
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/groups/opt_out.


Re: Test Account

2013-08-21 Thread Takeshi Hagikura (AdWords API Team)
Hi, 

Can you please share the example xml request that fails (please remove 
sensitive info such as developer token, auth token)?

Best,
- Takeshi

On Saturday, August 17, 2013 12:28:14 AM UTC+9, Павел Силенко wrote:
>
> There is a test account, ID client: 374-873-6083, for any given query 
> error: QuotaCheckError.INCOMPLETE_SIGNUP
>
> Help solve the problem!
>

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

--- 
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/groups/opt_out.


Re: MutateLink Invite Multiple customers

2013-08-21 Thread Takeshi Hagikura (AdWords API Team)
Hi, 

You can include multiple LinkOperation in your mutateLink request.
https://developers.google.com/adwords/api/docs/reference/v201306/ManagedCustomerService

Hope it helps.

Best,
- Takeshi,

On Saturday, August 17, 2013 8:48:38 PM UTC+9, m...@adwordize.de wrote:
>
>
> Currently I can invite one adwords user using 
> *ManagedCustomerService.mutatelink 
> *per request.
> But I want to invite multiple users using mutatelink per request.
> Any Ideas.?
> Waiting for response...
>

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

--- 
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/groups/opt_out.


Re: Value of 'Status' column in report not as expected?

2013-08-21 Thread Takeshi Hagikura (AdWords API Team)
Hi Oliver, 

Thanks for the report. 
You can assume it's corresponding to ACTIVE, but I think it's a issue. 
The enum values from ReportDefinitionService are also returned as 
"Status(Status) := [ACTIVE, DELETED, UNKNOWN, ]"

I filed a issue regarding that. 

Best,
- Takeshi,

On Monday, August 19, 2013 11:22:08 PM UTC+9, Oliver wrote:
>
> The documentation mentions that the possible values of the 'Status' column 
> in the PLACEHOLDER_FEED_ITEM_REPORT are either '*Active*', '*Deleted*' or 
> '*unknown*'.
>
> However, we're seeing values like '*feed item active*' instead.
>
> Can we assume this is the same as 'Active' from now on?
>
> 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

--- 
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/groups/opt_out.


Re: Dynamic price in ads

2013-08-21 Thread Valerii Buzivskyi
Hello Danial,

thank you for your reply!

We tryed to use  {param1:}  to associate price to each keyword.
We get ads with correct keywords and prices.

But there are some bugs.

Almost 80% of keywords couldn't be associated with price because of 
criterion id error.

We make 2 scanning of database.
1-st scanning gives us keywords (each keyword have its own id)
2-nd scanning gives us prices (with ids for keywords)

Then system try to associate keywords and prices via IDs.

Some keywords and prices associated, and some - not/ Appears criterion id 
error - wrong criterion id. But when we try to compare ids manualy - we 
see, that everything is ok, all ids correct. And the last - we get this 
error randomly for different groups and keywords. It means that sometimes 
it works, sometimes - not.  We get 80% of keywords with errors , so it's 
 critical errors.


Could you, please, show the way, where the reasons of this bugs can be 
found?

Thank you in advance.







понедельник, 29 июля 2013 г., 15:33:38 UTC+3 пользователь Danial Klimkin 
написал:
>
> Hello Valerii,
>
>
> Why it is possible to insert keywords into ad texts (see 
> https://support.google.com/adwords/answer/2454041), there is no way to 
> associate particular keywords with different prices.
>
> It is very easy to create separate ads for each such case with the API as 
> you can create thousands of ads easily. You'll also benefit from statistics 
> collected separately.
>
> Also, you may want to look into AdParams if you plan on updating your 
> prices regularly:
>
>   
> https://developers.google.com/adwords/api/docs/reference/v201306/AdParamService
>
>
> -Danial, AdWords API Team.
>
>
> On Wednesday, July 24, 2013 11:00:29 AM UTC+4, Valerii Buzivskyi wrote:
>>
>> Hello
>>
>> Does any one can help me, and show the way, how is it possible to create 
>> ads with dynamic price in API?
>>
>> For example we have some products:
>>
>> - Green T-Short from 5$,
>> - Blue T-Short  from  7$,
>> - Yellow T-Short  from  9$.
>>
>> I create (with api) keywords with urls:
>> - green t-short   my.shop.com/green-t-short.html
>> - blue t-short  my.shop.com/blue-t-short.html
>> - yellow t-shortmy.shop.com/yellow-t-short.html
>>
>> Than I want to create 1 ad for all keywords using {KeyWord:...}, and also 
>> need 1 more extra field to show different price for each product.
>>
>> Someting like this:
>> 1 row - {KeyWord: Coloured T-Shorts}
>> 2 row - Beautiful {KeyWord: Coloured T-Shorts} from {Price: 4$}
>> 3 row -  Buy it now!
>>
>> Than when user looking for "Green T-Short", he will  see the next ad:
>>
>> Green T-Shorts
>> Beautiful Green T-Shorts from 5$
>> Buy it now!
>>
>> For "Blue T-Short", the other one:
>>
>> BlueT-Shorts
>> Beautiful Blue T-Short from 7$
>> Buy it now!
>>
>> And for the "Yellow T-Short":
>> Yellow T-Short 
>> Beautiful  Yellow T-Short  from 9$
>> Buy it now!
>>
>> Is it possible to make such kind of ads with API?
>>
>> Thank you in advance.
>>
>>

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

--- 
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/groups/opt_out.


Re: Issues running GetRefreshToken.php

2013-08-21 Thread Alan Coleman
Hi Ewan,

Thanks for replying, I've actually been reading the entries on your blog, 
great stuff.

I should have noted the full error last night, it's a project I'm working 
on at home, duh! I'll place the full error later on.

Some background. I have a development version of my web app running locally 
and a released version online.

I've been using Client Login for authentication but need to move over to 
OAuth2 so that I can migrate to v201306.

I've registered my app with the console and have added the client_id and 
client_secret pair to my auth.ini file.

I'm having trouble running my GetRefreshToken.php file (through command 
line), there's a possibility that I'm running it from the wrong part of the 
file structure meaning required resources are not being picked up.

Any ideas would be appreciated.

Many thanks

On Tuesday, August 20, 2013 10:38:02 PM UTC+1, Ewan Heming wrote:
>
> Hi Alan,
>
> What's the error you're getting?
>
> 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

--- 
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/groups/opt_out.


Re: Policy Violation Error - Ads - Headline

2013-08-21 Thread Abbas Abidi
Hello Google Adwords Team,

Is there a list of forbidden URLs that Google rejects with 
PolicyVoilationError? For example, when using "http://www.google.com"; as a 
display URL for my Ads, I got PolicyVoilationError. I have gone through 
your policy page but didn't find anything particularly on forbidden/allowed 
URLs. 

Thanks!

On Wednesday, 20 April 2011 07:02:19 UTC+1, Remya Mohan wrote:
>
> Hello Google Adwords Team,
>
> We got a Policy Violation Error while adding Ads operation for Headline.
> We have used " Used 2009 RX 350" as Headline string.
>
> We have came across so many queries regarding this Violation Error.but we 
> did not get an exact answer.
> In What all cases this violation error comes?
>
> Please let us know the answer.
>
>
> -- 
> Remya Mohan
> Software Engineer
> 
> http://SparkSupport.com
>  | 
> http://migrate2cloud.com
>  
> phone: +1 408-335-0493, 0484 2559756 
>
>
>

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

--- 
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/groups/opt_out.


Forbidden Display URLs

2013-08-21 Thread Abbas Abidi
Hello Google Adwords Team,

Is there a list of forbidden URLs that Google rejects with 
PolicyVoilationError? For example, when using "http://www.google.com"; as a 
display URL for my Ads, I got PolicyVoilationError. I have gone through 
your policy page but didn't find anything particularly on forbidden/allowed 
URLs. 

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

--- 
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/groups/opt_out.


gender and age reports

2013-08-21 Thread u...@taykey.com
Hi all,

is it possible to get reports for gender/age if no gender/age criterion was 
created ?

in the UI we can get this when in the display network tab pressing the 
gender or age options.

thanks a lot!!

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

--- 
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/groups/opt_out.


502 Bad gateway error

2013-08-21 Thread Andreea Bogdan
Hello,

During the last 4 days our adwords import failed twice (19th and 21st 
august) with the error:
*
*
*"(502) Bad gateway. The server encountered a temporary error and could not 
complete your request. Please try again in 30 seconds."*
*
*
We are using v201302 of the api on a Java platform.

Has anyone else encountered the same issue? Was there a downtime that might 
have caused such a behavior?


Thanx, 
Andreea

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

--- 
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/groups/opt_out.


Re: Dynamic price in ads

2013-08-21 Thread Valerii Buzivskyi
Here few errors:

 AdParamError.INVALID_ADGROUP_CRITERION_SPECIFIED @ 
operations[1508].operand; trigger:'AdGroupId = 8788019259, CriterionId = 
64165396539', AdParamError.INVALID_ADGROUP_CRITERION_SPECIFIED @ 
operations[1509].operand; trigger:'AdGroupId = 8788019259, CriterionId = 
64165396659', AdParamError.INVALID_ADGROUP_CRITERION_SPECIFIED @ 
operations[1510].operand; trigger:'AdGroupId = 8788019259, CriterionId = 
64165396779', AdParamError.INVALID_ADGROUP_CRITERION_SPECIFIED @ 
operations[1511].operand; trigger:'AdGroupId = 8788019259, CriterionId = 
64165396899', AdParamError.INVALID_ADGROUP_CRITERION_SPECIFIED @ 
operations[1512].operand; trigger:'AdGroupId = 8788019259, CriterionId = 
64165397019', AdParamError.INVALID_ADGROUP_CRITERION_SPECIFIED @ 
operations[1513].operand; trigger:'AdGroupId = 8788019259, CriterionId = 
64165397139', AdParamError.INVALID_ADGROUP_CRITERION_SPECIFIED @ 
operations[1514].operand; trigger:'AdGroupId = 8788019259, CriterionId = 
64165397259', AdParamError.INVALID_ADGROUP_CRITERION_SPECIFIED @ 
operations[1515].operand; trigger:'AdGroupId = 8788019259, CriterionId = 
64165397379', AdParamError.INVALID_ADGROUP_CRITERION_SPECIFIED @ 
operations[1516].operand; trigger:'AdGroupId = 8788019259, CriterionId = 
64165397499']

среда, 21 августа 2013 г., 12:29:32 UTC+3 пользователь Valerii Buzivskyi 
написал:
>
> Hello Danial,
>
> thank you for your reply!
>
> We tryed to use  {param1:}  to associate price to each keyword.
> We get ads with correct keywords and prices.
>
> But there are some bugs.
>
> Almost 80% of keywords couldn't be associated with price because of 
> criterion id error.
>
> We make 2 scanning of database.
> 1-st scanning gives us keywords (each keyword have its own id)
> 2-nd scanning gives us prices (with ids for keywords)
>
> Then system try to associate keywords and prices via IDs.
>
> Some keywords and prices associated, and some - not/ Appears criterion id 
> error - wrong criterion id. But when we try to compare ids manualy - we 
> see, that everything is ok, all ids correct. And the last - we get this 
> error randomly for different groups and keywords. It means that sometimes 
> it works, sometimes - not.  We get 80% of keywords with errors , so it's 
>  critical errors.
>
>
> Could you, please, show the way, where the reasons of this bugs can be 
> found?
>
> Thank you in advance.
>
>
>
>
>
>
>
> понедельник, 29 июля 2013 г., 15:33:38 UTC+3 пользователь Danial Klimkin 
> написал:
>>
>> Hello Valerii,
>>
>>
>> Why it is possible to insert keywords into ad texts (see 
>> https://support.google.com/adwords/answer/2454041), there is no way to 
>> associate particular keywords with different prices.
>>
>> It is very easy to create separate ads for each such case with the API as 
>> you can create thousands of ads easily. You'll also benefit from statistics 
>> collected separately.
>>
>> Also, you may want to look into AdParams if you plan on updating your 
>> prices regularly:
>>
>>   
>> https://developers.google.com/adwords/api/docs/reference/v201306/AdParamService
>>
>>
>> -Danial, AdWords API Team.
>>
>>
>> On Wednesday, July 24, 2013 11:00:29 AM UTC+4, Valerii Buzivskyi wrote:
>>>
>>> Hello
>>>
>>> Does any one can help me, and show the way, how is it possible to create 
>>> ads with dynamic price in API?
>>>
>>> For example we have some products:
>>>
>>> - Green T-Short from 5$,
>>> - Blue T-Short  from  7$,
>>> - Yellow T-Short  from  9$.
>>>
>>> I create (with api) keywords with urls:
>>> - green t-short   my.shop.com/green-t-short.html
>>> - blue t-short  my.shop.com/blue-t-short.html
>>> - yellow t-shortmy.shop.com/yellow-t-short.html
>>>
>>> Than I want to create 1 ad for all keywords using {KeyWord:...}, and 
>>> also need 1 more extra field to show different price for each product.
>>>
>>> Someting like this:
>>> 1 row - {KeyWord: Coloured T-Shorts}
>>> 2 row - Beautiful {KeyWord: Coloured T-Shorts} from {Price: 4$}
>>> 3 row -  Buy it now!
>>>
>>> Than when user looking for "Green T-Short", he will  see the next ad:
>>>
>>> Green T-Shorts
>>> Beautiful Green T-Shorts from 5$
>>> Buy it now!
>>>
>>> For "Blue T-Short", the other one:
>>>
>>> BlueT-Shorts
>>> Beautiful Blue T-Short from 7$
>>> Buy it now!
>>>
>>> And for the "Yellow T-Short":
>>> Yellow T-Short 
>>> Beautiful  Yellow T-Short  from 9$
>>> Buy it now!
>>>
>>> Is it possible to make such kind of ads with API?
>>>
>>> Thank you in advance.
>>>
>>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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://g

Re: An error has occurred: { "error" : "invalid_grant" }

2013-08-21 Thread Jur
Hello Takeshi,

I did find it a strange request, but I did send it anyway :-)
Thanks for removing the message.

I think this is the XML send :

http://schemas.xmlsoap.org/soap/envelope/"; 
xmlns:ns1="https://adwords.google.com/api/adwords/cm/v201306";>823-418-1279RIS_Online_Conversion
 (AwApi-PHP/4.4.0, Common-PHP/5.0.0, 
PHP/5.3.3)IdNameNameASCENDING0500


Op dinsdag 20 augustus 2013 17:37:50 UTC+2 schreef Takeshi Hagikura 
(AdWords API Team):
>
> Hi Jur,
>
> Sorry I didn't mean to post client id and client secret. 
> I wanted to know what account did use to get your client id and client 
> secret.
>
> If you used your MCC account under which your test account is in or the 
> test account itself for getting client id and secret,
> the CampaignService.get should work. 
>
> Also I wanted to confirm the xml request log for CampaignService.get. 
> Specifically clientCustomerId (for your test account) was included in the 
> soap header. 
>
> Best,
> - Takeshi,
>
> On Tuesday, August 20, 2013 8:54:23 PM UTC+9, Jur wrote:
>>
>> Hello Takeshi,
>>
>> Clientid: xxx
>> Client_secreat:xxx
>>
>> I use the standard getCampainsExample function:
>>
>> // Include the AdWordsUser
>> require_once LIB_PATH . '/AdWordsUser.php';
>>
>> function GetCampaignsExample(AdWordsUser $user) {
>>   // Get the service, which loads the required classes.
>>   $campaignService = $user->GetService('CampaignService', 
>> ADWORDS_VERSION);
>>
>>   // Create selector.
>>   $selector = new Selector();
>>   $selector->fields = array('Id', 'Name');
>>   $selector->ordering[] = new OrderBy('Name', 'ASCENDING');
>>
>>   // Create paging controls.
>>   $selector->paging = new Paging(0, 
>> AdWordsConstants::RECOMMENDED_PAGE_SIZE);
>>
>>   do {
>> // Make the get request.
>> $page = $campaignService->get($selector);
>>
>> // Display results.
>> if (isset($page->entries)) {
>>   foreach ($page->entries as $campaign) {
>> printf("Campaign with name '%s' and ID '%s' was found.\n",
>> $campaign->name, $campaign->id);
>>   }
>> } else {
>>   print "No campaigns were found.\n";
>> }
>>
>> // Advance the paging index.
>> $selector->paging->startIndex += 
>> AdWordsConstants::RECOMMENDED_PAGE_SIZE;
>>   } while ($page->totalNumEntries > $selector->paging->startIndex);
>> }
>>
>> try {
>>   // Get AdWordsUser from credentials in "../auth.ini"
>>   // relative to the AdWordsUser.php file's directory.
>>   $user = new AdWordsUser();
>>   // Log every SOAP XML request and response.
>>   $user->LogAll();
>>   
>>   // Run the example.
>>   GetCampaignsExample($user);
>> } catch (Exception $e) {
>> print_r($e);
>>   printf("An error has occurred: %s\n", $e->getMessage());
>> }
>>
>>
>> Op maandag 19 augustus 2013 10:30:24 UTC+2 schreef Takeshi Hagikura 
>> (AdWords API Team):
>>>
>>> Hi Jur, 
>>>
>>> What clientId and clientSecret are you passing to the script when you 
>>> run the GetRefreshToken.php script?
>>> And can you please share the request xml when you run the GetCampaign 
>>> (except for the sensitive info)? 
>>>
>>> Best,
>>> - Takeshi, AdWords API Team
>>>
>>>
>>> On Friday, August 9, 2013 1:15:48 AM UTC+9, Jur wrote:

 Hello Guys,
  
 I'm working on my first Google Adwords API application, but I can't get 
 passed the oauth2 verification.
 I could get a refresh_token with the GetRefreshToken.php script, but I 
 get the error : An error has occurred: { "error" : "invalid_grant" } when 
 I 
 request a list of campaines in my test account.
  
 Hope someone can help me out in the right direction.
  
 Regards,
  
 Jur
  
 MMC id : 916-243-9387

>>>

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

--- 
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/groups/opt_out.


Re: Dynamic price in ads

2013-08-21 Thread Danial Klimkin
Hello Valerii,


Please let me know the requestID for the errors below. It can be found in 
the SOAP response header.


-Danial, AdWords API Team.


On Wednesday, August 21, 2013 3:44:38 PM UTC+4, Valerii Buzivskyi wrote:
>
> Here few errors:
>
>  AdParamError.INVALID_ADGROUP_CRITERION_SPECIFIED @ 
> operations[1508].operand; trigger:'AdGroupId = 8788019259, CriterionId = 
> 64165396539', AdParamError.INVALID_ADGROUP_CRITERION_SPECIFIED @ 
> operations[1509].operand; trigger:'AdGroupId = 8788019259, CriterionId = 
> 64165396659', AdParamError.INVALID_ADGROUP_CRITERION_SPECIFIED @ 
> operations[1510].operand; trigger:'AdGroupId = 8788019259, CriterionId = 
> 64165396779', AdParamError.INVALID_ADGROUP_CRITERION_SPECIFIED @ 
> operations[1511].operand; trigger:'AdGroupId = 8788019259, CriterionId = 
> 64165396899', AdParamError.INVALID_ADGROUP_CRITERION_SPECIFIED @ 
> operations[1512].operand; trigger:'AdGroupId = 8788019259, CriterionId = 
> 64165397019', AdParamError.INVALID_ADGROUP_CRITERION_SPECIFIED @ 
> operations[1513].operand; trigger:'AdGroupId = 8788019259, CriterionId = 
> 64165397139', AdParamError.INVALID_ADGROUP_CRITERION_SPECIFIED @ 
> operations[1514].operand; trigger:'AdGroupId = 8788019259, CriterionId = 
> 64165397259', AdParamError.INVALID_ADGROUP_CRITERION_SPECIFIED @ 
> operations[1515].operand; trigger:'AdGroupId = 8788019259, CriterionId = 
> 64165397379', AdParamError.INVALID_ADGROUP_CRITERION_SPECIFIED @ 
> operations[1516].operand; trigger:'AdGroupId = 8788019259, CriterionId = 
> 64165397499']
>
> среда, 21 августа 2013 г., 12:29:32 UTC+3 пользователь Valerii Buzivskyi 
> написал:
>>
>> Hello Danial,
>>
>> thank you for your reply!
>>
>> We tryed to use  {param1:}  to associate price to each keyword.
>> We get ads with correct keywords and prices.
>>
>> But there are some bugs.
>>
>> Almost 80% of keywords couldn't be associated with price because of 
>> criterion id error.
>>
>> We make 2 scanning of database.
>> 1-st scanning gives us keywords (each keyword have its own id)
>> 2-nd scanning gives us prices (with ids for keywords)
>>
>> Then system try to associate keywords and prices via IDs.
>>
>> Some keywords and prices associated, and some - not/ Appears criterion id 
>> error - wrong criterion id. But when we try to compare ids manualy - we 
>> see, that everything is ok, all ids correct. And the last - we get this 
>> error randomly for different groups and keywords. It means that sometimes 
>> it works, sometimes - not.  We get 80% of keywords with errors , so it's 
>>  critical errors.
>>
>>
>> Could you, please, show the way, where the reasons of this bugs can be 
>> found?
>>
>> Thank you in advance.
>>
>>
>>
>>
>>
>>
>>
>> понедельник, 29 июля 2013 г., 15:33:38 UTC+3 пользователь Danial Klimkin 
>> написал:
>>>
>>> Hello Valerii,
>>>
>>>
>>> Why it is possible to insert keywords into ad texts (see 
>>> https://support.google.com/adwords/answer/2454041), there is no way to 
>>> associate particular keywords with different prices.
>>>
>>> It is very easy to create separate ads for each such case with the API 
>>> as you can create thousands of ads easily. You'll also benefit from 
>>> statistics collected separately.
>>>
>>> Also, you may want to look into AdParams if you plan on updating your 
>>> prices regularly:
>>>
>>>   
>>> https://developers.google.com/adwords/api/docs/reference/v201306/AdParamService
>>>
>>>
>>> -Danial, AdWords API Team.
>>>
>>>
>>> On Wednesday, July 24, 2013 11:00:29 AM UTC+4, Valerii Buzivskyi wrote:

 Hello

 Does any one can help me, and show the way, how is it possible to 
 create ads with dynamic price in API?

 For example we have some products:

 - Green T-Short from 5$,
 - Blue T-Short  from  7$,
 - Yellow T-Short  from  9$.

 I create (with api) keywords with urls:
 - green t-short   my.shop.com/green-t-short.html
 - blue t-short  my.shop.com/blue-t-short.html
 - yellow t-shortmy.shop.com/yellow-t-short.html

 Than I want to create 1 ad for all keywords using {KeyWord:...}, and 
 also need 1 more extra field to show different price for each product.

 Someting like this:
 1 row - {KeyWord: Coloured T-Shorts}
 2 row - Beautiful {KeyWord: Coloured T-Shorts} from {Price: 4$}
 3 row -  Buy it now!

 Than when user looking for "Green T-Short", he will  see the next ad:

 Green T-Shorts
 Beautiful Green T-Shorts from 5$
 Buy it now!

 For "Blue T-Short", the other one:

 BlueT-Shorts
 Beautiful Blue T-Short from 7$
 Buy it now!

 And for the "Yellow T-Short":
 Yellow T-Short 
 Beautiful  Yellow T-Short  from 9$
 Buy it now!

 Is it possible to make such kind of ads with API?

 Thank you in advance.



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

Re: TargetingIdeaService return keywords stats not matched with Web UI.

2013-08-21 Thread Danial Klimkin
Hello Chirag,


As I also corrected myself before, this only applies to search volume. Avg 
CPC values should match exactly.

If you see the difference, please send us exact request, response and the 
UI screenshot that doesn't match. Please make sure all the parameters are 
set exactly the same.


-Danial, AdWords API Team.


On Wednesday, August 21, 2013 10:35:05 AM UTC+4, Chirag wrote:
>
> Hello Danial,
>
> Thanks for info, Yes this was corrected by me earlier.
>
> My main issue is how i can get previous month / previous date *AVG CPC*data?
> As now adwords api *TargetingIdeaService* changed from UI of keywords 
> planner tool. And you said earlier that UI is AVG value where in API we 
> found exact value for AVG CPC.
>
> So Please guide me how to get previous dates AVG CPC using adwords api. As 
> i am not finding any date parameter that can be pass using *
> TargetingIdeaService.*
>
> Thanks For all Your help.
>
> Chirag
>
> On Tuesday, 20 August 2013 21:49:29 UTC+5:30, Danial Klimkin wrote:
>>
>> Hello Chirag,
>>
>>
>> Looking on the code below, the network parameter is not specified 
>> correctly:
>>
>> $networkTargetParameter = new NetworkSearchParameter();
>>   $networksetting = new NetworkSetting();
>>   $networksetting->SearchParameterType = 'targetGoogleSearch';
>>   $networkTargetParameter->networkSetting = $networksetting;
>>
>> Please see the structure here:
>>
>>
>> https://developers.google.com/adwords/api/docs/reference/latest/TargetingIdeaService.NetworkSearchParameter
>>
>> You need to provide "true" or "false" values for every option (partner 
>> network is optional).
>>
>> Let us know if the result still differ with the UI when you specify only 
>> targetGoogleSearch == true. Please provide exact XML (not PHP) code for the 
>> request in this case.
>>
>>
>> -Danial, AdWords API Team.
>>
>>
>> On Friday, August 16, 2013 2:12:18 PM UTC+4, Chirag wrote:
>>>
>>> Hello Danial,
>>>
>>> Yes after selecting google and search partner i am getting Search volume 
>>> properly.
>>> But avg CPC data is still not matched. and to find UI data i need option 
>>> to get data on previous dates.
>>> How i can find avg cpc on previous dates data.
>>>
>>> Also one more question.
>>>
>>> Using API i am only passing google as targetting than why API is giving 
>>> me data for Google and search partners?
>>>
>>> Thanks,
>>>
>>>
>>>
>>> On Friday, 16 August 2013 14:12:50 UTC+5:30, Danial Klimkin wrote:

 Hello Chirag,


 Please check the UI numbers with "Google and search partners" instead 
 of "Google" option on the left. Do they match in this case?


 -Danial, AdWords API Team.


 On Thursday, August 15, 2013 10:11:39 PM UTC+4, Chirag wrote:
>
> Hello Danial,
>
> I am using same parameter,but i am not getting same result as UI. You 
> can see the diffrence.
> * API value   
>   * * UI 
> value  *
> Keyword   Search volume AVG CPC 
> (Micro Amount)  Search volume AVG CPC  
>
> in home senior care 1000   216846693  
>880 $3.80
>
> senior care services 880   214674314  
>590$3.68
>
> senior home care5400   251675313  
>   3600$4.25
>
> elder home care  390   
> 195457037  210$3.79
>
>
> Please see my code. Also see the UI Image attached here with.
> $targetingIdeaService =
>   $user->GetService('TargetingIdeaService', ADWORDS_VERSION);
>
>   // Create seed keyword.
>   $keyword = array('in home senior care','senior care 
> services','senior home care','elder home care');
>
>   // Create selector.
>   $selector = new TargetingIdeaSelector();
>   $selector->requestType = 'STATS';
>   $selector->ideaType = 'KEYWORD';
>   $selector->requestedAttributeTypes = array('KEYWORD_TEXT', 
> 'SEARCH_VOLUME',
>   'CATEGORY_PRODUCTS_AND_SERVICES', 'COMPETITION', 'AVERAGE_CPC', 
> 'TARGETED_MONTHLY_SEARCHES');
>
>   // Create language search parameter (optional).
>   // The ID can be found in the documentation:
>   //   
> https://developers.google.com/adwords/api/docs/appendix/languagecodes
>   // Note: As of v201302, only a single language parameter is allowed.
>   $languageParameter = new LanguageSearchParameter();
>   $english = new Language();
>   $english->id = 1000;
>   $languageParameter->languages = array($english);
>   
>   $locationTargetParameter = new LocationSearchPa

Re: Dynamic price in ads

2013-08-21 Thread Valerii Buzivskyi
Hello Danial,

0004e473326475380ae53b8924f5

Hope, that's it.

среда, 21 августа 2013 г., 15:27:58 UTC+3 пользователь Danial Klimkin 
написал:
>
> Hello Valerii,
>
>
> Please let me know the requestID for the errors below. It can be found in 
> the SOAP response header.
>
>
> -Danial, AdWords API Team.
>
>
> On Wednesday, August 21, 2013 3:44:38 PM UTC+4, Valerii Buzivskyi wrote:
>>
>> Here few errors:
>>
>>  AdParamError.INVALID_ADGROUP_CRITERION_SPECIFIED @ 
>> operations[1508].operand; trigger:'AdGroupId = 8788019259, CriterionId = 
>> 64165396539', AdParamError.INVALID_ADGROUP_CRITERION_SPECIFIED @ 
>> operations[1509].operand; trigger:'AdGroupId = 8788019259, CriterionId = 
>> 64165396659', AdParamError.INVALID_ADGROUP_CRITERION_SPECIFIED @ 
>> operations[1510].operand; trigger:'AdGroupId = 8788019259, CriterionId = 
>> 64165396779', AdParamError.INVALID_ADGROUP_CRITERION_SPECIFIED @ 
>> operations[1511].operand; trigger:'AdGroupId = 8788019259, CriterionId = 
>> 64165396899', AdParamError.INVALID_ADGROUP_CRITERION_SPECIFIED @ 
>> operations[1512].operand; trigger:'AdGroupId = 8788019259, CriterionId = 
>> 64165397019', AdParamError.INVALID_ADGROUP_CRITERION_SPECIFIED @ 
>> operations[1513].operand; trigger:'AdGroupId = 8788019259, CriterionId = 
>> 64165397139', AdParamError.INVALID_ADGROUP_CRITERION_SPECIFIED @ 
>> operations[1514].operand; trigger:'AdGroupId = 8788019259, CriterionId = 
>> 64165397259', AdParamError.INVALID_ADGROUP_CRITERION_SPECIFIED @ 
>> operations[1515].operand; trigger:'AdGroupId = 8788019259, CriterionId = 
>> 64165397379', AdParamError.INVALID_ADGROUP_CRITERION_SPECIFIED @ 
>> operations[1516].operand; trigger:'AdGroupId = 8788019259, CriterionId = 
>> 64165397499']
>>
>> среда, 21 августа 2013 г., 12:29:32 UTC+3 пользователь Valerii Buzivskyi 
>> написал:
>>>
>>> Hello Danial,
>>>
>>> thank you for your reply!
>>>
>>> We tryed to use  {param1:}  to associate price to each keyword.
>>> We get ads with correct keywords and prices.
>>>
>>> But there are some bugs.
>>>
>>> Almost 80% of keywords couldn't be associated with price because of 
>>> criterion id error.
>>>
>>> We make 2 scanning of database.
>>> 1-st scanning gives us keywords (each keyword have its own id)
>>> 2-nd scanning gives us prices (with ids for keywords)
>>>
>>> Then system try to associate keywords and prices via IDs.
>>>
>>> Some keywords and prices associated, and some - not/ Appears criterion 
>>> id error - wrong criterion id. But when we try to compare ids manualy - we 
>>> see, that everything is ok, all ids correct. And the last - we get this 
>>> error randomly for different groups and keywords. It means that sometimes 
>>> it works, sometimes - not.  We get 80% of keywords with errors , so it's 
>>>  critical errors.
>>>
>>>
>>> Could you, please, show the way, where the reasons of this bugs can be 
>>> found?
>>>
>>> Thank you in advance.
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> понедельник, 29 июля 2013 г., 15:33:38 UTC+3 пользователь Danial Klimkin 
>>> написал:

 Hello Valerii,


 Why it is possible to insert keywords into ad texts (see 
 https://support.google.com/adwords/answer/2454041), there is no way to 
 associate particular keywords with different prices.

 It is very easy to create separate ads for each such case with the API 
 as you can create thousands of ads easily. You'll also benefit from 
 statistics collected separately.

 Also, you may want to look into AdParams if you plan on updating your 
 prices regularly:

   
 https://developers.google.com/adwords/api/docs/reference/v201306/AdParamService


 -Danial, AdWords API Team.


 On Wednesday, July 24, 2013 11:00:29 AM UTC+4, Valerii Buzivskyi wrote:
>
> Hello
>
> Does any one can help me, and show the way, how is it possible to 
> create ads with dynamic price in API?
>
> For example we have some products:
>
> - Green T-Short from 5$,
> - Blue T-Short  from  7$,
> - Yellow T-Short  from  9$.
>
> I create (with api) keywords with urls:
> - green t-short   my.shop.com/green-t-short.html
> - blue t-short  my.shop.com/blue-t-short.html
> - yellow t-shortmy.shop.com/yellow-t-short.html
>
> Than I want to create 1 ad for all keywords using {KeyWord:...}, and 
> also need 1 more extra field to show different price for each product.
>
> Someting like this:
> 1 row - {KeyWord: Coloured T-Shorts}
> 2 row - Beautiful {KeyWord: Coloured T-Shorts} from {Price: 4$}
> 3 row -  Buy it now!
>
> Than when user looking for "Green T-Short", he will  see the next ad:
>
> Green T-Shorts
> Beautiful Green T-Shorts from 5$
> Buy it now!
>
> For "Blue T-Short", the other one:
>
> BlueT-Shorts
> Beautiful Blue T-Short from 7$
> Buy it now!
>
> And for the "Yellow T-Short":
> Yellow T-Short 
> Beautiful 

Re: An error has occurred: { "error" : "invalid_grant" }

2013-08-21 Thread Jur
Hello Takeshi,

I think the error is in this part of the code in the file 
/Common/Lib/AdsSoapClient.php:
$response = parent::__soapCall($function_name, $arguments, $options,
  $input_headers, $output_headers);

Hope you can help me!

Regards,

Jur

Op woensdag 21 augustus 2013 13:53:06 UTC+2 schreef Jur:
>
> Hello Takeshi,
>
> I did find it a strange request, but I did send it anyway :-)
> Thanks for removing the message.
>
> I think this is the XML send :
>
>  xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"; 
> xmlns:ns1="https://adwords.google.com/api/adwords/cm/v201306";>823-418-1279RIS_Online_Conversion
>  (AwApi-PHP/4.4.0, Common-PHP/5.0.0, 
> PHP/5.3.3)IdNameNameASCENDING0500
>
>
> Op dinsdag 20 augustus 2013 17:37:50 UTC+2 schreef Takeshi Hagikura 
> (AdWords API Team):
>>
>> Hi Jur,
>>
>> Sorry I didn't mean to post client id and client secret. 
>> I wanted to know what account did use to get your client id and client 
>> secret.
>>
>> If you used your MCC account under which your test account is in or the 
>> test account itself for getting client id and secret,
>> the CampaignService.get should work. 
>>
>> Also I wanted to confirm the xml request log for CampaignService.get. 
>> Specifically clientCustomerId (for your test account) was included in the 
>> soap header. 
>>
>> Best,
>> - Takeshi,
>>
>> On Tuesday, August 20, 2013 8:54:23 PM UTC+9, Jur wrote:
>>>
>>> Hello Takeshi,
>>>
>>> Clientid: xxx
>>> Client_secreat:xxx
>>>
>>> I use the standard getCampainsExample function:
>>>
>>> // Include the AdWordsUser
>>> require_once LIB_PATH . '/AdWordsUser.php';
>>>
>>> function GetCampaignsExample(AdWordsUser $user) {
>>>   // Get the service, which loads the required classes.
>>>   $campaignService = $user->GetService('CampaignService', 
>>> ADWORDS_VERSION);
>>>
>>>   // Create selector.
>>>   $selector = new Selector();
>>>   $selector->fields = array('Id', 'Name');
>>>   $selector->ordering[] = new OrderBy('Name', 'ASCENDING');
>>>
>>>   // Create paging controls.
>>>   $selector->paging = new Paging(0, 
>>> AdWordsConstants::RECOMMENDED_PAGE_SIZE);
>>>
>>>   do {
>>> // Make the get request.
>>> $page = $campaignService->get($selector);
>>>
>>> // Display results.
>>> if (isset($page->entries)) {
>>>   foreach ($page->entries as $campaign) {
>>> printf("Campaign with name '%s' and ID '%s' was found.\n",
>>> $campaign->name, $campaign->id);
>>>   }
>>> } else {
>>>   print "No campaigns were found.\n";
>>> }
>>>
>>> // Advance the paging index.
>>> $selector->paging->startIndex += 
>>> AdWordsConstants::RECOMMENDED_PAGE_SIZE;
>>>   } while ($page->totalNumEntries > $selector->paging->startIndex);
>>> }
>>>
>>> try {
>>>   // Get AdWordsUser from credentials in "../auth.ini"
>>>   // relative to the AdWordsUser.php file's directory.
>>>   $user = new AdWordsUser();
>>>   // Log every SOAP XML request and response.
>>>   $user->LogAll();
>>>   
>>>   // Run the example.
>>>   GetCampaignsExample($user);
>>> } catch (Exception $e) {
>>> print_r($e);
>>>   printf("An error has occurred: %s\n", $e->getMessage());
>>> }
>>>
>>>
>>> Op maandag 19 augustus 2013 10:30:24 UTC+2 schreef Takeshi Hagikura 
>>> (AdWords API Team):

 Hi Jur, 

 What clientId and clientSecret are you passing to the script when you 
 run the GetRefreshToken.php script?
 And can you please share the request xml when you run the GetCampaign 
 (except for the sensitive info)? 

 Best,
 - Takeshi, AdWords API Team


 On Friday, August 9, 2013 1:15:48 AM UTC+9, Jur wrote:
>
> Hello Guys,
>  
> I'm working on my first Google Adwords API application, but I can't 
> get passed the oauth2 verification.
> I could get a refresh_token with the GetRefreshToken.php script, but I 
> get the error : An error has occurred: { "error" : "invalid_grant" } when 
> I 
> request a list of campaines in my test account.
>  
> Hope someone can help me out in the right direction.
>  
> Regards,
>  
> Jur
>  
> MMC id : 916-243-9387
>


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

--- 
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 o

Re: Issues running GetRefreshToken.php

2013-08-21 Thread Alan Coleman
Hi Ewan,

Here is the error I'm receiving when I run GetRefreshToken.php

 Catchable fatal error: Argument 1 passed to 
OAuth2Handler::GetAuthorizationUrl() must be of the type array, null given, 
called in 
C:\wamp\www\adwords.fbt\adwords_api_php_4.2.5\examples\AdWords\Auth\GetRefreshToken.php
 
on line 48 and defined in 
C:\wamp\www\adwords.fbt\adwords_api_php_4.2.5\src\Google\Api\Ads\Common\Util\OAuth2Handler.php
 
on line *67*
*
*
Thoughts?

Many thanks.

On Wednesday, August 21, 2013 10:59:02 AM UTC+1, Alan Coleman wrote:
>
> Hi Ewan,
>
> Thanks for replying, I've actually been reading the entries on your blog, 
> great stuff.
>
> I should have noted the full error last night, it's a project I'm working 
> on at home, duh! I'll place the full error later on.
>
> Some background. I have a development version of my web app running 
> locally and a released version online.
>
> I've been using Client Login for authentication but need to move over to 
> OAuth2 so that I can migrate to v201306.
>
> I've registered my app with the console and have added the client_id and 
> client_secret pair to my auth.ini file.
>
> I'm having trouble running my GetRefreshToken.php file (through command 
> line), there's a possibility that I'm running it from the wrong part of the 
> file structure meaning required resources are not being picked up.
>
> Any ideas would be appreciated.
>
> Many thanks
>
> On Tuesday, August 20, 2013 10:38:02 PM UTC+1, Ewan Heming wrote:
>>
>> Hi Alan,
>>
>> What's the error you're getting?
>>
>> 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

--- 
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/groups/opt_out.


AdGroupAdError.CANNOT_OPERATE_ON_DELETED_ADGROUPAD

2013-08-21 Thread Jeremy Aube
We've started getting AdGroupAdError.CANNOT_OPERATE_ON_DELETED_ADGROUPAD 
errors whenever updating ads. The update still works, but the error is 
disconcerting. 

Any idea why this is happening? Here's the log:


http://schemas.xmlsoap.org/soap/envelope/"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>

https://adwords.google.com/api/adwords/cm/v201306"; 
soapenv:mustUnderstand="0">
460-887-8120

INSERT_USERAGENT_HERE (AwApi-Java, 
AdWords-Axis/1.18.1, Common-Java/1.18.1, Axis/1.4, Java/1.6.0_51, 
maven)
false
false



https://adwords.google.com/api/adwords/cm/v201306";>

REMOVE

7081656796
https://adwords.google.com/api/adwords/cm/v201306"; 
xsi:type="ns2:TextAd">
26524386916




ADD

7081656796
https://adwords.google.com/api/adwords/cm/v201306"; 
xsi:type="ns3:TextAd">
http://www.purple.com/?
www.purple.com/
TextAd
Excessive 
Capitalization
Desc 1
Desc 2

ENABLED
FAMILY_SAFE
false

SEARCH
AdStats
0.0




REMOVE

7081656796
https://adwords.google.com/api/adwords/cm/v201306"; 
xsi:type="ns4:TextAd">
26524387036




ADD

7081656796
https://adwords.google.com/api/adwords/cm/v201306"; 
xsi:type="ns5:TextAd">
http://www.purple.com/?
www.purple.com/
30001
TextAd
Excessive 
Capitalization
Desc 1 - M
Desc 2 - M

ENABLED
FAMILY_SAFE
false

SEARCH
AdStats
0.0







[21 Aug 2013 13:51:57,633-soapXmlLogger:WARN:AWT-EventQueue-0] SOAP 
Response:

http://schemas.xmlsoap.org/soap/envelope/";>

https://adwords.google.com/api/adwords/cm/v201306";>
0004e478d407a9780ae5ed0a4061
AdGroupAdService
mutate
4
248




soap:Server

[AdGroupAdError.CANNOT_OPERATE_ON_DELETED_ADGROUPAD @ 
operations[0].operand, AdGroupAdError.CANNOT_OPERATE_ON_DELETED_ADGROUPAD @ 
operations[2].operand]

https://adwords.google.com/api/adwords/cm/v201306";>

[AdGroupAdError.CANNOT_OPERATE_ON_DELETED_ADGROUPAD @ 
operations[0].operand, AdGroupAdError.CANNOT_OPERATE_ON_DELETED_ADGROUPAD @ 
operations[2].operand]

ApiException
http://www.w3.org/2001/XMLSchema-instance"; 
xsi:type="AdGroupAdError">
operations[0].operand


AdGroupAdError.CANNOT_OPERATE_ON_DELETED_ADGROUPAD
AdGroupAdError
CANNOT_OPERATE_ON_DELETED_ADGROUPAD

http://www.w3.org/2001/XMLSchema-instance"; 
xsi:type="AdGroupAdError">
operations[2].operand


AdGroupAdError.CANNOT_OPERATE_ON_DELETED_ADGROUPAD
AdGroupAdError
CANNOT_OPERATE_ON_DELETED_ADGROUPAD







AxisFault
 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server
 faultSubcode: 
 faultString: [AdGroupAdError.CANNOT_OPERATE_ON_DELETED_ADGROUPAD @ 
operations[0].operand, AdGroupAdError.CANNOT_OPERATE_ON_DELETED_ADGROUPAD @ 
operations[2].operand]
 faultActor: 
 faultNode: 
 faultDetail: 
{https://adwords.google.com/api/adwords/cm/v201306}ApiExceptionFault:[AdGroupAdError.CANNOT_OPERATE_ON_DELETED_ADGROUPAD
 
@ operations[0].operand, AdGroupAdError.CANNOT_OPERATE_ON_DELETED_ADGROUPAD 
@ 
operations[2].operand]ApiExceptionhttp://www.w3.org/2001/XMLSchema-instance"; 
xsi:type="AdGroupAdError">operations[0].operandAdGroupAdError.CANNOT_OPERATE_ON_DELETED_ADGROUPADAdGroupAdErrorCANNOT_OPERATE_ON_DELETED_ADGR

Re: Issues running GetRefreshToken.php

2013-08-21 Thread Evgeniy Bogdanov
I think that for some reason this library unable to read auth.ini and build
needed data structure to get OAuth2 token.



2013/8/21 Alan Coleman 

> Hi Ewan,
>
> Here is the error I'm receiving when I run GetRefreshToken.php
>
>  Catchable fatal error: Argument 1 passed to
> OAuth2Handler::GetAuthorizationUrl() must be of the type array, null given,
> called in
> C:\wamp\www\adwords.fbt\adwords_api_php_4.2.5\examples\AdWords\Auth\GetRefreshToken.php
> on line 48 and defined in
> C:\wamp\www\adwords.fbt\adwords_api_php_4.2.5\src\Google\Api\Ads\Common\Util\OAuth2Handler.php
> on line *67*
> *
> *
> Thoughts?
>
> Many thanks.
>
> On Wednesday, August 21, 2013 10:59:02 AM UTC+1, Alan Coleman wrote:
>>
>> Hi Ewan,
>>
>> Thanks for replying, I've actually been reading the entries on your blog,
>> great stuff.
>>
>> I should have noted the full error last night, it's a project I'm working
>> on at home, duh! I'll place the full error later on.
>>
>> Some background. I have a development version of my web app running
>> locally and a released version online.
>>
>> I've been using Client Login for authentication but need to move over to
>> OAuth2 so that I can migrate to v201306.
>>
>> I've registered my app with the console and have added the client_id and
>> client_secret pair to my auth.ini file.
>>
>> I'm having trouble running my GetRefreshToken.php file (through command
>> line), there's a possibility that I'm running it from the wrong part of the
>> file structure meaning required resources are not being picked up.
>>
>> Any ideas would be appreciated.
>>
>> Many thanks
>>
>> On Tuesday, August 20, 2013 10:38:02 PM UTC+1, Ewan Heming wrote:
>>>
>>> Hi Alan,
>>>
>>> What's the error you're getting?
>>>
>>> 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
>
> ---
> 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/groups/opt_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

--- 
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/groups/opt_out.


bid adjustments

2013-08-21 Thread GregT
Hi,

According to the documentation that I see at 
https://developers.google.com/adwords/api/docs/guides/adgroup-bid-modifiers
 and 
https://developers.google.com/adwords/api/docs/reference/v201306/AdGroupBidModifierService.AdGroupBidModifier,
 
the only adgroup bid modifiers that are available through the API are 
mobile bid modifiers, which we have been successfully using.

However, AdWords allows other types of adgroup level bid modifiers that we 
also want to be able to adjust.  The most important to us is remarketing 
for search, but you can also create bid modifiers (not just absolute CPC 
bids) on display campaigns for things like gender, age, user lists, etc. 
 However, I don't see any way to query or change any of these bid modifiers 
through the API.

Am I missing something?  Is there a way (whether through the 
AdGroupBidModifierService despite what the documentation says, or some 
other mechanism) to do adgroup level bid modifiers other than just mobile 
bid modifiers?

If not, are there plans to introduce these into the API?

Thanks in advance,
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

--- 
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/groups/opt_out.


Re: Issues running GetRefreshToken.php

2013-08-21 Thread Ewan Heming
Hi Alan,

As Evgeniy mentioned, there's probably something wrong with your PHP 
configuration, but you could try adding the parameters to the example file 
instead of auth.ini. At line 85 of GetRefreshToken.php you should find the 
following code:

$user = new AdWordsUser();
$user->LogAll();

The AdWordsUser object has a SetOAuth2Info method that takes an associative 
array of parameters, and you can set the client_id and client_secret as 
follows:

$user->SetOAuth2Info(array(
"client_id" => "INSERT_OAUTH2_CLIENT_ID_HERE",
"client_secret" => "INSERT_OAUTH2_CLIENT_SECRET_HERE"
));

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

--- 
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/groups/opt_out.


Re: An error has occurred: { "error" : "invalid_grant" }

2013-08-21 Thread Takeshi Hagikura (AdWords API Team)
Hi Jur,

The SOAP xml looks right to me. 

So next, what account did you use in api console to retrieve your client id 
and client secret?
Also did you replace the refresh_token in your auth.ini by the refresh 
token returned in GetRefreshToken.php?

Best,
- Takeshi, 

On Wednesday, August 21, 2013 11:05:34 PM UTC+9, Jur wrote:
>
> Hello Takeshi,
>
> I think the error is in this part of the code in the file 
> /Common/Lib/AdsSoapClient.php:
> $response = parent::__soapCall($function_name, $arguments, $options,
>   $input_headers, $output_headers);
>
> Hope you can help me!
>
> Regards,
>
> Jur
>
> Op woensdag 21 augustus 2013 13:53:06 UTC+2 schreef Jur:
>>
>> Hello Takeshi,
>>
>> I did find it a strange request, but I did send it anyway :-)
>> Thanks for removing the message.
>>
>> I think this is the XML send :
>>
>> > xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"; 
>> xmlns:ns1="https://adwords.google.com/api/adwords/cm/v201306";>823-418-1279RIS_Online_Conversion
>>  (AwApi-PHP/4.4.0, Common-PHP/5.0.0, 
>> PHP/5.3.3)IdNameNameASCENDING0500
>>
>>
>> Op dinsdag 20 augustus 2013 17:37:50 UTC+2 schreef Takeshi Hagikura 
>> (AdWords API Team):
>>>
>>> Hi Jur,
>>>
>>> Sorry I didn't mean to post client id and client secret. 
>>> I wanted to know what account did use to get your client id and client 
>>> secret.
>>>
>>> If you used your MCC account under which your test account is in or the 
>>> test account itself for getting client id and secret,
>>> the CampaignService.get should work. 
>>>
>>> Also I wanted to confirm the xml request log for CampaignService.get. 
>>> Specifically clientCustomerId (for your test account) was included in 
>>> the soap header. 
>>>
>>> Best,
>>> - Takeshi,
>>>
>>> On Tuesday, August 20, 2013 8:54:23 PM UTC+9, Jur wrote:

 Hello Takeshi,

 Clientid: xxx
 Client_secreat:xxx

 I use the standard getCampainsExample function:

 // Include the AdWordsUser
 require_once LIB_PATH . '/AdWordsUser.php';

 function GetCampaignsExample(AdWordsUser $user) {
   // Get the service, which loads the required classes.
   $campaignService = $user->GetService('CampaignService', 
 ADWORDS_VERSION);

   // Create selector.
   $selector = new Selector();
   $selector->fields = array('Id', 'Name');
   $selector->ordering[] = new OrderBy('Name', 'ASCENDING');

   // Create paging controls.
   $selector->paging = new Paging(0, 
 AdWordsConstants::RECOMMENDED_PAGE_SIZE);

   do {
 // Make the get request.
 $page = $campaignService->get($selector);

 // Display results.
 if (isset($page->entries)) {
   foreach ($page->entries as $campaign) {
 printf("Campaign with name '%s' and ID '%s' was found.\n",
 $campaign->name, $campaign->id);
   }
 } else {
   print "No campaigns were found.\n";
 }

 // Advance the paging index.
 $selector->paging->startIndex += 
 AdWordsConstants::RECOMMENDED_PAGE_SIZE;
   } while ($page->totalNumEntries > $selector->paging->startIndex);
 }

 try {
   // Get AdWordsUser from credentials in "../auth.ini"
   // relative to the AdWordsUser.php file's directory.
   $user = new AdWordsUser();
   // Log every SOAP XML request and response.
   $user->LogAll();
   
   // Run the example.
   GetCampaignsExample($user);
 } catch (Exception $e) {
 print_r($e);
   printf("An error has occurred: %s\n", $e->getMessage());
 }


 Op maandag 19 augustus 2013 10:30:24 UTC+2 schreef Takeshi Hagikura 
 (AdWords API Team):
>
> Hi Jur, 
>
> What clientId and clientSecret are you passing to the script when you 
> run the GetRefreshToken.php script?
> And can you please share the request xml when you run the GetCampaign 
> (except for the sensitive info)? 
>
> Best,
> - Takeshi, AdWords API Team
>
>
> On Friday, August 9, 2013 1:15:48 AM UTC+9, Jur wrote:
>>
>> Hello Guys,
>>  
>> I'm working on my first Google Adwords API application, but I can't 
>> get passed the oauth2 verification.
>> I could get a refresh_token with the GetRefreshToken.php script, but 
>> I get the error : An error has occurred: { "error" : "invalid_grant" } 
>> when 
>> I request a list of campaines in my test account.
>>  
>> Hope someone can help me out in the right direction.
>>  
>> Regards,
>>  
>> Jur
>>  
>> MMC id : 916-243-9387
>>
>

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

Re: Getting AdError.AD_FORMAT_NOT_SPECIFIED trying to add a TemplateAd

2013-08-21 Thread Takeshi Hagikura (AdWords API Team)
Hi,

Looks like it's the same issue for 
this
. 
Please see that thread. 

Best,
- Takeshi, 

On Wednesday, August 21, 2013 5:49:37 PM UTC+9, Takeshi Hagikura (AdWords 
API Team) wrote:
>
> Hi,
>
> Thanks for the report.
> Do you happen to have the full request and response soap logs that failed?
> And if it's possible do you also have the pair of request and response 
> that succeeded?
>
> (Please remove the sensitive info such as developer token, auth token. )
>
> Best,
> - Takeshi, AdWords API Team
>
>
> On Friday, August 16, 2013 5:14:00 AM UTC+9, Yassir Aguila wrote:
>>
>> Hi all,
>>
>> I'm getting ad error response AD_FORMAT_NOT_SPECIFIED trying to add a 
>> TemplateAd. The currrent implementation was working before but suddenly 
>> stopped working.
>>
>> Request:
>> 
>> ADD
>> 
>> 7795861716
>> https://adwords.google.com/api/adwords/cm/v201306"; 
>> xsi:type="ns2:TemplateAd">
>> 
>> http://www.ivntest.com?v=1&source=3D7097CC&akw={keyword}
>> 
>> www.ivntest.com
>> TemplateAd
>> 277
>> 
>> 68449356
>> 
>> 
>> adData
>> 
>> creationContext
>> TEXT
>> 
>> WORKFLOW:DEFAULT,TEMPLATE_SOURCE:BROWSING_CONTENT_PAGE
>> 
>> 
>> backgroundColor
>> ENUM
>> #ff
>> 
>> 
>> CUSTOM_IMAGE_0_Z
>> NUMBER
>> 1
>> 
>> 
>> CUSTOM_TEXT_0_Height
>> NUMBER
>> 25
>> 
>> 
>> CUSTOM_TEXT_0_Width
>> NUMBER
>> 120
>> 
>> 
>> CUSTOM_TEXT_0_Z
>> NUMBER
>> 2
>> 
>> 
>> CUSTOM_TEXT_0_TextSize
>> NUMBER
>> 20
>> 
>> 
>> CUSTOM_TEXT_0_TextColor
>> ENUM
>> #00
>> 
>> 
>> CUSTOM_TEXT_0_TextFont
>> ENUM
>> arialuni
>> 
>> 
>> CUSTOM_TEXT_0_Text
>> TEXT
>> My Template Ad2
>> 
>> 
>> CUSTOM_BUTTON_0_Height
>> NUMBER
>> 30
>> 
>> 
>> CUSTOM_BUTTON_0_Width
>> NUMBER
>> 100
>> 
>> 
>> CUSTOM_BUTTON_0_Z
>> NUMBER
>> 3
>> 
>> 
>> CUSTOM_BUTTON_0_TextSize
>> NUMBER
>> 18
>> 
>> 
>> CUSTOM_BUTTON_0_ButtonColor
>> ENUM
>> #00
>> 
>> 
>> CUSTOM_BUTTON_0_TextColor
>> ENUM
>> #ff
>> 
>> 
>> CUSTOM_BUTTON_0_TextFont
>> ENUM
>> arialuni
>> 
>> 
>> CUSTOM_BUTTON_0_Text
>> TEXT
>> My link
>> 
>> 
>> 
>> 468
>> 60
>> 
>> First Template Ad
>> 
>> ENABLED
>> DISAPPROVED
>> true
>> 
>> SEARCH
>> AdStats
>> 0.0
>> 
>> 
>> 
>>
>> Response:
>> 
>> 
>> soap:Server
>> [AdError.AD_FORMAT_NOT_SPECIFIED @ 
>> operations[0].operand.ad.adFormat, AdError.AD_FORMAT_NOT_SPECIFIED @ 
>> operations[1].operand.ad.adFormat, AdError.AD_FORMAT_NOT_SPECIFIED @ 
>> operations[2].operand.ad.adFormat, AdError.AD_FORMAT_NOT_SPECIFIED @ 
>> operations[3].operand.ad.adFormat, AdError.AD_FORMAT_NOT_SPECIFIED @ 
>> operations[4].operand.ad.adFormat, AdError.AD_FORMAT_NOT_SPECIFIED @ 
>> operations[5].operand.ad.adFormat]
>> 
>> https://adwords.google.com/api/adwords/cm/v201306";>
>> [AdError.AD_FORMAT_NOT_SPECIFIED @ 
>> operations[0].operand.ad.adFormat, AdError.AD_FORMAT_NOT_SPECIFIED @ 
>> operations[1].operand.ad.adFormat, AdError.AD_FORM