API for automatic placements

2011-12-27 Thread Nithin
Hello,
 We need to manage the automatic placements domains via Google
AdWords API.

List of things to do

1. Get the List of automatic placements
2. Move the need automatic placements to Managed placements
3. Get the URL List of automatic placements domains

To do the Above operations which API service we need to use.

Thanks,
-Nithin

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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: Axis doesn't generate TargetingIdea class from WSDL

2011-12-27 Thread Maxim
Kevin, I'm using axis 1.4 as well, which is why I was surprised.
I already coded for using the Type_AttributeMapEntry[][] so it's not a
big deal. If I'm the only one who has this problem then don't worry
about it. Most people are probably using your client libs where
everything is already generated.

On Dec 27, 5:46 am, Kevin Winter  wrote:
> Hi Maxim,
>   What version of axis are you using?  I believe we're using axis 1.4 for
> the existing Java library and did not run into this issue.  We're trying to
> add support for axis 2 in the rewrite of the java library, but have run
> into some fun issues getting the classes generated (current solution
> involves hacking some XSLT to get it somewhat right - still very much a
> work in progress).
>
> - Kevin Winter
> AdWords API Team

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

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


Re: Axis doesn't generate TargetingIdea class from WSDL

2011-12-27 Thread Kevin Winter
Hi Maxim,
  What version of axis are you using?  I believe we're using axis 1.4 for 
the existing Java library and did not run into this issue.  We're trying to 
add support for axis 2 in the rewrite of the java library, but have run 
into some fun issues getting the classes generated (current solution 
involves hacking some XSLT to get it somewhat right - still very much a 
work in progress).

- Kevin Winter
AdWords API Team

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

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


API for automatic placements

2011-12-27 Thread nithin
Hello,
 We need to manage the automatic placements domains via Google
AdWords API. please help us which API service we need to use to do the
below task.

List of things to do

1. Get the List of automatic placements
2. Move the need automatic placements to Managed placements
3. Get the URL List of automatic placements domains

Thanks,
-Nithin

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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: Keyword returned as "Content"

2011-12-27 Thread repo...@butlertill.com
Hello Evgeniy,

I dont know if my code will help in this case, because the output only
for one my campaigns has this problem. All other campaigns give
correct output.

