All Api request are stucked without any response

2023-03-14 Thread Zied Chaari
Hi Google Team,

We have upgrated the Google Ads API to the latest version V13. However, all 
calls we made are stucked without any response.
This is an example of code. 

public override SocialAudience CreateCustomAudience(SocialAudience 
SAudience, List EventSource = null)
{
configGoogleAdsApi.OAuth2RefreshToken = 
SAudience.AdAccount.GoogleUser.Refresh_Token;
GoogleAdsClient client = new GoogleAdsClient(configGoogleAdsApi);

UserListServiceClient service = 
client.GetService(Services.V13.UserListService);
Google.Ads.GoogleAds.V13.Services.UserListOperation operation;

Google.Ads.GoogleAds.V13.Resources.UserList userList = new 
Google.Ads.GoogleAds.V13.Resources.UserList()
{
Name = SAudience.Audience.Name,
Description = SAudience.Audience.Description ?? "",
MembershipLifeSpan = 1,
MembershipStatus = 
UserListMembershipStatusEnum.Types.UserListMembershipStatus.Open,
CrmBasedUserList = new CrmBasedUserListInfo()
{
UploadKeyType = 
Google.Ads.GoogleAds.V13.Enums.CustomerMatchUploadKeyTypeEnum.Types.CustomerMatchUploadKeyType.ContactInfo
}
};

operation = new Google.Ads.GoogleAds.V13.Services.UserListOperation()
{
Create = userList
};


try
{
Google.Ads.GoogleAds.Util.TraceUtilities.Configure(Google.Ads.GoogleAds.Util.TraceUtilities.DETAILED_REQUEST_LOGS_SOURCE,
 
"C:\\logs\\details.log", System.Diagnostics.SourceLevels.All);

MutateUserListsResponse result = 
service.MutateUserLists(SAudience.AdAccount.Social_ID, new[] { operation });

UserListName userListName = 
UserListName.Parse(result.Results[0].ResourceName);

SAudience.Social_ID = userListName.UserListId;
SAudience.Size = 0;
return SAudience;
}
catch (GoogleAdsException E)
{
throw;
}
}

Any Help Please.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/a7acdb9b-d194-400b-b1ce-e6d90b342d38n%40googlegroups.com.


Re: All Api request are stucked without any response

2023-03-15 Thread Zied Chaari
Hi,

I have already setup the logging in my end as you can see in my code, 
nothing is hapenning my program is stuck on the highlighted yellow line and 
nothing is added to my log file.

On Wednesday, March 15, 2023 at 7:09:23 AM UTC Google Ads API Forum Advisor 
wrote:

> Hi Zied,
>
> Thank you for reaching out to the Google Ads API team.
>
> Can you please confirm if you have already setup logging on your end? If 
> you haven't, here's a link 
> 
>  to 
> our logging documentation for the .NET client library. Once logging has 
> been setup, kindly provide to us the complete request 
> 
>  and response 
> 
>  logs 
> with request ID 
> 
>  via *Reply privately to author* option so we can further investigate. 
> Also, can you confirm if you are encountering the same issue using other 
> Google Ads API methods?
>
> Regards,
> [image: Google Logo] Google Ads API Team 
>
> ref:_00D1U1174p._5004Q2jZbkg:ref
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/b212bac9-2060-47fa-958a-651611bf3d18n%40googlegroups.com.


Re: All Api request are stucked without any response

2023-03-16 Thread Zied Chaari
Hi Zweitze,

Thanks for your reply. 
You're right I have created a new .Net Core project and it's working.

On Wednesday, March 15, 2023 at 4:43:51 PM UTC Zweitze wrote:

> You are not alone in this situation, for instance see this topic 
> <https://groups.google.com/u/1/g/adwords-api/c/v_7nqybKIck/m/L-dbqF5TAAAJ> 
> and this topic 
> <https://groups.google.com/u/1/g/adwords-api/c/y4oeqGQHqUI/m/_SZmBNhCBQAJ>
> .
> The problem is in the client library for .NET, when your target is .NET 
> Framework. More info in these threads.
>
>
> On Wednesday, March 15, 2023 at 8:53:51 AM UTC+1 Zied Chaari wrote:
>
>> Hi,
>>
>> I have already setup the logging in my end as you can see in my code, 
>> nothing is hapenning my program is stuck on the highlighted yellow line and 
>> nothing is added to my log file.
>>
>> On Wednesday, March 15, 2023 at 7:09:23 AM UTC Google Ads API Forum 
>> Advisor wrote:
>>
>>> Hi Zied,
>>>
>>> Thank you for reaching out to the Google Ads API team.
>>>
>>> Can you please confirm if you have already setup logging on your end? If 
>>> you haven't, here's a link 
>>> <https://developers.google.com/google-ads/api/docs/client-libs/dotnet/logging>
>>>  to 
>>> our logging documentation for the .NET client library. Once logging has 
>>> been setup, kindly provide to us the complete request 
>>> <https://developers.google.com/google-ads/api/docs/concepts/field-service#request>
>>>  and response 
>>> <https://developers.google.com/google-ads/api/docs/concepts/field-service#response>
>>>  logs 
>>> with request ID 
>>> <https://developers.google.com/google-ads/api/docs/concepts/call-structure#request-id>
>>>  via *Reply privately to author* option so we can further investigate. 
>>> Also, can you confirm if you are encountering the same issue using other 
>>> Google Ads API methods?
>>>
>>> Regards,
>>> [image: Google Logo] Google Ads API Team 
>>>
>>> ref:_00D1U1174p._5004Q2jZbkg:ref
>>>
>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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


Re: All Api request are stucked without any response

2023-03-16 Thread Zied Chaari
I'm facing the same problem, my project is .NET client library I've tried 
all new versions V12 and V13 and they are not working. The only working one 
is V11 which will be not usefull 31/01.
Is there any urgent fix you'll do in the future so we can use V12 or V13 
with .NET project not .NET Core? 

On Wednesday, March 15, 2023 at 6:33:06 PM UTC Google Ads API Forum Advisor 
wrote:

