Re: How can I set a display ad campaign?

2012-12-19 Thread Danial Klimkin
Hello Kapil,


You are looking to create an ImageAd:

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

with targeting for targetContextNetwork:

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

Check out the Placement criterion for targeting:

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


-Danial, AdWords API Team.


On Monday, December 17, 2012 5:37:55 AM UTC-8, Kapil wrote:

 Hey, I create a display ad campaign. So, I uploaded an image with all the 
 details using NetworkSetting in Campaign . But, I don't know how can I 
 select the website where I want to display my ads like I only want to 
 display my ads on youtube. So, I want to know how to select that in adwords 
 API.

 Thanks,

 Kapil


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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: refresh token not returned

2012-12-19 Thread Danial Klimkin
Hello Itai,


The OAuth authorization is common for all Google services and not related 
to the account type or developer token status.

Please send the details requested to Paul via email. This can be done with 
Reply to author option in the drop down list on the right.


-Danial, AdWords API Team.



On Tuesday, December 18, 2012 6:47:58 AM UTC-8, Itai wrote:

 thanks Paul i will take a look
 where should i email the soap request/response
 It does not contain the refresh token.

 I am wondering, could this be because i use a test account? or maybe 
 because my developer token application is still being processed?

 On Tuesday, December 18, 2012 8:19:46 AM UTC+2, Paul Matthews wrote:

 Hi Itai,

 So looking at your example, it seems about right. I wondered if you could 
 look to see if the raw server response from the 
 request GetOAuth2AccessToken contains a refresh_token field. This should be 
 JSON encoded within the response.

 If it is not present then you may need to email AdWords api with your 
 SOAP request / response so we can look into it further.

 Regards,

 - Paul, AdWords API Team.

 On Tuesday, 11 December 2012 12:17:50 UTC, Itai wrote:

 I have created a developer acount, and created a test acount.
 I use OAuth 2.0 for authenticating the user using the php library.
 I use GetOAuth2AuthorizationUrl with second argument as TRUE requesting 
 offline access, and when i see the google authentication page i can see it 
 notifies the user i am requesting offline access.
 Yet when i exchange the code for a token i do not receive the refresh 
 token.
 I couldnt find any related question on this forum or on google search, 
 please advise.

 here is the first part

 $oauth2Info = array('client_id' = $clientId,
 'client_secret' = $clientSecret);
 
 // Create the AdWordsUser and set the OAuth2 info.
 $user = new AdWordsUser();
 $user-SetOAuth2Info($oauth2Info);
 $user-LogAll();
 $user-SetDeveloperToken($developerToken);
 $authorizationUrl = $user-GetOAuth2AuthorizationUrl($redirectUrl, 
 *TRUE*);
 header('Location: ' . $authorizationUrl);

 here is the callback part

 $user = lf_adwords_getUserApi();
 $oauth2Info = $user-GetOAuth2AccessToken($code, $redirectUrl);


  oauth2Info at the end contains the access_token, timestamp, expires_in
 but no refresh token



-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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: SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://adwords.google.com/api/adwords/cm/v201109/CampaignService?wsdl' : failed to load external entity https://adwords.google.com/api/adwords/cm/v2

2012-12-19 Thread Orange Tux
The answer is already given in an other post.

https://groups.google.com/d/msg/adwords-api/tpn7HGYs_KI/j6J32U0lAVgJ

Op vrijdag 7 december 2012 07:25:43 UTC+1 schreef Coder het volgende:

 hello guys.. I'm able to login but when I try to create or get 
 campaigns... following error occurs
 SOAP-ERROR: Parsing WSDL: Couldn't load from '
 https://adwords.google.com/api/adwords/cm/v201109/CampaignService?wsdl' : 
 failed to load external entity 
 https://adwords.google.com/api/adwords/cm/v201109/CampaignService?wsdl; 
 can someone help me with this. I've checked phpinfo() soap is enabled for 
 server and client both.


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

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





Why exist twice definition of REPORT_DEFINITION_SERVICE on class com.google.api.adwords.lib.AdWordsService

