Getting Error : java.lang.NoClassDefFoundError: org/apache/commons/lang/exception/NestableDelegate whiel communicating with google ads API

2019-08-19 Thread Shweta Sontakke
Hey there,

My application was running fine till date. Now, I have encountered below 
issue. If there is some dependencies issue then how was it working fine 
earlier? Is there a change in version of google ads dependencies?

Please find below the full stack trace of the error:

java.lang.NoClassDefFoundError: 
org/apache/commons/lang/exception/NestableDelegate
at 
org.apache.commons.lang.exception.NestableException.(NestableException.java:103)
at 
org.apache.commons.configuration.ConfigurationException.(ConfigurationException.java:64)
at 
org.apache.commons.configuration.PropertiesConfigurationLayout.load(PropertiesConfigurationLayout.java:556)
at 
org.apache.commons.configuration.PropertiesConfiguration.load(PropertiesConfiguration.java:513)
at 
org.apache.commons.configuration.AbstractFileConfiguration.load(AbstractFileConfiguration.java:395)
at 
org.apache.commons.configuration.AbstractFileConfiguration.load(AbstractFileConfiguration.java:361)
at 
org.apache.commons.configuration.AbstractFileConfiguration.load(AbstractFileConfiguration.java:324)
at 
org.apache.commons.configuration.AbstractFileConfiguration.load(AbstractFileConfiguration.java:261)
at 
org.apache.commons.configuration.AbstractFileConfiguration.load(AbstractFileConfiguration.java:238)
at 
com.google.api.ads.common.lib.conf.ConfigurationHelper.fromFile(ConfigurationHelper.java:58)
at 
com.google.api.ads.common.lib.auth.OfflineCredentials$ForApiBuilder.fromFile(OfflineCredentials.java:367)
at 
com.google.api.ads.common.lib.auth.OfflineCredentials$ForApiBuilder.fromFile(OfflineCredentials.java:382)
at 
travelclick.media.adwords.service.impl.FeedOperationsServiceImpl.getAdwordsSession(FeedOperationsServiceImpl.java:65)
at 
travelclick.media.adwords.schedular.AdwordsTaskSchedular.scheduleAdwordsTaskWithCron(AdwordsTaskSchedular.java:70)
at sun.reflect.GeneratedMethodAccessor999.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at 
org.springframework.scheduling.support.ScheduledMethodRunnable.run(ScheduledMethodRunnable.java:65)
at 
org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54)
at 
org.springframework.scheduling.concurrent.ReschedulingRunnable.run(ReschedulingRunnable.java:81)
at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)

Regards,
Shweta Padwekar

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/4a25f93a-84cf-4762-af9d-18f252d30bae%40googlegroups.com.


Re: Finding out the given feed_id belongs to which Client_Customer_ID

2019-03-07 Thread shweta . sontakke . tc
Hi There,

So, the process goes like this. Once the feed is created into Adwords, I 
store the feed Id and Feed_item_Id into my database. And, I can see that a 
particular feed has got generated and the feed_id and feed_item_id 
generated is tored into my database. But I am not able to find the feed in 
Adwords. Even if the feed is deleted from Adwords, I will still get that 
feed_id with status as 'Removed' using the selector right?

Attached is my class for finding out the feeds in Adwords. Let me know if 
there is any way to find this feed or anyne of you can find this feed for 
me.

Thanks in Advance.

On Thursday, 7 March 2019 14:00:21 UTC+5:30, shweta.so...@gmail.com wrote:
>
> I have a Feed_Id and I need to find out this id belongs to which 
> Client_Customer_ID in Adwords using the Adwords API.
>
> Please let me know is there any selector using which we can achieve this.
>
> Regards,
> Shweta Padwekar
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/ee084e5f-c573-45af-9721-f68a0197d4c0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
package adwords.axis.v201809.advancedoperations;

import static com.google.api.ads.common.lib.utils.Builder.DEFAULT_CONFIGURATION_FILENAME;

import java.rmi.RemoteException;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;