> Hi Zweitze,
>
> Thank you so much for pinpointing on the issue related to .NET client 
> library. I agree with the shared issue tracker posts and it should further 
> help down to .Net client library users to understand the issue going 
> forward. If any user facing same issue, then we can keep eye on provided 
> issue tracker tickets.
>
> Thank you!!
>
> Regards,
> [image: Google Logo] Google Ads API Team 
>
> ref:_00D1U1174p._5004Q2jZbkg:ref
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/3c7e9a5f-3033-44ca-b2e3-85a2d44db209n%40googlegroups.com.


Re: All Api request are stucked without any response

2023-03-17 Thread Zied Chaari
Hi,

Even with UseGrpcCore = true it's not working. 
I'm using .NET framework 4.8.

GoogleAdsConfig configGoogleAdsApi = new GoogleAdsConfig
{
DeveloperToken = "DEVELOPER_TOKEN",
OAuth2ClientId = "CLIENT_ID",
OAuth2ClientSecret = "CLIENT_SECRET",
OAuth2RefreshToken = "REFRESH_TOKEN",
UseGrpcCore = true
};

GoogleAdsClient client = new 
GoogleAdsClient(configGoogleAdsApi);

GeoTargetConstantServiceClient geoService = 
client.GetService(Services.V13.GeoTargetConstantService);
string locale = "en";
string countryCode = "GB";
String[] locations = { "london" };

SuggestGeoTargetConstantsRequest request = new 
SuggestGeoTargetConstantsRequest()
{
Locale = locale,
CountryCode = countryCode,
LocationNames = new 
SuggestGeoTargetConstantsRequest.Types.LocationNames()
};

request.LocationNames.Names.AddRange(locations);
try
{
SuggestGeoTargetConstantsResponse response = 
geoService.SuggestGeoTargetConstants(request);
}
catch (Exception E)
{

}

On Thursday, March 16, 2023 at 6:20:04 PM UTC Google Ads API Forum Advisor 
wrote:

> Hi Zweitze, 
>
> Thank you for coming back to us. I hope you are doing well today.
>
> Moving forward to your concern, upon checking there is a related issue 
> titled *“**Document that programs may hang after upgrading to 14.0.0+ 
> #488* *”* created 
> on github issue (googleads/google-ads-dotnet) which has a latest response. 
> Could you please try if this will work on your end?
>
> GoogleAdsConfig config = new GoogleAdsConfig();
> config.UseGrpcCore = true;
> GoogleAdsClient client = new GoogleAdsClient(config);
>
> In addition, please see *Supported Frameworks:*
>  
>
>- .NET Framework 4.7.2+ (net472) 
>- .NET Standard 2.1 (netstandard2.1) 
>- .NET 5.0 (net5.0) 
>- .NET Core 3.1 (netcoreapp3.1) 
>
>
> The library doesn't have an explicit build target for .NET 6.0 (net6.0) 
> yet. However, you can use the library with a binary built for .NET 6.0, 
> since netstandard2.1 is compatible with .NET 6.0.
>
> Have a great day.
>
> Regards,
> [image: Google Logo] Google Ads API Team 
>
> ref:_00D1U1174p._5004Q2jZbkg:ref
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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


Re: All Api request are stucked without any response

2023-03-22 Thread Zied Chaari
Hey Goolge,

Any updates on this one? I want to know if you'll have any update before 
the sunset of V11. 

On Friday, March 17, 2023 at 2:28:38 PM UTC Google Ads API Forum Advisor 
wrote:

> Hi Zied,
>  
>
> Thank you for sending updates. Allow me to raise this concern to the rest 
> of our team and we will provide updates shortly. 
>  
>
> Regards,
> [image: Google Logo] Google Ads API Team 
>
> ref:_00D1U1174p._5004Q2jZbkg:ref
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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


Re: All Api request are stucked without any response

2023-03-23 Thread Zied Chaari
Hey  Zweitze,

I think they have fixed the issue. #488 

I have tried the new library and it's working.

On Monday, March 20, 2023 at 1:46:37 PM UTC Zweitze wrote:

> Hello Forum Advisor,
>
> On Thursday, March 16, 2023 at 7:20:04 PM UTC+1 Google Ads API Forum 
> Advisor wrote:
>
> Hi Zweitze, 
>
> Thank you for coming back to us. I hope you are doing well today.
>
> Moving forward to your concern, upon checking there is a related issue 
> titled *“**Document that programs may hang after upgrading to 14.0.0+ 
> #488* *”* created 
> on github issue (googleads/google-ads-dotnet) which has a latest response. 
> Could you please try if this will work on your end?
>
> GoogleAdsConfig config = new GoogleAdsConfig();
> config.UseGrpcCore = true;
> GoogleAdsClient client = new GoogleAdsClient(config);
>
> In addition, please see *Supported Frameworks:*
>  
>
>- .NET Framework 4.7.2+ (net472) 
>- .NET Standard 2.1 (netstandard2.1) 
>- .NET 5.0 (net5.0) 
>- .NET Core 3.1 (netcoreapp3.1) 
>
>
> The library doesn't have an explicit build target for .NET 6.0 (net6.0) 
> yet. However, you can use the library with a binary built for .NET 6.0, 
> since netstandard2.1 is compatible with .NET 6.0.
>
> Have a great day.
>
>
> Please check that issue that you referenced.
> Check who reported that particular issue. Yes, that was me.
>
> And the issue is about documentation. And yes, this breaking change is 
> still not documented anywhere, except in issues #480 
>  and #488 
> 
> It took me four weeks (!) to get the projects in my solution working with 
> async calls, and I think it should be fair to warn others about this 
> change. That is the reason I point others to the issues - when I was facing 
> the problem it took me two days to find the explanation, the then well- 
> buried issue #480.
>
> So it's working for me - after making everything async, as was suggested 
> in #480  
> About the suggestion you make here - I already checked that long ago. When 
> instantiating GoogleAdsConfig, it's member UseGrpcCore is already set to 
> true. Setting it to true once more does not help.
>
> About your question on the platform: see the issue I created.
>
>
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/288d0f1e-b1a5-4553-9e46-421c557e7410n%40googlegroups.com.


Update CrmBasedUserList Name and Description

2018-11-22 Thread Zied Chaari
Hello,

I'm trying to update my CRM based User List, name and description, using a 
Test Account, I'm getting this error "USER_LIST_MUTATE_NOT_SUPPORTED".

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