2012-12-19 Thread Agnaldo Oliveira
Hello all,

I need use REPORT_DEFINITION_SERVICE, but i get the error: no property 
definition on class com.google.api.adwords.lib.AdWordsService, but on it 
has twice definition of REPORT_DEFINITION_SERVICE.

some one can help me?

com.google.api.adwords.lib.AdWordsService

/**
 * Uses the interface
 * {@link com.google.api.adwords.v201209.cm.ReportDefinitionService}.
 */
public static final AdWordsService REPORT_DEFINITION_SERVICE =
new AdWordsService(ReportDefinitionService, new 
AdWordsVersionV201209(cm), cm);

/**
 * Uses the interface
 * {@link com.google.api.adwords.v201206.cm.ReportDefinitionService}.
 */
public static final AdWordsService REPORT_DEFINITION_SERVICE =
new AdWordsService(ReportDefinitionService, new 
AdWordsVersionV201206(cm), cm);


Tks.

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





test account query

2012-12-19 Thread John Lister
Hi, I registered for a test account and it looks to have been approved. 
However prior to the approval, some updates were made to the account and it 
was showing in the web user interface as what looked to be a normal 
account. I can see that the cost for updates is now 0, so it does indeed 
appear to be a test account, but the account still shows in the web UI and 
I can manipulate it as normal via the UI.

The docs imply that you cannot see test accounts in the UI, so my question 
are: is it actually a test account and can they be seen in the UI? and are 
the updates previously done now live with new updates being disabled or is 
it all disabled?

Thanks

John

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





As a developer: create test account on own, personal MCC or on the MCC of my company?

2012-12-19 Thread Orange Tux
My boss asked me to develop a tool which interacts with the Google Adwords 
API. 

For development purposes I need a test account.
Therefore I've created a MCC for myself to see how it works. It's my 
personal account, I don't have company.
Can I create an testaccount on this MCC? Or will Google refuse my request? 
Because I'm not a company, and I don't
have a company website, a company email etc.

In case above answer is negative. I guess I've to use the MCC of my 
company. In that case I say to my boss
to create a test account. But what test account customer id does he has to 
fill in? When my boss uses his own id,
will I be able to use the test account without the need for knowing my boss 
his password? E.g. for auth.ini?

Or does my boss have to link my account to the MCC and fill in my text 
account customer id? And when I'm linked to the MCC,
will I be able to see settings, rapports, figures and stuff in my boss' 
MCC? Because I'm not allowed to see that?

Summarized: What is the best way to use a test account as a developer 
without knowing login credentials which aren't mine and without access to 
all MCC options, rapports and stuff?


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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: OAuth2 service account for Adwords api

2012-12-19 Thread OzChad
Hi Anash
Wish you have a Merry Christmas and Happy new year,
I am looking forward to try your .Net library that supports JWT for oAuth2  
authentication. thanks very much.


On Monday, 10 December 2012 18:15:16 UTC+11, Anash P. Oommen wrote:

 Hi Oz,

 I pushed an updated version of the .NET client library last week, that has 
 support for JWT. I am still working on a guide for the same, but if you 
 want to try it out then let me know and I'll share the rough set of 
 instructions for the same.

 Just out of curiosity, is there any reason why you are considering JWT 
 workflow over installed applications with offline access?

 Cheers,
 Anash P. Oommen,
 AdWords API Advisor.

 On Monday, 10 December 2012 07:44:06 UTC+5:30, OzChad wrote:

 We are currently on the schedule to update clientLogin authentication to 
 new OAuth2 in our window service (running on schedule to exchange data with 
 adwords, there is no user interaction). However after searching around I 
 couldn't find any clear answers for the parameters required to construct 
 JWT used for OAuth2 such as scope. .net library for using oAuth2 is also 
 not available. Could someone tell if OAuth2 is currently supports for 
 Adwords Api authentication?
 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: Cannot pass Add LogicalUserList API, Please Help.

2012-12-19 Thread Takeshi Hagikura (AdWords API Team)
Hello 