protected void btnGenerateDate_Click(object sender, EventArgs e)
{

user = new AdWordsUser(headers);
long reportDefinitionId = 0;
List fields = new List();

// get required fields for reporting

// Create campaign predicate.
List campaigns = new List(); ;

// get required campaigns for reporting

Predicate CampaignPredicate = new Predicate();
CampaignPredicate.field = "CampaignId";
CampaignPredicate.@operator = PredicateOperator.IN;
CampaignPredicate.values = campaigns.ToArray();



Selector selector = new Selector();
selector.fields = fields.ToArray();
selector.dateRange = new DateRange();
selector.dateRange.min =
txtStartDate.Text.ToString("MMdd");
selector.dateRange.max =
txtEndDate.Text.ToString("MMdd");
selector.predicates = new Predicate[]
{ CampaignPredicate };



// Create report definition.
ReportDefinition reportDefinition = new
ReportDefinition();
reportDefinition.reportName = "test";
reportDefinition.dateRangeType =
ReportDefinitionDateRangeType.CUSTOM_DATE;
reportDefinition.reportType = reportType;
reportDefinition.downloadFormat = DownloadFormat.XML;
reportDefinition.selector = selector;


ReportDefinitionOperation operation = new
ReportDefinitionOperation();
operation.operand = reportDefinition;
operation.@operator = Operator.ADD;


// Add report definition.
reportDefinitionService =
(ReportDefinitionService)user.GetService(AdWordsService.v201101.ReportDefinitionService);
ReportDefinition[] result =
reportDefinitionService.mutate(new ReportDefinitionOperation[]
{ operation });

// Display report definitions.
if (result != null)
{
foreach (ReportDefinition temp in result)
{
reportDefinitionId = temp.id;
}

string url = string.Format("https://
adwords.google.com/api/adwords/reportdownload?__rd={0}",
reportDefinitionId);

WebRequest request = HttpWebRequest.Create(url);

if (!
string.IsNullOrEmpty(reportDefinitionService.RequestHeader.clientCustomerId))
{
request.Headers.Add("clientCustomerId: " +
reportDefinitionService.RequestHeader.clientCustomerId);
}
else if (!
string.IsNullOrEmpty(reportDefinitionService.RequestHeader.clientEmail))
{
request.Headers.Add("clientEmail: " +
reportDefinitionService.RequestHeader.clientEmail);
}

if (!
string.IsNullOrEmpty(reportDefinitionService.RequestHeader.authToken))
{
request.Headers.Add("Authorization:
GoogleLogin auth=" + reportDefinitionService.RequestHeader.authToken);
}

WebResponse response = request.GetResponse();
XmlDocument xmlDoc = new XmlDocument();
xmlDoc.Load(response.GetResponseStream());

XmlNodeList column =
xmlDoc.GetElementsByTagName("columns");

XmlNodeList childnodes = column[0].ChildNodes;


XmlNodeList rows =
xmlDoc.GetElementsByTagName("row");
}

}

I am using the AdWords.v201101 and AdWords.v13 library.

Also, I noticed that this particular campaign which give the all
output keywords as "Content", is the only Paused campaign. Does this
have anything to do with it?

Please let me know what you think.

-Vishal

On Dec 15, 5:11 pm, Evgeniy Bogdanov  wrote:
> Hi Vishal.
>
> Which library do you using?
> I think that you want to use TargetingIdeService, but have errors in
> your parameters.
> Please, show your code or SOAP XML request.
>
> Regards,
> Evgeniy.

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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: Axis doesn't generate TargetingIdea class from WSDL

2011-12-27 Thread Kevin Winter
Hi Maxim,
  I can confirm that our TargetingIdeaPage does have a getEntries value of 
TargetingIdea: 
http://code.google.com/p/google-api-adwords-java/source/browse/trunk/src/com/google/api/adwords/v201109/o/TargetingIdeaPage.java#61

I've seen similar issues where an object with a single inner field can be 
"unwrapped" in this fashion (notable in python which uses hashes), but 
never for classes.  Perhaps there's an option controlling this feature that 
is different between our two usages of axis 1.4.  What about v201101?  If 
you generate the classes against v201101 do you see the same behavior?  I 
don't see any changes between v201101 and v201109 for these objects, so I'm 
surprised this only appeared in v201109.

- Kevin Winter
AdWords API Team

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

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


Re: Axis doesn't generate TargetingIdea class from WSDL

2011-12-27 Thread Maxim
We are still on v201008 and I'm building v201109 client.
Sounds like an axis config problem. I'm on a skiing trip at the
moment, but I'll try different settings. Thanks for your help.

On Dec 27, 9:23 am, Kevin Winter  wrote:
> Hi Maxim,
>   I can confirm that our TargetingIdeaPage does have a getEntries value of
> TargetingIdea:http://code.google.com/p/google-api-adwords-java/source/browse/trunk/...
>
> I've seen similar issues where an object with a single inner field can be
> "unwrapped" in this fashion (notable in python which uses hashes), but
> never for classes.  Perhaps there's an option controlling this feature that
> is different between our two usages of axis 1.4.  What about v201101?  If
> you generate the classes against v201101 do you see the same behavior?  I
> don't see any changes between v201101 and v201109 for these objects, so I'm
> surprised this only appeared in v201109.
>
> - Kevin Winter
> AdWords API Team

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

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


Sneak-preview of the new AdWords API Java Library

2011-12-27 Thread AdWords API Advisor
Hi everyone,

We just launched a sneak preview of the new AdWords API Java library.
This is an experimental version to get early feedback.

You can find the example project ready to download here:

http://code.google.com/p/google-api-ads-java/downloads/detail?name=adwords-examples-0.2.0.tar.gz

Once you extract the library, it's as easy as:

$ cd adwords-examples/adwords_axis

# Modify ads.properties file (see README)

$ mvn compile
$ mvn exec:java -
Dexec.mainClass="adwords.axis.v201109.GetAllCampaigns"

Some of the features are:
  - Maven2 support
  - SL4J support
  - Only logging soap of warning or higher (configurable)
  - Easier configuration of credentials
  - OAuth

We have great things in store, but if there is anything else you'd
like to see, please let us know.

Thanks,
Adam and the Java library team

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

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


Re: Axis doesn't generate TargetingIdea class from WSDL

2011-12-27 Thread Kevin Winter
Hi Maxim,
  One of the previous maintainers of the current java library mentioned 
that there's a flag for WSDL2JAVA and you need to tell it to generate 
"all", all="true" for the ant task, --all for command line.

- Kevin Winter

On Tuesday, December 27, 2011 1:22:22 PM UTC-5, Maxim wrote:
>
> We are still on v201008 and I'm building v201109 client. 
> Sounds like an axis config problem. I'm on a skiing trip at the 
> moment, but I'll try different settings. Thanks for your help. 
>

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

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


Re: Axis doesn't generate TargetingIdea class from WSDL

2011-12-27 Thread Maxim
Yes, I always use "all", but in this case axis decided to unwrap the
type.
Oh well...

On Dec 27, 2:14 pm, Kevin Winter  wrote:
> Hi Maxim,
>   One of the previous maintainers of the current java library mentioned
> that there's a flag for WSDL2JAVA and you need to tell it to generate
> "all", all="true" for the ant task, --all for command line.
>
> - Kevin Winter
>
>
>
>
>
>
>
> On Tuesday, December 27, 2011 1:22:22 PM UTC-5, Maxim wrote:
>
> > We are still on v201008 and I'm building v201109 client.
> > Sounds like an axis config problem. I'm on a skiing trip at the
> > moment, but I'll try different settings. Thanks for your help.

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

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


UNEXPECTED_INTERNAL_API_ERROR when adding RemarketingUserList and ConversionType

2011-12-27 Thread Sanjay Vel
I am using google-adwords version v201101. When trying to insert the
RemarketingUserList, I am getting the following error

[InternalApiError.UNEXPECTED_INTERNAL_API_ERROR @
com.google.ads.api.services.common.error.InternalApiError.(InternalApiErro]

My UserListTest.java


UserListConversionType conversionType = new
UserListConversionType();
conversionType.setName("Mars cruise customers");

// Create remarketing user list.
RemarketingUserList userList = new RemarketingUserList();
userList.setName("Mars cruise customers #" +
System.currentTimeMillis());
userList.setDescription("A list of mars cruise customers in the 
last
year");
userList.setMembershipLifeSpan(365L);
userList.setConversionTypes(new UserListConversionType[]
{ conversionType });

// Create operations.
UserListOperation operation = new UserListOperation();
operation.setOperand(userList);
operation.setOperator(Operator.ADD);

UserListOperation[] operations = new UserListOperation[]
{ operation };

// Add user list.
UserListReturnValue result =
getUserListService().mutate(operations);


Why I am getting this error? How to resolve 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: UNEXPECTED_INTERNAL_API_ERROR when adding RemarketingUserList

2011-12-27 Thread Sanjay Vel
Hi tony

Have u found solutin for this problem? I am also getting the same
error/

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


Response is not well-formed XML - Debug mode

2011-12-27 Thread Minh Le
I got this error when running the application in debug mode:

System.InvalidOperationException: Response is not well-formed XML. ---
> System.X
ml.XmlException: Data at the root level is invalid. Line 1, position
1.
   at System.Xml.XmlTextReaderImpl.Throw(Exception e)
   at System.Xml.XmlTextReaderImpl.ParseRootLevelWhitespace()
   at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
   at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader,
Boolean preserveWhitespace)
   at System.Xml.XmlDocument.Load(XmlReader reader)
   at System.Xml.XmlDocument.Load(TextReader txtReader)
   at Google.Api.Ads.Common.Util.SerializationUtilities.LoadXml(String
xmlText)
   at
Google.Api.Ads.Common.Lib.SoapListenerExtension.CallListeners(Direction
direction)
   at
Google.Api.Ads.Common.Lib.SoapListenerExtension.ProcessMessage(SoapMessage
message)
   at
System.Web.Services.Protocols.SoapMessage.RunExtensions(SoapExtension[]
extensions, Boolean throwOnException)
   at
System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage
message, WebResponse response, Stream responseStream, Boolean
asyncCall)
   at
System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String
methodName, Object[] parameters)
   --- End of inner exception stack trace ---
   at
System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String
methodName, Object[] parameters)
   at Google.Api.Ads.Common.Lib.AdsSoapClient.MakeApiCall(String
methodName, Object[] parameters)
   at Google.Api.Ads.AdWords.Lib.AdWordsSoapClient.MakeApiCall(String
methodName, Object[] parameters)
   at Google.Api.Ads.Common.Lib.AdsSoapClient.Invoke(String
methodName, Object[] parameters)
   at
Google.Api.Ads.AdWords.v201109.CampaignCriterionService.mutate(CampaignCriterionOperation[]
operations)

Does anyone have a solution?

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