https://adwords.google.com/api/adwords/rm/v201809";>
https://adwords.google.com/api/adwords/cm/v201809";>x
https://adwords.google.com/api/adwords/cm/v201809";>xx
https://adwords.google.com/api/adwords/cm/v201809";>unknown 
(AwApi-DotNet/24.1.0, Common-Dotnet/9.4.0, .NET CLR/4.0.30319.42000, 
OAuthServiceAccountFlow, gzip)


http://www.w3.org/2001/XMLSchema-instance"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
https://adwords.google.com/api/adwords/rm/v201809";>

https://adwords.google.com/api/adwords/cm/v201809";>SET

736365788
Audience Google 8 - Update
Audience Google 8 - Update






-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads 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/6a7e5e59-8373-4114-a103-906a9ac5d12c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Update CrmBasedUserList, Name and Description

2018-11-22 Thread Zied Chaari
Hello,

I'm trying to update my UserList name and description, and I get this error 
message "USER_LIST_MUTATE_NOT_SUPPORTED".

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

https://adwords.google.com/api/adwords/rm/v201809";>
https://adwords.google.com/api/adwords/cm/v201809";>x
https://adwords.google.com/api/adwords/cm/v201809";>xxx
https://adwords.google.com/api/adwords/cm/v201809";>unknown 
(AwApi-DotNet/24.1.0, Common-Dotnet/9.4.0, .NET CLR/4.0.30319.42000, 
OAuthServiceAccountFlow, gzip)


http://www.w3.org/2001/XMLSchema-instance"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
https://adwords.google.com/api/adwords/rm/v201809";>

https://adwords.google.com/api/adwords/cm/v201809";>SET

736365788
Audience Google 8 - Update
Audience Google 8 - Update






-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads 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/7e36c061-ef36-45c2-b466-42da46278dd6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Update CrmBasedUserList Name and Description

2018-11-23 Thread Zied Chaari
Hi Luis,

My ClientCustomerId: 7482331905

My SOAP response:
http://schemas.xmlsoap.org/soap/envelope/";>

https://adwords.google.com/api/adwords/rm/v201809";
xmlns="https://adwords.google.com/api/adwords/cm/v201809";>
00057b43356507410a81300eae09f792
AdwordsUserListService
mutate
1
172




soap:Client
[UserListError.USER_LIST_MUTATE_NOT_SUPPORTED @ 
operations[0].operand]

https://adwords.google.com/api/adwords/cm/v201809";
xmlns:ns2="https://adwords.google.com/api/adwords/rm/v201809";>
[UserListError.USER_LIST_MUTATE_NOT_SUPPORTED @ 
operations[0].operand]
ApiException
http://www.w3.org/2001/XMLSchema-instance"; 
xsi:type="ns2:UserListError">
operations[0].operand

operations
0


operand


UserListError.USER_LIST_MUTATE_NOT_SUPPORTED
UserListError
USER_LIST_MUTATE_NOT_SUPPORTED







-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads 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/6de5fcac-a884-44fb-acca-79075ebaa894%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Update CrmBasedUserList Name and Description

2018-11-26 Thread Zied Chaari
Hi Luis,

Always the same problem.

*This is my code: (.Net)*
UserList userList = new UserList()
{
id = long.Parse(SAudience.Social_ID),
name = SAudience.Audience.Name,
listType = UserListType.CRM_BASED
};

UserListOperation operation = new UserListOperation
{
operand = userList,
@operator = Operator.SET
};

UserListReturnValue result = userListService.mutate(new UserListOperation[]
{
operation
});

