Location Extension Migration to GMB Addresses

2017-06-08 Thread David B.
 Hi,

 In late may, we received a mail annoucing the auto-migration of Location 
Extensions to Google My Business listings. The mail was linking to FAQ page 
about migration but the link seems to be broken :-(
So here is my questions :
- which account will be used for creating the new address for each account 
of our MCC ? How will be default account choosen ? Could it be possible to 
migrate to a specific account ? 

 There may be a page explaining everything (with a migration script example 
?), but I didn't find it.

Thanks.


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

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/1b06b691-a7ab-48de-91aa-97aa978ea029%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


No stats for yesterday (24th April)

2017-04-25 Thread David B.
 Hi all,

 Looks like there is no data in the reports for yesterday (24th april) when 
requesting on a LAST_WEEK date range ? Is there any current issue on 
AdWords API side ? Files are downloaded without any pb, but nothing 
concerning yesterday.

Thanks for your help,

- DB.

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

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/fb31a322-3029-4e59-b913-84b11fcfb22e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Invalid grant when using Token Refresh

2016-11-24 Thread David B.
Hi,

Exactly the same issue since last week. Using the same package/library + 
credentials to connect on two applications :

- the first one is a cron script that operate spooled operations. Working 
fine and still ok. It runs every 30mn.
- the second is a web application : it works one time, and then invalid 
grant too. 

This couple of applications has been working for months but the web 
application is failing since last week.

I'm using this sample code to get a session :

// Generate a refreshable OAuth2 credential 
// and can be used in place of a service account.
Credential credential = new OfflineCredentials.Builder()
.forApi(OfflineCredentials.Api.ADWORDS)
.fromFile()
.build()
.generateCredential();

ReportingConfiguration reportingConfiguration
= new ReportingConfiguration.Builder()
.skipReportHeader(false)
.skipColumnHeader(false)
.skipReportSummary(false)
// Enable to allow rows with zero impressions to show.
.includeZeroImpressions(false)
.build();

AdWordsSession session = new AdWordsSession.Builder()
.fromFile()
.withOAuth2Credential(credential)
.withReportingConfiguration(reportingConfiguration)
.build();

- DB.

Le mardi 22 novembre 2016 15:44:32 UTC+1, Deepankar Biswas a écrit :
>
> Hi Josh
>
> I am facing this issue and its very strange.
>
> 1) The access is very much there and not revoked.
> 2) I refreshed the token today for my MCC account and it worked for the 
> first time and now again invalid grant.
>
> I took the dump of the AdWords user also and it has all valid data.
>
> Where should I look to fix this?
>
> On Monday, November 16, 2015 at 9:49:01 PM UTC+5:30, jnewm...@gmail.com 
> wrote:
>>
>> Hello,
>>
>> About 3 weeks ago we started seeing this error when we refresh the access 
>> token for many random accounts, {   "error" : "invalid_grant" }. We never 
>> had any problems refreshing access tokens up until now. Also, not all 
>> accounts are having problems refreshing their tokens; many refresh just 
>> fine. To temporarily fix the issue we have been reauthorizing each account, 
>> but other accounts start to have the same problem. The only information I 
>> could find on the forum is that the refresh token has manually been 
>> revoked, which doesn't make sense to me. I've read through the 
>> documentation at "
>> https://developers.google.com/adwords/api/docs/guides/authentication; 
>> and it looks like our TokenUrl, AuthUrl and Scope are up to date. Any help 
>> is greatly appreciated, thanks.
>>
>> Get Authorization Code:
>>
>>
>> https://accounts.google.com/o/oauth2/auth?client_id=X_uri=XX=
>> https://www.googleapis.com/auth/adwords
>> _type=code_type=offline_prompt=force";
>>
>>
>>
>> Below is an example of the url and parameters we are using to retrieve 
>> initial access and refresh token:
>>
>>
>> https://www.googleapis.com/oauth2/v3/token?code=X_id=X_secret=X_type=authorization_code_uri=
>>
>>
>>
>> Below is an example of the url and parameters we are using to refresh 
>> access tokens:
>>
>>
>> https://www.googleapis.com/oauth2/v3/token?refresh_token=X_id=X_secret=X_type=refresh_token
>>
>
> *DISCLAIMER*: The information in this message is confidential and may be 
> legally privileged. It is intended solely for the addressee. Access to this 
> message by anyone else is unauthorized. If you are not the intended 
> recipient, any disclosure, copying, or distribution of the message, or any 
> action or omission taken by you in reliance on it, is prohibited and may be 
> unlawful. Please immediately contact the sender if you have received this 
> message in error. Further, this e-mail may contain viruses and all 
> reasonable precaution to minimize the risk arising there from is taken by 
> OfferGrid. OfferGrid is not liable for any damage sustained by you as a 
> result of any virus in this e-mail. All applicable virus checks should be 
> carried out by you before opening this e-mail or any attachment thereto.
> Thank you - *OfferGrid Networks (P) Ltd*.
>

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

