Re: AdGroupAdService not providing all Ads - v201406

2014-07-21 Thread MWA
Does not anybody face this issue so far? 

On Friday, July 18, 2014 11:56:24 AM UTC+5, MWA wrote:
>
>
> Hi,
>
> I am trying to retreive Ads data from adwords API v201406.
>
> I am getting stats like this
>
> $reportQuery = "SELECT 
> AveragePosition,AverageCpc,AverageCpm,Impressions,Clicks,Cost,Ctr,Conversions,ConversionRate,CostPerConversion,
>
> ViewThroughConversions,ConversionsManyPerClick,ConversionRateManyPerClick,CostPerConversionManyPerClick,AdNetworkType1,Id,AdGroupId
> FROM AD_PERFORMANCE_REPORT";
>
> $reportQuery .= " DURING " . $dateRange;
>
> $options = array('version' => ADWORDS_LATEST_VERSION);
>
> $stats =  ReportUtils::DownloadReportWithAwql($reportQuery, $Path, $user, 
> $reportFormat, $options);
>
>
>
> Then I am converting $stats into array format $statsArray and then 
> collecting all AdIds. After that I am trying to retrieve other data from 
> AdGroupAdService using code below. $adIds have all the AdIds parsed from 
> $statsArray.
>
> $adGroupAdService = $user->GetService('AdGroupAdService', 
> ADWORDS_LATEST_VERSION);
>
> $selector = new Selector();
>
> $selector->fields = array('Id','AdGroupId','Status','DisplayUrl',
> 'AdGroupAdDisapprovalReasons','Headline','Description1','Description2',
> 'ImageCreativeName','MobileAdDescription','MobileAdMarkupLanguages',
> 'MobileAdMobileCarriers','MobileAdBusinessName','MobileAdCountryCode',
> 'MobileAdPhoneNumber','MediaId','Dimensions','Urls','MimeType','SourceUrl'
> ,'FileSize','CreationTime','ReferenceId','TemplateId','TemplateAdUnionId',
> 'UniqueName','TemplateElementFieldName','TemplateElementFieldType',
> 'TemplateElementFieldText');
>
> $selector->predicates[] = new Predicate('Id', 'IN', $adIds);
>
> $page = $adGroupAdService->get($selector);
>
>
>
> The problem is $stat is providing 680 unique Ads data, and I am sending 
> these 680 AdIds to AdGroupAdService to get other data, but AdGroupAdService 
> is providing only 480 records.
>
> I have also tried to retrive data by sending actual AdIds which are 
> present in $statsArray but not present in $page but no result.
>
> $selector->predicates[] = new Predicate('Id', 'IN', $adIds);
>
>
>
> And I have also tried to retrive data by sending AdGroupId of the 
> particular AdId which are present in $statsArray but not present in $page 
> still no result.
>
>
> $selector->predicates[] = new Predicate('AdGroupId', 'IN', $adGroupIds);
>
>
>
> Please Help me.
>

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


Get the list of verticals programmatically

2014-07-21 Thread Dzmitry Zahusta
Hi!

Is there any way to get the list of all verticals programmatically? I mean 
the list from this 
 page.

I need this list to map it on my own list in my application.

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


Question about Required Minimum Functionality

2014-07-21 Thread Alan Coleman
Hello everyone,

I've been looking at the Required Minimum Functionality to obtain Standard 
Access . 

Our App uses Creation Functionality, for example *C.190 Create AdGroup*.

Now from the documentation I gather we have to implement all of the 
features indicated, even If we have no use for them, for example *C.10 
Create campaign.*

Am I correct in thinking along these lines?

Many thanks.

*If an AdWords API Client provides any Creation Functionality or Management 
Functionality marked "Required" then it must fully implement the required 
Creation Functionality, Management Functionality and Reporting 
Functionality, including all items marked "Required" in the table below.*


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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: How to retrieve Sitelinks urls.

2014-07-21 Thread Emiliano Busiello
Hi, I went through the documentation you linked, the example part on how to 
use the feed services is the same I linked in my initial post and there is 
no get operations specified, in fact all the operations called on services 
are mutate operations and that's not what I'm looking for, I don't want to 
populate a feed or build it up from scratch, I want to get feeds from the 
api.

Until now I managed to get the feeds using the feedServiceInterface and the 
placeholders, then you said to use the FeedMappingService, problem is the 
FeedMappingServiceInterface has only 3 operations, get( which takes a 
selector), get ( which takes a query string) and mutate (which takes 
operations).

At this point I don't know if I'm not explaining myself correctly or you 
are not reading my posts and just giving answers based on the title. I 
don't mean to be impolite, I really appreciate your time but please, try to 
give a complete answer instead of pieces that are confusing and misleading, 
if something is not clear on my part, please say so and I will do whatever 
I can to improve my question.