*Request (I'm using a Test Account):*
http://schemas.xmlsoap.org/soap/envelope/";>

https://adwords.google.com/api/adwords/rm/v201809";>
https://adwords.google.com/api/adwords/cm/v201809";>7482331905
https://adwords.google.com/api/adwords/cm/v201809";>x
https://adwords.google.com/api/adwords/cm/v201809";>unknown 
(AwApi-DotNet/24.1.0, Common-Dotnet/9.4.0, .NET CLR/4.0.30319.42000, 
OAuthServiceAccountFlow, gzip)


http://www.w3.org/2001/XMLSchema-instance"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
https://adwords.google.com/api/adwords/rm/v201809";>

https://adwords.google.com/api/adwords/cm/v201809";>SET

736365788
Audience Google 8 - Update
CRM_BASED






*Response:*
http://schemas.xmlsoap.org/soap/envelope/";>

https://adwords.google.com/api/adwords/rm/v201809"; 
xmlns="https://adwords.google.com/api/adwords/cm/v201809";>
00057b93aa6536510a812f942709cc4f
AdwordsUserListService
mutate
1
190




soap:Client
[UserListError.USER_LIST_MUTATE_NOT_SUPPORTED @ 
operations[0].operand]

https://adwords.google.com/api/adwords/cm/v201809"; 
xmlns:ns2="https://adwords.google.com/api/adwords/rm/v201809";>
[UserListError.USER_LIST_MUTATE_NOT_SUPPORTED 
@ operations[0].operand]

ApiException
http://www.w3.org/2001/XMLSchema-instance"; 
xsi:type="ns2:UserListError">
operations[0].operand

operations
0


operand



UserListError.USER_LIST_MUTATE_NOT_SUPPORTED
UserListError

USER_LIST_MUTATE_NOT_SUPPORTED







-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads 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/fb8d2e3e-39ad-4d3e-99f9-36a17844199c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Update CrmBasedUserList Name and Description

2018-11-27 Thread Zied Chaari
Thank you Thanet, I'm waiting your update.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads 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/8ff9732a-b559-4684-bc5e-fc64d748fc3f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Update CrmBasedUserList Name and Description

2018-12-04 Thread Zied Chaari
Hi Thanet,

Any update about this issue.


On Tuesday, November 27, 2018 at 11:18:22 AM UTC+1, Thanet Knack 
Praneenararat (AdWords API Team) wrote:
>
> Hello Zied,
>
> I'm confirming this with Engineering.
> With recent changes in user list policy, it might affect the user list in 
> the test accounts too.
> I'll update this thread once I have more info.
>
> Best,
> Thanet, AdWords API Team
>
> On Tuesday, November 27, 2018 at 1:23:28 AM UTC+9, Zied Chaari wrote:
>>
>> Hi Luis,
>>
>> Always the same problem.
>>
>> *This is my code: (.Net)*
>> UserList userList = new UserList()
>> {
>> id = long.Parse(SAudience.Social_ID),
>> name = SAudience.Audience.Name,
>> listType = UserListType.CRM_BASED
>> };
>>
>> UserListOperation operation = new UserListOperation
>> {
>> operand = userList,
>> @operator = Operator.SET
>> };
>>
>> UserListReturnValue result = userListService.mutate(new 
>> UserListOperation[]
>> {
>> operation
>> });
>>
>> *Request (I'm using a Test Account):*
>> http://schemas.xmlsoap.org/soap/envelope/";>
>> 
>> https://adwords.google.com/api/adwords/rm/v201809";>
>> https://adwords.google.com/api/adwords/cm/v201809
>> ">7482331905
>> https://adwords.google.com/api/adwords/cm/v201809
>> ">x
>> https://adwords.google.com/api/adwords/cm/v201809";>unknown 
>> (AwApi-DotNet/24.1.0, Common-Dotnet/9.4.0, .NET CLR/4.0.30319.42000, 
>> OAuthServiceAccountFlow, gzip)
>> 
>> 
>> http://www.w3.org/2001/XMLSchema-instance"; 
>> xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
>> https://adwords.google.com/api/adwords/rm/v201809
>> ">
>> 
>> https://adwords.google.com/api/adwords/cm/v201809";>SET
>> 
>> 736365788
>> Audience Google 8 - Update
>> CRM_BASED
>> 
>> 
>> 
>> 
>> 
>>
>> *Response:*
>> http://schemas.xmlsoap.org/soap/envelope/";>
>> 
>> https://adwords.google.com/api/adwords/rm/v201809"; xmlns="
>> https://adwords.google.com/api/adwords/cm/v201809";>
>> 00057b93aa6536510a812f942709cc4f
>> AdwordsUserListService
>> mutate
>> 1
>> 190
>> 
>> 
>> 
>> 
>> soap:Client
>> [UserListError.USER_LIST_MUTATE_NOT_SUPPORTED @ 
>> operations[0].operand]
>> 
>> https://adwords.google.com/api/adwords/cm/v201809"; xmlns:ns2="
>> https://adwords.google.com/api/adwords/rm/v201809";>
>> 
>> [UserListError.USER_LIST_MUTATE_NOT_SUPPORTED @ 
>> operations[0].operand]
>> 
>> ApiException
>> http://www.w3.org/2001/XMLSchema-instance"; xsi:type="ns2:UserListError">
>> operations[0].operand
>> 
>> operations
>> 0
>> 
>> 
>> operand
>> 
>> 
>> 
>> UserListError.USER_LIST_MUTATE_NOT_SUPPORTED
>> UserListError
>> 
>> USER_LIST_MUTATE_NOT_SUPPORTED
>> 
>> 
>> 
>> 
>> 
>> 
>>
>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads 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/6fbade50-5a87-4dde-9782-a14469085dbf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Update CrmBasedUserList Name and Description

2019-01-29 Thread Zied Chaari
Hi Guys,

Sorry for the too late response.
It's work now.

Thank you all for your help!

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads 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/a69ec216-fff5-41ab-8fd8-ac663370ed9a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Graph API Explorer Google AdWords

2019-01-31 Thread Zied Chaari
Hi,

Is there a way to explore google adwords API online? like Graph API 
Explorer for Facebook.

Cheers

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads 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/e151bf80-5680-4df6-bf03-47d6e1306897%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Graph API Explorer Google AdWords

2019-02-01 Thread Zied Chaari
Thanks for the quick response :)

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads 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/8b3f3842-9ad9-4e68-a82e-46322f16009c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Mutate members progress status

2019-02-01 Thread Zied Chaari
Hi,

Is there an API that return the mutate member status. 
For example I made two mutate member action on one CrmBasedUserList. I want 
to know for each action the status (in progress, complete, ...), number of 
received contact and the percentage of processing.

Cheers  

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads 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/5e954fdf-8675-4b57-a5ec-0fdf1909d769%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Mutate members progress status

2019-02-01 Thread Zied Chaari
OK, Thank you :)

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads 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/d9d35fc3-d4cd-4eaa-bf64-232af62638f0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Get Keyword Idea API

2019-02-28 Thread Zied Chaari
Hi,

When I'm trying to reproduce this 

 
example 
:
 
EXAMPLE 

 to 
retrieve keywords, 
i'm getting results like this: bakery 50bca43, bakery 46a29ba6, ...

what is 50bca43 and 46a29ba6? and why i'm not not getting a full words like 
the screen bellow


[image: Capture.PNG] 
Thanks 

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads 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/fde97a2a-881d-4ccb-bfd5-83ae7c72f15c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Get Keyword Idea API

2019-03-01 Thread Zied Chaari
Thanks Dorian,

So if i try to call this API with a production account and a verified 
access token, I will get real results?

Cheers,
Zied

On Friday, March 1, 2019 at 9:34:55 AM UTC+1, Dorian Kind wrote:
>
> Hi Zied,
>
> these keyword idea results are indicative of a *test account*. You'll 
> only get real results from the TargetingIdeaService of *production* 
> accounts.
>
> Cheers,
> Dorian
>
> On Thursday, 28 February 2019 18:11:36 UTC+1, Zied Chaari wrote:
>>
>> Hi,
>>
>> When I'm trying to reproduce this 
>> <https://developers.google.com/adwords/api/docs/samples/csharp/optimization#get-keywords-related-to-a-seed-keyword>
>>  
>> example 
>> <https://developers.google.com/adwords/api/docs/samples/csharp/optimization#get-keywords-related-to-a-seed-keyword>:
>>  
>> EXAMPLE 
>> <https://developers.google.com/adwords/api/docs/samples/csharp/optimization#get-keywords-related-to-a-seed-keyword>
>>  to 
>> retrieve keywords, 
>> i'm getting results like this: bakery 50bca43, bakery 46a29ba6, ...
>>
>> what is 50bca43 and 46a29ba6? and why i'm not not getting a full words 
>> like the screen bellow
>>
>>
>> [image: Capture.PNG]
>> Thanks
>>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads 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/3228c2e1-2867-4a6a-84f3-7974160a0908%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Campaign Criterion Service Error

2019-03-04 Thread Zied Chaari
Hi everyone,

I'm trying add a group of criteria to my campaign, like bellow, but I'm 
getting an error message saying CANNOT_ADD_CRITERIA_TYPE.