This part of your xml, 
ruleOperands xsi:type=RemarketingUserList
  id1527309/id
/ruleOperands

xsi:Type=RemarketingList should be the element of UserList, not the 
ruleOperands.

Please refer the correct xml example, below I made.

Best,
- Takeshi, AdWords API Team

?xml version=1.0 encoding=UTF-8?
soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/; 
xmlns:xsd=http://www.w3.org/2001/XMLSchema; 
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  soapenv:Header
ns1:RequestHeader 
soapenv:actor=http://schemas.xmlsoap.org/soap/actor/next; 
soapenv:mustUnderstand=0 
xmlns:ns1=https://adwords.google.com/api/adwords/cm/v201209;
  ns1:authToken 
xmlns:ns1=https://adwords.google.com/api/adwords/cm/v201209;**/ns1:authToken
  ns1:clientCustomerId/ns1:clientCustomerId
  ns1:developerToken*/ns1:developerToken
  ns1:userAgentINSERT_COMPANY_NAME (AwApi-Java/8.10.0, Axis/1.4, 
Java/1.6.0-google-v4, legacy)/ns1:userAgent
  ns1:validateOnlyfalse/ns1:validateOnly
  ns1:partialFailurefalse/ns1:partialFailure
/ns1:RequestHeader
  /soapenv:Header
  soapenv:Body
mutate xmlns=https://adwords.google.com/api/adwords/cm/v201209;
  operations
operatorADD/operator
operand xsi:type=ns2:LogicalUserList 
xmlns:ns2=https://adwords.google.com/api/adwords/cm/v201209;
  namelogicalUserList1355973710893/name
  descriptionA list of mars cruise customers in the last 
year/description
  rules
operatorANY/operator
ruleOperands
  UserList xsi:type=ns2:RemarketingUserList
id1591608/id
  /UserList
/ruleOperands
  /rules
/operand
  /operations
/mutate
  /soapenv:Body
/soapenv:Envelope

