Re: DEBUG: Did not load optional configuration file log exception for every request

2016-06-17 Thread Gazal Garg
You should add google-ads-api-java-build.properties file in your 
application's resource folder.
For me the content of the file was: 

lib.name=Common-Java
lib.version=2.15.0
# Options are:
#   internal: not deployed
#   maven: deployed by maven
#   jars: dependency jars
build.type=maven



On Thursday, 12 December 2013 06:19:10 UTC+5:30, Takeshi Hagikura (AdWords 
API Team) wrote:
>
> Hi, 
>
> As I replied previously, can you please share the pom.xml?
>
> Best,
> - Takeshi,
>
> On Friday, December 6, 2013 7:53:55 AM UTC-8, r...@oanda.com wrote:
>>
>> I encounter this issue, any solution/update?
>>
>> On Friday, May 31, 2013 6:03:12 AM UTC-4, Takeshi Hagikura wrote:
>>>
>>> Hi Sanju,
>>>
>>> Thanks for the report. 
>>> I'm looking into that. Do you mind sharing the pom.xml you are using?
>>> I'd like to make sure what log framework you are using.
>>>
>>> Best,
>>> - Takeshi, AdWords API Team
>>>
>>> On Tuesday, May 28, 2013 10:31:33 PM UTC+9, Sanju wrote:

 Hi,

 When am trying to get AdWordsSession object using credentials 


 And also when am trying to get CampaignService from service object like 
 CampaignServiceInterface campaignService = 
 adWordsServices.get(adwordsSession, CampaignServiceInterface.class);
 am getting following log error:

 com.google.api.ads.common.lib.utils.logging.AdsServiceLoggers.ads_api_lib 
 createCombinedConfiguration 
 DEBUG: Did not load optional configuration 
 google-ads-api-java-build.properties:
 com.google.api.ads.common.lib.conf.ConfigurationLoadException: 
 Encountered a problem reading the provided configuration file 
 "google-ads-api-java-build.properties"!
 at 
 com.google.api.ads.common.lib.conf.ConfigurationHelper.fromFile(ConfigurationHelper.java:67)
 at 
 com.google.api.ads.common.lib.conf.ConfigurationHelper.createCombinedConfiguration(ConfigurationHelper.java:140)
 
 
 
 Caused by: org.apache.commons.configuration.ConfigurationException: 
 Cannot locate configuration source google-ads-api-java-build.properties

  But am getting the service object reference correct and all the 
 operations are going well but above logs making me confusion.



 Thnx in adv.

>>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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.
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/1e470c07-76c5-4747-9661-810d42473ea5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Unable to setup FeedMapping for FINAL_URL

2016-06-16 Thread Gazal Garg
I'm using AdWords API to manage product feed for Dynamic Remarking using Custom 
Type Feed Placeholder Template 

. 
I'm able to setup the feed with all the attributes but I'm unable to setup 
feed-mapping for FINAL_URL of type URL_LIST with PLACEHOLDER ID = 13.

The mapping for all other attribute seem to work fine but as soon as I 
include a FeedMappingAttribute for FINAL_URL of type URL_LIST for 
PLACEHOLDER_ID = 13 the API stops working with exception message - *null*.

Setting up feed attribute for FINAL_URL.

val finalUrlAttribute: FeedAttribute = new FeedAttribute()
finalUrlAttribute.setType(FeedAttributeType.URL_LIST)
finalUrlAttribute.setName("FINAL_URL")
finalUrlAttribute.setIsPartOfKey(false)
finalUrlAttribute


Setting up feed attribute mapping.

val finalUrlFieldMapping: AttributeFieldMapping = new 
AttributeFieldMapping()
finalUrlFieldMapping.setFeedAttributeId(7)
finalUrlFieldMapping.setFieldId(13)
finalUrlFieldMapping


Final URL is a mandatory field and I'm not able to get it to work with this 
code.

I also went through this doc about Upgraded Url 

 and 
could not find any thing relevant for CustomType Feeds, although all the 
examples here talks about only SiteLink Feed.