You could find request and response logs attached.

using (CampaignCriterionService campaignCriterionService = 
> (CampaignCriterionService)user.GetService(AdWordsService.v201809.CampaignCriterionService))
> {
> Location california = new Location()
> {
> id = 21137L
> };
> Location mexico = new Location()
> {
> id = 2484L
> };
> Gender Male = new Gender()
> {
> genderType = GenderGenderType.GENDER_MALE
> };
> List criteria = new List()
> {
> california,
> mexico,
> Male
> };
> List operations = new 
> List();
> foreach (Criterion criterion in criteria)
> {
> CampaignCriterionOperation operation = new 
> CampaignCriterionOperation()
> {
> operand = new CampaignCriterion()
> {
> campaignId = 1723312294,
> criterion = criterion
> },
> @operator = Operator.ADD
> };
> operations.Add(operation);
> }
> try
> {
> CampaignCriterionReturnValue retVal = 
> campaignCriterionService.mutate(operations.ToArray());
> }
>     catch (Exception e)
> {
> throw;
> }
> } 


Many Thanks,
Zied Chaari
 

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads 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/5d0303b7-5fcf-4ffe-858b-d3e5e0cb0b2b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


request.xml
Description: XML document


response.xml
Description: XML document


LocationCriterionService return INVALID_PREDICATE_OPERATOR error

2019-03-08 Thread Zied Chaari
Hi folks,

I'm trying to get locations using LocationCriterionService. When I change 
the predicate to "ContainsAny" or "Contains", I get 
INVALID_PREDICATE_OPERATOR error.

Is LocationCriterionService support only "In" predicate? 

Thanks;
Zied Chaari

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads 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/5f40ecdf-2068-4145-aa11-b21e42f3cdd0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: LocationCriterionService return INVALID_PREDICATE_OPERATOR error

2019-03-11 Thread Zied Chaari
Hi Bharani,
>
>
As I know their is now label in the location entity, so how can I filter by 
label using ContainAny?

The idea is to reproduce the dropdown location component bellow, when user 
start typing the location name, I give him location suggestion by calling 
LocationCriterionService.

[image: Capture.PNG]


Thanks,
Zied

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads 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/1b43e508-7c7c-4992-9861-e7e720cdb309%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Search for Interest API

2019-03-11 Thread Zied Chaari
Hi all,

Is their an end point that return user interests based on keyword? Like the 
UI bellow.

[image: Capture.PNG] 

Thanks,

Zied

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads 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/8815a53c-1b3a-4955-9bf1-8dc97884ef55%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


AdGroupCriterionService AdGroupCriterionError.CONCRETE_TYPE_REQUIRED

2019-03-12 Thread Zied Chaari
Hi all,

When I'm trying to add a new AdGroupCriterion, I get this 
error AdGroupCriterionError.CONCRETE_TYPE_REQUIRED.
You can find attached to request and response log. And bellow the code 
source.

Thanks,
Zied

using (AdGroupCriterionService adGroupCriterionService = 
> (AdGroupCriterionService)user.GetService(AdWordsService.v201809.AdGroupCriterionService))
> {
> Gender Male = new Gender()
> {
> id = 11,
> genderType = GenderGenderType.GENDER_FEMALE,
> type = CriterionType.GENDER
> };
> AgeRange ageRange = new AgeRange() {
> id = 503004,
> ageRangeType = AgeRangeAgeRangeType.AGE_RANGE_45_54,
> type = CriterionType.AGE_RANGE
> };
> List criteria = new List()
> {
> Male,
> ageRange
> };
> List operations = new 
> List();
> foreach (Criterion criterion in criteria)
> {
> AdGroupCriterionOperation operation = new 
> AdGroupCriterionOperation()
> {
> operand = new AdGroupCriterion()
> {
> adGroupId = 57651502050,
> criterion = criterion
> },
> @operator = Operator.ADD
> };
> operations.Add(operation);
> }
> try
> {
> AdGroupCriterionReturnValue retVal = 
> adGroupCriterionService.mutate(operations.ToArray());
> }
> catch (Exception e)
> {
> throw;
> }
> }

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads 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/965fa2b1-3eab-4328-9864-334fb51fa71c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


request.xml
Description: XML document


response.xml
Description: XML document


Re: AdGroupCriterionService AdGroupCriterionError.CONCRETE_TYPE_REQUIRED

2019-03-13 Thread Zied Chaari
Hi Bharani,
>
>
Thank you for the attached file.
I reproduce my code with Google Ads API V1.0 and it's working fine.

Just a quick question, do you think that I should use Google Ads Api in the 
future or continue with Google AdWords? 
Cause between us I think I will migrate to Google Ads 

Thanks :) 

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads 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/2d6c6e43-5edb-40a1-ac9f-e7d351af4d2e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


DataUploadResult - Google Ads Api V1.0

2019-03-15 Thread Zied Chaari
Hi all,

How can I get the Data Upload status for my CRM Based User List using 
Google Ads Api V1.0? 

When I was using google AdWords Api, I could find the status in the 
DataUploadResult field by calling AdwordsUserListService.

Thanks,
Zied

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads 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/0b59019e-6562-4511-9ce0-2a11752895e1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Get Keyword Idea - return DeadlineExceededErrors

2019-03-28 Thread Zied Chaari
Hi all,

Sometimes when i'm trying to get keywords Idea, using 
KeywordPlanIdeaServiceClient Service (Google Ads Api V1.0), I'm getting an 
error saying DeadlineExceededError.
What should I do?

You can find my code bellow.

