Error getting access and refresh token from playground

2014-10-11 Thread James Mills
Hi,

Not sure how else to get help about this so I made a quick video (I will be 
deleting this project after this post).

http://screencast.com/t/II9aDTMXyEqg

I have gone though this process in this same account for a different 
project and everything worked fine.

Any help would be greatly appreciated.

Kind regards, 

James

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/29914d1c-09fd-4d90-8248-02b808ba9f5f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Add Google Adwords Call Extension to AdGroup using API

2014-08-01 Thread James Mills
Hiya,

No, how do you select that using the API? All UI stuff works now.

Thanks for all your help!

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
For more options, visit https://groups.google.com/d/optout.


Re: Add Google Adwords Call Extension to AdGroup using API

2014-07-30 Thread James Mills
Saying that I cannot see a way to set the Report phone call conversions : 
Count calls as phone call conversions  Conversion Action settings.

I thought maybe that I need to set the Conversion Type Id to be the Id of 
an AdWordsConversionTracker Object but then you would have to create a 
new AdWordsConversionTracker object first and then get the Id and... 

Confusing myself I think.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
For more options, visit https://groups.google.com/d/optout.


Re: Add Google Adwords Call Extension to AdGroup using API

2014-07-30 Thread James Mills
UPDATE

I added a 'CONVERSION TYPE ID' but still had the issue. Turned out I had 
forgotten to add 'TRACKED' to the Feed and FeedItem etc. this is what was 
giving us the error.

I was trying to save some lines of code by omitting them but turns out I 
ended up causing myself (and you) more pain than was needed. I have now 
added all options and I am able to edit this in Adwords Admin area now.

The issue with having to include the 'CONVERSION TYPE ID' is that you then 
have to make sure you have a 'AdCallMetricsConversion object' created and 
so you can use that Id. I guess there are are a couple of options for this 
and so I will give it some more thought.

Thanks again Josh, you have been a great help!

James

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
For more options, visit https://groups.google.com/d/optout.


Re: Add Google Adwords Call Extension to AdGroup using API

2014-07-30 Thread James Mills
Hi Josh,

Yes, it would seem that although the value is true by default if the Feed 
does not have the field loaded and mapped then it has nothing to save it 
against when you try and update values in the FeedItem. That's my guess 
anyway. What I have done now is just included entries for all the 
FeedAttribute )phone, code, tracking , call only and conversion type) when 
creating the Feed and also include them all when doing the FeedMapping. 

When creating a FeedItem I miss out the Conversion Type Id and it uses the 
'Calls from ads' Conversion action by default if you have tracking turned 
on (Google forwarding number) so that works out OK.

Question: The only thing I don't seem to be able to change at the moment is 
the 'Device preference - Mobile' box. I want to be able to select (tick) 
and not. I am not sure if this has anything to do with it, I am using this 
from the SiteLinks example adapted from the CampaignFeedOperation example

https://gist.github.com/jamesmills/af9206f88b1e0880b281

Thanks for looking at the other changes.

James

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
For more options, visit https://groups.google.com/d/optout.


Re: Add Google Adwords Call Extension to AdGroup using API

2014-07-29 Thread James Mills
Hi Josh,

Thank you very much for your reply, this entire thread has been extremely 
valuable.

So this is what I am doing.


   1. Get or create a unique Feed item. In my case it is a Call Extensions 
   Feed.
   2. Create a FeedItem for a given phone number. This matches 
   the feedAttributeId to the value I want to set.
   3. Next step is to use either CampaignFeedOperation 
   or AdGroupFeedOperation to link the FeedItem to a Campaign or an AdGroup.


I found from the example there is also the stage of running the 
FeedMappingService. This seems to map the feedAttributeId's 
to PLACEHOLDER's. I am guessing that this should be run just after creating 
the new Feed?

Cheers, James

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
For more options, visit https://groups.google.com/d/optout.


Re: Add Google Adwords Call Extension to AdGroup using API

2014-07-29 Thread James Mills
Hi again,

I am now successfully, to an extent, doing what I need to do. The only 
thing that's a little odd is when I log in and go to edit the number when I 
click 'save' I get this 

https://www.dropbox.com/s/rovh7v5hbpdro2x/Screenshot%202014-07-29%2018.23.10.png

Any ideas, apart from go back and rewrite everything?

Cheers, James

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
For more options, visit https://groups.google.com/d/optout.


Re: Add Google Adwords Call Extension to AdGroup using API

2014-07-29 Thread James Mills
Hi,

Feed ID 18963918
Adgroup ID 13788225903 

James

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
For more options, visit https://groups.google.com/d/optout.


Re: Add Google Adwords Call Extension to AdGroup using API

2014-07-29 Thread James Mills
Hi Josh,

Thanks for looking into this.

I noticed that the country was listed as 'Afghanistan' so I inspected the 
live site and noticed they should be uppercase. Link from the docs or an 
example would help.

I was looking at the placeholder 
docs https://developers.google.com/adwords/api/docs/appendix/placeholders 
and noticed I have not included the CONVERSION TYPE ID so I suspect this is 
causing the issue. I had thought that maybe if I missed it out I would not 
have to reference anything but it looks like I need to give a 
AdCallMetricsConversion object...

http://screencast.com/t/B4g0vg68

James

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
For more options, visit https://groups.google.com/d/optout.


Re: Add Google Adwords Call Extension to AdGroup using API

2014-07-24 Thread James Mills
Hi Josh,

Thank you so much for your reply, a speedy one at that!


   1. When you create a Feed object does that then live in the 
   account accessible by all Campaigns and all AdGroups? I know the name is 
   unique but what's the container for it to be unique in? For example, this 
   is what I am thinking?
  1. Create a Campaign (one time action).
  2. Create a call extension Feed object (one time action).
  3. Create a FeedItem with the distinct phone number etc. (multiple)
  4. Create the AdGroup to use the FeedItem (multiple)
  5. Link the AdGroup and the FeedItem using AdGroupFeed (multiple)
  6. Continue to make any Ads etc. within the AdGroup
   2. I am guessing that a Feed object is unique to the Adwords Customer 
   account so to get the Feed object id for the call extension is there an API 
   method you can call? I don't seem to be able to fine it?

Thanks again,

James Mills
Lead Developer, Clicksco PHP Team


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

You received this message because you are subscribed to the Google
Groups AdWords API Forum group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
AdWords API Forum group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Add Google Adwords Call Extension to AdGroup using API

2014-07-23 Thread James Mills
I am successfully adding new AdGroups to the Campaign of my choosing. 

I would now like to add a phone number to be displayed against the ads in 
that adgroup. I understand this to be an Call Extension. Looking into this 
I have found that this needs to be added using the API Feed Service 
(http://goo.gl/LzkI4g). I understand that this works the same as adding 
SiteLinks and I have found this example 
examples/AdWords/v201406/AdvancedOperations/AddSitelinks.php 
https://github.com/googleads/googleads-php-lib/blob/master/examples/AdWords/v201406/AdvancedOperations/AddSitelinks.php
 in 
the PHP client library. 

I have reworked this to add a CALL rather than SITELINKS. I have also 
reworked this to add this feed to the AdGroup rather than the Campaign. 
https://gist.github.com/jamesmills/675fa4574484468a04a5

My first question is: 

Every time I add a Feed it says the name needs to be unique. Does this mean 
I can create one Feed item of this type and then just reuse it and only add 
the attributes needed for the AdGroup? So I guess I mean add one Feed for 
the Campaign and then just update the phone number and country code for 
each individual adgroup?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
For more options, visit https://groups.google.com/d/optout.