import com.google.api.ads.adwords.axis.factory.AdWordsServices;
import com.google.api.ads.adwords.axis.utils.v201809.SelectorBuilder;
import com.google.api.ads.adwords.axis.v201809.cm.AdCustomizerFeed;
import com.google.api.ads.adwords.axis.v201809.cm.AdCustomizerFeedPage;
import com.google.api.ads.adwords.axis.v201809.cm.AdCustomizerFeedServiceInterface;
import com.google.api.ads.adwords.axis.v201809.mcm.ManagedCustomer;
import com.google.api.ads.adwords.axis.v201809.mcm.ManagedCustomerLink;
import com.google.api.ads.adwords.axis.v201809.mcm.ManagedCustomerPage;
import com.google.api.ads.adwords.axis.v201809.mcm.ManagedCustomerServiceInterface;
import com.google.api.ads.adwords.lib.client.AdWordsSession;
import com.google.api.ads.adwords.lib.factory.AdWordsServicesInterface;
import com.google.api.ads.adwords.lib.selectorfields.v201802.cm.ManagedCustomerField;
import com.google.api.ads.adwords.lib.selectorfields.v201809.cm.AdCustomizerFeedField;
import com.google.api.ads.common.lib.auth.OfflineCredentials;
import com.google.api.ads.common.lib.auth.OfflineCredentials.Api;
import com.google.api.ads.common.lib.conf.ConfigurationLoadException;
import com.google.api.ads.common.lib.exception.OAuthException;
import com.google.api.ads.common.lib.exception.ValidationException;
import com.google.api.client.auth.oauth2.Credential;
import com.google.common.collect.Maps;
import com.google.common.collect.SortedSetMultimap;
import com.google.common.collect.TreeMultimap;

public class GetAllFeedsInClientCustomerID {