public dynamic searchKeyword(GoogleAdsClient client, string customerId, 
> string keywordTexts, string pageUrl)
> {
> List keyword_results = new List();
> KeywordPlanIdeaServiceClient keywordPlanIdeaService = 
> client.GetService(Services.V1.KeywordPlanIdeaService);
> 
> GenerateKeywordIdeasRequest request = new 
> GenerateKeywordIdeasRequest()
> {
> CustomerId = customerId
> };
> if (keywordTexts.Length == 0)
> {
> request.UrlSeed = new UrlSeed()
> {
> Url = pageUrl
> };
> }
> else if (string.IsNullOrEmpty(pageUrl))
> {
> request.KeywordSeed = new KeywordSeed();
> request.KeywordSeed.Keywords.Add(keywordTexts);
> }
> else
> {
> request.KeywordAndUrlSeed = new KeywordAndUrlSeed();
> request.KeywordAndUrlSeed.Url = pageUrl;
> request.KeywordAndUrlSeed.Keywords.Add(keywordTexts);
> }
> request.Language = ResourceNames.LanguageConstant(1000);
> try
> {
> GenerateKeywordIdeaResponse response = 
> keywordPlanIdeaService.GenerateKeywordIdeas(request);
> foreach (GenerateKeywordIdeaResult result in 
> response.Results)
> {
> KeywordPlanHistoricalMetrics metrics = 
> result.KeywordIdeaMetrics;
> dynamic keyword_result = new ExpandoObject();
> keyword_result.Text = result.Text;
> keyword_result.AvgMonthlySearches = 
> metrics.AvgMonthlySearches ?? 0;
> keyword_result.Competition = metrics.Competition;
> keyword_results.Add(keyword_result);
> }
> }
> catch (Exception e)
> {
> throw;
> }
> return keyword_results.OrderByDescending(K => 
> K.AvgMonthlySearches);
> }


Thanks,
Zied 

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads 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/01456b2d-a07d-40e2-9553-721fa54854dc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Get Keyword Idea - return DeadlineExceededErrors

2019-03-29 Thread Zied Chaari
Hi Anthony,

How can I get my request and response?
I'm using Google Ads API (not Google AdWords API) and Fiddler can't catch 
the traffic coming from the API.
Fiddler can only catch request and response from AdWords API.

Thanks,
Zied

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads 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/02209562-aa42-4e31-a9f3-e5d3bc134438%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Add sitelink to campaign - Google Ads API

2019-04-03 Thread Zied Chaari
Hi All,

Could you please give me an example of Adding (with creation) of sitelink 
to an existing campaign, using Google Ads API (.Net).
You already have an example but using Google Adwords API:
https://developers.google.com/adwords/api/docs/samples/csharp/extensions#add-sitelinks-to-a-campaign


Thanks,
Zied

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads 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/f29a0d74-bde9-41f5-bdbb-18eaae3b8bbb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Mutate Validation - Google Ads API

2019-04-15 Thread Zied Chaari
Hi All,

I'm using Goolge Ads API V1.0, and I want to validate the creation of any 
entity (campaig, adgroup,...). In the Google AdWords API, I just have to 
change the Request Header validateOnly attributes like bellow:

campaignExtensionSettingService.RequestHeader.validateOnly = true;

How can I do the same operation but using the Google Ads API V1.0

Many Thanks,
Zied

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads 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/9d65e87f-c462-41e0-afde-de02b4dfee17%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Campaign Creation - Google Ads API

2019-04-18 Thread Zied Chaari
Hi all,

Is there a way to create a campaign with their elements (AdGroup, Ads, 
Keyword, Criteria, Extension, ...) with only one call?
Like Facebook is doing, I build a campaign object with all its elements 
(AdSet, Ads, ...), and the Facebook API create all the objects.

PS: I'm using Google Ads API V1.0

Thank You;
Zied
 

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads 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/875ff192-8d71-4ad4-895c-f6c90e28ebf2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Campaign Creation - Google Ads API

2019-04-19 Thread Zied Chaari
Hello Sai,

Thank you for your quick response.
Is there an example with Google Ads API not Google AdWords API?

Regards,
Zied

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads 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/2fa84855-b0e6-4c0e-898b-dfbaaa539486%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Campaign Creation - Google Ads API

2019-04-19 Thread Zied Chaari
Ok, Thank you

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads 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/aadc2c91-b9e0-40ff-bc7d-2afb7b10180c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Campaign Creation - Google Ads API

2019-04-19 Thread Zied Chaari
Hi Sai,

Another question please,
Is there a way to validate my whole campaign using the batch job?

Cause when I added this line of code =>
batchJobService.RequestHeader.validateOnly = true;,
I got an exception on this line
https://github.com/googleads/googleads-dotnet-lib/blob/master/examples/AdWords/CSharp/v201809/CampaignManagement/AddCompleteCampaignsUsingBatchJob.cs#L124,
saying
object :Object reference not set to an instance of an object

Thanks
Zied



On Fri, Apr 19, 2019 at 5:19 PM Zied Chaari  wrote:

> Ok, Thank you
>
> --
> --
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
> Also find us on our blog:
> https://googleadsdeveloper.blogspot.com/
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
>
> You received this message because you are subscribed to the Google
> Groups "AdWords API and Google Ads API Forum" group.
> To post to this group, send email to adwords-api@googlegroups.com
> To unsubscribe from this group, send email to
> adwords-api+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/adwords-api?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "AdWords API and Google Ads 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/aadc2c91-b9e0-40ff-bc7d-2afb7b10180c%40googlegroups.com
> <https://groups.google.com/d/msgid/adwords-api/aadc2c91-b9e0-40ff-bc7d-2afb7b10180c%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads 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/CANi0-itGXs4yZhkgX%3Do%3DF3BWoXiwW_9fLWjzJb7uppkt_ANoAQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


How to get campaign with all elements (adGroups, ads) after mutate?

2019-05-10 Thread Zied Chaari
Hi All,

Is there a way to get campaign with all their elements (adGroup, ads) after 
performing a Mutate action?
I asked this question, because a want to get AdGroup and Ads status after 
updating campaign status.
I'm using Google AdWords API. You can find bellow my piece of code.

using (Google.Api.Ads.AdWords.v201809.CampaignService campaignService = 
> (Google.Api.Ads.AdWords.v201809.CampaignService)user.GetService(AdWordsService.v201809.CampaignService))
> {
> Google.Api.Ads.AdWords.v201809.Campaign campaign = new 
> Google.Api.Ads.AdWords.v201809.Campaign
> {
> id = campaignId,
> status = CampaignStatus.ENABLED
> };
> Google.Api.Ads.AdWords.v201809.CampaignOperation operation 
> = new Google.Api.Ads.AdWords.v201809.CampaignOperation
> {
> operand = campaign,
> @operator = Operator.SET
> };
> try
> {
> CampaignReturnValue retVal = 
> campaignService.mutate(new 
> Google.Api.Ads.AdWords.v201809.CampaignOperation[]
> {
> operation
> });
> AddAPILog(SocialMedia.Google, "ActiveCampaign", "", 
> campaign, retVal, "PUT", "ActiveCampaign", user.Config.OAuth2RefreshToken, 
> null, true);
> return true;
> }
> catch (Exception e)
> {
> AddAPILog(SocialMedia.Google, "ActiveCampaign", "", 
> campaign, "", "PUT", "ActiveCampaign", user.Config.OAuth2RefreshToken, 
> null, true);
> return false;
> }
> }