On Tuesday, December 18, 2012 12:49:49 PM UTC+9, 马玉潮 wrote:

 I use google-adwords-api gem of ruby to write this function.


 My code is below,


  operation = {

 :operator = 'ADD',

 :operand = {

   :xsi_type = LogicalUserList,

   :name = TestFromMike-#{Time.now.to_i},

   :description = TestFromMike-#{Time.now.to_i},

   :status = OPEN,

   :membership_life_span = 30,

   :rules = [

 {

   :xsi_type = UserListLogicalRule,

   :operator = ANY, 

   :rule_operands = [

 {:xsi_type = RemarketingUserList , :id = 1527309} 

 ]


 }

   ]

 }

   }

   

   response = user_list_service.mutate([operation]


 but it failed.


 The log is like below:

 *Request*

 SOAP request: 
 https://adwords.google.com/api/adwords/cm/v201209/UserListService

 SOAPAction: mutate, User-Agent: XMO-Google-Client (AwApi-Ruby/0.7.2, 
 Common-Ruby/0.8.2, Savon/1.2.0, ruby/1.9.2, HTTPI/1.1.1, net_http), 
 Content-Type: text/xml;charset=UTF-8, Content-Length: 1410

 ?xml version=1.0 encoding=UTF-8?env:Envelope xmlns:xsd=
 http://www.w3.org/2001/XMLSchema; xmlns:xsi=
 http://www.w3.org/2001/XMLSchema-instance; xmlns:wsdl=
 https://adwords.google.com/api/adwords/cm/v201209; xmlns:env=
 http://schemas.xmlsoap.org/soap/envelope/;env:Headerwsdl:RequestHeader 
 xmlns=https://adwords.google.com/api/adwords/cm/v201209;userAgent/userAgentdeveloperToken/developerTokenclientCustomerId/clientCustomerIdauthToken**/authToken/wsdl:RequestHeader/env:Headerenv:Bodymutate
  
 xmlns=https://adwords.google.com/api/adwords/cm/v201209;operationsoperatorADD/operatoroperand
  
 xsi:type=LogicalUserListnameTestFromMike-1355801232/namedescriptionTestFromMike-1355801232/descriptionstatusOPEN/statusmembershipLifeSpan30/membershipLifeSpanrules
  
 xsi:type=UserListLogicalRuleoperatorANY/operatorruleOperands 
 xsi:type=RemarketingUserListid1527309/id/ruleOperands/rules/operand/operations/mutate/env:Body/env:Envelope

 *Response*

 HTTPI executes HTTP POST using the net_http adapter

 SOAP response (status 500):

 soap:Envelope 
 xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/;soap:Bodysoap:Faultfaultcodesoap:Client/faultcodefaultstringUnmarshalling
  
 Error: cvc-elt.4.3: Type 'RemarketingUserList' is not validly derived from 
 the type definition, 'LogicalUserListOperand', of element 'ruleOperands'. 
 /faultstring/soap:Fault/soap:Body/soap:Envelope


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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: testing an ad - non api question

2012-12-19 Thread Takeshi Hagikura (AdWords API Team)
Hello,

You can retrieve stats based on your keywords using Keywords Performance 
reporthttps://developers.google.com/adwords/api/docs/appendix/reports#keywords
.

Or based on search queries, using Search Query Performance 
Reporthttps://developers.google.com/adwords/api/docs/appendix/reports#search-query
.

Best,
- Takeshi, AdWords API Team

On Wednesday, December 19, 2012 6:01:36 AM UTC+9, Robert Blackwell wrote:

 I'd be glad to post this somewhere else but I didn't see a regular 
 adwords group.

 I'm really interested in testing how searches are really triggering my ads.

 For example I'd like to do some dummy searches and see which keywords are 
 actually activating the ad and why, ie, exact match, broad, modifiers etc. 

 Is it possible to do this?


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

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





Re: Why exist twice definition of REPORT_DEFINITION_SERVICE on class com.google.api.adwords.lib.AdWordsService

2012-12-19 Thread Takeshi Hagikura
Hello Agnaldo,

Assuming you are talking about old Java client library.
When using it, you should write like in the following code.

  // Get AdWordsUser from ~/adwords.properties.
  AdWordsUser user = new AdWordsUser();

  // Get the ReportDefinitionService.
  ReportDefinitionServiceInterface reportDefinitionService =
  user.getService(AdWordsService.V201209.REPORT_DEFINITION_SERVICE);


And currently there are two active versions for AdWords API (v201206, 
v201209), thus
AdWordsService class has two REPORT_DEFINITION_SERVICE.
Each of them are fields of subclass V201206, V201209.

Note that REPORT_DEFINITION_SERVICE is only used for retrieving the report 
fields.
If you want to retrieve reports data, you should use 
AWQLhttps://developers.google.com/adwords/api/docs/guides/awqlor AdHoc 
Reports https://developers.google.com/adwords/api/docs/guides/reporting.
Client libraries support both ways.

Best,
- Takeshi, AdWords API Team


On Thursday, December 20, 2012 1:48:39 AM UTC+9, Agnaldo Oliveira wrote:

 Hello all,

 I need use REPORT_DEFINITION_SERVICE, but i get the error: no property 
 definition on class com.google.api.adwords.lib.AdWordsService, but on it 
 has twice definition of REPORT_DEFINITION_SERVICE.

 some one can help me?

 com.google.api.adwords.lib.AdWordsService

 /**
  * Uses the interface
  * {@link com.google.api.adwords.v201209.cm.ReportDefinitionService}.
  */
 public static final AdWordsService REPORT_DEFINITION_SERVICE =
 new AdWordsService(ReportDefinitionService, new 
 AdWordsVersionV201209(cm), cm);

 /**
  * Uses the interface
  * {@link com.google.api.adwords.v201206.cm.ReportDefinitionService}.
  */
 public static final AdWordsService REPORT_DEFINITION_SERVICE =
 new AdWordsService(ReportDefinitionService, new 
 AdWordsVersionV201206(cm), cm);


 Tks.


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