Correct Field for Content API: Sales Country vs. Feed Label vs. Target Country

2022-08-16 Thread Joanna H.
Hi Everyone,

We currently use the Content API to pass up shipping details for products 
shippable to Canada and the United States. While our full product catalog 
is shippable to the US, only select products are shippable to Canada. 

For shipping_country, we pass up values of "US" and for some products, also 
pass up separately a value of "CA"

We believe we also need to pass up a sales_country field with the same 
values in order to properly set-up Google Shopping campaigns targeting 
Canada such that we only include products that are purchasable by Canadian 
users.

Looking into the Content API documentation, it seems like sales_country 
might not be the correct field name and we should instead use targetCountry 
- can someone confirm if this is the case?

Additionally, with the update noted here 
,
 
it is a little unclear if we still need to make the above change or if we 
should instead use feedLabel and pass up values for "US" and "CA" instead. Can 
someone confirm whether or not we should do this instead? And if we do so, 
what the expected outcome will look like in the Google Ads UI?

Thanks!

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"Google Ads API and AdWords 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/7147dfb9-15a8-48a1-a915-2f9407625340n%40googlegroups.com.


DistinctError.DUPLICATE_ELEMENT with CampaignExtensionSetting

2015-07-15 Thread Joanna
Hello,
I am trying to add and remove sitelink extensions  using the following 
request:

http://schemas.xmlsoap.org/soap/envelope/"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
   
  https://adwords.google.com/api/adwords/cm/v201506";>
 8MQ2891hEAbOZ_Szp5x0fw
 9887064440
 INSERT_YOUR_COMPANY_OR_APPLICATION_NAME_HERE 
(AwApi-DotNet/18.14.0, Common-Dotnet/3.8.0, .NET CLR/4.0.30319.34014, 
gzip)
  
   
   
  https://adwords.google.com/api/adwords/cm/v201506";>
 
ADD

   203208457
   SITELINK
   
  
 Best 3.
 
http://www.hotels.com
 
  
  
 Best price - 35$.
 
http://www.hotels.com
 
  
   

 
 
REMOVE

   203208457
   SITELINK
   
  
 1790337999
  
  
 1790338002
  
   

 
  
   


but I gen an error saying:
http://schemas.xmlsoap.org/soap/envelope/";>https://adwords.google.com/api/adwords/cm/v201506";>00051ae79a0399800a8138d70600a3a2CampaignExtensionSettingServicemutate059soap:Server[DistinctError.DUPLICATE_ELEMENT
 
@ operations[1]]https://adwords.google.com/api/adwords/cm/v201506";>[DistinctError.DUPLICATE_ELEMENT
 
@ 
operations[1]]ApiExceptionhttp://www.w3.org/2001/XMLSchema-instance"; 
xsi:type="DistinctError">operations[1]DistinctError.DUPLICATE_ELEMENTDistinctErrorDUPLICATE_ELEMENT

I do not see any duplicated element. What can be the reason for this error?
Best regards,
Joanna

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/7d90fccc-a897-43d8-bf4e-8626768105f5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Strange SelectorError.START_INDEX_IS_TOO_HIGH

2014-09-26 Thread Joanna
Hello Daniel,
Thank you for a fast response. I see campaignId and adGroupId are not 
included with zero impression results :/ Is there a report that I could 
extract this information (something corresponding to the 
campaignfeedservice/adgroupfeedservice)?
Best regards,
Joanna

