Re: Error during creation of ads - CANNOT_SET_FIELD - URL - V201502

2015-07-24 Thread William Perrello
umesh - my info tells me that this change should not be necessary until the 
demise of the 201409 API which is supposed to be supported till next 
tuesday.  Did it get demised early?  

On Tuesday, July 14, 2015 at 2:11:26 PM UTC-4, Umesh Dengale wrote:

 Hello,

 Please use textAd.*setFinalUrls()* method instead of textAd.setUrl(). 
 Check out our AdTextAds 
 https://github.com/googleads/googleads-java-lib/blob/master/examples/adwords_axis/src/main/java/adwords/axis/v201502/basicoperations/AddTextAds.java
  example 
 in the Java client library. 

 Thanks,
 Umesh, AdWords API Team.


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/082e4fe5-8a92-4c90-abc4-7dd4ad8aea48%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Error during creation of ads - CANNOT_SET_FIELD - URL - V201502

2015-07-24 Thread Umesh Dengale
Hello,

The sunset date 
https://developers.google.com/adwords/api/docs/sunset-dates for v201409 
is 07/28/2015. Above mentioned changes(Final URL) are applicable to 
V201409. Please check out the AdTextAds 
https://github.com/googleads/googleads-java-lib/blob/master/examples/adwords_axis/src/main/java/adwords/axis/v201409/basicoperations/AddTextAds.java
 example 
(v201409) in the Java client library.

Thanks,
Umesh, AdWords API Team.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/da2d2820-bcb3-4d57-bda7-5b0a5c509631%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Error during creation of ads - CANNOT_SET_FIELD - URL - V201502

2015-07-14 Thread Assaf Frank
Hi,

My creation of ads *worked properly a week ago and now *, for some reason, 
I can't create ads.
Is this due to the last changed in upgraded URLs etc ?

I do set all parameters -

AdWordsServices adwordsServices = new AdWordsServices();
// Get the CampaignService.
AdGroupAdServiceInterface adGroupAdService = 
adwordsServices.get(session, AdGroupAdServiceInterface.class);
 
 long adGroupId = Long.parseLong(pAdGroupID);

 // Create ad group ad.
  AdGroupAd textAdGroupAd = new AdGroupAd();
  textAdGroupAd.setAdGroupId(adGroupId);
 
  textAdGroupAd.setStatus(pStatus);
  
  TextAd textAd = new TextAd();
  textAd.setHeadline(pHeadline);
  textAd.setDescription1(pDescription1);
  textAd.setDescription2(pDescription2);
  textAd.setDisplayUrl(pDisplayURL);
  textAd.setUrl(pURL);
 
  textAdGroupAd.setAd(textAd);

  // Create operations.
  AdGroupAdOperation textAdGroupAdOperation = new AdGroupAdOperation();
  textAdGroupAdOperation.setOperand(textAdGroupAd); 
 textAdGroupAdOperation.setOperator(Operator.ADD);

  AdGroupAdOperation[] operations = new AdGroupAdOperation[] 
{textAdGroupAdOperation};   
  // Add ads.
  AdGroupAdReturnValue result = adGroupAdService.mutate(operations);

The error I get is: 

faultString: [AdError.CANNOT_SET_FIELD @ operations[0].operand.ad.url]
 faultActor: 
 faultNode: 
 faultDetail: 
{https://adwords.google.com/api/adwords/cm/v201502}ApiExceptionFault:message[AdError.CANNOT_SET_FIELD
 
@ 
operations[0].operand.ad.url]/messageApplicationException.TypeApiException/ApplicationException.Typeerrors
 
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; 
xsi:type=AdErrorfieldPathoperations[0].operand.ad.url/fieldPathtrigger/errorStringAdError.CANNOT_SET_FIELD/errorStringApiError.TypeAdError/ApiError.TypereasonCANNOT_SET_FIELD/reason/errors

[AdError.CANNOT_SET_FIELD @ operations[0].operand.ad.url]

Thanks,



-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/273407b1-9588-4c67-bcbd-4cb043caead7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Error during creation of ads - CANNOT_SET_FIELD - URL - V201502

2015-07-14 Thread Umesh Dengale
Hello,

Please use textAd.*setFinalUrls()* method instead of textAd.setUrl(). Check 
out our AdTextAds 
https://github.com/googleads/googleads-java-lib/blob/master/examples/adwords_axis/src/main/java/adwords/axis/v201502/basicoperations/AddTextAds.java
 example 
in the Java client library. 

Thanks,
Umesh, AdWords API Team.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/713c23cf-8f79-429f-98d3-641e6edd52ce%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.