Re: AdSchedule criterions not deleted

2016-05-04 Thread David B.
Hi,

Here the logs :

INFO  2016-05-04 09:47:20,627 [main][AdsServiceLoggers.java:107] : Request 
made: Service: "CampaignCriterionServiceInterfacePort" Method: "get" URL: 
"https://adwords.google.com/api/adwords/cm/v201603/CampaignCriterionService; 
Request ID: "000531ff6f86f3d00ac12521f10818a5"
INFO  2016-05-04 09:47:20,661 [main][AdsServiceLoggers.java:81] : SOAP 
Request:

http://schemas.xmlsoap.org/soap/envelope/; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance;>

https://adwords.google.com/api/adwords/cm/v201603; 
soapenv:mustUnderstand="0">
6462727071
REDACTED
AdWordsAxisUtilityExtensionOrange (AwApi-Java, 
AdWords-Axis/2.13.1, Common-Java/2.13.1, Axis/1.4, Java/1.7.0_80, maven, 
SelectorBuilder)
false
false



https://adwords.google.com/api/adwords/cm/v201603;>

Address
AgeRangeType
AppId
BaseCampaignId
BidModifier
CampaignId
CarrierCountryCode
CarrierName
ChannelId
ChannelName
ContentLabelType
CriteriaType
DayOfWeek
DeviceName
DeviceType
Dimensions
DisplayName
DisplayType
EndHour
EndMinute
FeedId
GenderType
GeoPoint
Id
IpAddress
IsNegative
KeywordMatchType
KeywordText
LanguageCode
LanguageName
LocationName
ManufacturerName
MatchingFunction
MobileAppCategoryId
OperatingSystemName
OperatorType
OsMajorVersion
OsMinorVersion
Parameter
ParentLocations
ParentType
Path
PlacementUrl
PlatformName
RadiusDistanceUnits
RadiusInUnits
StartHour
StartMinute
TargetingStatus
UserInterestId
UserInterestName
UserInterestParentId
UserListEligibleForDisplay
UserListEligibleForSearch
UserListId
UserListMembershipStatus
UserListName
VerticalId
VerticalParentId
VideoId
VideoName

CriteriaType
IN
AD_SCHEDULE






INFO  2016-05-04 09:47:20,668 [main][AdsServiceLoggers.java:82] : SOAP 
Response:

http://schemas.xmlsoap.org/soap/envelope/;>

https://adwords.google.com/api/adwords/cm/v201603;>
000531ff6f86f3d00ac12521f10818a5
CampaignCriterionService
get
1
181



https://adwords.google.com/api/adwords/cm/v201603;>

21
CampaignCriterionPage

289902516
false
http://www.w3.org/2001/XMLSchema-instance; xsi:type="AdSchedule">
302492
AD_SCHEDULE
AdSchedule
MONDAY
6
ZERO
23
ZERO

1.0
289902516

CampaignCriterion


289902516
false
http://www.w3.org/2001/XMLSchema-instance; xsi:type="AdSchedule">
312492
AD_SCHEDULE
AdSchedule
TUESDAY
6
ZERO
23
ZERO

1.0
289902516

CampaignCriterion


289902516
false
http://www.w3.org/2001/XMLSchema-instance; xsi:type="AdSchedule">
322492
AD_SCHEDULE
AdSchedule
WEDNESDAY
6
ZERO
23
ZERO

1.0
289902516

CampaignCriterion



AdSchedule criterions not deleted

2016-05-03 Thread David B.
Hi,

When requesting AdSchedule criterions from one campaign, I get old 
criterions that are "deleted" (quotes because there is no status "deleted" 
for criterions). Eg : I've set criterions for 7 days, then removed long ago 
the "Sunday" criterion (campaign not running on sunday). But I still get 
this AdSchedule criterion (with startHour, endHour, etc.). There is no 
Sunday adSchedule in AdWords front-office of course ;-)