On Monday, 14 July 2014 20:47:05 UTC+2, Anash P. Oommen (AdWords API Team) 
wrote:
>
> Hi Emiliano,
>
> If you plan on using AdWords API, then you need to ask on 
> https://groups.google.com/forum/#!forum/adwords-api instead. The service 
> you are looking for is FeedItemService and FeedMappingService. You need to 
> retrieve the feeditem, and see if it has an attribute that is mapped to 
> placeholder id = 1, placeholder field id = 2. See 
> https://developers.google.com/adwords/api/docs/guides/feed-services, 
> https://developers.google.com/adwords/api/docs/appendix/placeholders for 
> details.
>
> Cheers
> Anash P. Oommen,
> AdWords Scripts Team.
>
> On Friday, July 11, 2014 5:22:46 AM UTC-4, Emiliano Busiello wrote:
>>
>> Hi Anash,
>>
>> maybe I was not clear, how do you access the sitelink (and then 
>> consequently the getLinkUrl method)? Outside the google script environment 
>> I don't have access to an object called AdwordsApp, as I showed in my code 
>> I can only access the AdwordsServices class and then use one of the 
>> ServiceInterface interfaces, as showed also on many examples around, also 
>> from the adwords team on github. Using the FeedServiceInterface doesn't 
>> return what I actually want. Am I missing something obvious?
>>
>> For completeness, this are the dependencies I imported using SBT:
>>
>>   "com.google.http-client" % "google-http-client-jackson2" % 
>> "1.18.0-rc",
>>   "com.google.api-ads" % "ads-lib" % "1.27.0",
>>   "com.google.api-ads" % "adwords-axis" % "1.27.0"
>>
>> On Friday, 11 July 2014 06:11:09 UTC+2, Anash P. Oommen (AdWords API 
>> Team) wrote:
>>>
>>> Hi,
>>>
>>> You can use the getLinkUrl method of sitelink. See 
>>> https://developers.google.com/adwords/scripts/docs/reference/adwordsapp/adwordsapp_sitelink
>>>  
>>> for details. Scripts has a simplified version of FeedServiceInterface, so 
>>> you need to rely mostly on the scripts documentation than the API 
>>> documentation for this feature.
>>>
>>> Cheers,
>>> Anash P. Oommen,
>>> AdWords Scripts Team.
>>>
>>> On Tuesday, June 24, 2014 4:18:18 AM UTC-4, Emiliano Busiello wrote:

 I'm trying to get url out of sitelinks, I looked at this piece of code:

 var campaigns = AdWordsApp.campaigns()
 .withCondition("LabelNames CONTAINS_NONE['" + 
 settings.sitelinksLabel +
 "']")
 .get();
 while (campaigns.hasNext()) {
   var campaign = campaigns.next();
   var sitelinks = campaign.extensions().sitelinks().get();

   Logger.log('Checking %s sitelinks.', sitelinks.totalNumEntities());
   while (sitelinks.hasNext()) {
 var sitelink = sitelinks.next();
 var status = getUrlStatus(sitelink.getLinkUrl());
 accountSheet.appendRow(['', sitelink.getLinkUrl(),
 status, campaign.getName(),
 '', '', '', sitelink.getLinkText()]);
   }
   campaign.applyLabel(settings.sitelinksLabel);
 }


 Taken from here 
 ,
  
 I also had a look around at the API documentation and at this 
  
 example 
 (which unfortunately doesn't treat get operations) and as far as I 
 understand the FeedServiceInterface is what I should use. This is my code 
 at the moment:

 val adWordsServices = new AdWordsServices()
 var offset = 0
 var limit = 100

 val service = adWordsServices.get(connection, 
 classOf[FeedServiceInterface])

 val builder = new SelectorBuilder()
 var selector = builder
   .fields("Name", "Attributes")
   .offset(offset)
   .limit(lim

Re: Shopping Performance Report - category name change

2014-07-21 Thread Adam Orczyk
Ok, Thanks.

Regards,
Adam

On Monday, July 14, 2014 2:42:57 PM UTC+2, Mat Scales (AdWords API Team) 
wrote:
>
> Hi Adam,
>
> Rather than rename categories a new category, with a new category ID, will 
> be created, and the original will no longer be available to use. Removed 
> categories cannot be retrieved from getProductBiddingCategoryData.
>
> Reports that include a category name will still have the original name 
> available, just as old category IDs will continue to be returned in reports.
>
> You may wish to alter your category cache to keep items that are no longer 
> returned by the ConstantDataService, and just mark any item that is no 
> longer available as removed. This way you can still lookup the name for old 
> category IDs.
>
> Cheers,
> Mat
>
> On Monday, July 7, 2014 3:06:08 PM UTC+1, Adam Orczyk wrote:
>>
>> Hi,
>> I have a question about names of product categories in Shopping 
>> Performance Report. What happens with category name in old reports (for 
>> time before the change) if name of category will be changed by Google (in 
>> documentation I found that it's updated every 3 months)? In report for time 
>> before the change we get old category name or new category name? What 
>> happens also with this category id, returns by method 
>> getProductBiddingCategoryData?
>> I found also strange issue. I compared list of product categories returns 
>> by getProductBiddingCategoryData and from file given here 
>> https://support.google.com/merchants/answer/160081?hl=en and they are 
>> not exactly the same.
>>
>> Regards,
>> Adam
>>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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: ReportDownloadError.INVALID_PARAMETER

2014-07-21 Thread Dhiraj Shinde
$VAR1 = bless( {
 'ssl_opts' => {
 'verify_hostname' => 1
   },
 'res' => bless( {
   '_protocol' => 'HTTP/1.1',
   '_content' => 'ReportDownloadError.INVALID_PARAMETERMissing
 
client 
information',
   '_rc' => 400,
   '_headers' => bless( {
  'connection' => 
'close',
  'cache-control' 
=> 'private, max-age=0',
  'date' => 'Mon, 
21 Jul 2014 07:39:35 GMT',
  
'client-ssl-cert-issuer' => '/C=US/O=Google Inc/CN=Google Internet 
Authority G2',
  
'client-ssl-cipher' => 'x-xxx-xx-xxx',
  'client-peer' => 
'xx.xx.xx.xx:443',
  'client-date' => 
'Mon, 21 Jul 2014 07:39:35 GMT',
  'content-type' => 
'text/xml',
  
'x-xss-protection' => '1; mode=block',
  'server' => 'GSE',
  
'client-ssl-socket-class' => 'IO::Socket::SSL',
  
'client-response-num' => 1,
  'x-frame-options' 
=> 'SAMEORIGIN',
  
'x-content-type-options' => 'nosniff',
  
'client-ssl-cert-subject' => '/C=US/ST=California/L=Mountain View/O=Google 
Inc/CN=*.google.com',
  'expires' => 
'Mon, 21 Jul 2014 07:39:35 GMT'
}, 'HTTP::Headers' 
),
   '_msg' => 'Bad Request',
   '_request' => bless( {
  '_content' => 
'__rdquery=SELECT%2BCampaignName%2BCampaignId%2BCost%2BFROM%2BCAMPAIGN_PERFORMANCE_REPORT%2BDURING%2B20140619%2C20140619&__fmt=CSV',
  '_uri' => bless( 
do{\(my $o = 
'https://adwords.google.com/api/adwords/reportdownload/v201406')}, 
'URI::https' ),
  '_headers' => 
bless( {

 'user-agent' => 'WWW-Mechanize/1.72',

 'content-type' => 'application/x-www-form-urlencoded',

 'accept-encoding' => 'gzip',

 'content-length' => 129

   }, 'HTTP::Headers' ),
  '_method' => 
'POST',
  '_uri_canonical' 
=> $VAR1->{'res'}{'_request'}{'_uri'}
}, 'HTTP::Request' )
 }, 'HTTP::Response' ),
 'page_stack' => [],
 'requests_redirectable' => [
  'GET',
  'HEAD',
  'POST'
],
 'timeout' => 180,
 'onerror' => sub { "DUMMY" },
 'links' => undef,
 'base' => bless( do{\(my $o = 
'https://adwords.google.com/api/adwords/reportdownload/v201406')}, 
'URI::https' ),
 'images' => undef,
 'noproxy' => 0,
 'show_progress' => undef,
 'protocols_forbidden' => undef,
 'no_proxy' => [],
 'protocols_allowed' => undef,
 'use_eval' => 1,
 'local_address' => undef,
 'autocheck' => 1,
 'title' => undef,
 'def_headers' => bless( {
   'user-agent' => 
'WWW-Mechanize/1.72'
 }, 'HTTP::Headers' ),
 'proxy' => {},
 'max_size' => undef,
 'headers' => {
'HASH(0xa63b65c)' => undef
  },
   

Re: GetRefreshToken.php > Error: disabled_client The OAuth client was disabled.

2014-07-21 Thread Sarah Gilmore
Hi Ray

I have now managed to work out what the issue was. At some point I started 
editing the Auth file in examples rather than in lib, whoops. How 
embarrassing!

Thanks for your help, but I've now retrieved the refresh token and will 
hopefully get the rest working!

On Friday, 28 February 2014 22:50:34 UTC, Jake Wilson wrote:
>
>
> I am building a simple web app to connect to our Adwords MMC and spit out 
> some reports.
>
> In the Google API Console I created a new Client ID.  I chose Installed 
> Application even though this is a web-based PHP tool I'm making.  This page:
>
>
> https://developers.google.com/adwords/api/docs/guides/authentication#access_and_refresh_token
>
> says to choose Installed Application if:
>
>- You are just getting started for the first time.
>- You want to test our example code and get started quickly.
>- You are managing all of your AdWords accounts using a single top 
>level MCC.
>
> All of which apply to us.  Also, the auth.ini says:
>
> ; If you do not have a client ID or secret, please create one of type
> ; "installed application" in the Google API console:
> ; https://cloud.google.com/console
>
> So anyways, I created an installed application client ID.  I get my Client 
> ID and Client Secret.  I add these to auth.ini along with my Adwords API 
> Key (which is approved) and a unique userAgentID string to identify my 
> application.
>
> At the command line I run the GetRefreshToken.php script, giving me:
>
> Log in to your AdWords account and open the following URL:
>
> https://accounts.google.com/o/oauth2/auth?response_type=code&client_id=5XXleusercontent.com&redirect_uri=urn%3Aietf%3Awg%3Aoauth%3A2.0%3Aoob&scope=https%3A%2F%2Fadwords.google.com%2Fapi%2Fadwords%2F&access_type=offline
>
> After approving the token enter the authorization code here:
>
> I log into my Adwords account and then paste in the above URL.  I get this 
> page:
>
> 
>
> So what am I doing wrong here?
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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: Failed to refresh access token. { "error" : "invalid_client" } on perfectly good client

2014-07-21 Thread Danial Klimkin
Hello All,


We've identified this was an internal issue. The relevant team noticed it 
and resolved it quickly, this should no longer cause an error.


-Danial, AdWords API Team.


On Friday, July 18, 2014 6:29:21 AM UTC+4, NET_Api_User wrote:
>
> +1. We're seeing a huge number of these errors - on about 2% of our calls. 
> Retrying seems to help. We moved to the latest .NET release recently. 
>
> On Thursday, July 17, 2014 4:04:29 PM UTC+5:30, Zweitze wrote:
>>
>> Hi,
>>
>> This morning a Google.Api.Ads.Common.Lib.AdsOAuthException occurred:
>> Failed to refresh access token.
>> {
>> "error" : "invalid_client"
>> }
>>
>> Unfortunately the .NET library destroyed all extra information, so I 
>> don't have response headers, HTTP status code etc.
>> Anyway, the error occurred a eight times in total, between 05.25h and 
>> 07.41h (CEST), but in that period we also did manage to retrieve access 
>> tokens. Before that, or after that, we had no problems.
>>
>> So, what does the error mean? Obviously it doesn't mean that the supplied 
>> clientid and clientsecret do not exist.
>> And how does one handle this error? Can one retry the call?
>>
>> 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.
For more options, visit https://groups.google.com/d/optout.


Is there a test merchant center account for test mcc?

2014-07-21 Thread Udo Gröbner
Hi,

we've successfully created a Test-MCC. I'd like to try out some calls for 
shopping campaigns. When trying to create a shopping campaign, the adwords 
UI states "You can't create a Shopping campaign until you link your AdWords 
account within a Google Merchant Center account.".
Is there a test merchant center account that I could use? Or can I create 
one?

Thank you!

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


Testing

2014-07-21 Thread APIBI
Hey All,


I want to develop a software related to Google Adwords, for that I will 
need a dummy/test account to test the API - this account shouldn't be 
active in anyway and it should be only for developing purposes. 
I've open an MCC account an apply for AdWords API Developer Token, I've got 
a message that I need to accept API T&C and add a billing information.

Is API test account is not free?

Please advise. 

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


Adwords Api Error

2014-07-21 Thread sathik jack

java.lang.NoSuchMethodError: 
org.apache.commons.lang.ArrayUtils.contains([CC)Z
at 
org.apache.commons.configuration.PropertiesConfiguration$PropertiesReader.doParseProperty(PropertiesConfiguration.java:889)
at 
org.apache.commons.configuration.PropertiesConfiguration$PropertiesReader.parseProperty(PropertiesConfiguration.java:795)
at 
org.apache.commons.configuration.PropertiesConfiguration$PropertiesReader.nextProperty(PropertiesConfiguration.java:728)
at 
org.apache.commons.configuration.PropertiesConfigurationLayout.load(PropertiesConfigurationLayout.java:484)
at 
org.apache.commons.configuration.PropertiesConfiguration.load(PropertiesConfiguration.java:473)
at 
org.apache.commons.configuration.AbstractFileConfiguration.load(AbstractFileConfiguration.java:383)
at 
org.apache.commons.configuration.AbstractFileConfiguration.load(AbstractFileConfiguration.java:349)
at 
org.apache.commons.configuration.AbstractFileConfiguration.load(AbstractFileConfiguration.java:312)
at 
org.apache.commons.configuration.AbstractFileConfiguration.load(AbstractFileConfiguration.java:225)

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


How to get DMA region code for City

2014-07-21 Thread Varad Bhagwat
Hi,

How can I get DMA region code for a City or Is there any API service to get 
DMA region code if I pass City name as input ?

Thanks,
Varad

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 Credit cards to individual adword accounts via API

2014-07-21 Thread Vijay Sarathy
Hi,

 I have a MCC account and i use this account to manage all my associated 
adwords accounts. Now i  want to add credit card for every associated 
account using Adwords API.

Is it possible via adwords API? 

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


API v201406 upgraded urls - is it possible to refer custom parameter set on keyword in ad's url?

2014-07-21 Thread Robert Rodakowski
Source: 
https://developers.google.com/adwords/api/docs/guides/upgraded-urls#custom_parameters

In a few words: I would like to use *custom parameters* specified on 
keywords, in ad's url (the same adgroup). 
E.g:
Some keyword has custom parameter defined: 
*external_id = 123*I want to use the following URL on ad: 
*http://example.com?extID={_external_id}*

In the documentation we can read, that:

*custom parameters at a lower level entity override the values specified at 
higher level entities*

But ads and keywords are at the same level, aren't they? So the question 
is: whether this will work?

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


Re: AdGroupAdService not providing all Ads - v201406

2014-07-21 Thread Danial Klimkin
Hello MWA,


Any chance those ads are Shared Ads? Shared Ads are not returned by the API.


-Danial, AdWords API Team.


On Monday, July 21, 2014 12:02:17 PM UTC+4, MWA wrote:
>
> Does not anybody face this issue so far? 
>
> On Friday, July 18, 2014 11:56:24 AM UTC+5, MWA wrote:
>>
>>
>> Hi,
>>
>> I am trying to retreive Ads data from adwords API v201406.
>>
>> I am getting stats like this
>>
>> $reportQuery = "SELECT 
>> AveragePosition,AverageCpc,AverageCpm,Impressions,Clicks,Cost,Ctr,Conversions,ConversionRate,CostPerConversion,
>>
>> ViewThroughConversions,ConversionsManyPerClick,ConversionRateManyPerClick,CostPerConversionManyPerClick,AdNetworkType1,Id,AdGroupId
>> FROM AD_PERFORMANCE_REPORT";
>>
>> $reportQuery .= " DURING " . $dateRange;
>>
>> $options = array('version' => ADWORDS_LATEST_VERSION);
>>
>> $stats =  ReportUtils::DownloadReportWithAwql($reportQuery, $Path, $user, 
>> $reportFormat, $options);
>>
>>
>>
>> Then I am converting $stats into array format $statsArray and then 
>> collecting all AdIds. After that I am trying to retrieve other data from 
>> AdGroupAdService using code below. $adIds have all the AdIds parsed from 
>> $statsArray.
>>
>> $adGroupAdService = $user->GetService('AdGroupAdService', 
>> ADWORDS_LATEST_VERSION);
>>
>> $selector = new Selector();
>>
>> $selector->fields = array('Id','AdGroupId','Status','DisplayUrl',
>> 'AdGroupAdDisapprovalReasons','Headline','Description1','Description2',
>> 'ImageCreativeName','MobileAdDescription','MobileAdMarkupLanguages',
>> 'MobileAdMobileCarriers','MobileAdBusinessName','MobileAdCountryCode',
>> 'MobileAdPhoneNumber','MediaId','Dimensions','Urls','MimeType',
>> 'SourceUrl','FileSize','CreationTime','ReferenceId','TemplateId',
>> 'TemplateAdUnionId','UniqueName','TemplateElementFieldName',
>> 'TemplateElementFieldType','TemplateElementFieldText');
>>
>> $selector->predicates[] = new Predicate('Id', 'IN', $adIds);
>>
>> $page = $adGroupAdService->get($selector);
>>
>>
>>
>> The problem is $stat is providing 680 unique Ads data, and I am sending 
>> these 680 AdIds to AdGroupAdService to get other data, but AdGroupAdService 
>> is providing only 480 records.
>>
>> I have also tried to retrive data by sending actual AdIds which are 
>> present in $statsArray but not present in $page but no result.
>>
>> $selector->predicates[] = new Predicate('Id', 'IN', $adIds);
>>
>>
>>
>> And I have also tried to retrive data by sending AdGroupId of the 
>> particular AdId which are present in $statsArray but not present in 
>> $page still no result.
>>
>>
>> $selector->predicates[] = new Predicate('AdGroupId', 'IN', $adGroupIds);
>>
>>
>>
>> Please Help me.
>>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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: I have requested two accounts to be transferred in test accounts but nothing happens.

2014-07-21 Thread Sarah Gilmore
Hi, I am having a similar problem.

I used the form here 
 to set up a 
new account as a test account.I have entered billing details, and have 
accepted T+Cs and set up a campaign, which I have now paused.

Now I've managed to retrieve the refresh token, I get the incomplete signup 
error when running GetCampaigns in php. Since I have an unapproved 
developer token I understand I can't test if this is a test account, but I 
don't think it is. It is set up on this account.

Could you please advise?

Thanks



On Monday, 4 March 2013 13:14:19 UTC, Ivelin Vasilev wrote:
>
>
>
> Hello,
>
> I have requested these two accounts “363-849-1108” (more than 10 days 
> ago)  and “819-990-7263” ( 6 or 7 days ago )  to be converted as test 
> ones but nothing happens.  Can you help me, please?
>
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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: Question about Required Minimum Functionality

2014-07-21 Thread Danial Klimkin
Hello Alan,


As per forum rules 
, we can 
not discuss policy or RMF questions in this group. If in doubt, please 
check with the policy team directly via this form 
.


-Danial, AdWords API Team.


On Monday, July 21, 2014 12:18:29 PM UTC+4, Alan Coleman wrote:
>
> Hello everyone,
>
> I've been looking at the Required Minimum Functionality to obtain 
> Standard Access 
> . 
>
> Our App uses Creation Functionality, for example *C.190 Create AdGroup*.
>
> Now from the documentation I gather we have to implement all of the 
> features indicated, even If we have no use for them, for example *C.10 
> Create campaign.*
>
> Am I correct in thinking along these lines?
>
> Many thanks.
>
> *If an AdWords API Client provides any Creation Functionality or 
> Management Functionality marked "Required" then it must fully implement the 
> required Creation Functionality, Management Functionality and Reporting 
> Functionality, including all items marked "Required" in the table below.*
>
>
>

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

2014-07-21 Thread Danial Klimkin
Hello,


API access is free for both testing and production accounts. Valid billing 
setup is still required for both (mainly, for spam protection reasons).


-Danial, AdWords API Team.


On Friday, July 18, 2014 7:36:01 AM UTC+4, APIBI wrote:
>
> Hey All,
>
>
> I want to develop a software related to Google Adwords, for that I will 
> need a dummy/test account to test the API - this account shouldn't be 
> active in anyway and it should be only for developing purposes. 
> I've open an MCC account an apply for AdWords API Developer Token, I've 
> got a message that I need to accept API T&C and add a billing information.
>
> Is API test account is not free?
>
> Please advise. 
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 Credit cards to individual adword accounts via API

2014-07-21 Thread Danial Klimkin
Hello Vijay,


No, billing setup is available via user interface only.


-Danial, AdWords API Team.


On Friday, July 18, 2014 6:30:04 PM UTC+4, Vijay Sarathy wrote:
>
> Hi,
>
>  I have a MCC account and i use this account to manage all my associated 
> adwords accounts. Now i  want to add credit card for every associated 
> account using Adwords API.
>
> Is it possible via adwords API? 
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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: AdGroupAdService not providing all Ads - v201406

2014-07-21 Thread MWA
First of all Thank you for replying.

No. There is no Shared Ads.

Shared library > Ads says:
You haven't created any shared ads yet. Click "+ List" above to get started.

On Friday, July 18, 2014 11:56:24 AM UTC+5, MWA wrote:
>
>
> Hi,
>
> I am trying to retreive Ads data from adwords API v201406.
>
> I am getting stats like this
>
> $reportQuery = "SELECT 
> AveragePosition,AverageCpc,AverageCpm,Impressions,Clicks,Cost,Ctr,Conversions,ConversionRate,CostPerConversion,
>
> ViewThroughConversions,ConversionsManyPerClick,ConversionRateManyPerClick,CostPerConversionManyPerClick,AdNetworkType1,Id,AdGroupId
> FROM AD_PERFORMANCE_REPORT";
>
> $reportQuery .= " DURING " . $dateRange;
>
> $options = array('version' => ADWORDS_LATEST_VERSION);
>
> $stats =  ReportUtils::DownloadReportWithAwql($reportQuery, $Path, $user, 
> $reportFormat, $options);
>
>
>
> Then I am converting $stats into array format $statsArray and then 
> collecting all AdIds. After that I am trying to retrieve other data from 
> AdGroupAdService using code below. $adIds have all the AdIds parsed from 
> $statsArray.
>
> $adGroupAdService = $user->GetService('AdGroupAdService', 
> ADWORDS_LATEST_VERSION);
>
> $selector = new Selector();
>
> $selector->fields = array('Id','AdGroupId','Status','DisplayUrl',
> 'AdGroupAdDisapprovalReasons','Headline','Description1','Description2',
> 'ImageCreativeName','MobileAdDescription','MobileAdMarkupLanguages',
> 'MobileAdMobileCarriers','MobileAdBusinessName','MobileAdCountryCode',
> 'MobileAdPhoneNumber','MediaId','Dimensions','Urls','MimeType','SourceUrl'
> ,'FileSize','CreationTime','ReferenceId','TemplateId','TemplateAdUnionId',
> 'UniqueName','TemplateElementFieldName','TemplateElementFieldType',
> 'TemplateElementFieldText');
>
> $selector->predicates[] = new Predicate('Id', 'IN', $adIds);
>
> $page = $adGroupAdService->get($selector);
>
>
>
> The problem is $stat is providing 680 unique Ads data, and I am sending 
> these 680 AdIds to AdGroupAdService to get other data, but AdGroupAdService 
> is providing only 480 records.
>
> I have also tried to retrive data by sending actual AdIds which are 
> present in $statsArray but not present in $page but no result.
>
> $selector->predicates[] = new Predicate('Id', 'IN', $adIds);
>
>
>
> And I have also tried to retrive data by sending AdGroupId of the 
> particular AdId which are present in $statsArray but not present in $page 
> still no result.
>
>
> $selector->predicates[] = new Predicate('AdGroupId', 'IN', $adGroupIds);
>
>
>
> Please Help me.
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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: I have requested two accounts to be transferred in test accounts but nothing happens.

2014-07-21 Thread Danial Klimkin
Hello Sarah,


Please contact the reviews team over this form 
 directly. Make sure to 
set up billing and accept T&C for the production MCC account.

I am closing this thread as it's very old.


-Danial, AdWords API Team.


On Monday, July 21, 2014 2:25:59 PM UTC+4, Sarah Gilmore wrote:
>
> Hi, I am having a similar problem.
>
> I used the form here 
>  to set up 
> a new account as a test account.I have entered billing details, and have 
> accepted T+Cs and set up a campaign, which I have now paused.
>
> Now I've managed to retrieve the refresh token, I get the incomplete 
> signup error when running GetCampaigns in php. Since I have an unapproved 
> developer token I understand I can't test if this is a test account, but I 
> don't think it is. It is set up on this account.
>
> Could you please advise?
>
> Thanks
>
>
>
> On Monday, 4 March 2013 13:14:19 UTC, Ivelin Vasilev wrote:
>>
>>
>>
>> Hello,
>>
>> I have requested these two accounts “363-849-1108” (more than 10 days 
>> ago)  and “819-990-7263” ( 6 or 7 days ago )  to be converted as test 
>> ones but nothing happens.  Can you help me, please?
>>
>>
>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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: AdGroupAdService not providing all Ads - v201406

2014-07-21 Thread Danial Klimkin
Hello MWA,


Please try adding an addition predicate:

  Status IN (ENABLED, PAUSED, DISABLED)

and re-try the query. If the results are still not complete, please send me 
the full XML code of the request over email (Reply to author link on the 
right).


-Danial, AdWords API Team.


On Monday, July 21, 2014 2:31:48 PM UTC+4, MWA wrote:
>
> First of all Thank you for replying.
>
> No. There is no Shared Ads.
>
> Shared library > Ads says:
> You haven't created any shared ads yet. Click "+ List" above to get 
> started.
>
> On Friday, July 18, 2014 11:56:24 AM UTC+5, MWA wrote:
>>
>>
>> Hi,
>>
>> I am trying to retreive Ads data from adwords API v201406.
>>
>> I am getting stats like this
>>
>> $reportQuery = "SELECT 
>> AveragePosition,AverageCpc,AverageCpm,Impressions,Clicks,Cost,Ctr,Conversions,ConversionRate,CostPerConversion,
>>
>> ViewThroughConversions,ConversionsManyPerClick,ConversionRateManyPerClick,CostPerConversionManyPerClick,AdNetworkType1,Id,AdGroupId
>> FROM AD_PERFORMANCE_REPORT";
>>
>> $reportQuery .= " DURING " . $dateRange;
>>
>> $options = array('version' => ADWORDS_LATEST_VERSION);
>>
>> $stats =  ReportUtils::DownloadReportWithAwql($reportQuery, $Path, $user, 
>> $reportFormat, $options);
>>
>>
>>
>> Then I am converting $stats into array format $statsArray and then 
>> collecting all AdIds. After that I am trying to retrieve other data from 
>> AdGroupAdService using code below. $adIds have all the AdIds parsed from 
>> $statsArray.
>>
>> $adGroupAdService = $user->GetService('AdGroupAdService', 
>> ADWORDS_LATEST_VERSION);
>>
>> $selector = new Selector();
>>
>> $selector->fields = array('Id','AdGroupId','Status','DisplayUrl',
>> 'AdGroupAdDisapprovalReasons','Headline','Description1','Description2',
>> 'ImageCreativeName','MobileAdDescription','MobileAdMarkupLanguages',
>> 'MobileAdMobileCarriers','MobileAdBusinessName','MobileAdCountryCode',
>> 'MobileAdPhoneNumber','MediaId','Dimensions','Urls','MimeType',
>> 'SourceUrl','FileSize','CreationTime','ReferenceId','TemplateId',
>> 'TemplateAdUnionId','UniqueName','TemplateElementFieldName',
>> 'TemplateElementFieldType','TemplateElementFieldText');
>>
>> $selector->predicates[] = new Predicate('Id', 'IN', $adIds);
>>
>> $page = $adGroupAdService->get($selector);
>>
>>
>>
>> The problem is $stat is providing 680 unique Ads data, and I am sending 
>> these 680 AdIds to AdGroupAdService to get other data, but AdGroupAdService 
>> is providing only 480 records.
>>
>> I have also tried to retrive data by sending actual AdIds which are 
>> present in $statsArray but not present in $page but no result.
>>
>> $selector->predicates[] = new Predicate('Id', 'IN', $adIds);
>>
>>
>>
>> And I have also tried to retrive data by sending AdGroupId of the 
>> particular AdId which are present in $statsArray but not present in 
>> $page still no result.
>>
>>
>> $selector->predicates[] = new Predicate('AdGroupId', 'IN', $adGroupIds);
>>
>>
>>
>> Please Help me.
>>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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: Unable to get Adgroup "Mobile Bid Adjustment" using Adwords API

2014-07-21 Thread Danial Klimkin
Hello Nenad,


Please send us the full XML response you get from the server as-is. 
Normally, we don't return blanks in the response.


-Danial, AdWords API Team.


On Friday, July 18, 2014 1:05:40 PM UTC+4, Nesha wrote:
>
> We are using 3 different tools to get Adwords data: 
> - AdWords Editor
> - AdWords Web Site
> - AdWords API (PHP version)
>
> And there is an issue to get "Mobile Bid Adjustment" using API or Web Site.
>
> In AdWords Editor here is sample adgroup with value -100%
>
>
> 
>
>
> Now with Adwords API I am trying to fetch that info using 
> AdGroupBidModifierService with latest available API (v201406)
> https://developers.google.com/adwords/api/docs/guides/adgroup-bid-modifiers
>
> Here is API response for adgroup with "Mobile Bid Adjustment" = -100%
>
> AdGroupBidModifier Object
> (
> [campaignId] => 35768944
> [adGroupId] => 977693464
> [criterion] => Platform Object
> (
> [platformName] => 
> [id] => 3
> [type] => PLATFORM
> [CriterionType] => Platform
> [_parameterMap:Criterion:private] => Array
> (
> [Criterion.Type] => CriterionType
> )
>
> )
>
> [bidModifier] => 
> [bidModifierSource] => 
> )
>
> As you can see, there is no -100% value for bidModifier that I have in 
> AdWords Editor.
> How i can get this adgroup "Mobile Bid Adjustment" value using API ?
> I am not sure is this available via API at the moment.
>
> Thanks,
> Nenad Milosavljevic
>
>

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


Adwords API Auth2

2014-07-21 Thread Altaf Mulla


*Auth2 Authentication*

*Is there any way in which I can avoid the process the  Login and click 
Accept *

*Can i not use  the google adwords  api by setting my credentails 
,developer token  ,etc* 

*Is there any way I can get the authorization code directly and use it to 
Fetch Access And Refresh Tokens*

 *As I have a web application in which my clients use the api to get 
campaign details and statistics of campaign*

*I don’t want then to go through Login precodure and click of accept button 
for Auth2 authentication* 

*Please Suggest *

 

*Thanks and Regards*

*Altaf*

 

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


Adwords API integration Query

2014-07-21 Thread Chad Ruff


Hi ,

 

I downloaded the google adwords dotnet library with examples

 

I ran  the Oauth Project (…….examples\AdWords\csharp\oauth)

 

THis project has two aspx pages

 

I just added some code in the below function as follows

 

   private void DoAuth2Configuration(AdWordsAppConfig config) {

 

config.Email = "te...@gmail.com";

config.Password = "xxx!";

config.UserAgent = "";

config.DeveloperToken = "x";

config.AuthorizationMethod = AdWordsAuthorizationMethod
.OAuth2;

config.ClientCustomerId = "123-456-789".ToString().Replace(
"-", "");

config.OAuth2ClientId = "
.apps.googleusercontent.com";

config.OAuth2ClientSecret = "_x";

  

config.OAuth2RedirectUri = Request.Url.GetLeftPart(
UriPartial.Path);

  // Create an OAuth2 object for handling OAuth2 flow.

  OAuth2ProviderForApplications oAuth = new 
OAuth2ProviderForApplications(config);

  if (Request.Params["state"] == null) {

// This is the first time this page is being loaded.

// Set the state variable to any value that helps you recognize

// when this url will be called by the OAuth2 server.

oAuth.State = "callback";

 

// Create an authorization url and redirect the user to that page.

Response.Redirect(oAuth.GetAuthorizationUrl());

  } else if (Request.Params["state"] == "callback") {

 

oAuth.FetchAccessAndRefreshTokens(Request.Params["code"]);

 

Session["OAuthProvider"] = oAuth;

// Redirect the user to the main page.

Response.Redirect("Default.aspx");

  } else {

throw new Exception("Unknown state for OAuth callback.");

  }

}

 

And then ran the application I was redirect to my google account  below 
screen



 

 

step 1 :After Entering Credentials I was redirected to the below screen



 

 

Step 2 : After clicking Accept I was redirected to the default.aspx

 



 

 *After Entering the Customer ID I was able to get the Campaign Details*

 

*In this I came across that I need to login into my google adwords  Account 
, Click Accept*

*In which the Application redirects an authoriztion URL When I click accept 
I receive an authorization code*

*Which I use to Fetch Access And Refresh Tokens Which is then used by the 
google api (camapign Service )*

*to get the campaign Details*

 

*Is there any way in which I can avoid the steps 1 and 2 so that I don’t 
need to  Login and click Accept*

 

*Is there any way I can get the authorization code directly and use it to 
Fetch Access And Refresh Tokens*

 

*As I have a web application in which my clients use the api to get 
campaign details and statistics of campaign*

*I don’t want then to go through these steps*

 

*Please Suggest *

 

*Thanks and Regards*


 

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


Adwords API Auth2

2014-07-21 Thread Jason Stedman
Altaf,

This process is an important part of OAuth2. It allows the user to tell Google 
that it is Ok for your application to access their account. It should only need 
to be done once per user, except in rare cases.

Hope this helps!

Jason

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


I want to change the URL AdText with adwords api

2014-07-21 Thread ILYES Kammoun
Hello;
I want to change the url adText http to https with api adwords
is this possible ?
if yes, how or where can I find a script example?

Thank very much.


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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: How to get DMA region code for City

2014-07-21 Thread Danial Klimkin
Hello Varad,


Please see this guide for details regarding location targeting:

  https://developers.google.com/adwords/api/docs/guides/location-targeting

You can also find the full list here:

  https://developers.google.com/adwords/api/docs/appendix/cities-DMAregions


-Danial, AdWords API Team.


On Thursday, July 17, 2014 7:50:00 PM UTC+4, Varad Bhagwat wrote:
>
> Hi,
>
> How can I get DMA region code for a City or Is there any API service to 
> get DMA region code if I pass City name as input ?
>
> Thanks,
> Varad
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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: I want to change the URL AdText with adwords api

2014-07-21 Thread Danial Klimkin
Hello,


No, Ads are immutable and can not be updated. You need to remove an old Ad 
and create a new one instead.


-Danial, AdWords API Team.


On Monday, July 21, 2014 5:35:34 PM UTC+4, ILYES Kammoun wrote:
>
> Hello;
> I want to change the url adText http to https with api adwords
> is this possible ?
> if yes, how or where can I find a script example?
>
> Thank very much.
>
>
>

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


fetching cost

2014-07-21 Thread rajeshsaravana8
We are fetching some fields from adwords MCC account by java client library 
from API. They returns the cost and avg.cpc values are not a double 
values(The dot on the values is not there.only they returns numbers). but 
manual report from adwords has correct values. How can I fix this?

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


Keyword Research by Volume

2014-07-21 Thread Roman
Hello guys, I am new to the forums 

The past days I took a look at the google API. It is hard to understand for 
me at all. Then there came up my question. Is it possible to use the 
adwords API to research keywords by search volume like the keyword planner 
inside tools and download the report afterwards ? Or what programmicaly 
alternatives I have ?

Ty for helping

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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: fetching cost

2014-07-21 Thread Danial Klimkin
Hello,


Please see the Money section here:

  https://developers.google.com/adwords/api/docs/guides/reporting-concepts#money


-Danial, AdWords API Team.


On Monday, July 21, 2014 4:45:54 PM UTC+4, rajeshs...@gmail.com wrote:
>
> We are fetching some fields from adwords MCC account by java client 
> library from API. They returns the cost and avg.cpc values are not a double 
> values(The dot on the values is not there.only they returns numbers). but 
> manual report from adwords has correct values. How can I fix this?
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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: Reduced results for TargetingIdeaService when migrated from v201309 to v201402

2014-07-21 Thread Josh Radcliff (AdWords API Team)
Hi Shashank,

This looks like an intentional change made in v201402 to more accurately 
use the *LanguageSearchParameter*. I'm still waiting on further details, 
however. I'll post an update as soon as I have more information.

Cheers,
Josh, AdWords API Team

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

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


Re: Keyword Research by Volume

2014-07-21 Thread Danial Klimkin
Hello Roman,


Yes, please see this guide for more details:

  
https://developers.google.com/adwords/api/docs/guides/traffic-estimator-service


-Danial, AdWords API Team.


On Monday, July 21, 2014 2:27:50 PM UTC+4, Roman wrote:
>
> Hello guys, I am new to the forums 
>
> The past days I took a look at the google API. It is hard to understand 
> for me at all. Then there came up my question. Is it possible to use the 
> adwords API to research keywords by search volume like the keyword planner 
> inside tools and download the report afterwards ? Or what programmicaly 
> alternatives I have ?
>
> Ty for helping
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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: Adwords API Auth2

2014-07-21 Thread Altaf Mulla


Hi ,

 

I downloaded the google adwords dotnet library with examples

 

I ran  the Oauth Project (…….examples\AdWords\csharp\oauth)

 

THis project has two aspx pages

 

I just added some code in the below function as follows

 

   private void DoAuth2Configuration(AdWordsAppConfig config) {

 

config.Email = "te...@gmail.com";

config.Password = "xxx!";

config.UserAgent = "";

config.DeveloperToken = "x";

config.AuthorizationMethod = AdWordsAuthorizationMethod
.OAuth2;

config.ClientCustomerId = "123-456-789".ToString().Replace(
"-", "");

config.OAuth2ClientId = "
.apps.googleusercontent.com";

config.OAuth2ClientSecret = "_x";

  

config.OAuth2RedirectUri = Request.Url.GetLeftPart(
UriPartial.Path);

  // Create an OAuth2 object for handling OAuth2 flow.

  OAuth2ProviderForApplications oAuth = new 
OAuth2ProviderForApplications(config);

  if (Request.Params["state"] == null) {

// This is the first time this page is being loaded.

// Set the state variable to any value that helps you recognize

// when this url will be called by the OAuth2 server.

oAuth.State = "callback";

 

// Create an authorization url and redirect the user to that page.

Response.Redirect(oAuth.GetAuthorizationUrl());

  } else if (Request.Params["state"] == "callback") {

 

oAuth.FetchAccessAndRefreshTokens(Request.Params["code"]);

 

Session["OAuthProvider"] = oAuth;

// Redirect the user to the main page.

Response.Redirect("Default.aspx");

  } else {

throw new Exception("Unknown state for OAuth callback.");

  }

}

 

And then ran the application I was redirect to my google account  below 
screen



 

 

step 1 :After Entering Credentials I was redirected to the below screen



 

 

Step 2 : After clicking Accept I was redirected to the default.aspx

 



 

 *After Entering the Customer ID I was able to get the Campaign Details*

 

*In this I came across that I need to login into my google adwords  Account 
, Click Accept*

*In which the Application redirects an authoriztion URL When I click accept 
I receive an authorization code*

*Which I use to Fetch Access And Refresh Tokens Which is then used by the 
google api (camapign Service )*

*to get the campaign Details*

 

*Is there any way in which I can avoid the steps 1 and 2 so that I don’t 
need to  Login and click Accept*

 

*Is there any way I can get the authorization code directly and use it to 
Fetch Access And Refresh Tokens*

 

*As I have a web application in which my clients use the api to get 
campaign details and statistics of campaign*

*I don’t want then to go through these steps*

 

*Please Suggest *

 

*Thanks and Regards*



On Monday, July 21, 2014 4:35:12 PM UTC+5:30, Altaf Mulla wrote:
>
> *Auth2 Authentication*
>
> *Is there any way in which I can avoid the process the  Login and click 
> Accept *
>
> *Can i not use  the google adwords  api by setting my credentails 
> ,developer token  ,etc* 
>
> *Is there any way I can get the authorization code directly and use it to 
> Fetch Access And Refresh Tokens*
>
>  *As I have a web application in which my clients use the api to get 
> campaign details and statistics of campaign*
>
> *I don’t want then to go through Login precodure and click of accept 
> button for Auth2 authentication* 
>
> *Please Suggest *
>
>  
>
> *Thanks and Regards*
>
> *Altaf*
>
>  
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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: ReportServiceLogger logs extra stuff with v201406

2014-07-21 Thread Josh Radcliff (AdWords API Team)
Hi Ben,

The change to log reporting requests was requested in issue #12 
 and released in 
1.28.0 . 
With that change, the library will log successful reporting requests 
(header and payload) to INFO and failed reporting requests (header and 
payload) to WARN. Prior to that change, the library would not log reporting 
requests at all.

You can control this report-specific logging by setting the log level for 
*com.google.api.ads.adwords.lib.utils.report_download*. For example, if you 
are using JDK logging then you could set the following if you only wanted 
failed requests logged.

com.google.api.ads.adwords.lib.utils.report_download=WARNING

As to why this is being logged to stderr, which SLF4J binding do you have 
on your classpath ? We recently 
upgraded to SLF4J 1.7.7, which included some changes to how SLF4J handles 
missing bindings , although the 
fact that you're getting messages logged to stderr suggests that you do 
have a binding present. Are you seeing other log messages written to stderr 
as well? Could you share the configuration file you are using for your 
SLF4J binding?

Thanks,
Josh Radcliff, AdWords API Team

On Friday, July 18, 2014 4:47:47 AM UTC-4, Ben Marengo wrote:
>
> ps. this is also being logged to stderror - which i find quite odd 
> considering it is just info
>
>
>
> On Friday, 18 July 2014 10:42:07 UTC+2, Ben Marengo wrote:
>>
>> hi all
>>
>> i have just upgraded my account performance report download script to the 
>> new api (details of version numbers used below) and it has suddenly started 
>> logging a lot more stuff than before (log below).
>>
>> does anyone know how to get control of / stop what is being logged?
>>
>> log messages are being triggered by the line of code:
>> ReportDownloadResponse response = new ReportDownloader(session).
>> downloadReport(reportDefinition);
>>
>> thanks
>> ben
>>
>> 
>>
>> com.google.api-ads
>> ads-lib = 1.30.0
>> adwords-axis = 1.30.0
>>
>> org.slf4j
>> slf4j-api = 1.7.7
>> slf4j-jdk14 = 1.7.7
>>
>> Jul 18, 2014 3:42:11 AM com.google.api.ads.adwords.lib.utils.logging.
>> ReportServiceLogger log
>> INFO: Request made: POST https://
>> adwords.google.com//api/adwords/reportdownload/v201406
>>
>>
>> Jul 18, 2014 3:42:11 AM com.google.api.ads.adwords.lib.utils.logging.
>> ReportServiceLogger log
>> INFO: accept-encoding: [gzip]
>> authorization: REDACTED
>> user-agent: [fetch-report (AwApi-Java, Common-Java/1.30.0, Java/1.6.0_31, 
>> maven)]
>> developertoken: REDACTED
>> clientcustomerid: 
>>
>>
>> Parameters:
>> __rdxml: > standalone="yes"?>> xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201406";>> selector>Date<
>> /ns2:fields>AccountDescriptiveName
>> ExternalCustomerIdAccountCurrencyCode> fields>DeviceAverageCpc> >AverageCpmAveragePosition> fields>ImpressionsClicks> >CostCtr
>> ConversionsManyPerClick20140101> :min>20141231> reportName>Account performance report<
>> /ns2:reportName>ACCOUNT_PERFORMANCE_REPORT> reportType>CUSTOM_DATE<
>> /ns2:dateRangeType>CSV> includeZeroImpressions>false>  2:includeZeroImpressions>
>>
>>
>> Jul 18, 2014 3:42:11 AM com.google.api.ads.adwords.lib.utils.logging.
>> ReportServiceLogger log
>> INFO: Response received with status code 200 and message: OK
>>
>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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: ReportServiceLogger logs extra stuff with v201406

2014-07-21 Thread Josh Radcliff (AdWords API Team)
Hi Ben,

Sorry, I didn't notice you had specified the binding in your original post. 
I see you're using JDK logging. Could you address the last two questions in 
my post?

Are you seeing other log messages written to stderr as well?
Could you share the configuration file you are using for your SLF4J binding?

Thanks,
Josh, AdWords API Team

On Monday, July 21, 2014 10:39:11 AM UTC-4, Josh Radcliff (AdWords API 
Team) wrote:
>
> Hi Ben,
>
> The change to log reporting requests was requested in issue #12 
>  and released 
> in 1.28.0 
> . 
> With that change, the library will log successful reporting requests 
> (header and payload) to INFO and failed reporting requests (header and 
> payload) to WARN. Prior to that change, the library would not log reporting 
> requests at all.
>
> You can control this report-specific logging by setting the log level for 
> *com.google.api.ads.adwords.lib.utils.report_download*. For example, if 
> you are using JDK logging then you could set the following if you only 
> wanted failed requests logged.
>
> com.google.api.ads.adwords.lib.utils.report_download=WARNING
>
> As to why this is being logged to stderr, which SLF4J binding do you have 
> on your classpath ? 
> We recently upgraded to SLF4J 1.7.7, which included some changes to how 
> SLF4J handles missing bindings 
> , although the fact that 
> you're getting messages logged to stderr suggests that you do have a 
> binding present. Are you seeing other log messages written to stderr as 
> well? Could you share the configuration file you are using for your SLF4J 
> binding?
>
> Thanks,
> Josh Radcliff, AdWords API Team
>
> On Friday, July 18, 2014 4:47:47 AM UTC-4, Ben Marengo wrote:
>>
>> ps. this is also being logged to stderror - which i find quite odd 
>> considering it is just info
>>
>>
>>
>> On Friday, 18 July 2014 10:42:07 UTC+2, Ben Marengo wrote:
>>>
>>> hi all
>>>
>>> i have just upgraded my account performance report download script to 
>>> the new api (details of version numbers used below) and it has suddenly 
>>> started logging a lot more stuff than before (log below).
>>>
>>> does anyone know how to get control of / stop what is being logged?
>>>
>>> log messages are being triggered by the line of code:
>>> ReportDownloadResponse response = new ReportDownloader(session).
>>> downloadReport(reportDefinition);
>>>
>>> thanks
>>> ben
>>>
>>> 
>>>
>>> com.google.api-ads
>>> ads-lib = 1.30.0
>>> adwords-axis = 1.30.0
>>>
>>> org.slf4j
>>> slf4j-api = 1.7.7
>>> slf4j-jdk14 = 1.7.7
>>>
>>> Jul 18, 2014 3:42:11 AM com.google.api.ads.adwords.lib.utils.logging.
>>> ReportServiceLogger log
>>> INFO: Request made: POST https://
>>> adwords.google.com//api/adwords/reportdownload/v201406
>>>
>>>
>>> Jul 18, 2014 3:42:11 AM com.google.api.ads.adwords.lib.utils.logging.
>>> ReportServiceLogger log
>>> INFO: accept-encoding: [gzip]
>>> authorization: REDACTED
>>> user-agent: [fetch-report (AwApi-Java, Common-Java/1.30.0, Java/1.6.0_31
>>> , maven)]
>>> developertoken: REDACTED
>>> clientcustomerid: 
>>>
>>>
>>> Parameters:
>>> __rdxml: >> standalone="yes"?>>> xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201406";>>> selector>Date<
>>> /ns2:fields>AccountDescriptiveName
>>> ExternalCustomerIdAccountCurrencyCode>> fields>DeviceAverageCpc>> >AverageCpmAveragePosition>> fields>ImpressionsClicks>> fields>CostCtr>> fields>ConversionsManyPerClick<
>>> /ns2:fields>2014010120141231<
>>> /ns2:max>Account 
>>> performance report<
>>> /ns2:reportName>ACCOUNT_PERFORMANCE_REPORT>> reportType>CUSTOM_DATE<
>>> /ns2:dateRangeType>CSV>> includeZeroImpressions>false>>  2:includeZeroImpressions>
>>>
>>>
>>> Jul 18, 2014 3:42:11 AM com.google.api.ads.adwords.lib.utils.logging.
>>> ReportServiceLogger log
>>> INFO: Response received with status code 200 and message: OK
>>>
>>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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: Setting the CPC bid on product in shopping campaign.

2014-07-21 Thread Josh Radcliff (AdWords API Team)
Hi Greg,

Thanks for all of the feedback - the details you've provided are extremely 
helpful in explaining why the mutate limit is problematic for you. I've 
passed this information on to the Shopping team and will let you know as 
soon as I have any news.

Thanks,
Josh, AdWords API Team

On Friday, July 18, 2014 4:12:01 PM UTC-4, GregT wrote:
>
> Hi, Josh.
>
> Thanks much for looking into it and for the good news -- that will be 
> extremely helpful for us, and will solve a large part of the issue on an 
> ongoing basis.  I do, unfortunately, think that the limitation on ADD 
> operations is still going to be an issue.  On a shorter term basis, we have 
> some clients with over 1 million products in their PLA campaigns in a 
> single AdWords account.  Converting clients like them over to shopping 
> campaigns right now would take 500,000 calls to the 
> AdGroupCriterionService.  I'm sure you have a much better idea of the rate 
> limiting effect on this, but I wouldn't be surprised if it took weeks to 
> make those 500,000 calls [each with very, very little data in them] for 
> clients like those.  On an ongoing basis, we don't really need to change 
> the partitions after creation (except to change bids), but we would have 
> new ad groups (& their partitions) created as new products are added to our 
> clients' merchant center accounts, which happens pretty frequently.  Most 
> of the time, there won't be a ton of new products at any given time, but 
> there are occasions where we'll need to add multiple thousands of new 
> products for a client, and this will probably be an issue then as well.
>
> Given that an entire tree does not have to be created in a single ADD call 
> like I had thought (but just needs to be valid), that seems to me to make 
> it even more reasonable to change the limit from an ad group level one to a 
> ProductPartition one?  I.e. instead of adding product partitions in 2 ad 
> groups being the limit, it instead being something like 2,000 or 5,000 
> product partitions in a call, regardless of how many ad groups they happen 
> to be in.  Just a suggestion. :)  Even a relatively low limit by AdWords 
> API standards, like 500, would probably be enough to be able to work around 
> this.
>
> Thanks again, we appreciate it!
> Greg
>
>
> On Friday, July 18, 2014 1:58:59 PM UTC-5, Josh Radcliff (AdWords API 
> Team) wrote:
>>
>> Hi,
>>
>> David - thanks for clarifying. You are absolutely correct: your mutates 
>> simply need to keep the tree in a valid state, but you can send a mutate 
>> that only touches a subtree.
>>
>> I have some good news - the limit of 2 ad groups per mutate request does 
>> *not* apply to *SET* operations anymore. This means that you can mutate 
>> more than 2 ad groups in a single call as long as you are updating 
>> *existing* BiddableAdGroupCriterion or NegativeAdGroupCriterion objects, 
>> e.g., changing their bids. Would that help with your one ad group per 
>> product approach, or will you have large, ongoing changes to the population 
>> of products as well?
>>
>> Thanks,
>> Josh, AdWords API Team
>>
>> On Thursday, July 17, 2014 4:56:39 AM UTC-4, david wrote:
>>>
>>>
>>>
>>> On Wednesday, 16 July 2014 15:56:38 UTC+1, GregT wrote:

  (because the API requires you to send the entire product partition 
 tree for an ad group in one call, and an ad group's partition tree could 
 be 
 up to 20,000 criterion), 

>>>
>>> Slightly OT but just in case it helps, the above isn't quite the case. 
>>> You just need to make sure you have a valid tree after each call.
>>> So our first call creates a SUBDIVISION + single UNIT child for the 
>>> "other" case. We take a note of the parentId.
>>> Then we add UNITs in call batches of 2000 to that parent. You can also 
>>> update UNIT (eg. change the maxCpc) with a mutate applying to a single 
>>> child.
>>> See Matt Scales post here:
>>>
>>> https://groups.google.com/forum/#!msg/adwords-api/BbbsW1MSobw/7GnXo5wP2F8J
>>>
>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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: Adwords Api Error

2014-07-21 Thread Josh Radcliff (AdWords API Team)
Hi,

Are you using maven or setting up your classpath manually? If using maven, 
then org.apache.commons.lang.ArrayUtils (from v2.5) should be on your 
classpath and should have the contains(char[], char) method 
.

If you are setting up your classpath manually, please check which version 
of Apache Commons Lang you are using.

Thanks,
Josh, AdWords API Team

On Thursday, July 17, 2014 10:53:56 AM UTC-4, sathik jack wrote:
>
>
> java.lang.NoSuchMethodError: 
> org.apache.commons.lang.ArrayUtils.contains([CC)Z
> at 
> org.apache.commons.configuration.PropertiesConfiguration$PropertiesReader.doParseProperty(PropertiesConfiguration.java:889)
> at 
> org.apache.commons.configuration.PropertiesConfiguration$PropertiesReader.parseProperty(PropertiesConfiguration.java:795)
> at 
> org.apache.commons.configuration.PropertiesConfiguration$PropertiesReader.nextProperty(PropertiesConfiguration.java:728)
> at 
> org.apache.commons.configuration.PropertiesConfigurationLayout.load(PropertiesConfigurationLayout.java:484)
> at 
> org.apache.commons.configuration.PropertiesConfiguration.load(PropertiesConfiguration.java:473)
> at 
> org.apache.commons.configuration.AbstractFileConfiguration.load(AbstractFileConfiguration.java:383)
> at 
> org.apache.commons.configuration.AbstractFileConfiguration.load(AbstractFileConfiguration.java:349)
> at 
> org.apache.commons.configuration.AbstractFileConfiguration.load(AbstractFileConfiguration.java:312)
> at 
> org.apache.commons.configuration.AbstractFileConfiguration.load(AbstractFileConfiguration.java:225)
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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: Review Extensions Feed not showing in CampaignFeedService.Get call

2014-07-21 Thread Josh Radcliff (AdWords API Team)
Hi Giles,

If the user created a Review extensions feed then it's probably been saved 
as a CustomerFeed 
.
 
*CustomerFeed*s are available for App, Location, and Review extensions. 
Could you try the CustomerFeedService 

 to 
see if you find the corresponding object via that service? If that does not 
help, please pass along the *feedId* in question so I can investigate 
further.

Thanks,
Josh, AdWords API Team

On Wednesday, July 16, 2014 8:25:28 AM UTC-4, Giles Bodger wrote:
>
> I apologise if this question is posted twice .
>
> Hi all,
>
> So some of my team have added Review Extensions within an account on the 
> web dashboard. They have no knowledge of what a Feed is, they simply added 
> a new Review Extension - and this Review shows up on our ads 
>
> It would appear that a new Feed was created - all good - and i can see 
> that new feed on the Account when, through the API, I query using the 
> FeedMappingService for feeds with the placeHolderType of "8".
>
> So on an account i can see that as well as having a Sitelink Feed we also 
> have a Review feed
>
> Now - when i get all the FeedItems for the particular account i am able to 
> see the one Review extension that was created using the web dashboard and 
> indeed that does have a related feedId of the feed that i can find related 
> to the account.
>
> All good - EXCEPT that when i loop and use the CampaignFeedService to find 
> all the ACTIVE feeds for all campaigns in that account, i never find this 
> Review Feed.
>
> Is there a reason for this ?
>
> cheers in advance
>
> Giles Bodger
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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: ReportServiceLogger logs extra stuff with v201406

2014-07-21 Thread Ben Marengo
Hi Josh

Thanks for your reply. i've done a bit more research into what slf4j is and 
how it works since my last post. let me clarify the problem :)

The problem is that those info messages i posted above are logging to 
stderr instead of stdout

This is the command i am using to call the jar i compiled
java -Djava.util.logging.config.file=./src/main/resources/logging.properties 
-jar ./target/adwordsConnectorV2-account.jar

I am sure that the messages are of INFO level, because when I set the 
property java.util.logging.ConsoleHandler.level to ALL, the messages show, 
but when it is set to SEVERE, they don't show.

Are you seeing other log messages written to stderr as well?
no - but i am not logging anything else, or even using those libraries. i 
have literally taken the DownloadCriteriaReport.java example 

 from 
git and adapted it for my customer numbers and fields

Could you share the configuration file you are using for your SLF4J binding?
Here is what is in logging.properties:
# from 
http://stackoverflow.com/questions/5416769/how-to-configure-the-jdk14-loggings-pattern
handlers = java.util.logging.ConsoleHandler
java.util.logging.ConsoleHandler.level = ALL
java.util.logging.ConsoleHandler.formatter = java.util.logging.
SimpleFormatter
java.util.logging.SimpleFormatter.format = [%1$tc] %4$s: %2$s - %5$s %6$s%n

thanks
ben


On Monday, July 21, 2014 4:41:45 PM UTC+2, Josh Radcliff (AdWords API Team) 
wrote:
>
> Hi Ben,
>
> Sorry, I didn't notice you had specified the binding in your original 
> post. I see you're using JDK logging. Could you address the last two 
> questions in my post?
>
> Are you seeing other log messages written to stderr as well?
> Could you share the configuration file you are using for your SLF4J 
> binding?
>
> Thanks,
> Josh, AdWords API Team
>
> On Monday, July 21, 2014 10:39:11 AM UTC-4, Josh Radcliff (AdWords API 
> Team) wrote:
>>
>> Hi Ben,
>>
>> The change to log reporting requests was requested in issue #12 
>>  and released 
>> in 1.28.0 
>> . 
>> With that change, the library will log successful reporting requests 
>> (header and payload) to INFO and failed reporting requests (header and 
>> payload) to WARN. Prior to that change, the library would not log reporting 
>> requests at all.
>>
>> You can control this report-specific logging by setting the log level for 
>> *com.google.api.ads.adwords.lib.utils.report_download*. For example, if 
>> you are using JDK logging then you could set the following if you only 
>> wanted failed requests logged.
>>
>> com.google.api.ads.adwords.lib.utils.report_download=WARNING
>>
>> As to why this is being logged to stderr, which SLF4J binding do you 
>> have on your classpath ? 
>> We recently upgraded to SLF4J 1.7.7, which included some changes to how 
>> SLF4J handles missing bindings 
>> , although the fact that 
>> you're getting messages logged to stderr suggests that you do have a 
>> binding present. Are you seeing other log messages written to stderr as 
>> well? Could you share the configuration file you are using for your SLF4J 
>> binding?
>>
>> Thanks,
>> Josh Radcliff, AdWords API Team
>>
>> On Friday, July 18, 2014 4:47:47 AM UTC-4, Ben Marengo wrote:
>>>
>>> ps. this is also being logged to stderror - which i find quite odd 
>>> considering it is just info
>>>
>>>
>>>
>>> On Friday, 18 July 2014 10:42:07 UTC+2, Ben Marengo wrote:

 hi all

 i have just upgraded my account performance report download script to 
 the new api (details of version numbers used below) and it has suddenly 
 started logging a lot more stuff than before (log below).

 does anyone know how to get control of / stop what is being logged?

 log messages are being triggered by the line of code:
 ReportDownloadResponse response = new ReportDownloader(session).
 downloadReport(reportDefinition);

 thanks
 ben

 

 com.google.api-ads
 ads-lib = 1.30.0
 adwords-axis = 1.30.0

 org.slf4j
 slf4j-api = 1.7.7
 slf4j-jdk14 = 1.7.7

 Jul 18, 2014 3:42:11 AM com.google.api.ads.adwords.lib.utils.logging.
 ReportServiceLogger log
 INFO: Request made: POST https://
 adwords.google.com//api/adwords/reportdownload/v201406


 Jul 18, 2014 3:42:11 AM com.google.api.ads.adwords.lib.utils.logging.
 ReportServiceLogger log
 INFO: accept-encoding: [gzip]
 authorization: REDACTED
 user-agent: [fetch-report (AwApi-Java, Common-Java/1.30.0, Java/1.6.
 0_31, maven)]
 developertoken: REDACTED
 clientcustomerid: 


 Parameters:
>>

Re: ConversionTypename not accessible from the .net api

2014-07-21 Thread Josh Radcliff (AdWords API Team)
Hi,

Some field combinations are incompatible. You should be seeing an error 
message like the following that describes the invalid combinations:



  
ReportDefinitionError.INVALID_FIELD_NAME_FOR_REPORT
Cannot select a combination of ConversionTypeName and 
ActiveViewCpm,ActiveViewCtr,ActiveViewImpressions,AssistClicks,AssistClicksOverLastClicks,AssistImpressions,AssistImpressionsOverLastClicks,AverageCpc,AverageCpm,AverageFrequency,AveragePageviews,AveragePosition,AverageTimeOnSite,AvgCallDurationSecs,AvgCostForOfflineInteraction,AvgCpc,BounceRate,Bounces,BudgetLostImpressionShare,CallConversion,CallDurationSecs,ClickAssistedConversionValue,ClickAssistedConversionValueLong,ClickAssistedConversionValueNonMoney,
ClickAssistedConversions
,ClickAssistedConversionsOverLastClickConversions,ClickReach,ClickSignificance,ClickStdDeviation,ClickZValue,Clicks,ContentBudgetLostImpressionShare,ContentImpressionShare,ContentLocalBidLostImpressions,ContentLocalShownImpressions,ContentLocalThrottledImpressions,ContentRankLostImpressionShare,ConversionRateManyPerClickSignificance,ConversionRateSignificance,Cost,CostPerConversionManyPerClickSignificance,CostPerConversionManyPerClickStdDeviation,CostPerConversionManyPerClickZValue,CostPerConversionSignificance,CostPerConversionStdDeviation,CostPerConversionZValue,CostPerViewThroughConversionSignificance,CostPerViewThroughConversionStdDeviation,CostPerViewThroughConversionZValue,CostSignificance,CostStdDeviation,CostUsd,CostZValue,CpcSignificance,CpcStdDeviation,CpcZValue,CpmSignificance,CpmStdDeviation,CpmZValue,Ctr,CtrSignificance,CtrStdDeviation,CtrZValue,CvrManyPerClickStdDeviation,CvrManyPerClickZValue,CvrStdDeviation,CvrZValue,EligibleFollowOnClicks,ExactMatchImpressionShare,ExternalAdChanges,ExternalBidChanges,ExternalBudgetChanges,ExternalChanges,ExternalKeywordChanges,ExternalNetworkChanges,ExternalStatusChanges,ExternalTargetingChanges,FollowOnAddToPlaylist,FollowOnComments,FollowOnLikes,FollowOnShares,FollowOnSubscribeRate,FollowOnSubscribes,FollowOnViewRate,FollowOnViews,ImpressionAssistedConversionValue,ImpressionAssistedConversionValueLong,ImpressionAssistedConversionValueNonMoney,ImpressionAssistedConversions,ImpressionAssistedConversionsOverLastClickConversions,ImpressionReach,ImpressionShare,ImpressionSignificance,ImpressionStdDeviation,ImpressionZValue,Impressions,InternalAdChanges,InternalBidChanges,InternalBudgetChanges,InternalChanges,InternalKeywordChanges,InternalNetworkChanges,InternalStatusChanges,InternalTargetingChanges,InvalidClickRate,InvalidClicks,LastClickConversions,LastClicks,NewVisitors,NumCalls,NumMissedCalls,NumOfflineImpressions,NumOfflineInteractions,NumReceivedCalls,OfflineInteractionCost,OfflineInteractionRate,Pageviews,PercentNewVisitors,PositionSignificance,PositionStdDeviation,PositionSum,PositionZValue,QualityLostImpressionShare,ReachBucket,RelativeCtr,SearchBudgetLostImpressionShare,SearchExactMatchImpressionShare,SearchImpressionShare,SearchLocalBidLostImpressions,SearchLocalShownImpressions,SearchLocalThrottledImpressions,SearchRankLostImpressionShare,SocialCommentsLowerBound,SocialCommentsUpperBound,SocialEarnedImpressionsLowerBound,SocialEarnedImpressionsUpperBound,SocialEarnedInteractionsLowerBound,SocialEarnedInteractionsUpperBound,SocialFollowsLowerBound,SocialFollowsUpperBound,SocialPlusOnesLowerBound,SocialPlusOnesUpperBound,SocialSharesLowerBound,SocialSharesUpperBound,ThumbnailImpressions,TotalCost,UserDataCost,UserDataCostUsd,VideoAppStoreClicks,VideoCtaClicks,VideoImpressions,VideoQuartile100,VideoQuartile100Rate,VideoQuartile25,VideoQuartile25Rate,VideoQuartile50,VideoQuartile50Rate,VideoQuartile75,VideoQuartile75Rate,VideoStarts,VideoWebsiteClicks,VideoWebsiteClicksRate,ViewThroughCvrSignificance,ViewThroughCvrStdDeviation,ViewThroughCvrZValue,VisitDuration,Visits
ConversionTypeName
  


In addition, our reporting documentation 
 
provides 
further information on the *ConversionTypeName* field:

*Not compatible with non-conversion stats (AverageCpc, Clicks, etc). 
> Prevents zero-conversion rows from being returned.*


If you adjust your field selections accordingly then this error should go 
away.

Cheers,
Josh, AdWords API Team

On Thursday, July 17, 2014 6:39:24 AM UTC-4, nuwan.ge...@statravel.co.uk 
wrote:
>
> Hi,
>
> I am trying to pull the conversion type name and click assisted 
> conversions using the .net api v201402.
>
> My code is as following. It fails on pulling the conversion type name and 
> click assisted conversions but works for campaignname and 
> clickassistedconvesins (Commented out)
>
> definition.reportName = "Last 7 days CRITERIA_PERFORMANCE_REPORT";
> definition.reportType = 
> ReportDefinitionReportType.CAMPAIGN_PERFORMANCE_REPORT;
> definition.downloadFormat = DownloadFormat.XML;
> definition.dateRangeType = 
> ReportDefinitionDateRangeType.CUSTOM_DATE;
>
>  
>

Re: ReportServiceLogger logs extra stuff with v201406

2014-07-21 Thread Josh Radcliff (AdWords API Team)
Hi Ben,

You are seeing messages on stderr because that's the destination used by 
ConsoleHandler - see the ConsoleHandler javadoc 

.

If you want to change that behavior, the following post on stackoverflow 
may be helpful:

http://stackoverflow.com/questions/194165/how-do-i-change-java-logging-console-output-from-std-err-to-std-out

Cheers,
Josh, AdWords API Team

On Monday, July 21, 2014 11:05:51 AM UTC-4, Ben Marengo wrote:
>
> Hi Josh
>
> Thanks for your reply. i've done a bit more research into what slf4j is 
> and how it works since my last post. let me clarify the problem :)
>
> The problem is that those info messages i posted above are logging to 
> stderr instead of stdout
>
> This is the command i am using to call the jar i compiled
> java -Djava.util.logging.config.file=./src/main/resources/logging.properties 
> -jar ./target/adwordsConnectorV2-account.jar
>
> I am sure that the messages are of INFO level, because when I set the 
> property java.util.logging.ConsoleHandler.level to ALL, the messages show, 
> but when it is set to SEVERE, they don't show.
>
> Are you seeing other log messages written to stderr as well?
> no - but i am not logging anything else, or even using those libraries. i 
> have literally taken the DownloadCriteriaReport.java example 
> 
>  from 
> git and adapted it for my customer numbers and fields
>
> Could you share the configuration file you are using for your SLF4J 
> binding?
> Here is what is in logging.properties:
> # from 
> http://stackoverflow.com/questions/5416769/how-to-configure-the-jdk14-loggings-pattern
> handlers = java.util.logging.ConsoleHandler
> java.util.logging.ConsoleHandler.level = ALL
> java.util.logging.ConsoleHandler.formatter = java.util.logging.
> SimpleFormatter
> java.util.logging.SimpleFormatter.format = [%1$tc] %4$s: %2$s - %5$s %6$s%
> n
>
> thanks
> ben
>
>
> On Monday, July 21, 2014 4:41:45 PM UTC+2, Josh Radcliff (AdWords API 
> Team) wrote:
>>
>> Hi Ben,
>>
>> Sorry, I didn't notice you had specified the binding in your original 
>> post. I see you're using JDK logging. Could you address the last two 
>> questions in my post?
>>
>> Are you seeing other log messages written to stderr as well?
>> Could you share the configuration file you are using for your SLF4J 
>> binding?
>>
>> Thanks,
>> Josh, AdWords API Team
>>
>> On Monday, July 21, 2014 10:39:11 AM UTC-4, Josh Radcliff (AdWords API 
>> Team) wrote:
>>>
>>> Hi Ben,
>>>
>>> The change to log reporting requests was requested in issue #12 
>>>  and 
>>> released in 1.28.0 
>>> . 
>>> With that change, the library will log successful reporting requests 
>>> (header and payload) to INFO and failed reporting requests (header and 
>>> payload) to WARN. Prior to that change, the library would not log reporting 
>>> requests at all.
>>>
>>> You can control this report-specific logging by setting the log level 
>>> for *com.google.api.ads.adwords.lib.utils.report_download*. For 
>>> example, if you are using JDK logging then you could set the following if 
>>> you only wanted failed requests logged.
>>>
>>> com.google.api.ads.adwords.lib.utils.report_download=WARNING
>>>
>>> As to why this is being logged to stderr, which SLF4J binding do you 
>>> have on your classpath ? 
>>> We recently upgraded to SLF4J 1.7.7, which included some changes to how 
>>> SLF4J handles missing bindings 
>>> , although the fact that 
>>> you're getting messages logged to stderr suggests that you do have a 
>>> binding present. Are you seeing other log messages written to stderr as 
>>> well? Could you share the configuration file you are using for your SLF4J 
>>> binding?
>>>
>>> Thanks,
>>> Josh Radcliff, AdWords API Team
>>>
>>> On Friday, July 18, 2014 4:47:47 AM UTC-4, Ben Marengo wrote:

 ps. this is also being logged to stderror - which i find quite odd 
 considering it is just info



 On Friday, 18 July 2014 10:42:07 UTC+2, Ben Marengo wrote:
>
> hi all
>
> i have just upgraded my account performance report download script to 
> the new api (details of version numbers used below) and it has suddenly 
> started logging a lot more stuff than before (log below).
>
> does anyone know how to get control of / stop what is being logged?
>
> log messages are being triggered by the line of code:
> ReportDownloadResponse response = new ReportDownloader(session).
> downloadReport(reportDefinition);
>
> thanks
> ben
>
> 
>
> com.google.api-ads
> ads-lib = 1.

Re: Unable to get Adgroup "Mobile Bid Adjustment" using Adwords API

2014-07-21 Thread Nesha
Danial,

with your help i have resolved this issue.

When i looked better in response XML i found that each adgroup have 3 
entries, and i was looking just for HighEndMobile (ID = 3001)


  35768944
  977693464
  http://www.w3.org/2001/XMLSchema-instance"; 
xsi:type="Platform">
3
PLATFORM
Platform
  


  35768944
  977693464
  http://www.w3.org/2001/XMLSchema-instance"; 
xsi:type="Platform">
30001
PLATFORM
Platform
  
  0.0


  35768944
  977693464
  http://www.w3.org/2001/XMLSchema-instance"; 
xsi:type="Platform">
30002
PLATFORM
Platform
   



So i have returned 0.0 and in AdWords Editor that is -100%
I have used this formula to translate API values to those from AdWords 
Editor

$value = - (1 - round($modifier->bidModifier, 2)) * 100;

// possible values for bid modifier (adwords editor = API value)
-10% = 0.9
-90% = 0.1
-100% = 0
100% = 2
200% = 3
300% = 4 

Basically i think that this issue happened because in official PHP AdWords 
API located here:
https://github.com/googleads/googleads-php-lib/blob/master/examples/AdWords/v201406/AdvancedOperations/GetAdGroupBidModifiers.php

There is bad condition 

$value = 'none';
if (!empty($modifier->bidModifier)) {
   $value = $modifier->bidModifier;
}
There shoud be used is_numeric instead of !empty, since 0.0 looks like empty, 
but it's actually -100%, and that should be treated as well. Small issue but it 
took me in wrong direction.

Hopefully now everything should be ok.

Thanks again for your help. 


On Friday, July 18, 2014 11:05:40 AM UTC+2, Nesha wrote:
>
> We are using 3 different tools to get Adwords data: 
> - AdWords Editor
> - AdWords Web Site
> - AdWords API (PHP version)
>
> And there is an issue to get "Mobile Bid Adjustment" using API or Web Site.
>
> In AdWords Editor here is sample adgroup with value -100%
>
>
> 
>
>
> Now with Adwords API I am trying to fetch that info using 
> AdGroupBidModifierService with latest available API (v201406)
> https://developers.google.com/adwords/api/docs/guides/adgroup-bid-modifiers
>
> Here is API response for adgroup with "Mobile Bid Adjustment" = -100%
>
> AdGroupBidModifier Object
> (
> [campaignId] => 35768944
> [adGroupId] => 977693464
> [criterion] => Platform Object
> (
> [platformName] => 
> [id] => 3
> [type] => PLATFORM
> [CriterionType] => Platform
> [_parameterMap:Criterion:private] => Array
> (
> [Criterion.Type] => CriterionType
> )
>
> )
>
> [bidModifier] => 
> [bidModifierSource] => 
> )
>
> As you can see, there is no -100% value for bidModifier that I have in 
> AdWords Editor.
> How i can get this adgroup "Mobile Bid Adjustment" value using API ?
> I am not sure is this available via API at the moment.
>
> Thanks,
> Nenad Milosavljevic
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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: ReportDownloadError.INVALID_PARAMETER

2014-07-21 Thread Josh Radcliff (AdWords API Team)
Hi,

As the dump of the Mech object shows, you do not have an *Authorization* header 
as specified in the OAuth2 guide 

.

  '_headers' => 
> bless( {
>   
>'user-agent' => 'WWW-Mechanize/1.72',
>   
>'content-type' => 'application/x-www-form-urlencoded',
>   
>'accept-encoding' => 'gzip',
>   
>'content-length' => 129
>   
>  }, 'HTTP::Headers' ),
>
I'm not an expert on Mech, but it seems that your calls aren't setting the 
headers as expected.
 
Regarding the error from Perl:

using that i got error as follows
> The library couldn't find any authorization mechanism set up to properly 
> sign the requests against the API. Please read the following guide on how 
> to setup OAuth2 
> https://github.com/googleads/googleads-perl-lib/wiki/Using-OAuth-2.0 at 
> ../../../lib/Google/Ads/Common/HTTPTransport.pm line 47.
>

1. How are you constructing your *Client* object? Are you using the same 
approach we use in the download_criteria_report.pl example 

?
2. Have you tried running the download_criteria_report.pl 

 example?
3. Is your adwords.properties file in your home directory?

Thanks,
Josh, AdWords API Team
 

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

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


Re: ReportDownloadError.INVALID_PARAMETER

2014-07-21 Thread Dhiraj Shinde
i am setting client object like follows
my $client = Google::Ads::AdWords::Client->new(
{
version => 'v201406',
properties_file =>
"/home/dhiraj/perl/GOOGLE-ADWORDS-PERL-CLIENT-2.16.0/adwords.properties",
}
);

adword.properties file contain all info as i told you in my prev post and 
when i tried running the script and for 

download_criteria_report.pl it is showing error as follows

{
  "error" : "invalid_client",
  "error_description" : "The OAuth client was not found."
} at ../../../lib/Google/Ads/Common/OAuth2ApplicationsHandler.pm line 127.
Can't call method "isa" on an undefined value at 
../../../lib/Google/Ads/Common/ReportUtils.pm line 74.


On Tuesday, July 15, 2014 9:13:42 PM UTC+5:30, Dhiraj Shinde wrote:
>
> Hi All,
>  I am working on project which need some Google ad-word API usage, 
> actually i need to download campaign_performance_report for my client for 
> particular date, using the following script
>  
>   my $mech = WWW::Mechanize->new();
>   $mech->add_header({
> clientCustomerId => "xxx-xxx-",#valid client customer id
> 'Authorization: Bearer' =>'xx',#my 
> access token with scope manage adword campaign
> developerToken => 'xxx'});
> $response = $mech->post("
> https://adwords.google.com/api/adwords/reportdownload/v201406";,
> { __rdquery => 
> 'SELECT+CampaignName+CampaignId+Cost+FROM+CAMPAIGN_PERFORMANCE_REPORT+DURING+20140619,20140619',__fmt
>  
> => 'CSV'
> }
> );
>
> when i see the response of above request i got 
>  standalone="yes"?>ReportDownloadError.INVALID_PARAMETERMissing
>  
> client 
> information
>
> i am following approach mentioned in the link
> https://developers.google.com/adwords/api/docs/guides/awql
>
> i don't understand what exactly is missing ?
> need help from expert 
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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: Adwords API Auth2

2014-07-21 Thread Ray Tsang (AdWords API Team)
Atlaf,

For the initial refresh token request, you will need the user interaction. 
 Afterwards, you can save the refresh token securely and re-use it to get 
access.  If your web application has multiple users each w/ different 
AdWords account, then you will need to properly implement OAuth 2.0 web 
flow.  Please see our migration guide 

.

Thanks,

Ray

On Monday, July 21, 2014 10:32:28 AM UTC-4, Altaf Mulla wrote:
>
> Hi ,
>
>  
>
> I downloaded the google adwords dotnet library with examples
>
>  
>
> I ran  the Oauth Project (…….examples\AdWords\csharp\oauth)
>
>  
>
> THis project has two aspx pages
>
>  
>
> I just added some code in the below function as follows
>
>  
>
>private void DoAuth2Configuration(AdWordsAppConfig config) {
>
>  
>
> config.Email = "te...@gmail.com";
>
> config.Password = "xxx!";
>
> config.UserAgent = "";
>
> config.DeveloperToken = "x";
>
> config.AuthorizationMethod = AdWordsAuthorizationMethod
> .OAuth2;
>
> config.ClientCustomerId = "123-456-789"
> .ToString().Replace("-", "");
>
> config.OAuth2ClientId = "
> .apps.googleusercontent.com";
>
> config.OAuth2ClientSecret = "_x";
>
>   
>
> config.OAuth2RedirectUri = Request.Url.GetLeftPart(
> UriPartial.Path);
>
>   // Create an OAuth2 object for handling OAuth2 flow.
>
>   OAuth2ProviderForApplications oAuth = new 
> OAuth2ProviderForApplications(config);
>
>   if (Request.Params["state"] == null) {
>
> // This is the first time this page is being loaded.
>
> // Set the state variable to any value that helps you recognize
>
> // when this url will be called by the OAuth2 server.
>
> oAuth.State = "callback";
>
>  
>
> // Create an authorization url and redirect the user to that page.
>
> Response.Redirect(oAuth.GetAuthorizationUrl());
>
>   } else if (Request.Params["state"] == "callback") {
>
>  
>
> oAuth.FetchAccessAndRefreshTokens(Request.Params["code"]);
>
>  
>
> Session["OAuthProvider"] = oAuth;
>
> // Redirect the user to the main page.
>
> Response.Redirect("Default.aspx");
>
>   } else {
>
> throw new Exception("Unknown state for OAuth callback.");
>
>   }
>
> }
>
>  
>
> And then ran the application I was redirect to my google account  below 
> screen
>
>
> 
>
>  
>
>  
>
> step 1 :After Entering Credentials I was redirected to the below screen
>
>
> 
>
>  
>
>  
>
> Step 2 : After clicking Accept I was redirected to the default.aspx
>
>  
>
>
> 
>
>  
>
>  *After Entering the Customer ID I was able to get the Campaign Details*
>
>  
>
> *In this I came across that I need to login into my google adwords  
> Account , Click Accept*
>
> *In which the Application redirects an authoriztion URL When I click 
> accept I receive an authorization code*
>
> *Which I use to Fetch Access And Refresh Tokens Which is then used by the 
> google api (camapign Service )*
>
> *to get the campaign Details*
>
>  
>
> *Is there any way in which I can avoid the steps 1 and 2 so that I don’t 
> need to  Login and click Accept*
>
>  
>
> *Is there any way I can get the authorization code directly and use it to 
> Fetch Access And Refresh Tokens*
>
>  
>
> *As I have a web application in which my clients use the api to get 
> campaign details and statistics of campaign*
>
> *I don’t want then to go through these steps*
>
>  
>
> *Please Suggest *
>
>  
>
> *Thanks and Regards*
>
>
>
> On Monday, July 21, 2014 4:35:12 PM UTC+5:30, Altaf Mulla wrote:
>>
>> *Auth2 Authentication*
>>
>> *Is there any way in which I can avoid the process the  Login and click 
>> Accept *
>>
>> *Can i not use  the google adwords  api by setting my credentails 
>> ,developer token  ,etc* 
>>
>> *Is there any way I can get the authorization code directly and use it to 
>> Fetch Access And Refresh Tokens*
>>
>>  *As I have a web application in which my clients use the api to get 
>> campaign details and statistics of campaign*
>>
>> *I don’t want then to go through Login precodure and click of accept 
>> button for Auth2 authentication* 
>>
>> *Please Suggest *
>>
>>  
>>
>> *Thanks and Regards*
>>
>> *Altaf*
>>
>>  
>>
>

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

Re: Get the list of verticals programmatically

2014-07-21 Thread Ray Tsang (AdWords API Team)
Dzmitry,

Please see if ConstantDataService 

 
works for you.

Thanks,

Ray

On Monday, July 21, 2014 4:15:23 AM UTC-4, Dzmitry Zahusta wrote:
>
> Hi!
>
> Is there any way to get the list of all verticals programmatically? I mean 
> the list from this 
>  page.
>
> I need this list to map it on my own list in my application.
>
> Thank you 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.
For more options, visit https://groups.google.com/d/optout.


Re: Adwords API integration Query

2014-07-21 Thread Ray Tsang (AdWords API Team)
Chad,

This seems like a duplicate post.  Let's continue on the other thread.

Thanks,

Ray

On Monday, July 21, 2014 7:09:45 AM UTC-4, Chad Ruff wrote:
>
> Hi ,
>
>  
>
> I downloaded the google adwords dotnet library with examples
>
>  
>
> I ran  the Oauth Project (…….examples\AdWords\csharp\oauth)
>
>  
>
> THis project has two aspx pages
>
>  
>
> I just added some code in the below function as follows
>
>  
>
>private void DoAuth2Configuration(AdWordsAppConfig config) {
>
>  
>
> config.Email = "te...@gmail.com";
>
> config.Password = "xxx!";
>
> config.UserAgent = "";
>
> config.DeveloperToken = "x";
>
> config.AuthorizationMethod = AdWordsAuthorizationMethod
> .OAuth2;
>
> config.ClientCustomerId = "123-456-789"
> .ToString().Replace("-", "");
>
> config.OAuth2ClientId = "
> .apps.googleusercontent.com";
>
> config.OAuth2ClientSecret = "_x";
>
>   
>
> config.OAuth2RedirectUri = Request.Url.GetLeftPart(
> UriPartial.Path);
>
>   // Create an OAuth2 object for handling OAuth2 flow.
>
>   OAuth2ProviderForApplications oAuth = new 
> OAuth2ProviderForApplications(config);
>
>   if (Request.Params["state"] == null) {
>
> // This is the first time this page is being loaded.
>
> // Set the state variable to any value that helps you recognize
>
> // when this url will be called by the OAuth2 server.
>
> oAuth.State = "callback";
>
>  
>
> // Create an authorization url and redirect the user to that page.
>
> Response.Redirect(oAuth.GetAuthorizationUrl());
>
>   } else if (Request.Params["state"] == "callback") {
>
>  
>
> oAuth.FetchAccessAndRefreshTokens(Request.Params["code"]);
>
>  
>
> Session["OAuthProvider"] = oAuth;
>
> // Redirect the user to the main page.
>
> Response.Redirect("Default.aspx");
>
>   } else {
>
> throw new Exception("Unknown state for OAuth callback.");
>
>   }
>
> }
>
>  
>
> And then ran the application I was redirect to my google account  below 
> screen
>
>
> 
>
>  
>
>  
>
> step 1 :After Entering Credentials I was redirected to the below screen
>
>
> 
>
>  
>
>  
>
> Step 2 : After clicking Accept I was redirected to the default.aspx
>
>  
>
>
> 
>
>  
>
>  *After Entering the Customer ID I was able to get the Campaign Details*
>
>  
>
> *In this I came across that I need to login into my google adwords  
> Account , Click Accept*
>
> *In which the Application redirects an authoriztion URL When I click 
> accept I receive an authorization code*
>
> *Which I use to Fetch Access And Refresh Tokens Which is then used by the 
> google api (camapign Service )*
>
> *to get the campaign Details*
>
>  
>
> *Is there any way in which I can avoid the steps 1 and 2 so that I don’t 
> need to  Login and click Accept*
>
>  
>
> *Is there any way I can get the authorization code directly and use it to 
> Fetch Access And Refresh Tokens*
>
>  
>
> *As I have a web application in which my clients use the api to get 
> campaign details and statistics of campaign*
>
> *I don’t want then to go through these steps*
>
>  
>
> *Please Suggest *
>
>  
>
> *Thanks and Regards*
>
>
>  
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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: Returning Campaign ID from AdGroupAdOperation

2014-07-21 Thread Ray Tsang (AdWords API Team)
Alan,

Yeah - typically if you know the ad group ID, typically you should also 
know the campaign ID that contains it.  If you ever need to find out, you 
can use the AdGroupService to query for the AdGroup 

.

Cheers,

Ray

On Friday, July 18, 2014 11:54:59 AM UTC-4, Alan Coleman wrote:
>
> Looking at this, I'm going to be approaching the problem from another 
> direction.
>
> I'll store the AdGroup ID's returned by the API and match them with 
> Campaign IDs at a later stage.
>
> Thanks
>
> On Friday, July 18, 2014 2:00:00 PM UTC+1, Alan Coleman wrote:
>>
>> Hello everyone,
>>
>> I'm successfully using *AdGroupAdOperation* to write TextAds to Adgroups.
>>
>> The returning array of objects gives me the TextAd ID as well as the 
>> AdGroup ID it's been assigned to. Great.
>>
>> Is it possible for me however to return the ID of the Campaign that that 
>> owns the AdGroup in the same object?
>>
>> Many 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.
For more options, visit https://groups.google.com/d/optout.


Re: How to retrieve Sitelinks urls.

2014-07-21 Thread Josh Radcliff (AdWords API Team)
Hi Emiliano,

If I'm understanding your previous posts, you are trying to use the Java 
client library  to 
retrieve the URLs of sitelinks for a specific campaign.

In order to do this, you'll have to navigate through a few different types 
of objects. Note that when performing *get* (or *query*) requests, you can 
find the list of selectable fields with the proper names on our Selector 
Fields page 
.

   1. Use CampaignFeedService.get 
   

 to 
   fetch the CampaignFeed 
   

 object 
   for your campaign by filtering on *CampaignId* equal to your campaign 
   ID, *Status* equal to ENABLED, and *PlaceholderTypes 
    
*equal 
   to 1. (Note: for simplicity's sake, I'm ignoring the *CampaignFeed*'s 
   matchingFunction 
   
,
 
   which may further limit the *FeedItem*s by *feedItemId*).
   2. Use FeedMappingService.get 
   

 
   to fetch the *FeedMappings* for *PlaceholderType *1. Look through the 
   returned *FeedMappings* and their attributeFieldMapping 
   
s
 
   to determine which attribute 
   

 
   of your *Feed* is mapped to field placeholder 2 (for URL 
   ).
   3. Use FeedItemService.get 
   

 
   to retrieve all *FeedItems* for the *feedId* found in step 1. On each 
   *FeedItem* returned, Inspect the attribute identified in step 2 to get 
   the *URL* field value.

Below is a complete code sample I put together in Java. Please let me know 
if this does not cover your questions.

Cheers,
Josh, AdWords API Team

import com.google.api.ads.adwords.axis.factory.AdWordsServices;
import com.google.api.ads.adwords.axis.utils.v201406.SelectorBuilder;
import com.google.api.ads.adwords.axis.v201406.cm.AttributeFieldMapping;
import com.google.api.ads.adwords.axis.v201406.cm.CampaignFeed;
import 
com.google.api.ads.adwords.axis.v201406.cm.CampaignFeedServiceInterface;
import com.google.api.ads.adwords.axis.v201406.cm.FeedItem;
import com.google.api.ads.adwords.axis.v201406.cm.FeedItemAttributeValue;
import com.google.api.ads.adwords.axis.v201406.cm.FeedItemServiceInterface;
import com.google.api.ads.adwords.axis.v201406.cm.FeedMapping;
import 
com.google.api.ads.adwords.axis.v201406.cm.FeedMappingServiceInterface;
import com.google.api.ads.adwords.axis.v201406.cm.Selector;
import com.google.api.ads.adwords.lib.client.AdWordsSession;
import com.google.api.ads.common.lib.auth.OfflineCredentials;
import com.google.api.ads.common.lib.auth.OfflineCredentials.Api;
import com.google.api.client.auth.oauth2.Credential;

public class GetCampaignSiteLinks {

  public static void main(String[] args) throws Exception {
Credential oAuth2Credential = new 
OfflineCredentials.Builder().forApi(Api.ADWORDS).fromFile()
.build().generateCredential();

// Construct an AdWordsSession.
AdWordsSession session =
new 
AdWordsSession.Builder().fromFile().withOAuth2Credential(oAuth2Credential).build();

AdWordsServices adWordsServices = new AdWordsServices();

Long campaignId = Long.valueOf("INSERT_CAMPAIGN_ID_HERE");

getCampaignSitelinkUrls(campaignId, session, adWordsServices);
  }
  
  private static void getCampaignSitelinkUrls(Long campaignId, 
AdWordsSession session,
  AdWordsServices adWordsServices) throws Exception {
// Find the ENABLED CampaignFeed that's mapped to the Campaign for 
sitelinks (placeholder type
// of 1).
CampaignFeedServiceInterface campaignFeedService = 
adWordsServices.get(session,
CampaignFeedServiceInterface.class);
Selector selector = new SelectorBuilder()
.fields("CampaignId", "FeedId")
.equals("PlaceholderTypes", "1")
.equals("CampaignId", campaignId.toString())
.equals("Status", "ENABLED")
.build();
CampaignFeed campaignFeed = 
campaignFeedService.get(selector).getEntries(0);

// Find the ENABLED FeedMapping for the feed above.
FeedMappingServiceInterface feedMappingService = 
adWordsServices.get(session,
FeedMappingServiceInterface.class);
selector = new SelectorBuilder()
.fields("FeedId", "AttributeFieldMappings")
.eq

Re: ReportDownloadError.INVALID_PARAMETER

2014-07-21 Thread Josh Radcliff (AdWords API Team)
Hi,

Let's try to keep things as straightforward as possible. Could you:

1. Copy your *adwords.properties* file to your home directory.
2. Change your constructor call to simply:
my $client = Google::Ads::AdWords::Client->new();
3. Try the example again.

Thanks,
Josh, AdWords API Team

On Monday, July 21, 2014 12:26:35 PM UTC-4, Dhiraj Shinde wrote:
>
> i am setting client object like follows
> my $client = Google::Ads::AdWords::Client->new(
> {
> version => 'v201406',
> properties_file =>
> "/home/dhiraj/perl/GOOGLE-ADWORDS-PERL-CLIENT-2.16.0/adwords.properties",
> }
> );
>
> adword.properties file contain all info as i told you in my prev post and 
> when i tried running the script and for 
>
> download_criteria_report.pl it is showing error as follows
>
> {
>   "error" : "invalid_client",
>   "error_description" : "The OAuth client was not found."
> } at ../../../lib/Google/Ads/Common/OAuth2ApplicationsHandler.pm line 127.
> Can't call method "isa" on an undefined value at 
> ../../../lib/Google/Ads/Common/ReportUtils.pm line 74.
>
>
> On Tuesday, July 15, 2014 9:13:42 PM UTC+5:30, Dhiraj Shinde wrote:
>>
>> Hi All,
>>  I am working on project which need some Google ad-word API 
>> usage, actually i need to download campaign_performance_report for my 
>> client for particular date, using the following script
>>  
>>   my $mech = WWW::Mechanize->new();
>>   $mech->add_header({
>> clientCustomerId => "xxx-xxx-",#valid client customer id
>> 'Authorization: Bearer' 
>> =>'xx',#my access token with scope 
>> manage adword campaign
>> developerToken => 'xxx'});
>> $response = $mech->post("
>> https://adwords.google.com/api/adwords/reportdownload/v201406";,
>> { __rdquery => 
>> 'SELECT+CampaignName+CampaignId+Cost+FROM+CAMPAIGN_PERFORMANCE_REPORT+DURING+20140619,20140619',__fmt
>>  
>> => 'CSV'
>> }
>> );
>>
>> when i see the response of above request i got 
>> > standalone="yes"?>ReportDownloadError.INVALID_PARAMETERMissing
>>  
>> client 
>> information
>>
>> i am following approach mentioned in the link
>> https://developers.google.com/adwords/api/docs/guides/awql
>>
>> i don't understand what exactly is missing ?
>> need help from expert 
>>
>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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: API v201406 upgraded urls - is it possible to refer custom parameter set on keyword in ad's url?

2014-07-21 Thread Ray Tsang (AdWords API Team)
Robert,

The custom parameters set in BiddableAdGroupCriterion will override the 
ones in the AdGroup.  So your scenario should work.

Thanks,

Ray

On Friday, July 18, 2014 12:37:56 PM UTC-4, Robert Rodakowski wrote:
>
> Source: 
> https://developers.google.com/adwords/api/docs/guides/upgraded-urls#custom_parameters
>
> In a few words: I would like to use *custom parameters* specified on 
> keywords, in ad's url (the same adgroup). 
> E.g:
> Some keyword has custom parameter defined: 
> *external_id = 123*I want to use the following URL on ad: 
> *http://example.com?extID={_external_id} 
> *
>
> In the documentation we can read, that:
>
> *custom parameters at a lower level entity override the values specified 
> at higher level entities*
>
> But ads and keywords are at the same level, aren't they? So the question 
> is: whether this will work?
>
> 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.
For more options, visit https://groups.google.com/d/optout.


Re: Adwords Offline Submission

2014-07-21 Thread Ray Tsang (AdWords API Team)
Kapil,

This is a duplicate of the ongoing conversation.  Please continue the 
conversation in the other thread.

Thanks!

Ray

On Thursday, July 17, 2014 4:06:38 PM UTC-4, Kapil Sriram wrote:
>
> Hello
>
> I am trying to develop a code that automatically pushes offline 
> conversions into adwords. I have been trying to fix this since last few 
> months and due to lack of support I am stuck. I am using a function from 
> the google adwords api examples which uploads the conversions manually. It 
> returns as if it got uploaded successfully, but when I check my adwords 
> account I dont find that conversion.
>
> What am I doing wrong, can someone guide me.
>
> I have written a test file which uses real gclid and date to call the 
> function which uploads the conversion, you can see what it returns thorugh 
> this http://quotes.canadiangeneralcontractors.com/apitest.php , you can 
> also notice that if I use wrong gclid then it returns error perfectly 
> http://quotes.canadiangeneralcontractors.com/apitest.php?gclid=322332
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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: ReportUtilities.DownloadClientReport throws System.NullReferenceException

2014-07-21 Thread Anash P. Oommen (AdWords API Team)
Hi,

Could you kindly add a stack trace 
to https://github.com/googleads/googleads-dotnet-lib/issues/10?

Cheers,
Anash P. Oommen,
AdWords API Advisor.

On Thursday, July 17, 2014 10:24:36 PM UTC-4, NET_Api_User wrote:
>
> We encounter this too. Added retry logic and that seems to have fixed it. 
> Its bad though to have to catch a NullRef and retry on that.
>
> On Thursday, July 17, 2014 8:22:00 PM UTC+5:30, Stephen Gilles wrote:
>>
>> I have the same issue - using v18. I've searched extensively in this 
>> group, finding many similar issues, but no specific solution... 
>>
>> Steve
>>
>>
>> On Monday, June 9, 2014 11:49:58 AM UTC-7, Anash P. Oommen (AdWords API 
>> Team) wrote:
>>>
>>> Hi Peter,
>>>
>>> I thought I fixed this error. Could you kindly download the source 
>>> distribution from 
>>> https://github.com/googleads/googleads-adwords-dotnet-lib/releases/tag/v16.6.0
>>>  
>>> and let me know what line this exception is being thrown?
>>>
>>> Cheers,
>>> Anash P. Oommen,
>>> AdWords API Advisor.
>>>
>>> On Wednesday, June 4, 2014 12:16:04 PM UTC-4, Peter Kingswell wrote:

 Hi,

 we download campaign performance stats on a daily basis and encounter 
 this exception fairly regularly.  Is anyone else seeing this? :

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

 AFAICT the problematic invocations are not significantly different to 
 other successful invocations.  It occurs irrespective 
 of ReportDefinitionReportType.  Here is how we create the ReportDefinition:

 ReportDefinition definition = new ReportDefinition();
 definition.reportName = "blah";
 definition.reportType = 
 ReportDefinitionReportType.CAMPAIGN_PERFORMANCE_REPORT;
 definition.downloadFormat = DownloadFormat.CSV;
 definition.includeZeroImpressions = true;
 definition.dateRangeType = ReportDefinitionDateRangeType.TODAY;
 Selector selector = new Selector();
 selector.fields = ... dictionary of fields ...;
 definition.selector = selector;

 This is with Assembly Google.AdWords.dll, v16.6.0.0.

 Many thanks, Peter



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


[PHP] Getting a non-MCC account Customer ID with v201402

2014-07-21 Thread Stephen Yeargin
We recently successfully converted to v201402 (right at the deadline) and 
are using the PHP SDK. One non-documented change that appears to have 
broken with this release is the ability to call:

$customerService = $this->GetService('CustomerService');
$return = $customerService->get();

Where $this is an authenticated AdsUser instance and $return would contain 
an object that contained descriptiveName and customerId. I confirmed this 
worked with v201309. When I used v201402, it returns:

AuthError.CLIENT_CUSTOMER_ID_IS_REQUIRED

Which, incidentally, is exactly why I'm trying to access the 
"CustomerService" endpoint -- in order to get the CustomerId to store with 
subsequent requests. :)

- Stephen

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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: Reduced results for TargetingIdeaService when migrated from v201309 to v201402

2014-07-21 Thread Shashank Pedamallu
Hi Josh,

Thanks again for the update. I appreciate your timely responses and 
updates. If I'm permitted to suggest, could you notify this change in the 
Migration Guide to v201402?

Also, this does not explain why I get result for certain words like 
"Müller", "ümbrella","café" when I select language as English.

Thanks,
Shashank

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


Validation rules for phone numbers

2014-07-21 Thread srohde
I am looking for the validation rules that AdWords applies to *phoneNumber* 
values when creating or mutating MobileAds 
,
 
call feed items and location feed items.

Are such rules published in the AdWords API documentation?

Does location targeting influence the validation rules (i.e., are 
country-specific validation rules applied based on targeting?)

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