Re: API EXCEPTION: TERMS_AND_CONDITIONS_NOT_SIGNED

2015-04-13 Thread Peng
Quick update on this issue. 

Soon after I filled the API Compliance Form (mentioned in my earlier 
reply), I was contacted by the 3rd Party API Compliance team saying 
"there's a technical issue that is preventing our database from reflecting 
that you've signed the terms". I was asked to follow a link to sign the 
agreement and email the signed document (a pdf file) back to them. 
Apparently they have to manually update my account status to reflect the 
fact that I've actually signed the document. Once it's done, I can now 
access the test account without issue.

BTW, some document says that a user can re-sign the agreement by entering 
billing information, which is not applicable anymore, as, per the email "We 
no longer require billing information in order to use the API so you may 
skip this step". Actually, I couldn't even find the menu item for entering 
billing information in my production MCC account.

Hope this helps.

Peng

On Saturday, April 11, 2015 at 12:24:49 AM UTC-7, Peng wrote:

> Anash,
>
> Did you mean the AdWords API Compliance form (
> https://services.google.com/fb/forms/apicontact/)? 
>
> I too have a pending approval AdWords API token and I'm having the exact 
> same issue right now. The form in your reply is for token application, 
> which requires a lot more information that may not be readily available at 
> early development stage (e.g. detail design document and a fully functional 
> web site). In addition, the form clearly says "*DO NOT fill out this form 
> if you just want to use the API for testing*", which is exactly what I 
> (and Guadalupe) was trying to do.
>
> According to the document, a pending approval token should be able to make 
> AdWords API calls against TEST accounts. But the call failed with the 
> TERMS_AND_CONDITIONS_NOT_SIGNED error. BTW, I was using the PHP client 
> library.
>
> I've just filled the AdWords API Compliance form and will update the 
> thread once I get response from them.
>
> Peng
>
> On Friday, April 10, 2015 at 6:07:20 AM UTC-7, Anash P. Oommen (AdWords 
> API Team) wrote:
>>
>> Hi,
>>
>> Try filling in this form , 
>> and the token review team would help you with the rest of the steps.
>>
>> Cheers,
>> Anash P. Oommen,
>> AdWords API Advisor.
>>
>> On Thursday, April 9, 2015 at 10:03:20 PM UTC-4, Guadalupe Estrada Flores 
>> wrote:
>>>
>>> Hello
>>>
>>> The documentation [
>>> https://developers.google.com/adwords/api/docs/test-accounts] explains 
>>> how to create a MCC test account.
>>> I've done this:
>>>
>>>- Created MCC Production account [717-493-2230]
>>>- According to step 1b. I should enter billing information and 
>>>   accept the Terms and Conditions, so my question is How do I add 
>>> billing 
>>>   information? All I see is "Billing Summary" and then the billing 
>>>   information would belong to each Adwords account, not to MCC 
>>> production.
>>>- Requested Developer Token, right now is still pending aproval, so 
>>>meanwhile I thought I could use it on a MCC Testing Account.
>>>- Created MCC Testing Account [571-682-5659]
>>>- Got Refresh Token from MCC Testing Account and configured my 
>>>ads.properties file
>>>- Tried to make an API call against MCC Testing Account using MCC 
>>>Production Developer Token
>>>   - Always get QuotaCheckError.TERMS_AND_CONDITIONS_NOT_SIGNED 
>>>   Exception
>>>
>>> Can anyone please provide some assistance? What am I missing?
>>> Thanks in advance.
>>>
>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/e07c0cf6-e8cf-451f-a35f-03cc11d56308%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


access token not getting refreshed after updating to V201502

2015-04-13 Thread Seth
Hey,

I just updated my app to V201502 a few days ago and now the access token no 
longer gets automatically refreshed. Any idea why that might be?

Thanks,
Seth



-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/2941ffb0-77d8-473d-9d76-8cc92abf4b1b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: ConversionTrackerService get call returning duplicate data

2015-04-13 Thread HK
Josh,

Just confirming that the fix did the trick for us. Thanks again.

Hans

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/150a5b43-6911-485d-ab75-3b7539b96d7d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Subdivition in product partition

2015-04-13 Thread Josh Radcliff (AdWords API Team)
Hi Sandeep,

We only have examples of updating a partition tree in the Java library, 
where we also have a shopping utility 

.

You won't always have to remove the root and rebuild the entire tree. You 
can make changes to a subtree as long as each of your *mutate* calls leaves 
the tree in a valid state. See the section on modifying trees 

 in 
our guide.

Thanks,
Josh, AdWords API Team

On Monday, April 13, 2015 at 9:08:07 AM UTC-4, cvit sandeep wrote:
>
> Hi Josh,
>
> Thank you.Now it's works.
>
> What is the easiest way to update  already existing product partition?
>
> I read somewhere that need to 'REMOVE' the root first and then 'ADD' the 
> updated tree.
>
> Please provide me any code to perform these operations.
>
> Regards
>
> Sandeep cv
>
>
>
> On Saturday, April 11, 2015 at 7:45:27 PM UTC+5:30, cvit sandeep wrote:
>>
>> Hi Team,
>> I am currently working on Subdivide opertaion in product partition 
>> section.I need your support on following issues.
>>
>> 1.Getting the error 'An error has occurred: [RequiredError.REQUIRED @ 
>> operations[6].operand.criterion.caseValue.type]'
>>
>>while performing product partition.
>>
>>The following is my code,
>>
>>   $root = $helper->createSubdivision();
>>   
>>   $helper->createUnit($root, new ProductCanonicalCondition('NEW'), 
>> 20);
>>
>>   $helper->createUnit($root, new ProductCanonicalCondition('USED'), 
>> 10);
>>
>>   $otherCondition = $helper->createSubdivision($root,new 
>> ProductCanonicalCondition());
>>   
>>
>>   $helper->createUnit($otherCondition,new 
>> ProductType('PRODUCT_TYPE_L1','sametou1'), 90);
>>
>>   $helper->createUnit($otherCondition,new 
>> ProductType('PRODUCT_TYPE_L1','sametou2'), 1);
>>
>>   $otherBrand = $helper->createSubdivision($otherCondition, new 
>> ProductType());
>>
>>   $helper->createUnit($otherBrand,new ProductType('PRODUCT_TYPE_L2'), 
>> 11);
>>
>>
>>I tried as in your documentation.
>>
>>Why this error and how can i resolve this?
>>
>> Regards
>>
>> sandeep cv
>>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/6b638280-2d2e-44b6-bf80-ef9bded0011c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Is it possible to upgrade keywords to use the new upgraded URLs programmatically?

2015-04-13 Thread Thanet Knack Praneenararat (AdWords API Team)
Hi,

As Mariusz said, the destinationURL should be set to an empty string, not 
null value.
Sorry for my wrong word.

Please ask us again if you still cannot change that.

Cheers,
Thanet

On Monday, April 13, 2015 at 3:20:19 PM UTC+1, Mariusz wrote:
>
> I just updated the test to use version v201502 and can confirm that it 
> works as well in this version.
>
>
> Cheers,
>
> Mariusz
>
> On Monday, 13 April 2015 15:07:35 UTC+1, Adxsearch Adxpand wrote:
>>
>> I'm using 201502 I'll try it.
>>
>> On Monday, April 13, 2015 at 1:36:23 PM UTC+2, Mariusz wrote:
>>>
>>> As Thanet said, you need to clear destiantionUrl, but instead of setting 
>>> it to null, set it to empty string. Unfortunately I am working in .NET, but 
>>> this is a test we used:
>>>
>>> var k = GetKeyword(); // just gets keyword from AdWords
>>>
>>> var url = k.destinationUrl;
>>> k.finalUrls = new UrlList {urls = new[] {url}};
>>> k.destinationUrl = "";
>>>
>>>
>>> UpdateKeyword(k); // simply SETs updated keyword
>>>
>>> We ran the test against version v201409.
>>>
>>>
>>> Cheers,
>>>
>>> Mariusz
>>>
>>>
>>> On Monday, 13 April 2015 11:56:56 UTC+1, Adxsearch Adxpand wrote:

 Setting it to null doesn't work. You have to go into the campaign in 
 adwords and manually change destination url to final url. That's the only 
 way I got it to work. I also tried a very trivial example not doing 
 anything else than in the C# Example. If a keyword has a destination url 
 in 
 AdWords it is not possible to change it to use a final url instead. Can 
 you 
 change the server implementation so this will be possible. The way it is 
 right now it's not possible to do this via the API.

 On Friday, April 10, 2015 at 5:31:27 PM UTC+2, Thanet Knack 
 Praneenararat (AdWords API Team) wrote:
>
> Hi,
>
> Sorry that we don't have Java code examples for AdGroupCriterion now.
> But that error was probably because you haven't cleared the 
> destination URLs when setting final URLs via MUTATE operation.
>
> Could you please try clearing the value of destination URLs too (by 
> setting it to null)?
>
> Cheers,
> Thanet
>
> On Friday, April 10, 2015 at 11:22:05 AM UTC+1, Adxsearch Adxpand 
> wrote:
>>
>> I'm preparing for the upgraded URLs sunset on 7/1 2015. There is an 
>> example for programmatically upgrading adGroupAds (TextAds) in Java, but 
>> I 
>> cannot find a corresponding example for keywords (AdGroupCriterions). 
>> There 
>> is an example in C#, but our webapplication is written in Java. I tried 
>> to 
>> translate it since they're similar. It builds but when I try to deploy / 
>> upload / mutate my keyword I get:
>>
>>  [AdGroupCriterionError.CANNOT_SET_BOTH_DESTINATION_URL_AND_FINAL_URLS 
>> @ operations[1].operand.finalUrls; trigger:'UrlList{urls=[
>> http://www.google.com]}']
>>
>>  Is there an example in Java which you can point me to? Is it 
>> possible to upgrade keywords to use the new upgraded URLs 
>> programmatically?
>>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/7cde5c89-33ac-4c8d-943c-670c784d513a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Is it possible to upgrade keywords to use the new upgraded URLs programmatically?

2015-04-13 Thread Mariusz
I just updated the test to use version v201502 and can confirm that it 
works as well in this version.


Cheers,

Mariusz

On Monday, 13 April 2015 15:07:35 UTC+1, Adxsearch Adxpand wrote:
>
> I'm using 201502 I'll try it.
>
> On Monday, April 13, 2015 at 1:36:23 PM UTC+2, Mariusz wrote:
>>
>> As Thanet said, you need to clear destiantionUrl, but instead of setting 
>> it to null, set it to empty string. Unfortunately I am working in .NET, but 
>> this is a test we used:
>>
>> var k = GetKeyword(); // just gets keyword from AdWords
>>
>> var url = k.destinationUrl;
>> k.finalUrls = new UrlList {urls = new[] {url}};
>> k.destinationUrl = "";
>>
>>
>> UpdateKeyword(k); // simply SETs updated keyword
>>
>> We ran the test against version v201409.
>>
>>
>> Cheers,
>>
>> Mariusz
>>
>>
>> On Monday, 13 April 2015 11:56:56 UTC+1, Adxsearch Adxpand wrote:
>>>
>>> Setting it to null doesn't work. You have to go into the campaign in 
>>> adwords and manually change destination url to final url. That's the only 
>>> way I got it to work. I also tried a very trivial example not doing 
>>> anything else than in the C# Example. If a keyword has a destination url in 
>>> AdWords it is not possible to change it to use a final url instead. Can you 
>>> change the server implementation so this will be possible. The way it is 
>>> right now it's not possible to do this via the API.
>>>
>>> On Friday, April 10, 2015 at 5:31:27 PM UTC+2, Thanet Knack 
>>> Praneenararat (AdWords API Team) wrote:

 Hi,

 Sorry that we don't have Java code examples for AdGroupCriterion now.
 But that error was probably because you haven't cleared the destination 
 URLs when setting final URLs via MUTATE operation.

 Could you please try clearing the value of destination URLs too (by 
 setting it to null)?

 Cheers,
 Thanet

 On Friday, April 10, 2015 at 11:22:05 AM UTC+1, Adxsearch Adxpand wrote:
>
> I'm preparing for the upgraded URLs sunset on 7/1 2015. There is an 
> example for programmatically upgrading adGroupAds (TextAds) in Java, but 
> I 
> cannot find a corresponding example for keywords (AdGroupCriterions). 
> There 
> is an example in C#, but our webapplication is written in Java. I tried 
> to 
> translate it since they're similar. It builds but when I try to deploy / 
> upload / mutate my keyword I get:
>
>  [AdGroupCriterionError.CANNOT_SET_BOTH_DESTINATION_URL_AND_FINAL_URLS 
> @ operations[1].operand.finalUrls; trigger:'UrlList{urls=[
> http://www.google.com]}']
>
>  Is there an example in Java which you can point me to? Is it 
> possible to upgrade keywords to use the new upgraded URLs 
> programmatically?
>


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/fb5d9014-fd82-442e-895f-a9241f3efe54%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Is it possible to upgrade keywords to use the new upgraded URLs programmatically?

2015-04-13 Thread Adxsearch Adxpand
I'm using 201502 I'll try it.

On Monday, April 13, 2015 at 1:36:23 PM UTC+2, Mariusz wrote:
>
> As Thanet said, you need to clear destiantionUrl, but instead of setting 
> it to null, set it to empty string. Unfortunately I am working in .NET, but 
> this is a test we used:
>
> var k = GetKeyword(); // just gets keyword from AdWords
>
> var url = k.destinationUrl;
> k.finalUrls = new UrlList {urls = new[] {url}};
> k.destinationUrl = "";
>
>
> UpdateKeyword(k); // simply SETs updated keyword
>
> We ran the test against version v201409.
>
>
> Cheers,
>
> Mariusz
>
>
> On Monday, 13 April 2015 11:56:56 UTC+1, Adxsearch Adxpand wrote:
>>
>> Setting it to null doesn't work. You have to go into the campaign in 
>> adwords and manually change destination url to final url. That's the only 
>> way I got it to work. I also tried a very trivial example not doing 
>> anything else than in the C# Example. If a keyword has a destination url in 
>> AdWords it is not possible to change it to use a final url instead. Can you 
>> change the server implementation so this will be possible. The way it is 
>> right now it's not possible to do this via the API.
>>
>> On Friday, April 10, 2015 at 5:31:27 PM UTC+2, Thanet Knack Praneenararat 
>> (AdWords API Team) wrote:
>>>
>>> Hi,
>>>
>>> Sorry that we don't have Java code examples for AdGroupCriterion now.
>>> But that error was probably because you haven't cleared the destination 
>>> URLs when setting final URLs via MUTATE operation.
>>>
>>> Could you please try clearing the value of destination URLs too (by 
>>> setting it to null)?
>>>
>>> Cheers,
>>> Thanet
>>>
>>> On Friday, April 10, 2015 at 11:22:05 AM UTC+1, Adxsearch Adxpand wrote:

 I'm preparing for the upgraded URLs sunset on 7/1 2015. There is an 
 example for programmatically upgrading adGroupAds (TextAds) in Java, but I 
 cannot find a corresponding example for keywords (AdGroupCriterions). 
 There 
 is an example in C#, but our webapplication is written in Java. I tried to 
 translate it since they're similar. It builds but when I try to deploy / 
 upload / mutate my keyword I get:

  [AdGroupCriterionError.CANNOT_SET_BOTH_DESTINATION_URL_AND_FINAL_URLS 
 @ operations[1].operand.finalUrls; trigger:'UrlList{urls=[
 http://www.google.com]}']

  Is there an example in Java which you can point me to? Is it possible 
 to upgrade keywords to use the new upgraded URLs programmatically?

>>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/45fc346d-f9d0-4a99-b719-11a98dfc3040%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: using reports in v201502

2015-04-13 Thread Marcin Gdak
Hi,
Ok, I thank you for information. Isn't it possible somehow to get around it?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/90e21575-7c58-40f1-993e-76d88aa40b5e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Subdivition in product partition

2015-04-13 Thread cvit sandeep
Hi Josh,

Thank you.Now it's works.

What is the easiest way to update  already existing product partition?

I read somewhere that need to 'REMOVE' the root first and then 'ADD' the 
updated tree.

Please provide me any code to perform these operations.

Regards

Sandeep cv



On Saturday, April 11, 2015 at 7:45:27 PM UTC+5:30, cvit sandeep wrote:
>
> Hi Team,
> I am currently working on Subdivide opertaion in product partition 
> section.I need your support on following issues.
>
> 1.Getting the error 'An error has occurred: [RequiredError.REQUIRED @ 
> operations[6].operand.criterion.caseValue.type]'
>
>while performing product partition.
>
>The following is my code,
>
>   $root = $helper->createSubdivision();
>   
>   $helper->createUnit($root, new ProductCanonicalCondition('NEW'), 
> 20);
>
>   $helper->createUnit($root, new ProductCanonicalCondition('USED'), 
> 10);
>
>   $otherCondition = $helper->createSubdivision($root,new 
> ProductCanonicalCondition());
>   
>
>   $helper->createUnit($otherCondition,new 
> ProductType('PRODUCT_TYPE_L1','sametou1'), 90);
>
>   $helper->createUnit($otherCondition,new 
> ProductType('PRODUCT_TYPE_L1','sametou2'), 1);
>
>   $otherBrand = $helper->createSubdivision($otherCondition, new 
> ProductType());
>
>   $helper->createUnit($otherBrand,new ProductType('PRODUCT_TYPE_L2'), 
> 11);
>
>
>I tried as in your documentation.
>
>Why this error and how can i resolve this?
>
> Regards
>
> sandeep cv
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/0d28f304-4ac4-47f1-84d4-610a646ad05a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: using reports in v201502

2015-04-13 Thread Josh Radcliff (AdWords API Team)
Hi Marcin,

I just checked the ReportUtilities class 
,
 
and unfortunately the current version of the .NET library does not support 
the *skipColumnHeader* header. We should have a new release with support 
for that option within the next few weeks.

Cheers,
Josh, AdWords API Team

On Monday, April 13, 2015 at 8:01:38 AM UTC-4, Marcin Gdak wrote:
>
> Hi,
>
> The skipColumnHeader value isn't in the header. 
>
> Request
> ---
>
> POST /api/adwords/reportdownload/v201502
> User-Agent: AudytMotiv (AwApi-DotNet/18.10.0, Common-Dotnet/3.5.0, .NET 
> CLR/4.0.30319.18444, gzip)
> clientCustomerId: 265487408
> Content-Type: application/x-www-form-urlencoded
> Authorization: **
> developerToken: **
> apiMode: true
> skipReportHeader: true
> skipReportSummary: true
> Host: adwords.google.com
> TimeStamp: Mon, 13 Apr 2015 13:53:11 GMT
>
>
>
> __rdquery=SELECT+AdGroupId%2c+AdGroupName%2cAdGroupStatus%2cCpcBid%2cTargetCpa%2cCpmBid%2cImpressions%2cClicks%2cConvertedClicks%2c+ConversionsManyPerClick%2cCost%2cTotalCost%2cViewThroughConversions%2cContentImpressionShare%2cContentRankLostImpressionShare+FROM+ADGROUP_PERFORMANCE_REPORT+WHERE+CampaignId+%3d+445135+DURING+LAST_30_DAYS&developerToken=**&Authorization=**
>
> Response
> 
>
> Content-Disposition: /tmp/reportId-null6483329112266970516.tmprpt.csv
> Content-Encoding: 
> X-Content-Type-Options: nosniff
> X-Frame-Options: SAMEORIGIN
> X-XSS-Protection: 1; mode=block
> Content-Length: 335
> Cache-Control: private, max-age=0
> Content-Type: text/csv; charset=UTF-8
> Date: Mon, 13 Apr 2015 11:53:12 GMT
> Expires: Mon, 13 Apr 2015 11:53:12 GMT
> Server: GSE
> TimeStamp: Mon, 13 Apr 2015 13:53:11 GMT
>
>
> Response truncated.
> -END API CALL---
>
> Thanks,
> Marcin Gdak
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/5d90459b-3759-4dd0-89db-fee56e3bed6b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Subdivition in product partition

2015-04-13 Thread Josh Radcliff (AdWords API Team)
Hi sandeep cv,

The issue is with the *otherBrand* object you created:

$otherBrand = $helper->createSubdivision($otherCondition, new 
ProductType());

On a *ProductType* object, the value 

 can 
be null (for the "other" case), but you *must* set the type 

 attribute 
to the proper level. In your case, it looks like you'd want to set this to 
PRODUCT_TYPE_L1 since your *otherBrand* object is for the group of nodes 
for that product type level/type.

Cheers,
Josh, AdWords API Team

On Saturday, April 11, 2015 at 10:15:27 AM UTC-4, cvit sandeep wrote:
>
> Hi Team,
> I am currently working on Subdivide opertaion in product partition 
> section.I need your support on following issues.
>
> 1.Getting the error 'An error has occurred: [RequiredError.REQUIRED @ 
> operations[6].operand.criterion.caseValue.type]'
>
>while performing product partition.
>
>The following is my code,
>
>   $root = $helper->createSubdivision();
>   
>   $helper->createUnit($root, new ProductCanonicalCondition('NEW'), 
> 20);
>
>   $helper->createUnit($root, new ProductCanonicalCondition('USED'), 
> 10);
>
>   $otherCondition = $helper->createSubdivision($root,new 
> ProductCanonicalCondition());
>   
>
>   $helper->createUnit($otherCondition,new 
> ProductType('PRODUCT_TYPE_L1','sametou1'), 90);
>
>   $helper->createUnit($otherCondition,new 
> ProductType('PRODUCT_TYPE_L1','sametou2'), 1);
>
>   $otherBrand = $helper->createSubdivision($otherCondition, new 
> ProductType());
>
>   $helper->createUnit($otherBrand,new ProductType('PRODUCT_TYPE_L2'), 
> 11);
>
>
>I tried as in your documentation.
>
>Why this error and how can i resolve this?
>
> Regards
>
> sandeep cv
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/8d1599d0-38ea-48e5-a0d0-514a633fdb9c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: DUPLICATE_ADGROUP_NAME when re-creating removed ad group

2015-04-13 Thread Josh Radcliff (AdWords API Team)
Hi Dorian,

The behavior has not changed since the last post. I'll post back to this 
thread when I have an update.

Thanks,
Josh, AdWords API Team

On Monday, April 13, 2015 at 7:42:46 AM UTC-4, Dorian Kind wrote:
>
> Hi there,
>
> sorry to revive this old thread, but I just wanted to clarify whether it's 
> still the case that once an ad group is set to "removed" state, its name 
> can never again be used in the containing campaign (as re-enabling or 
> renaming the ad group is not possible)?
>
> Thanks & cheers,
> Dorian
>
> On Thursday, October 23, 2014 at 3:07:04 PM UTC+2, Josh Radcliff (AdWords 
> API Team) wrote:
>>
>> Hi Peter,
>>
>> Thanks for the feedback. I'll continue to push for consistent name rules 
>> and will update this thread with any progress.
>>
>> Cheers,
>> Josh, AdWords API Team
>>
>> On Thursday, October 23, 2014 7:09:57 AM UTC-4, ma...@pcbacker.nl wrote:
>>>
>>> Josh, 
>>>
>>> If not possible to change a Removed status back to a Paused or Enabled 
>>> status, at least you would expect to allow a new adgroup having the name of 
>>> the removed one (like it works with campaigns). 
>>> Please make those rules the same as you state. At the moment it totally 
>>> frustrates our naming convention for automatically created adgroups. 
>>> Thanx in advance
>>> Peter Backer, Maxlead
>>>
>>>
>>> On Monday, October 20, 2014 5:17:22 PM UTC+2, Josh Radcliff (AdWords API 
>>> Team) wrote:

 Hi,

 Starting with v201406 of the API, you can no longer edit *any* attributes 
 of a removed Campaign or a removed AdGroup. You are correct that Campaigns 
 allow duplicate names among REMOVED objects, but AdGroup names must be 
 unique across all AdGroups in a Campaign, regardless of status. For the 
 time being, the approach you are taking of renaming AdGroups on delete is 
 the best option. Note that you *can* rename and remove an AdGroup in 
 the same SET operation (it sounds like you are doing separate operations, 
 but that's not actually necessary).

 I realize that this inconsistency is a bit of a pain, especially now 
 that you cannot change the name of a removed AdGroup. I'll talk to the 
 team 
 about making the uniqueness rules for AdGroups the same as the rules for 
 Campaigns.

 Cheers,
 Josh, AdWords API Team

 On Monday, October 20, 2014 10:15:25 AM UTC-4, t.k...@social-mining.com 
 wrote:
>
> Hi,
>
> We are running into a problem with re-enabling removed ad groups. In 
> the past both campaigns and ad groups could be re-enabled from REMOVED 
> status by simply setting their status to ENABLED, this no longer works, 
> as 
> the removal seems to be permanent. Instead the API allows multiple 
> campaigns with the same name to exist, as long as only one campaign is 
> ENABLED or PAUSED and the rest are REMOVED.
>
> However, this does not seem to work for Ad Groups. After setting a Ad 
> Group status to REMOVED the status can no longer be set to ENABLED, but 
> no 
> other Ad Group with the same name can be created either. In essence, we 
> are 
> now have a number of Ad Groups that are 'locked', they cannot be 
> re-enabled, but they can't be renamed either (although the web interface 
> can still do this.)
>
> We have worked around the issue by renaming ad groups prior to 
> deleting them, but this is far from optimal. Is this a bug or is this 
> working as intended?
>


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/768da90b-d13e-4b40-ae2b-a22ae279d4ef%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: using reports in v201502

2015-04-13 Thread Marcin Gdak
Hi,

The skipColumnHeader value isn't in the header. 

Request
---

POST /api/adwords/reportdownload/v201502
User-Agent: AudytMotiv (AwApi-DotNet/18.10.0, Common-Dotnet/3.5.0, .NET 
CLR/4.0.30319.18444, gzip)
clientCustomerId: 265487408
Content-Type: application/x-www-form-urlencoded
Authorization: **
developerToken: **
apiMode: true
skipReportHeader: true
skipReportSummary: true
Host: adwords.google.com
TimeStamp: Mon, 13 Apr 2015 13:53:11 GMT


__rdquery=SELECT+AdGroupId%2c+AdGroupName%2cAdGroupStatus%2cCpcBid%2cTargetCpa%2cCpmBid%2cImpressions%2cClicks%2cConvertedClicks%2c+ConversionsManyPerClick%2cCost%2cTotalCost%2cViewThroughConversions%2cContentImpressionShare%2cContentRankLostImpressionShare+FROM+ADGROUP_PERFORMANCE_REPORT+WHERE+CampaignId+%3d+445135+DURING+LAST_30_DAYS&developerToken=**&Authorization=**

Response


Content-Disposition: /tmp/reportId-null6483329112266970516.tmprpt.csv
Content-Encoding: 
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
Content-Length: 335
Cache-Control: private, max-age=0
Content-Type: text/csv; charset=UTF-8
Date: Mon, 13 Apr 2015 11:53:12 GMT
Expires: Mon, 13 Apr 2015 11:53:12 GMT
Server: GSE
TimeStamp: Mon, 13 Apr 2015 13:53:11 GMT


Response truncated.
-END API CALL---

Thanks,
Marcin Gdak

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/ad40d4c9-b24b-4c38-8820-9dd2002d9835%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: DUPLICATE_ADGROUP_NAME when re-creating removed ad group

2015-04-13 Thread Dorian Kind
Hi there,

sorry to revive this old thread, but I just wanted to clarify whether it's 
still the case that once an ad group is set to "removed" state, its name 
can never again be used in the containing campaign (as re-enabling or 
renaming the ad group is not possible)?

Thanks & cheers,
Dorian

On Thursday, October 23, 2014 at 3:07:04 PM UTC+2, Josh Radcliff (AdWords 
API Team) wrote:
>
> Hi Peter,
>
> Thanks for the feedback. I'll continue to push for consistent name rules 
> and will update this thread with any progress.
>
> Cheers,
> Josh, AdWords API Team
>
> On Thursday, October 23, 2014 7:09:57 AM UTC-4, ma...@pcbacker.nl wrote:
>>
>> Josh, 
>>
>> If not possible to change a Removed status back to a Paused or Enabled 
>> status, at least you would expect to allow a new adgroup having the name of 
>> the removed one (like it works with campaigns). 
>> Please make those rules the same as you state. At the moment it totally 
>> frustrates our naming convention for automatically created adgroups. 
>> Thanx in advance
>> Peter Backer, Maxlead
>>
>>
>> On Monday, October 20, 2014 5:17:22 PM UTC+2, Josh Radcliff (AdWords API 
>> Team) wrote:
>>>
>>> Hi,
>>>
>>> Starting with v201406 of the API, you can no longer edit *any* attributes 
>>> of a removed Campaign or a removed AdGroup. You are correct that Campaigns 
>>> allow duplicate names among REMOVED objects, but AdGroup names must be 
>>> unique across all AdGroups in a Campaign, regardless of status. For the 
>>> time being, the approach you are taking of renaming AdGroups on delete is 
>>> the best option. Note that you *can* rename and remove an AdGroup in 
>>> the same SET operation (it sounds like you are doing separate operations, 
>>> but that's not actually necessary).
>>>
>>> I realize that this inconsistency is a bit of a pain, especially now 
>>> that you cannot change the name of a removed AdGroup. I'll talk to the team 
>>> about making the uniqueness rules for AdGroups the same as the rules for 
>>> Campaigns.
>>>
>>> Cheers,
>>> Josh, AdWords API Team
>>>
>>> On Monday, October 20, 2014 10:15:25 AM UTC-4, t.k...@social-mining.com 
>>> wrote:

 Hi,

 We are running into a problem with re-enabling removed ad groups. In 
 the past both campaigns and ad groups could be re-enabled from REMOVED 
 status by simply setting their status to ENABLED, this no longer works, as 
 the removal seems to be permanent. Instead the API allows multiple 
 campaigns with the same name to exist, as long as only one campaign is 
 ENABLED or PAUSED and the rest are REMOVED.

 However, this does not seem to work for Ad Groups. After setting a Ad 
 Group status to REMOVED the status can no longer be set to ENABLED, but no 
 other Ad Group with the same name can be created either. In essence, we 
 are 
 now have a number of Ad Groups that are 'locked', they cannot be 
 re-enabled, but they can't be renamed either (although the web interface 
 can still do this.)

 We have worked around the issue by renaming ad groups prior to deleting 
 them, but this is far from optimal. Is this a bug or is this working as 
 intended?

>>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/cff2c209-6974-42a2-9b77-368e1c1693cf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: CPC

2015-04-13 Thread Danial Klimkin
Hello Umar,


It doesn't look you need an API at this stage. Please refer to the general 
AdWords documentation:

  https://support.google.com/adwords/


-Danial, AdWords API Team.


On Monday, April 13, 2015 at 2:23:34 PM UTC+3, Umar Farooq wrote:
>
> I have a job board 
>
> I am interesting to increase traffic on my jobboard 
>
> My job board is totally free for Recruiter and Jobs Searchers.
>
> I am interested to launch campaign with AdWords and earn from AdSense. 
>
> How can I manage it.  
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/7c502f73-e4f6-4d72-9f5f-7c1d748a185a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Is it possible to upgrade keywords to use the new upgraded URLs programmatically?

2015-04-13 Thread Mariusz
As Thanet said, you need to clear destiantionUrl, but instead of setting it 
to null, set it to empty string. Unfortunately I am working in .NET, but 
this is a test we used:

var k = GetKeyword(); // just gets keyword from AdWords

var url = k.destinationUrl;
k.finalUrls = new UrlList {urls = new[] {url}};
k.destinationUrl = "";


UpdateKeyword(k); // simply SETs updated keyword

We ran the test against version v201409.


Cheers,

Mariusz


On Monday, 13 April 2015 11:56:56 UTC+1, Adxsearch Adxpand wrote:
>
> Setting it to null doesn't work. You have to go into the campaign in 
> adwords and manually change destination url to final url. That's the only 
> way I got it to work. I also tried a very trivial example not doing 
> anything else than in the C# Example. If a keyword has a destination url in 
> AdWords it is not possible to change it to use a final url instead. Can you 
> change the server implementation so this will be possible. The way it is 
> right now it's not possible to do this via the API.
>
> On Friday, April 10, 2015 at 5:31:27 PM UTC+2, Thanet Knack Praneenararat 
> (AdWords API Team) wrote:
>>
>> Hi,
>>
>> Sorry that we don't have Java code examples for AdGroupCriterion now.
>> But that error was probably because you haven't cleared the destination 
>> URLs when setting final URLs via MUTATE operation.
>>
>> Could you please try clearing the value of destination URLs too (by 
>> setting it to null)?
>>
>> Cheers,
>> Thanet
>>
>> On Friday, April 10, 2015 at 11:22:05 AM UTC+1, Adxsearch Adxpand wrote:
>>>
>>> I'm preparing for the upgraded URLs sunset on 7/1 2015. There is an 
>>> example for programmatically upgrading adGroupAds (TextAds) in Java, but I 
>>> cannot find a corresponding example for keywords (AdGroupCriterions). There 
>>> is an example in C#, but our webapplication is written in Java. I tried to 
>>> translate it since they're similar. It builds but when I try to deploy / 
>>> upload / mutate my keyword I get:
>>>
>>>  [AdGroupCriterionError.CANNOT_SET_BOTH_DESTINATION_URL_AND_FINAL_URLS 
>>> @ operations[1].operand.finalUrls; trigger:'UrlList{urls=[
>>> http://www.google.com]}']
>>>
>>>  Is there an example in Java which you can point me to? Is it possible 
>>> to upgrade keywords to use the new upgraded URLs programmatically?
>>>
>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/6cc70dd1-b9b2-4488-955f-0c698325fd07%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Create Shopping Campaign

2015-04-13 Thread Danial Klimkin
Hello,


1. AdWords API doesn't allow to search for IDs. You need to know the value 
from a different source.

2. Budget ID as a required parameter.

3. Campaigns with no ad groups will not serve.


-Danial, AdWords API Team.


On Monday, April 13, 2015 at 12:31:07 PM UTC+3, AroxoDev team wrote:
>
> Hi,
>
> I have few Queries on ' Create Shopping Campaing using API '
>
> 1.  Can we get merchant ID without define hard code it ,using defined 
> services?
>
> 2.  Is budget id is Optional?
>
> 3.  Campaing should be created atelase with 1 adgroup?
>
> 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/b8d1c232-3cd6-4558-b2e9-d9fd51feb999%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: UNEXPECTED_INTERNAL_API_ERROR incidence way up since 9PM Pacific 2015-04-09

2015-04-13 Thread Danial Klimkin
Hello Lawrence,


Do you still experience this issue?


-Danial, AdWords API Team.

On Saturday, April 11, 2015 at 1:24:15 AM UTC+3, lawrence kalinowski wrote:
>
> when querying:
> https://adwords.google.com/api/adwords/cm/v201502
>
> consistently receiving:
>
> 2015-04-10 15:12:04,913 [pool-1-thread-1] WARN 
>  com.google.api.ads.adwords.lib.client.AdWordsServiceClient.soapXmlLogger - 
> SOAP Response:
> 
> http://schemas.xmlsoap.org/soap/envelope/";>
> 
> 
> soap:Server
> InternalApiError.UNEXPECTED_INTERNAL_API_ERROR @ 
> com.google.ads.api.services.common.error.InternalApiError.(InternalApiErro
> 
> https://adwords.google.com/api/adwords/cm/v201502";>
> 
> InternalApiError.UNEXPECTED_INTERNAL_API_ERROR @ 
> com.google.ads.api.services.common.error.InternalApiError.(InternalApiErro
> 
> ApiException
> http://www.w3.org/2001/XMLSchema-instance"; xsi:type="InternalApiError">
> 
> 
> 
> InternalApiError.UNEXPECTED_INTERNAL_API_ERROR
> InternalApiError
> UNEXPECTED_INTERNAL_API_ERROR
> 
> 
> 
> 
> 
> 
>
>
> suggestions? timeline for remedy? 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/b56badf1-034b-4151-81f6-9bcab37bbdef%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


PRODUCT PARTITION under ProductType

2015-04-13 Thread Mehmet Karaca
Hi team ,

I am currently working on product partition, getting following error

An error has occurred: [RequiredError.REQUIRED @ 
operations[3].operand.criterion.caseValue.type] 

This is my code,

$root = $helper->createSubdivision();
$helper->createUnit($root, new ProductType('PRODUCT_TYPE_L1','shirts'), 
20);
$helper->createUnit($root, new ProductType('PRODUCT_TYPE_L1','footwear'), 
10);
  
$otherCondition = $helper->createSubdivision($root, new ProductType());
$helper->createUnit($otherCondition, new 
ProductType('PRODUCT_TYPE_L2','shirts11'), 20);
$helper->createUnit($otherCondition, new 
ProductType('PRODUCT_TYPE_L2','footwear11'), 10);  
$helper->createUnit($otherCondition, new ProductType('PRODUCT_TYPE_L2')); 

If i changed the fourth line as follows

$otherCondition = $helper->createSubdivision($root, new 
ProductType('PRODUCT_TYPE_L1')); 

Getting the error,
 
An error has occurred: [CriterionError.INVALID_PRODUCT_DIMENSION_TYPE 
@   operations[4].operand.criterion.caseValue; 
trigger:'ProductType{type=PRODUCT_TYPE_L2, value=shirts11}', 
CriterionError.INVALID_PRODUCT_DIMENSION_TYPE @ 
operations[5].operand.criterion.caseValue; 
trigger:'ProductType{type=PRODUCT_TYPE_L2, value=footwear11}', 
CriterionError.INVALID_PRODUCT_DIMENSION_TYPE @ 
operations[6].operand.criterion.caseValue; 
trigger:'ProductType{type=PRODUCT_TYPE_L2, value=null}', 
AdGroupCriterionError.PRODUCT_PARTITION_SUBDIVISION_REQUIRES_OTHERS_CASE @ 
operations; trigger:'ProductPartition{id=TempCriterionId{id=2}, 
bidSimulatorStatus=null, partitionType=SUBDIVISION, 
parentCriterionId=TempCriterionId{id=1}, productGroup=null, 
caseValue=ProductType{type=PRODUCT_TYPE_L1, value=null}, 
decisionPath=[ProductType{type=PRODUCT_TYPE_L1, value=null}]}'] 


Please help to resolve this issue,

Regards

  Varun

  

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/e9ea51d8-4e89-45a3-9a78-6c0b0a480411%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Lifetime of a refresh token

2015-04-13 Thread Lajpat Bishnoi
Adding to Nadine response
A token might stop working for one of these reasons:
1) The user has revoked access.
2) The token has not been used for six months. 
3) The user account has exceeded a certain number of token requests. There 
is currently a 25-token limit per Google user account. If a user account 
has 25 valid tokens, the next authentication request succeeds, but quietly 
invalidates the oldest outstanding token without any user-visible warning. 

*Please correct me if i am wrong.*
On Saturday, April 4, 2015 at 1:08:04 AM UTC+5:30, Nadine Sundquist 
(AdWords API Team) wrote:
>
> Hi,
>
> Our OAuth 2.0 Authentication guide 
> 
>  provides 
> information on access and refresh tokens. An OAuth 2.0 refresh token does 
> not expire. Refresh tokens are valid until the user revokes access.
>
> Regards,
> Nadine, AdWords API Team
>
> On Friday, April 3, 2015 at 3:03:14 PM UTC-4, Hao Li wrote:
>>
>> Hello, 
>>
>> We are using OAuth2.0 to pull reports from Adwords. We wonder if a 
>> refresh token is always valid after it is granted. If not, in what kind of 
>> conditions a refresh token become invalid? 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/9bac03a4-c20e-4a04-8507-2d794b65d00f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


CPC

2015-04-13 Thread Umar Farooq
I have a job board 

I am interesting to increase traffic on my jobboard 

My job board is totally free for Recruiter and Jobs Searchers.

I am interested to launch campaign with AdWords and earn from AdSense. 

How can I manage it.  

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/3b6c8756-643c-479f-a2c5-b5c5f581505c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Is it possible to upgrade keywords to use the new upgraded URLs programmatically?

2015-04-13 Thread Adxsearch Adxpand
Setting it to null doesn't work. You have to go into the campaign in 
adwords and manually change destination url to final url. That's the only 
way I got it to work. I also tried a very trivial example not doing 
anything else than in the C# Example. If a keyword has a destination url in 
AdWords it is not possible to change it to use a final url instead. Can you 
change the server implementation so this will be possible. The way it is 
right now it's not possible to do this via the API.

On Friday, April 10, 2015 at 5:31:27 PM UTC+2, Thanet Knack Praneenararat 
(AdWords API Team) wrote:
>
> Hi,
>
> Sorry that we don't have Java code examples for AdGroupCriterion now.
> But that error was probably because you haven't cleared the destination 
> URLs when setting final URLs via MUTATE operation.
>
> Could you please try clearing the value of destination URLs too (by 
> setting it to null)?
>
> Cheers,
> Thanet
>
> On Friday, April 10, 2015 at 11:22:05 AM UTC+1, Adxsearch Adxpand wrote:
>>
>> I'm preparing for the upgraded URLs sunset on 7/1 2015. There is an 
>> example for programmatically upgrading adGroupAds (TextAds) in Java, but I 
>> cannot find a corresponding example for keywords (AdGroupCriterions). There 
>> is an example in C#, but our webapplication is written in Java. I tried to 
>> translate it since they're similar. It builds but when I try to deploy / 
>> upload / mutate my keyword I get:
>>
>>  [AdGroupCriterionError.CANNOT_SET_BOTH_DESTINATION_URL_AND_FINAL_URLS @ 
>> operations[1].operand.finalUrls; trigger:'UrlList{urls=[
>> http://www.google.com]}']
>>
>>  Is there an example in Java which you can point me to? Is it possible 
>> to upgrade keywords to use the new upgraded URLs programmatically?
>>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/e18f8390-3bf6-463d-ad98-063f4b6d2105%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Google Analytics metrics zero in AD_PERFORMANCE_REPORT

2015-04-13 Thread David Midgley
Hi Josh

It's been three months since your last post, have you managed to get a 
response from the reporting team?

Cheers

David

On Thursday, 15 January 2015 17:57:41 UTC, Josh Radcliff (AdWords API Team) 
wrote:
>
> Hi David,
>
> Sorry for the delay. I contacted the reporting team again today for an 
> update. Hopefully I'll have something to report back soon.
>
> Thanks,
> Josh, AdWords API Team
>
> On Wednesday, January 14, 2015 at 11:11:44 AM UTC-5, David Midgley wrote:
>>
>> Hi Josh
>>
>> It's been just over a week since your last post - I don't suppose you 
>> have an update? Should I start rewriting my code to workaround this bug?
>>
>> Cheers
>>
>> David
>>
>> On Tuesday, 6 January 2015 16:56:31 UTC, Josh Radcliff (AdWords API Team) 
>> wrote:
>>>
>>> Hi David,
>>>
>>> Thanks for offering, but unfortunately I think you'll get back all zeros 
>>> for past dates at this point as well. That's what I found when I just tried 
>>> running a report with *id* and *KeywordId* for October 2014.
>>>
>>> I'll continue to follow up with the reporting team to try to figure out 
>>> what changed here.
>>>
>>> Thanks,
>>> Josh, AdWords API Team
>>>
>>> On Monday, January 5, 2015 5:32:10 PM UTC-5, David Midgley wrote:

 Hi Josh

 Unfortunately I don't have a copy of a past response but I could 
 recreate a past request. Would that be useful?

 This incident has prompted me to save all report files generated from 
 the API into an audit trail as of today, but that's a little late!

 Cheers

 David

 On Monday, 5 January 2015 22:06:35 UTC, Josh Radcliff (AdWords API 
 Team) wrote:
>
> Hi David,
>
> Thanks for confirming that you have a similar use case to Lloyd's. I 
> don't have an ETA for when or if this will be fixed, but one thing that 
> would help greatly in our investigation would be if you have a sample 
> report request *and* response for a request you ran in the past with 
> both *Id* and *KeywordId* where you received non-zero values for the 
> analytics columns. If you have such a sample, please send that *only 
> to me* by clicking *Reply to Author* on this message.
>
> Thanks,
> Josh, AdWords API Team
>
> On Monday, January 5, 2015 12:53:11 PM UTC-5, David Midgley wrote:
>>
>> Hi Josh
>>
>> Thanks for your quick response!
>>
>> Yes I am including KeywordId and Id as this is the only report I know 
>> of that allows you to split by keyword/ad combination. If there is 
>> another 
>> report that allows you to do this please let me know as this is crucial 
>> to 
>> the analysis we need to perform.
>>
>> Do you know if this bug is likely to be fixed any time soon?
>>
>> Cheers
>>
>> David
>>
>> On Monday, 5 January 2015 17:45:13 UTC, Josh Radcliff (AdWords API 
>> Team) wrote:
>>>
>>> Hi David,
>>>
>>> Could you confirm that you are only seeing zero values when your 
>>> AD_PERFORMANCE_REPORT request includes both *KeywordId* *and* *Id* (ad 
>>> ID)? If that's the case, then it sounds like you have encountered the 
>>> same 
>>> error that Lloyd discovered.
>>>
>>> Thanks,
>>> Josh, AdWords API Team
>>>
>>> On Monday, January 5, 2015 10:26:12 AM UTC-5, David Midgley wrote:

 Hi Josh

 I'm seeing the same thing, I was just about to post this question 
 before I noticed Lloyd's question:


 I'm getting zero values via the API for:

 - AveragePageviews
 - AverageTimeOnSite
 - BounceRate
 - PercentNewVisitors

 in a AD_PERFORMANCE_REPORT. According to the Reports Reference 
 documentation these columns are available and I don't get an error in 
 my 
 report submission, just zero values.

 This is happening across multiple clients where I previously had 
 values and the data disappeared on 9-10 December.

 This doesn't appear to be a time lag issue as I've tried 
 re-importing the whole of December today and now I have no analytics 
 data 
 since 30 November!

 Is anyone else experiencing this? Has anything changed in the way 
 analytics data is integrated into AdWords reporting?

 Just to reiterate, I was getting analytics data with no problems 
 prior to 9/10 December and my report definitions have not changed.

 Cheers

 David




 On Tuesday, 30 December 2014 14:50:19 UTC, Josh Radcliff (AdWords 
 API Team) wrote:
>
> Hi Lloyd,
>
> I've contacted the reporting team to get more details on why 
> *KeywordId* in combination with the Ad ID returns zeros for 
> Google Analytics metrics.

Regular negatives returned as display negatives

2015-04-13 Thread MdV
Hi API team,

For about a dozen of our clients' accounts the 
DISPLAY_KEYWORD_PERFORMANCE_REPORT is returning data for a few of the 
regular negatives in the account. This started april 10th and also happens 
with accounts that don't have any display campaigns at all.

SOAP headers:
https://adwords.google.com/api/adwords/cm/v201502";>

Id
CampaignId
AdGroupId
KeywordText
Status
CpcBid
CpmBid

IsNegative
IN
true


CampaignStatus
NOT_IN
REMOVED


AdGroupStatus
NOT_IN
REMOVED


Status
NOT_IN
REMOVED


Report - #1428918968416
DISPLAY_KEYWORD_PERFORMANCE_REPORT
ALL_TIME
GZIPPED_CSV


Example report received (containing only regular negatives):

Keyword ID,Campaign ID,Ad group ID,Keyword,Keyword state,Max. CPC,Max. CPM
364880172,47894820,1602706470,hotel Palm Beach,enabled,xxx, xxx
364973112,47894820,1602706470,hotels Palm Beach,enabled,xxx, xxx
140408718,16213340,2357592780,curaçao,enabled,xxx, xxx
Total, --, --, --, --, --, --

Additional info can be supplied in a private message.

Can you please look into this?


Regards,
Marcel de Vries

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/2b5e2e7f-41d6-44d2-949a-6ad3de5944ef%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Create Shopping Campaign

2015-04-13 Thread AroxoDev team
Hi,

I have few Queries on ' Create Shopping Campaing using API '

1.  Can we get merchant ID without define hard code it ,using defined 
services?

2.  Is budget id is Optional?

3.  Campaing should be created atelase with 1 adgroup?

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/9842b1df-d282-4b54-85ce-9a8de9341d2c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How get CustomerId with OAuth 2.0

2015-04-13 Thread Marcin Gdak
Hi Anash,

Thank you for help.
In my opinion, that oauth is already acting. I get CustomerId. I would like 
to get the e-mail address of the user, but my code isn't work.
My code:

 CustomerService customerservice = 
(CustomerService)user.GetService(AdWordsService.v201502.CustomerService);
long customerId = customerservice.get().customerId;
AdWordsAppConfig config = (AdWordsAppConfig)user.Config;
config.ClientCustomerId = customerId.ToString();
lit.Text += config.ClientCustomerId.ToString();
lit.Text += config.Email;

One more time I am thanking you for help.

Marcin Gdak 

W dniu piątek, 10 kwietnia 2015 17:36:12 UTC+2 użytkownik Anash P. Oommen 
(AdWords API Team) napisał:
>
> Hi Marcin,
>
> In your Web.config, comment out all the OAuth2 properties other than
>
> 
>  />
> 
>
> When you do this, client library would see that both accessToken and 
> refreshToken are empty, and would then take you through the flow for 
> obtaining an access and refresh token. 
>
> As you mentioned, this call doesn't seem right:
>
> AdsClientLibs.RequestInfoLogs Information: 1 : 
> host=accounts.google.com,url=/o/oauth2/token,Content-Type: 
> application/x-www-form-urlencoded, Host: accounts.google.com, TimeStamp: 
> Wed, 08 Apr 2015 15:56:00 GMT, 
> code=4%2feZigbElUJzTfPvRzDcgvxolkIZFJ30jLAGbA3tmn_mY.snhw8qCGuzkbYFZr95uygvUB4KEymQI&client_id=524.29-lsp7...
> 6seth.apps.googleusercontent.com
> &client_secret=**&redirect_uri=http%3a%2f%2flocalhost%3a50246%2fOAuthLogin.aspx&grant_type=authorization_code&refresh_token=**,Result=Success
>
> A refresh_token=* shouldn't be there, I'm assuming that's the 
> placeholder value being loaded from the Web.config you downloaded from the 
> nuget package.
>
> Cheers,
> Anash P. Oommen,
> AdWords API Advisor.
>
>
> On Friday, April 10, 2015 at 4:31:53 AM UTC-4, Marcin Gdak wrote:
>>
>> Hi Nadine,
>>
>> I understand my problem, but i don't know how to add access_type in my 
>> code. I added in webconfig, but it doesn't work.
>> I'm using the taken library from nuget packet.
>>
>> Could you help me?
>>
>> W dniu piątek, 10 kwietnia 2015 01:00:10 UTC+2 użytkownik Nadine 
>> Sundquist (AdWords API Team) napisał:
>>>
>>> Hello Marcin,
>>>
>>> In response to your questions:
>>>
>>>- Parameter *access_type* should be offline.
>>>- The POST address looks correct.
>>>
>>> One thing that I noticed that is different about your response from what 
>>> I would expect is that your are receiving an *id_token *rather than a 
>>> *refresh_token*. This means that you are using an OAuth 2.0 connection 
>>> mechanism called OpenID Connect 
>>> . Based 
>>> on the OpenID documentation related to retrieving tokens 
>>> ,
>>>  
>>> you must make sure that your *access_type=offline* in order to get back 
>>> a refresh_token. 
>>>
>>> Cheers,
>>> Nadine, AdWords API Team
>>>
>>> On Wednesday, April 8, 2015 at 10:10:02 AM UTC-4, Marcin Gdak wrote:

 Hi Nadine,

 Still my refresh token is empty.
 My logs:


 AdsClientLibs.RequestInfoLogs Information: 1 : 
 host=accounts.google.com,url=/o/oauth2/token,Content-Type: 
 application/x-www-form-urlencoded, Host: accounts.google.com, 
 TimeStamp: Wed, 08 Apr 2015 15:56:00 GMT, 
 code=4%2feZigbElUJzTfPvRzDcgvxolkIZFJ30jLAGbA3tmn_mY.snhw8qCGuzkbYFZr95uygvUB4KEymQI&client_id=524.29-lsp7...
 6seth.apps.googleusercontent.com
 &client_secret=**&redirect_uri=http%3a%2f%2flocalhost%3a50246%2fOAuthLogin.aspx&grant_type=authorization_code&refresh_token=**,Result=Success


 AdsClientLibs.SoapXmlLogs Information: 1 : 
 -BEGIN API CALL-

 Request
 ---

 POST /o/oauth2/token
 Content-Type: application/x-www-form-urlencoded
 Host: accounts.google.com
 TimeStamp: Wed, 08 Apr 2015 15:56:00 GMT


 code=4%2feZ.QI&client_id=524029-l..
 h.apps.googleusercontent.com
 &client_secret=**&redirect_uri=http%3a%2f%2flocalhost%3a50246%2fOAuthLogin.aspx&grant_type=authorization_code&refresh_token=**

 Response
 

 Pragma: no-cache
 Content-Disposition: attachment; filename="json.txt"; 
 filename*=UTF-8''json.txt
 X-Content-Type-Options: nosniff
 X-Frame-Options: SAMEORIGIN
 X-XSS-Protection: 1; mode=block
 Alternate-Protocol: 443:quic,p=0.5
 Vary: Accept-Encoding
 Transfer-Encoding: chunked
 Accept-Ranges: none
 Cache-Control: no-cache, no-store, max-age=0, must-revalidate
 Content-Type: application/json; charset=utf-8
 Date: Wed, 08 Apr 2015 13:56:01 GMT
 Expires: Fri, 01 Jan 1990 00:00:00 GMT
 Server: GSE
 TimeStamp: Wed, 08 Apr 2015 15:56:01 GMT



PRODUCT PARTITION under ProductType Shows error

2015-04-13 Thread cvit sandeep
Hi Team ,

I am currently working on Product partition ,getting the following error

An error has occurred: [RequiredError.REQUIRED @ 
operations[6].operand.criterion.caseValue.type]

The code is as follows,

  $root  = $helper->createSubdivision();
  $helper->createUnit($root, new ProductCanonicalCondition('NEW'), 20);
  $helper->createUnit($root, new ProductCanonicalCondition('USED'), 10);
  $otherCondition = $helper->createSubdivision($root, new 
ProductCanonicalCondition());
  $helper->createUnit($otherCondition, new 
ProductType('PRODUCT_TYPE_L1','shirts'), 20);
  $helper->createUnit($otherCondition, new 
ProductType('PRODUCT_TYPE_L1','footwear'), 10); 
  $janko = $helper->createSubdivision($otherCondition, new ProductType()); 
  $helper->createUnit($janko, new ProductType('PRODUCT_TYPE_L2','shirt11'), 
10); 
  $helper->createUnit($janko, new ProductType('PRODUCT_TYPE_L2')); 

   Is this because of not giving the 'PRODUCT_TYPE' in seventh line.
 
   If i add any PRODUCT_TYPE there that also leads to some error

   Please help me to Resolve this issue.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/573cdcba-88b3-4759-8a62-21c8dc9158e0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.