Any insights you could provide will be really helpful. 

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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.
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/a357c4d8-5762-4eea-a74f-1b2c70504c38%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Get FeetItem by Key Attribute Value

2016-06-15 Thread Gazal Garg


I am using Google AdWords API to manage my Product Feeds for Dynamic 
Remarketing. I have created a Custom Type Feed with, let's say, three 
Attributes.

PRODUCT_ID (key, number), PRODUCT_NAME (text), PRICE (text)

(Note PRODUCT_ID is the Key here.)

I am able to insert FeedItems to it using the API and get FeedItemId as a 
result of ADD operation. I can also use this FeedItemId to query FeedItem. 
But is it possible to query/get FeedItems by filter on one of the above 
attributes? In my case, can I query using the PRODUCT_ID attribute (instead 
of FeedItemId)?

I have read this documentation 

 which 
says AttributeValues are not filterable. Although the documentation of 
FeedItemService says this for feedItemId:


ID of this feed item. This may be unspecified if the user-defined key 
> attributes are specified
>

which sounds like user defined key can be used in place of FeedItemId and 
hence might become filterable. I am not able to get this to work though.

I am creating a Selector using SelectorBuilder like this:

val selector = new SelectorBuilder() .fields("FeedItemId", 
"AttributeValues") .equals("FeedId", feedId.toString) .build() 

which returns me all the FeedItem in the given Feed. But notice how API 
stops working if I add an extra filter like:

.equals("PRODUCT_ID", someProductId.toString)

or

.equals("FeedItemId", someProductId.toString)

or

.equals("ID", someProductId.toString)

but it does work if I change the condition to pass FeedItemId

.equals("FeedItemId", someFeedItemId.toString)

If it is not possible to filter based on attribute values then I will have 
to maintain the mapping from PRODUCT_ID to FeedItemId in my database, which 
is doable but comes with extra maintenance cost.


Any insights you could provide is really appreciated. Thanks!


Link to stackoverflow post  


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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.
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/6a83ef50-b9f4-4b0f-a7c5-d6e4081a9c64%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Access FeedItems by a Key Attribute Value

2016-06-15 Thread Gazal Garg


I am using Google AdWords API to manage my Product Feeds for Dynamic 
Remarketing. I have created a Custom Type Feed with, let's say, three 
Attributes.

PRODUCT_ID (key, number), PRODUCT_NAME (text), PRICE (text)

(Note PRODUCT_ID is the Key here.)

I am able to insert FeedItems to it using the API and get FeedItemId as a 
result of ADD operation. I can also use this FeedItemId to query FeedItem. 
But is it possible to query/get FeedItems by filter on one of the above 
attributes? In my case, can I query using the PRODUCT_ID attribute (instead 
of FeedItemId)?

I have read this documentation 

 which 
says AttributeValues are not filterable. Although the documentation of 
FeedItemService says this for feedItemId:


ID of this feed item. This may be unspecified if the user-defined key 
> attributes are specified
>

which sounds like user defined key can be used in place of FeedItemId and 
hence might become filterable. I am not able to get this to work though.

I am creating a Selector using SelectorBuilder like this:

val selector = new SelectorBuilder() .fields("FeedItemId", 
"AttributeValues") .equals("FeedId", feedId.toString) .build() 

which returns me all the FeedItem in the given Feed. But notice how API 
stops working if I add an extra filter like:

.equals("PRODUCT_ID", someProductId.toString)

or

.equals("FeedItemId", someProductId.toString)

or

.equals("ID", someProductId.toString)

but it does works if I change the condition to pass FeedItemId

.equals("FeedItemId", someFeedItemId.toString)

If it is not possible to filter based on attribute values then I will have 
to maintain the mapping from PRODUCT_ID to FeedItemId in my database, which 
is doable but comes with extra maintenance cost.


Any insights you could provide is really appreciated. Thanks!


Link to stackoverflow post 


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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.
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/c6daffb5-6922-4646-ab26-138fadec5361%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.