W dniu czwartek, 25 września 2014 13:16:11 UTC+2 użytkownik Danial Klimkin 
napisał:
>
> Hello Joanna,
>
>
> Thank you for bringing this to our attention. We've recently switched from 
> report-level zero-impression compatibility to column-level. See the 
> "Supports Zero Impressions" column.
>
> As long as you only request columns marked as compatible, the report will 
> return zero rows.
>
> I'll get our documentation updated.
>
>
> -Danial, AdWords API Team.
>
>
> On Thursday, September 25, 2014 11:27:42 AM UTC+4, Joanna wrote:
>>
>> Hi Daniel,
>> I need to get feed items (to get enhanced sitelinks) and I came the 
>> SelectorError.START_INDEX_IS_TOO_HIGH  problem. I see the report does not 
>> support zero impression items 
>> https://developers.google.com/adwords/api/docs/appendix/reports#placeholder-feed-item.
>>  
>> What can I do in this case when I want to get over 100 000 feed items that 
>> may have zero impressions?
>> Best regards,
>> Joanna
>>
>>
>> W dniu wtorek, 1 kwietnia 2014 13:22:39 UTC+2 użytkownik Danial Klimkin 
>> napisał:
>>>
>>> Hello,
>>>
>>>
>>> Reporting does not support paging but it supports predicates. You can 
>>> split report by dates or campaign IDs, for example.
>>>
>>>
>>> -Danial, AdWords API Team.
>>>
>>>
>>> On Monday, March 31, 2014 11:02:28 PM UTC+4, ddofborg wrote:
>>>>
>>>> Is there a way to limit the size of the AdHoc report? I'd like to 
>>>> download is in parts and not as a whole.
>>>>
>>>> On Sunday, September 8, 2013 11:44:08 AM UTC+2, Takeshi Hagikura 
>>>> (AdWords API Team) wrote:
>>>>>
>>>>> To follow up on this, 
>>>>> As mentioned in the blog post, the recommended way to retrieve large 
>>>>> set of result is 
>>>>> - narrow the query as much as possible with predicates 
>>>>> or 
>>>>> - Use Adhoc reports 
>>>>>
>>>>> If there is any fields missing in adhoc reports, we're going to make 
>>>>> it available in adhoc reports. 
>>>>> (e.g. ad params) 
>>>>>
>>>>> Before it's available in adhoc reports, please use predicates to 
>>>>> narrow down results.
>>>>>
>>>>> Best,
>>>>> - Takeshi, AdWords API Team
>>>>>
>>>>> On Sunday, September 8, 2013 2:06:11 PM UTC+9, Takeshi Hagikura wrote:
>>>>>>
>>>>>> Hi Dorian,
>>>>>>
>>>>>> This was an expected behavior. 
>>>>>> In the first place, AdWords API does not allow you to retrieve data 
>>>>>> whose start index is past 5 (the maximum number increased to 100 
>>>>>> though).
>>>>>> Please see 
>>>>>> http://googleadsdeveloper.blogspot.jp/2012/02/adwords-api-retrieving-large-result.html
>>>>>>  
>>>>>> .
>>>>>>
>>>>>> So if the size of the result is large, please use adhoc reports or 
>>>>>> try to narrow the query with predicates. 
>>>>>>
>>>>>> Best,
>>>>>> - Takeshi, AdWords API Team
>>>>>>
>>>>>> On Friday, September 6, 2013 3:50:11 AM UTC+9, Dorian Kind wrote:
>>>>>>>
>>>>>>> Hi Takeshi,
>>>>>>>
>>>>>>> thanks for your answer, however I am not sure I understand your 
>>>>>>> suggestion. Removing paging.startIndex works fine, but how are we 
>>>>>>> then supposed to fetch results beyond the maximum value of 
>>>>>>> paging.numberResults? 
>>>>>>> In my test, I received a SizeLimitError.RESPONSE_SIZE_LIMIT_EXCEEDED 
>>>>>>> error when raising numberResults beyond approximately 10'000.
>>>>>>>
>>>>>>> Cheers,
>>>>>>> Dorian
>>>>>>>
>>>>>>> On Thursday, September 5, 2013 8:42:19 PM UTC+2, Takeshi Hagikura 
>>>>>>> (AdWord

Re: Strange SelectorError.START_INDEX_IS_TOO_HIGH

2014-09-25 Thread Joanna
Hi Daniel,
I need to get feed items (to get enhanced sitelinks) and I came the 
SelectorError.START_INDEX_IS_TOO_HIGH  problem. I see the report does not 
support zero impression items 
https://developers.google.com/adwords/api/docs/appendix/reports#placeholder-feed-item.
 
What can I do in this case when I want to get over 100 000 feed items that 
may have zero impressions?
Best regards,
Joanna


W dniu wtorek, 1 kwietnia 2014 13:22:39 UTC+2 użytkownik Danial Klimkin 
napisał:
>
> Hello,
>
>
> Reporting does not support paging but it supports predicates. You can 
> split report by dates or campaign IDs, for example.
>
>
> -Danial, AdWords API Team.
>
>
> On Monday, March 31, 2014 11:02:28 PM UTC+4, ddofborg wrote:
>>
>> Is there a way to limit the size of the AdHoc report? I'd like to 
>> download is in parts and not as a whole.
>>
>> On Sunday, September 8, 2013 11:44:08 AM UTC+2, Takeshi Hagikura (AdWords 
>> API Team) wrote:
>>>
>>> To follow up on this, 
>>> As mentioned in the blog post, the recommended way to retrieve large set 
>>> of result is 
>>> - narrow the query as much as possible with predicates 
>>> or 
>>> - Use Adhoc reports 
>>>
>>> If there is any fields missing in adhoc reports, we're going to make it 
>>> available in adhoc reports. 
>>> (e.g. ad params) 
>>>
>>> Before it's available in adhoc reports, please use predicates to narrow 
>>> down results.
>>>
>>> Best,
>>> - Takeshi, AdWords API Team
>>>
>>> On Sunday, September 8, 2013 2:06:11 PM UTC+9, Takeshi Hagikura wrote:
>>>>
>>>> Hi Dorian,
>>>>
>>>> This was an expected behavior. 
>>>> In the first place, AdWords API does not allow you to retrieve data 
>>>> whose start index is past 5 (the maximum number increased to 100 
>>>> though).
>>>> Please see 
>>>> http://googleadsdeveloper.blogspot.jp/2012/02/adwords-api-retrieving-large-result.html
>>>>  
>>>> .
>>>>
>>>> So if the size of the result is large, please use adhoc reports or try 
>>>> to narrow the query with predicates. 
>>>>
>>>> Best,
>>>> - Takeshi, AdWords API Team
>>>>
>>>> On Friday, September 6, 2013 3:50:11 AM UTC+9, Dorian Kind wrote:
>>>>>
>>>>> Hi Takeshi,
>>>>>
>>>>> thanks for your answer, however I am not sure I understand your 
>>>>> suggestion. Removing paging.startIndex works fine, but how are we 
>>>>> then supposed to fetch results beyond the maximum value of 
>>>>> paging.numberResults? 
>>>>> In my test, I received a SizeLimitError.RESPONSE_SIZE_LIMIT_EXCEEDED 
>>>>> error when raising numberResults beyond approximately 10'000.
>>>>>
>>>>> Cheers,
>>>>> Dorian
>>>>>
>>>>> On Thursday, September 5, 2013 8:42:19 PM UTC+2, Takeshi Hagikura 
>>>>> (AdWords API Team) wrote:
>>>>>>
>>>>>> Hi everyone, 
>>>>>>
>>>>>> Thanks for sharing requestIds. 
>>>>>> Looks like the limit for paging.startIndex was changed. 
>>>>>>
>>>>>> Can you please try removing startIndex to see if it works as a 
>>>>>> workaround?
>>>>>>
>>>>>> Best,
>>>>>> - Takeshi, 
>>>>>>
>>>>>> On Thursday, September 5, 2013 12:20:05 PM UTC+9, mm wrote:
>>>>>>>
>>>>>>> FWIW, we are also seeing this error - can supply additional Request 
>>>>>>> ID's if that is useful
>>>>>>>
>>>>>>> Thanks -
>>>>>>> mm
>>>>>>>
>>>>>>> On Tuesday, September 3, 2013 9:35:16 AM UTC-5, fr...@bgenius.com 
>>>>>>> wrote:
>>>>>>>>
>>>>>>>> Hi Takeshi,
>>>>>>>>
>>>>>>>> We also seem to be experiencing this issue. 
>>>>>>>> We have a client account that, according to the AdParamPage objects 
>>>>>>>> we get from the adparamservice, contains 
>>>>>>>> 402856 ad params. After succesfully retrieving a number of pages we 
>>>>>>>> get: [SelectorError.START_INDEX_IS_TOO_HIGH @ ; trigger:'1900

v201109 how can I get AdScheduleTarget

2012-04-17 Thread Joanna
Despite of my quite long research I cannot find satisfactory information 
how to do this and which service should I use. I would be grateful for any 
info, most grateful for ruby code example 

thanks in advance

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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: NullReferenceException on DownloadReportToStream when downloading ad report

2012-03-27 Thread Joanna
Hi Anash,
I found the reason for the error was the timeout. The value from the app 
config was not used in the request so when I have set it manually it was 
working. I will add this to the issues list.
Best regards,
Joanna

W dniu poniedziałek, 12 marca 2012, 15:36:32 UTC+1 użytkownik Anash P. 
Oommen napisał:
>
> Hi Joanna,
>
> Could you email your app.config (or the line number at which the code 
> fails) to anash.p.oom...@google.com? The code looks perfectly fine, so I 
> suspect it has something to do with the configuration settings.
>
> Cheers,
> Anash P. Oommen,
> AdWords API Advisor.
>
> On Thursday, 1 March 2012 22:05:46 UTC+5:30, Joanna wrote:
>>
>> Hello,
>> Since two weeks ago I cannot download the AD REPORT. I am using the API 
>> v201109 and the .net Google.Adwords library version 14. I query using the 
>> following report definition
>>
>> Predicate campaignPredicate = new Predicate();
>> campaignPredicate.field = "CampaignName";
>> campaignPredicate.@operator = PredicateOperator.STARTS_WITH;
>> campaignPredicate.values = new String[] { "API" };
>>
>> Predicate adPredicate = new Predicate();
>> adPredicate.field = "AdType";
>> adPredicate.@operator = PredicateOperator.EQUALS;
>> adPredicate.values = new String[] { "TEXT_AD" };
>>
>> // Create selector.
>> Selector selector = new Selector();
>>
>> selector.fields = new string[] {
>> "Id",
>> "CampaignId",
>> "AdGroupId",
>> "Url",
>> "Description1",
>> "Description2",
>> "Headline", 
>> "DisplayUrl",
>> "Status", 
>> "CampaignStatus",
>> "AdGroupStatus"   
>>
>> };
>>
>> selector.predicates = new Predicate[] { campaignPredicate, 
>> adPredicate };
>>
>> ReportDefinition reportDefinition = new ReportDefinition();
>> reportDefinition.reportName = " " + DateTime.Now;
>> reportDefinition.dateRangeType = 
>> ReportDefinitionDateRangeType.ALL_TIME;
>> reportDefinition.reportType = 
>> ReportDefinitionReportType.AD_PERFORMANCE_REPORT;
>> reportDefinition.downloadFormat = DownloadFormat.GZIPPED_CSV;
>> reportDefinition.selector = selector;
>>
>> I get NullReferenceException. Here is the stacktrace:
>>
>> Exception: System.NullReferenceException: Object reference not set to an 
>> instance of an object.
>>at 
>> Google.Api.Ads.AdWords.Util.Reports.ReportUtilities.DownloadReportToStream(String
>>  
>> downloadUrl, AdWordsAppConfig config, Boolean returnMoneyInMicros, Stream 
>> outputStream, String postBody)
>>at 
>> Google.Api.Ads.AdWords.Util.Reports.ReportUtilities.DownloadReportToDisk(String
>>  
>> downloadUrl, AdWordsAppConfig config, Boolean returnMoneyInMicros, String 
>> path, String postBody)
>>at 
>> Google.Api.Ads.AdWords.Util.Reports.ReportUtilities.DownloadClientReport[T](T
>>  
>> reportDefinitionOrId, Boolean returnMoneyInMicros, String path)
>>at 
>> Google.Api.Ads.AdWords.Util.Reports.ReportUtilities.DownloadClientReport[T](T
>>  
>> reportDefinitionOrId, String path)
>>
>> I would be very gratefull if someone could help me.
>> Joanna
>>
>>
> On Thursday, 1 March 2012 22:05:46 UTC+5:30, Joanna wrote:
>>
>> Hello,
>> Since two weeks ago I cannot download the AD REPORT. I am using the API 
>> v201109 and the .net Google.Adwords library version 14. I query using the 
>> following report definition
>>
>> Predicate campaignPredicate = new Predicate();
>> campaignPredicate.field = "CampaignName";
>> campaignPredicate.@operator = PredicateO

NullReferenceException on DownloadReportToStream when downloading ad report

2012-03-01 Thread Joanna
Hello,
Since two weeks ago I cannot download the AD REPORT. I am using the API 
v201109 and the .net Google.Adwords library version 14. I query using the 
following report definition

Predicate campaignPredicate = new Predicate();
campaignPredicate.field = "CampaignName";
campaignPredicate.@operator = PredicateOperator.STARTS_WITH;
campaignPredicate.values = new String[] { "API" };

Predicate adPredicate = new Predicate();
adPredicate.field = "AdType";
adPredicate.@operator = PredicateOperator.EQUALS;
adPredicate.values = new String[] { "TEXT_AD" };

// Create selector.
Selector selector = new Selector();

selector.fields = new string[] {
"Id",
"CampaignId",
"AdGroupId",
"Url",
"Description1",
"Description2",
"Headline", 
"DisplayUrl",
"Status", 
"CampaignStatus",
"AdGroupStatus" 
 
};

selector.predicates = new Predicate[] { campaignPredicate, 
adPredicate };

ReportDefinition reportDefinition = new ReportDefinition();
reportDefinition.reportName = " " + DateTime.Now;
reportDefinition.dateRangeType = 
ReportDefinitionDateRangeType.ALL_TIME;
reportDefinition.reportType = 
ReportDefinitionReportType.AD_PERFORMANCE_REPORT;
reportDefinition.downloadFormat = DownloadFormat.GZIPPED_CSV;
reportDefinition.selector = selector;

I get NullReferenceException. Here is the stacktrace:

Exception: System.NullReferenceException: Object reference not set to an 
instance of an object.
   at 
Google.Api.Ads.AdWords.Util.Reports.ReportUtilities.DownloadReportToStream(String
 
downloadUrl, AdWordsAppConfig config, Boolean returnMoneyInMicros, Stream 
outputStream, String postBody)
   at 
Google.Api.Ads.AdWords.Util.Reports.ReportUtilities.DownloadReportToDisk(String 
downloadUrl, AdWordsAppConfig config, Boolean returnMoneyInMicros, String 
path, String postBody)
   at 
Google.Api.Ads.AdWords.Util.Reports.ReportUtilities.DownloadClientReport[T](T 
reportDefinitionOrId, Boolean returnMoneyInMicros, String path)
   at 
Google.Api.Ads.AdWords.Util.Reports.ReportUtilities.DownloadClientReport[T](T 
reportDefinitionOrId, String path)

I would be very gratefull if someone could help me.
Joanna

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