I'm using the Java client, but as there is not filter for criterions (no 
status), I'm posting this here, as I don't thing it came from the java 
library.

Haven't seen any post relating to this issue. Does anyone believe I might 
doing it wrong, or is there any bug ? 

Regards,

David

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

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/c77bc999-8e68-4b38-b9af-c985f56acc7a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Preview Template Ads Urls

2015-06-08 Thread David B.
 Thanks Nadine for your time in testing and getting back to me. 
(Un?)fortunatly, we are using only *template ads* for our customers, and 
even with selecting only the Id of AdGroupAds, I don't get the urls. 
Maybe you can give it a try with a template Ad, but I don't see any Image 
coming AFAICS.

 Cheers

 David


Le vendredi 5 juin 2015 16:38:37 UTC+2, Nadine Sundquist (AdWords API Team) 
a écrit :

 Hello David,

 I decided to give this a try in a test account to verify that I could 
 somehow get an image back through the API, whether it be an image or a URL 
 to an image. Here's what I did to get back a URL of my ad's image.

- I created an Image Ad in my account. In my case I uploaded an image 
that was 250x360.
- Using the AdGroupAdService 

 https://developers.google.com/adwords/api/docs/reference/latest/AdGroupAdService,
  
I created a selector with only the *Id*. Some fields will come back 
without explicitly selecting them.
- For each AdGroupAd 

 https://developers.google.com/adwords/api/docs/reference/v201502/AdGroupAdService.AdGroupAd,
  
I retrieved the ad 

 https://developers.google.com/adwords/api/docs/reference/v201502/AdGroupAdService.AdGroupAd#ad,
  
which resulted in getting back an ImageAd 

 https://developers.google.com/adwords/api/docs/reference/v201502/AdGroupAdService.ImageAd
.
- In the ImageAd 

 https://developers.google.com/adwords/api/docs/reference/v201502/AdGroupAdService.ImageAd,
  
I retrieved the image 

 https://developers.google.com/adwords/api/docs/reference/v201502/AdGroupAdService.Image
.
- In the Image 

 https://developers.google.com/adwords/api/docs/reference/v201502/AdGroupAdService.Image,
  
I retrieved the urls 

 https://developers.google.com/adwords/api/docs/reference/v201502/AdGroupAdService.Image#urls,
  
which is a mapping of key value pairs. Some examples of the keys are 
*PREVIEW* and *FULL.*
- Here's an example of the XML output from *urls* (with details 
starred out):

 keyFULL/keyvalue
 https://tpc.googlesyndication.com/pageadimg/imgad?id=C***Q/value, 

 keyPREVIEW/keyvalue
 https://tpc.googlesyndication.com/pageadimg/imgad?id=C***s/value


- The dimensions 

 https://developers.google.com/adwords/api/docs/reference/v201502/AdGroupAdService.Image#dimensions
  in 