	public static void main(String[] args) throws ValidationException, ConfigurationLoadException, RemoteException {
		AdWordsSession session = null;
		Credential oAuth2Credential = null;
		try {
			// Generate a refreshable OAuth2 credential.
			oAuth2Credential = new OfflineCredentials.Builder().forApi(Api.ADWORDS).fromFile().build()
	.generateCredential();

			// Construct an AdWordsSession.
			session = new AdWordsSession.Builder().fromFile().withOAuth2Credential(oAuth2Credential).build();
		} catch (ConfigurationLoadException cle) {
			System.err.printf("Failed to load configuration from the %s file. Exception: %s%n",
	DEFAULT_CONFIGURATION_FILENAME, cle);
		} catch (ValidationException ve) {
			System.err.printf("Invalid configuration in the %s file. Exception: %s%n", DEFAULT_CONFIGURATION_FILENAME,
	ve);
		} catch (OAuthException oe) {
			System.err.printf(
	"Failed to create OAuth credentials. Check OAuth settings in the %s file. " + "Exception: %s%n",
	DEFAULT_CONFIGURATION_FILENAME, oe);
		}

		AdWordsServicesInterface adWordsServices = AdWordsServices.getInstance();
		List clientCustomerIds = getAccountHierarchy(adWordsServices, session);
		System.out.println("All accounts present under 

Finding out the given feed_id belongs to which Client_Customer_ID

2019-03-07 Thread shweta . sontakke . tc
I have a Feed_Id and I need to find out this id belongs to which 
Client_Customer_ID in Adwords using the Adwords API.

Please let me know is there any selector using which we can achieve this.

Regards,
Shweta Padwekar

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/94cd2660-a876-4345-8325-5a8dc219a7ed%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Set target campaign in Adwords

2019-02-07 Thread shweta . sontakke . tc
Hi Bharani,

Thanks for the update. But, in the GIT link mentioned for Java code, I have 
seen that instead of FeedItem, PriceFeedItem is used. I particularly want 
to use FeedItem class.

Regards,
Shweta Padwekar


On Thursday, 7 February 2019 22:08:59 UTC+5:30, googleadsapi-forumadvisor 
wrote:
>
> Hello Shweta, 
>
> You can use FeedItemTargetService 
> 
>  to 
> restrict individual feed items to only target specific campaigns, ad 
> groups, or criteria. You may use the FeedItemCampaignTarget 
> 
>  to 
> target the feed items to a campaigns. You may refer to the code sample in 
> Java 
> 
>  as 
> a reference on to target a campaign. Code samples in other languages can be 
> found here 
> . 
>
> Regards,
> Bharani, AdWords API Team
>
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
> Also find us on our blog and discussion group:
> http://googleadsdeveloper.blogspot.com/search/label/adwords_api
> https://developers.google.com/adwords/api/community/
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
>
> Was your question answered? Please rate your experience with us by taking 
> a short survey.
> If not -- reply to this email and tell us what else we can do to help.
>
> Take Survey 
> 
>
> Also find us on our blog and discussion group:
> http://googleadsdeveloper.blogspot.com/search/label/adwords_api
> https://developers.google.com/adwords/api/community/
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/77f56aba-38ac-492a-b929-59bab419771e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Set target campaign in Adwords

2019-02-07 Thread shweta . sontakke . tc
Hi, 

I was using Adwords API version v201802. I was setting the target campaign 
in Feed Item using the *feedItem.setCampaignTargeting. *But, since this 
version has been deprecated and this method is not availaible in version 
v201806 
as well as v201809. 

So, please do let me know how can I set the targeting campaign in these 
versions asap as this is the production issue.

Regards,
Shweta Padwekar

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/2dab3cfd-8f48-43d2-97c6-80fa37c7e83d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Logging issue for Adwords

2019-01-14 Thread shweta . sontakke . tc
Hi, 

I am using logback.xml to wite the logs. I am able to write the logs to 
console but not able to write it to files while using adwords api.

Below is my logback.xml file:






%d{-MM-dd HH:mm:ss.SSS} %d[%thread] %-5level %logger{36}
- %msg%n




adwords.log


adwords.%d{-MM-dd-HH}.log

30
3GB


%d [%thread] %-5level %logger{50} - %msg%n











Below are the dependencies I am using,


org.slf4j
slf4j-api
1.7.5


ch.qos.logback
logback-classic
1.1.8


ch.qos.logback
logback-core
1.1.8


Please let me know if any dependency conflicts are there while using 
adwords API?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/8541772f-d7cd-4c3a-9342-8ed49362fe2f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Not able to print the SOAP logs when using BatchJobService for Adwords Java API

2018-11-30 Thread shweta . sontakke . tc
Hi,

I am using BatchJobservice using Java API, I am not able to print the SOAP 
request and response logs. Here is my log4j.properties file:

log4j.category.com.google.api.ads.adwords.lib.client.AdWordsServiceClient.soapXmlLogger=INFO,
 
CONSOLE
log4j.category.com.google.api.ads.adwords.lib.client.AdWordsServiceClient.requestInfoLogger=INFO,
 
CONSOLE
log4j.category.com.google.api.ads.adwords.lib.utils.report_download=INFO, 
CONSOLE
log4j.category.com.google.api.ads.adwords.lib.utils.batch_job=INFO, CONSOLE

# Set the default logger for everything else to be no logs. This prevents 
all of
# the Axis libraries from complaining that no log is specified for them.
log4j.rootLogger=off

log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout
# Configure the console logger to write to stderr since examples write
# important messages to stdout.
log4j.appender.CONSOLE.Target=System.out
log4j.appender.CONSOLE.Threshold=INFO
log4j.appender.CONSOLE.layout.ConversionPattern=[%d{DATE}-%c{1}:%p:%t] %m%n

Please let me know if I need to do any additional settings in order to 
print the SOAP logs.

Regards,
Shweta

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/93c0e326-989b-419d-b6cd-aa58fef8aede%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Adwords API BatchJobService returns FILE_FORMAT_ERROR

2018-11-30 Thread shweta . sontakke . tc
Hi Shwetha,

I am facing the same issue with BatchJobService. I am using batch job 
service for Feed Creation and it is throwing me an error saying 
"FILE_FORMAT_ERROR". Even I am not able to print the SOAP logs. Following 
is the property I am using for logging the SOAP requests and responses:

log4j.category.com.google.api.ads.adwords.lib.client.AdWordsServiceClient.soapXmlLogger=INFO,
 
CONSOLE
log4j.category.com.google.api.ads.adwords.lib.client.AdWordsServiceClient.requestInfoLogger=INFO,
 
CONSOLE
log4j.category.com.google.api.ads.adwords.lib.utils.report_download=INFO, 
CONSOLE
log4j.category.com.google.api.ads.adwords.lib.utils.batch_job=INFO, CONSOLE 

My Batch Job Id is 919715814.


Regards,
Shweta


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/4c0676ae-81c5-4e33-8036-b4271de6d31e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.