Thanks,
Zied 

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads 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/ed542d99-3fc2-4571-b250-48246eb97223%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Campaign Insights breakdown

2019-05-15 Thread Zied Chaari
Hi All,

I'm using Google AdWords API, and I want to get my campaign insights beaked 
by Date, Age, Gender and Device.
Any advise please? 

You can find bellow how I'm getting my campaign insights but without 
breakdown.

AdWordsUser user = new AdWordsUser(config);


ReportQuery query = new ReportQueryBuilder()
   .Select("CampaignId", "CampaignName", "Clicks", 
"Impressions", "Amount", "Cost", "Ctr", "AverageCpc", "AverageCpm")
   .From(ReportDefinitionReportType.CAMPAIGN_PERFORMANCE_REPORT)
   .Where("CampaignStatus").In("ENABLED", "PAUSED")
   .Where("CampaignId").In(campaign_ids)
   .During(ReportDefinitionDateRangeType.LAST_7_DAYS)
   .Build();

ReportUtilities reportUtilities = new ReportUtilities(user, 
"v201809", query, DownloadFormat.GZIPPED_XML.ToString());

try
{
using (ReportResponse response = 
reportUtilities.GetResponse())
{
using (GZipStream gzipStream = new 
GZipStream(response.Stream, CompressionMode.Decompress))
{
using (var report = new 
AwReport(new AwXmlTextReader(gzipStream), ""))
{
if(report != null && report.Rows != null && 
report.Rows.Count() > 0)
{
CampaignReportRow insights = new 
CampaignReportRow()
{
Clicks = report.Rows.Select(R => 
R.Clicks).Sum(),
Amount = report.Rows.Select(R => 
R.Amount).Sum(),
Cost = report.Rows.Select(R => 
R.Cost).Sum(),
ImpressionReach = report.Rows.Select(R 
=> R.ImpressionReach).Sum(),
Impressions = report.Rows.Select(R => 
R.Impressions).Sum(),
Ctr = report.Rows.Select(R => 
R.Ctr).Average(),
AverageCpc = report.Rows.Select(R => 
R.AverageCpc).Average(),
AverageCpm = report.Rows.Select(R => 
R.AverageCpm).Average(),
};
return insights;
}
else
{
return new CampaignReportRow();
}
}
}
}
}
catch (Exception e)
{
throw new System.ApplicationException("Failed to download 
and parse report.", e);
}

Cheers,
Zied

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads 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/f9df0537-f782-497a-9679-1caf8c1b34ee%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Campaign Insights breakdown

2019-05-16 Thread Zied Chaari
Hi Bharani,
>
>
Should I put the Device and Date attributes in the select element, like 
bellow?
.Select("CampaignId", "CampaignName", "Clicks", "Impressions", "Amount", 
"Cost", "Ctr", "AverageCpc", "AverageCpm", "Device", "Date")

I ask you this question because I sill use my Test Ad Account, so all my 
created campaign return zero metrics.

Thanks,
Zied

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads 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/11aa0143-061a-4bec-b425-56bb63cfae07%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Get Campaign Criterion - Empty List

2019-05-17 Thread Zied Chaari
Hello All,

I get an empty list when I'm trying to get my campaign criterion. I want to 
get my campaign Schedule.
You can find attached my request ant response files.

PS: I'm using Google AdWords API.

Cheers,
Zied.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads 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/299488b4-3e76-4253-a321-cab3e8b8db78%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


request.xml
Description: XML document


response.xml
Description: XML document


Re: Get Campaign Criterion - Empty List

2019-05-20 Thread Zied Chaari
You are right.

Thanks Peter.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads 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/0a1cbdfc-89ac-439e-a233-18eeb5e04368%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Campaign Insights breakdown

2019-05-22 Thread Zied Chaari
Hi Bharani,
>
>
I'm getting empty list of insights when I'm trying to get my campaign 
insights split by date or by device.
I made the same call yesterday (with date breakdown), and I could have some 
rows. But from today, I'm getting zero row.
I'm using a *Test account.*

Fiddler couldn't debug my request, so I don't have logs to provide them to 
you.

Thanks,
Zied.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads 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/f06c1416-4fa2-4dbb-b81f-8c04aa5b51e0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Campaign Insights breakdown

2019-05-23 Thread Zied Chaari
Hi Bharani,

I sent to you the required elements privately.

Thanks,
Zied 

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads 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/82d1061a-2907-40d7-a3e8-8b5cf5fe2be9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Campaign Insights breakdown

2019-05-24 Thread Zied Chaari
Hi Bharani,

Yes that's it, I didn't set the includeZeroImpressions to true. I thought 
it is a default value.

Thanks,
Zied

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads 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/9c9a4d4c-7f6e-4401-b46c-f6a41d5ac98e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Target Spend Bidding Strategy deprecation

2019-06-04 Thread Zied Chaari
Hi All,

According to the last post on the Google Ads Developer Blog the target 
spend strategy will be deprecated by the 31 of July.
My question is How can I use mu budgets to specify how much I'd like to 
spend for maximize clicks?

You can find bellow how I'm using the target spend as bidding strategy.

Campaign:

BiddingStrategyConfiguration biddingStrategyConfiguration = new 
BiddingStrategyConfiguration();
if(is_autobid)
{
biddingStrategyConfiguration.biddingStrategyType = 
BiddingStrategyType.TARGET_SPEND;
}
else
{
if(billing_event == "IMPRESSIONS")
{
biddingStrategyConfiguration.biddingStrategyType = 
BiddingStrategyType.MANUAL_CPM;
}
else if(billing_event == "LINK_CLICKS")
{
biddingStrategyConfiguration.biddingStrategyType = 
BiddingStrategyType.MANUAL_CPC;
}
}

campaign.biddingStrategyConfiguration = biddingStrategyConfiguration;

AdGroup:

BiddingStrategyConfiguration biddingStrategyConfiguration = new 
BiddingStrategyConfiguration();
if (is_autobid == false && billing_event == "IMPRESSIONS")
{
biddingStrategyConfiguration.bids = new Bids[]
{
new CpmBid()
{
bid = new Money()
{
 microAmount = long.Parse((bid_amount * 100).ToString())
}
}
};
}
else if (is_autobid == false && billing_event == "LINK_CLICKS")
{
biddingStrategyConfiguration.bids = new Bids[]
{
new CpcBid()
{
bid = new Money()
{
microAmount = long.Parse((bid_amount * 100).ToString())
}
}
};
}

is_autobid, billing_event and bid_amount are local variable I'm using into 
my code.

Many thanks,
Zied

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/4041e76c-734f-49e1-89f7-e5f36886c6c6%40googlegroups.com.


Re: Target Spend Bidding Strategy deprecation

2019-06-07 Thread Zied Chaari
Hello Sai,

I'm getting an error saying *Missing required field*, in the campaign 
operation, when I'm trying to not using the bidding strategy configuration. 
You could find bellow my amended code.

Campaign:

if(*is_autobid == false*)
{
BiddingStrategyConfiguration biddingStrategyConfiguration = new 
BiddingStrategyConfiguration();
if(billing_event == "IMPRESSIONS")
{
biddingStrategyConfiguration.biddingStrategyType = 
BiddingStrategyType.MANUAL_CPM;
}
else if(billing_event == "LINK_CLICKS")
{
biddingStrategyConfiguration.biddingStrategyType = 
BiddingStrategyType.MANUAL_CPC;
}
campaign.biddingStrategyConfiguration = biddingStrategyConfiguration;
}

I'm using the *batchJobService*, and I couldn't retrieve the request and 
response logs.

Thanks,
Zied




-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/03e316f0-c52d-48d9-b740-94e63fdd5abd%40googlegroups.com.


Re: Target Spend Bidding Strategy deprecation

2019-06-07 Thread Zied Chaari
Hi Sai,

I send you the required URL privately.

Many Thanks,
Zied

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/3f981dac-904d-4e74-9365-6f68ccde2626%40googlegroups.com.


Re: Target Spend Bidding Strategy deprecation

2019-06-07 Thread Zied Chaari
Hi Sai,

What bidding Strategy type should I use, if I want to use automatic bidding 
that maximize clicks? And as you know BiddingStrategyType.TARGET_SPEND will 
be deprecated by 31 of June.
If I ignore the campaign's biddingStrategyType 
(campaign.biddingStrategyConfiguration = null), I got the *Missing required 
field *error.

Thanks,
Zied

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/b219edba-4caf-46be-a069-4298991d62e6%40googlegroups.com.


Re: Target Spend Bidding Strategy deprecation

2019-06-10 Thread Zied Chaari
Hi,

Any updates on this.

Cheers,
Zied

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/6ded9b03-d05c-4bc6-a0ae-961d9c434472%40googlegroups.com.


Re: Target Spend Bidding Strategy deprecation

2019-06-11 Thread Zied Chaari
Hi Mike,

The problem I'm facing is when I try to add my campaign without specifying  
the biddingStrategyType, and with a daily budget, I got an error saying 
*Missing 
required field*, which is the  biddingStrategyType. 
Cause according to your last blog post, I should not use the bidding 
strategy type target spend in the future, if I want to maximize the clicks.
You can find bellow how I'm creating my campaign. Please correct me if 
there is any confusion.

*_Ad.AdSet.is_autobid*  = false; 

private List 
BuildCampaignOperations(SM.Data.Models.AdModel.Ad 
 _Ad, string camapignId, long budgetId, 
string action)
{
List 
operations = new List();
Google.Api.Ads.AdWords.v201809.Campaign campaign = new 
Google.Api.Ads.AdWords.v201809.Campaign()
{
id = string.IsNullOrEmpty(camapignId) ? NextId() : 
long.Parse(camapignId),
budget = new Budget()
{
budgetId = budgetId
}
};

if (action == "ADD")
{
campaign.name = _Ad.Name;
campaign.status = CampaignStatus.PAUSED;
}

BiddingStrategyConfiguration biddingStrategyConfiguration = new 
BiddingStrategyConfiguration();

if (*_Ad.AdSet.is_autobid* == false)
{
if (_Ad.AdSet.billing_event == "IMPRESSIONS")
{
biddingStrategyConfiguration.biddingStrategyType = 
BiddingStrategyType.MANUAL_CPM;
}
else if (_Ad.AdSet.billing_event == "LINK_CLICKS")
{
biddingStrategyConfiguration.biddingStrategyType = 
BiddingStrategyType.MANUAL_CPC;
}
}

campaign.biddingStrategyConfiguration = 
biddingStrategyConfiguration;

// Campaign Channel Type
if (_Ad.AdSet.AdCampaign.objective == "SEARCH")
campaign.advertisingChannelType = 
AdvertisingChannelType.SEARCH;
else if (_Ad.AdSet.AdCampaign.objective == "DISPLAY")
campaign.advertisingChannelType = AdvertisingChannelType.
DISPLAY;
   
// Set the network settings
NetworkSetting networkSetting = new NetworkSetting();
foreach (AdPlatform _AdPPlatform in _Ad.AdSet.AdPlatforms)
{
if (_AdPPlatform.Platform == "SEARCH")
{
networkSetting.targetGoogleSearch = true;
networkSetting.targetSearchNetwork = true;
}
if (_AdPPlatform.Platform == "CONTENT")
networkSetting.targetContentNetwork = true;
}
campaign.networkSetting = networkSetting;

// Set start and end date
if(action == "ADD")
campaign.startDate = ((_Ad.AdSet.start_time ?? 
DateTime.Now) > DateTime.Now ? (_Ad.AdSet.start_time ?? DateTime.Now) : 
DateTime.Now).ToString("MMdd");
campaign.endDate = (_Ad.AdSet.end_time ?? 
DateTime.Now).ToString("MMdd");

Google.Api.Ads.AdWords.v201809.CampaignOperation operation = 
new Google.Api.Ads.AdWords.v201809.CampaignOperation()
{
operand = campaign,
@operator = action == "ADD" ? Operator.ADD : Operator.SET
};
operations.Add(operation);

return operations;
}

Thanks,
Zied

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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