an ImageAd give the size of the ad in the *urls *field.

 keyPREVIEW/keyvaluewidth60/widthheight86/height/value, 

 keyFULL/keyvaluewidth250/widthheight360/height/value


 Best,
 Nadine, AdWords API Team 

 On Friday, June 5, 2015 at 6:09:22 AM UTC-4, David B. wrote:

  Hi Nadine,

  Thanks for your answer. But the Field adAsImage doesn't seems to be 
 Selectable (
 https://developers.google.com/adwords/api/docs/appendix/selectorfields#v201502-AdGroupAdService).
  
 Or am I missing something ?

  Ideally, I'm looking to get the urls of the ads in this page (example) : 


 https://adwords-displayads.googleusercontent.com/da/b/dabAdPreview?templateId=311outputFormat=FLASHwidth=300height=250visibleUrl=www.boutiquevignoblesdelarose.fr/destinationUrl=http://www.boutiquevignoblesdelarose.fr/isExpandable=falseirsKey=1170683329846968320hl=frad=63850277414adGroup=17297669054ocid=8948014046s=14showMulPreview=truedeviceType=0isInApp=falsesig=ACiVB_xHtTy2iehejwfjezI2eRVsct6xGw

  Cheers,

  David

 Le jeudi 4 juin 2015 23:17:52 UTC+2, Nadine Sundquist (AdWords API Team) 
 a écrit :

 Hi David,

 The adsAsImage 
 https://developers.google.com/adwords/api/docs/reference/v201502/AdGroupAdService.TemplateAd#adAsImage
  field 
 is the correct location when looking for the image. Another place you can 
 look is in the templateElements 
 https://developers.google.com/adwords/api/docs/reference/v201502/AdGroupAdService.TemplateAd#templateElements
  field. 
 If you're running an image ad, then check out the Image section 
 https://developers.google.com/adwords/api/docs/appendix/templateads#gmail_image_ad_partial_slot_V1
  of 
 the Template Ads reference page 
 https://developers.google.com/adwords/api/docs/appendix/templateads. 

 Best,
 Nadine, AdWords API Team

 On Tuesday, June 2, 2015 at 9:34:32 AM UTC-4, David B. wrote:

  Hi All,

  For Template Ads, is it possible to get the preview urls for each 
 dimension just like the ones you get in the AdWords UI ? I'm looking at 
 the 
 TemplateAd.adAsImage but I'm not sure that's the right field (as it's 
 always a null value...). And nothing is really clear about this field.

  Thanks for your help,

  Cheers.

  - DB.






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

Preview Template Ads Urls

2015-06-02 Thread David B.
 Hi All,

 For Template Ads, is it possible to get the preview urls for each 
dimension just like the ones you get in the AdWords UI ? I'm looking at the 
TemplateAd.adAsImage but I'm not sure that's the right field (as it's 
always a null value...). And nothing is really clear about this field.

 Thanks for your help,

 Cheers.

 - DB.




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

You received this message because you are subscribed to the Google
Groups AdWords API Forum group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
AdWords API Forum group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/f2a98daa-f4ef-4b1f-9a18-10628b035b6f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: AdvertisingChannelType null

2015-02-19 Thread David B.
 Ok, done !

 Regards

Le mercredi 18 février 2015 18:51:21 UTC+1, Josh Radcliff (AdWords API 
Team) a écrit :

 Hi,

 Thanks for pointing this out. Could you file an issue in the Java Client 
 Library https://github.com/googleads/googleads-java-lib/issues? This 
 will allow us to track the problem + will ensure you get updates once it's 
 fixed.

 Cheers,
 Josh, AdWords API Team

 On Wednesday, February 18, 2015 at 12:02:53 PM UTC-5, David B. wrote:

 Hi guys,

 Here a sample code, using the utility extension. I'm trying to get the 
 AdvertisingChannel value for each campaign, but I get a null value. I tried 
 (firstly) to get ExtendedManagedCampaigns, but nothing is set. 

 Is it a bug from the utility extension (so I'll post a feature request), 
 from the account (not updated ? - don't think so), or something not handled 
 by v201409 (open to shortlisted parters, as it can happend) ?

 Thanks for your help !

 Cheers

 import 
 com.google.api.ads.adwords.axis.utility.extension.ExtendedManagedCustomer;
 import com.google.api.ads.adwords.axis.utility.extension.ExtendedMcc;
 import com.google.api.ads.adwords.axis.v201409.cm.AdvertisingChannelType;
 import com.google.api.ads.adwords.axis.v201409.cm.Campaign;
 import com.google.api.ads.common.lib.conf.ConfigurationLoadException;
 import com.google.api.ads.common.lib.exception.OAuthException;
 import com.google.api.ads.common.lib.exception.ValidationException;
 import java.rmi.RemoteException;
 import java.util.List;


 public class NewMain {

 /**
  * @param args the command line arguments
  */
 public static void main(String[] args) throws OAuthException, 
 ValidationException, ConfigurationLoadException, RemoteException {
 
 ExtendedMcc mcc = ExtendedMcc.withOAuth2FromFile();
 ExtendedManagedCustomer customer = 
 mcc.getExtendedManagedCustomer(accountIdLong);
 ListCampaign campaigns = customer.getCampaigns();
 
 for (Campaign c : campaigns) {
 AdvertisingChannelType channelType = 
 c.getAdvertisingChannelType(); // null value;
 
 
 }
 
 }
 
 }



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

You received this message because you are subscribed to the Google
Groups AdWords API Forum group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
AdWords API Forum group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/605adc2a-63fe-496f-b63b-74909e1a1f3b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


AdvertisingChannelType null

2015-02-18 Thread David B.
Hi guys,

Here a sample code, using the utility extension. I'm trying to get the 
AdvertisingChannel value for each campaign, but I get a null value. I tried 
(firstly) to get ExtendedManagedCampaigns, but nothing is set. 

Is it a bug from the utility extension (so I'll post a feature request), 
from the account (not updated ? - don't think so), or something not handled 
by v201409 (open to shortlisted parters, as it can happend) ?

Thanks for your help !

Cheers

import 
com.google.api.ads.adwords.axis.utility.extension.ExtendedManagedCustomer;
import com.google.api.ads.adwords.axis.utility.extension.ExtendedMcc;
import com.google.api.ads.adwords.axis.v201409.cm.AdvertisingChannelType;
import com.google.api.ads.adwords.axis.v201409.cm.Campaign;
import com.google.api.ads.common.lib.conf.ConfigurationLoadException;
import com.google.api.ads.common.lib.exception.OAuthException;
import com.google.api.ads.common.lib.exception.ValidationException;
import java.rmi.RemoteException;
import java.util.List;


public class NewMain {

/**
 * @param args the command line arguments
 */
public static void main(String[] args) throws OAuthException, 
ValidationException, ConfigurationLoadException, RemoteException {

ExtendedMcc mcc = ExtendedMcc.withOAuth2FromFile();
ExtendedManagedCustomer customer = 
mcc.getExtendedManagedCustomer(accountIdLong);
ListCampaign campaigns = customer.getCampaigns();

for (Campaign c : campaigns) {
AdvertisingChannelType channelType = 
c.getAdvertisingChannelType(); // null value;


}

}

}

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

You received this message because you are subscribed to the Google
Groups AdWords API Forum group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
AdWords API Forum group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/48f0daec-6188-4ab1-9f75-5e16221a9fc9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Upgraded location extensions

2014-12-22 Thread David B.
Hi Josh,

Is there any way to get the code example you're linking to ? Seems that the 
code example was removed from the last releases.

Cheers,

David

Le mardi 14 octobre 2014 21:10:58 UTC+2, Josh Radcliff (AdWords API Team) a 
écrit :

 Hi GDZ,

 To prevent location extensions from showing on a campaign, you'll want to 
 create a CampaignFeed 
 https://developers.google.com/adwords/api/docs/reference/v201409/CampaignFeedService.CampaignFeed
  with 
 a *matchingFunction* that always evaluates to false. This will look a lot 
 like the *CustomerFeed* matching function in the code example 
 https://github.com/googleads/googleads-java-lib/blob/master/examples/adwords_axis/src/main/java/adwords/axis/v201409/advancedoperations/AddPlacesLocationExtensions.java#L148,
  
 only on the *ConstantOperand* you should set a booleanValue 
 https://developers.google.com/adwords/api/docs/reference/v201409/CampaignFeedService.ConstantOperand#booleanValue
  
 of *false* instead of *true*.

 Cheers,
 Josh, AdWords API Team

 On Tuesday, October 14, 2014 1:23:39 PM UTC-4, GDZ wrote:

 OK, so it all started to make sense. We're able to create account level 
 extensions and assign to particular campaigns. What is not very clear, how 
 do you prohibit some campaign from showing account-level location 
 extension (using API of course).

 Thank you,
 GDZ

 On Friday, October 10, 2014 10:55:06 AM UTC-4, Danial Klimkin wrote:

 Hello GDZ,


 Please see this guide for more details:

   
 https://developers.google.com/adwords/api/docs/guides/feed-services-locations


 -Danial, AdWords API Team.


 On Friday, October 10, 2014 10:33:24 AM UTC-4, GDZ wrote:

 OK, so I created a location feed, then used CustomerFeedService to add 
 a location. Now in UI at the account level under Upgraded location 
 extensions I see the name of my feed and it states (1 location).  At the 
 campaign level I can select this location and use as location extension 
 for 
 this particular campaign. 

 All this I can do in UI.  Now question is how can I assign this 
 account-level address to the campaign via API?

 Thank you,
 GDZ

 On Thursday, October 9, 2014 4:24:55 PM UTC-4, Danial Klimkin wrote:

 Hello GDZ,


 GMB doesn't provide an API at the moment unfortunately. The best 
 approach I can currently suggest is the bulk location management:

   https://support.google.com/business/answer/3217744

 We'll be improving options on linking GMB accounts in the future.


 -Danial, AdWords API Team.


 On Wednesday, October 8, 2014 10:31:48 AM UTC-4, GDZ wrote:

 Thank you Danial.

 Question is will we be able to create feed-based location extensions 
 without My Business accounts? If not, will there be a way to create My 
 Business accounts via API?

 Thank you,
 GDZ

 On Tuesday, October 7, 2014 5:32:22 PM UTC-4, Danial Klimkin wrote:

 Hello GDZ,


 All extensions will be migrated to Feed-service base over time. You 
 can request users to create these accounts or you can manage them on 
 users' 
 behalf.


 -Danial, AdWords API Team.


 On Monday, October 6, 2014 4:03:41 PM UTC-4, GDZ wrote:

 As we know, the ability to create manually added and 
 campaign-level (“not upgraded”) location extensions will soon be 
 removed. 
 Only option will be to create these extensions using Google My 
 Business 
 acct. 

 Question is, does this also apply to API-created LE? What if our 
 clients don't have My Business accounts or reluctant/lazy to do so? 
 Are we 
 going to lose the ability to create location extensions on the 
 campaign 
 level at all? 

 Thank you,
 GDZ 



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

You received this message because you are subscribed to the Google
Groups AdWords API Forum group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
AdWords API Forum group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/bd630b0e-9f81-45fe-8683-61d7a80b5072%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Upgraded location extensions

2014-12-22 Thread David B.
Hi Josh,

Is there any way to get the code example you're linking to ? Seems that the 
code example was removed from the last releases.

Cheers,

David

Le mardi 14 octobre 2014 21:10:58 UTC+2, Josh Radcliff (AdWords API Team) a 
écrit :

 Hi GDZ,

 To prevent location extensions from showing on a campaign, you'll want to 
 create a CampaignFeed 
 https://developers.google.com/adwords/api/docs/reference/v201409/CampaignFeedService.CampaignFeed
  with 
 a *matchingFunction* that always evaluates to false. This will look a lot 
 like the *CustomerFeed* matching function in the code example 
 https://github.com/googleads/googleads-java-lib/blob/master/examples/adwords_axis/src/main/java/adwords/axis/v201409/advancedoperations/AddPlacesLocationExtensions.java#L148,
  
 only on the *ConstantOperand* you should set a booleanValue 
 https://developers.google.com/adwords/api/docs/reference/v201409/CampaignFeedService.ConstantOperand#booleanValue
  
 of *false* instead of *true*.

 Cheers,
 Josh, AdWords API Team

 On Tuesday, October 14, 2014 1:23:39 PM UTC-4, GDZ wrote:

 OK, so it all started to make sense. We're able to create account level 
 extensions and assign to particular campaigns. What is not very clear, how 
 do you prohibit some campaign from showing account-level location 
 extension (using API of course).

 Thank you,
 GDZ

 On Friday, October 10, 2014 10:55:06 AM UTC-4, Danial Klimkin wrote:

 Hello GDZ,


 Please see this guide for more details:

   
 https://developers.google.com/adwords/api/docs/guides/feed-services-locations


 -Danial, AdWords API Team.


 On Friday, October 10, 2014 10:33:24 AM UTC-4, GDZ wrote:

 OK, so I created a location feed, then used CustomerFeedService to add 
 a location. Now in UI at the account level under Upgraded location 
 extensions I see the name of my feed and it states (1 location).  At the 
 campaign level I can select this location and use as location extension 
 for 
 this particular campaign. 

 All this I can do in UI.  Now question is how can I assign this 
 account-level address to the campaign via API?

 Thank you,
 GDZ

 On Thursday, October 9, 2014 4:24:55 PM UTC-4, Danial Klimkin wrote:

 Hello GDZ,


 GMB doesn't provide an API at the moment unfortunately. The best 
 approach I can currently suggest is the bulk location management:

   https://support.google.com/business/answer/3217744

 We'll be improving options on linking GMB accounts in the future.


 -Danial, AdWords API Team.


 On Wednesday, October 8, 2014 10:31:48 AM UTC-4, GDZ wrote:

 Thank you Danial.

 Question is will we be able to create feed-based location extensions 
 without My Business accounts? If not, will there be a way to create My 
 Business accounts via API?

 Thank you,
 GDZ

 On Tuesday, October 7, 2014 5:32:22 PM UTC-4, Danial Klimkin wrote:

 Hello GDZ,


 All extensions will be migrated to Feed-service base over time. You 
 can request users to create these accounts or you can manage them on 
 users' 
 behalf.


 -Danial, AdWords API Team.


 On Monday, October 6, 2014 4:03:41 PM UTC-4, GDZ wrote:

 As we know, the ability to create manually added and 
 campaign-level (“not upgraded”) location extensions will soon be 
 removed. 
 Only option will be to create these extensions using Google My 
 Business 
 acct. 

 Question is, does this also apply to API-created LE? What if our 
 clients don't have My Business accounts or reluctant/lazy to do so? 
 Are we 
 going to lose the ability to create location extensions on the 
 campaign 
 level at all? 

 Thank you,
 GDZ 



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

You received this message because you are subscribed to the Google
Groups AdWords API Forum group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
AdWords API Forum group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/fe8c3232-60b8-42d9-af89-30b35fc1d869%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


BMJS Not Returning Job ID

2011-10-31 Thread David B
We've been testing various BMJS scripts in the Sandbox for a couple of
months now.  However, when using the production server, we are getting
a [NotEmptyError.EMPTY_LIST @ selector.jobIds] error, on the first
request after the mutate.  It looks as if the jobId is not being
returned within the initial response after the mutate request is
sent.  Is there anything that would cause this?  Any help would be
greatly appreciated, as we're dead in the water.

Many thanks,
David

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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


BMJS OperationResults Problem

2011-06-30 Thread David B
I am having a problem understanding the operation results from a BMJS
request that has a rigged failure for testing.  For the purposes of
identifying failures, I have expanded on the bulkProcessResults
function, included in the PHP library.  I have begun passing a zero-
based-indexed array of the actual operations requested.  For my tests,
I am submitting a total of 23 keywords, with 1 rigged to fail.  Using
a zero-based index, this would be operation[0] through operation[22].
The rigged operation is at operation[19].

After receiving a response, the first operation result will be a
'FailureResult', according to API documentation and past experience.
Given that I have passed the actual operations array to the processing
function, I am able to parse each error and reference the 'fieldPath'
to figure out which operation(s) caused the atomic failure.  This part
is working as expected with no issues.

Moving forward, since this is an atomic failure, and all 23
operations will fail, the remaining results in the response are of the
type 'BatchFailureResult'.

The problem seems to begin here.  The results show the following:
Results were not successful in batch index of operation: 1
[...]
Results were not successful in batch index of operation: 19
Results were not successful in batch index of operation: 20
Results were not successful in batch index of operation: 21
Results were not successful in batch index of operation: 22

First, the number of batch failures(22) does not match the number of
operations(23).  Secondly, batch indexes 19-22 are included.
Contemplating this, the reason for this may be this: If an operation
is the cause of a batch failure and included in the FailureResult,
then it might be omitted from the BatchFailureResult as an
assumption.  Secondly, these 'Results were not successful in batch
index of operation: X' do not match the zero-based operations array
from the request itself because if the 'FailureResult' operation is
omitted, then 'Results were not successful in batch index of
operation: 19' would have been omitted from the BatchFailureResult.

Assuming that a FailureResult operation is omitted from the
BatchFailureResult, I ran another test.  This time, an additional
rigged keyword failure was included.  Again, a total of 23 operations
were requested, operation[0] through operation[22], and the rigged
failure operations are at operation[19] and operation[21].

The operations results are very much the same.  The exception being an
additional operationResult-cause-errors within the FailureResult.
However, the BatchFailureResults are exactly the same, with 22 total
batch failures and the same indexing scheme.

As for why this is important to me.  As explained earlier, picking the
actual failure triggers from the FailureResult is working as
expected.  However, since the failures are atomic in nature, all other
operation in the batch should be marked in some way as part of a batch
that failed.  This way, they can be processed during the next run,
while omitting the actual trigger.

Any help would be greatly appreciated.

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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


INVALID_KEYWORD_TEXT Using BMJS

2011-06-23 Thread David B
We are having issues with INVALID_KEYWORD_TEXT responses to seemingly
normal keywords, when using the BMJS to add AdGroup criteria.  For
example, according to the response, if I am reading it correctly, HP
2600n is invalid.  Several variants of this are also failing for the
same reason.  I have checked for invalid characters, and not a single
keyword contains an invalid character.

Also, although were using the BMJS, it seems that entire operations
are failing, even though some keywords are not failing.

Thank you in advance for your assistance.

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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


Get Related Keywords Via Bulk Job?

2011-06-07 Thread David B
Hello,
I am trying to write a nightly script to grab related keywords for
newly-generated adgroups.  However, I have a couple of questions.

1. Can BMJS be used for related keywords?  I have written many
scripts, using the BMJS, for campaigns, ads, keywords, etc..
2. I have tried using SeedAdGroupIdSearchParameter, but the results
do not return the AdGroup ID the operation was seeded with.  Also, if
using a separate search value, the original seed value is not
returned. If using BMJS, is it possible, during processing, to
determine which operation goes with each seed value?

Any help would be greatly appreciated.

Many thanks,
David

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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


Re: Sandbox Bulk Mutate Error

2011-04-09 Thread David B
Evgeniy,
Thank you very much for your guidance!  You were right; the general
method you mentioned worked.  Here's what I did differently to obtain
the CUSTOMER_ID for each sandbox client account.

First, I uploaded Apility, editing the authentication and settings INI
files to utilize the sandbox environment. Secondly, I created a small
file to display the information I needed.  Instead of using a report
to get the data I needed, it was actually quicker to use the
getAccountInfo() method.

Here's is a sample of the code, in PHP, I used:

require_once('apility.php');

$apilityUser = new APIlityUser();
$apilityUser-setClientEmail(client_x+em...@isp.com);

echo pre;
print_r($apilityUser-getAccountInfo());
echo /pre;

This code would print out account information for the selected client
account.  Substituting 1-5 for X in the client email, I was able to
obtain data for each sandbox account.

Finally, the 10-digit customerId element listed in the obtained data
is the correct value to use as the CUSTOMER_ID scoping entity in
latter versions' BMJS.  I have successfully run tests that failed
yesterday, and I have verified the BMJS results by using the Sandbox
Account Viewer.

Once again, your help is greatly appreciated.  Although this method of
getting sandbox account customer ID's is not perfect, it's not really
as bad as I thought.  Hopefully, someone else will benefit from the
information above.

Many thanks!

On Apr 9, 1:38 am, Evgeniy Bogdanov bogda...@tagan.ru wrote:
 Ok. I see.

 Other suggestion is not simple. :)
 Download v13 libraryhttp://code.google.com/p/google-api-adwords-apility/
 (for PHP)
 and with this 
 documentationhttp://code.google.com/intl/en-EN/apis/adwords/docs/developer/ReportS...

 create and execute report which have CustomerID via SandBox.

 Regards,

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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


Re: Sandbox Bulk Mutate Error

2011-04-08 Thread David B
Evgeniy,
Thank you very much for your reply.  I am actually writing scripts to
generate items, then bulk upload them to Google.  I will be able to
use CAMPAIGN_ID for subsequent jobs including AdGroups, Ads, Criteria,
etc..  However, when uploading campaigns in a job, CAMPAIGN_ID scope
would not work.  I believe the CUSTOMER_ID is the only entity scope
that would allow for campaign jobs.  Do you have any other
suggestions?

Many thanks!

On Apr 8, 5:13 pm, Evgeniy Bogdanov bogda...@tagan.ru wrote:
 Hi David.

 I've met with this issue too.
 As I understand clients in Sandbox have own client ids.  I didn't
 found method in v200909+ versions how I can get them.
 I've changed my code to use CAMPAIGN_ID for the Entity ID in Sandbox
 mode.

 If this change is too doable for you take a look 
 onhttp://code.google.com/intl/ru-RU/apis/adwords/docs/developer/Account...

 This method can help you.

 Regards,

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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


UNEXPECTED_INTERNAL_API_ERROR With Very Large Request

2010-10-07 Thread David B
Hello,
We trying to import all data from Google AdWords via the API.  After
the script runs for a while, it dies, throwing a
InternalApiError.UNEXPECTED_INTERNAL_API_ERROR exception.  We are
using the live environment, and we had no scalability issues when
developing the application in the Sandbox.  We are nowhere close to
the System defined unit cap.  A search of the online documentation
and forum reveals no other limits that we may be running into.

Any help on this issue would be greatly appreciated.  We can provide
the log files, if necessary, to help narrow the list of causes.
However, the files, especially the soap_xml.log file, are very large.
Again, thank you in advance for any and all assistance.

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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