Re: Create real estate feed google ads api

2019-12-09 Thread Adhub manager
Sorry i seemed to have posted the same question, it worked, thank you for 
your time!

On Monday, December 9, 2019 at 9:34:33 PM UTC+1, adsapiforumadvisor wrote:
>
> Hi,
>
> Thank you for reaching out. You can mimic this Java example 
> 
>  or 
> follow this guide 
> 
>  for 
> performing this action. Mapping to the RealEstatePlaceholderField 
> 
>  
> should allow the proper type to be set. If this doesn't work, please share 
> your detailed request and response logs *via reply privately to author *so 
> that I can further investigate the issue. You can find information on 
> enabling logging here 
> 
> .
>
> Regards,
> Mitchell
> Google Ads API Team
>
> ref:_00D1U1174p._5001UOE7Fk: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 
"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/1496ed74-5531-404d-8a46-036ae5273f0f%40googlegroups.com.


Re: Upload and connect html 5 ad in google ads api

2019-12-09 Thread Adhub manager
Hi Mitchell

I tried doing as you said i changed my method to upload it like an asset:
public static MutateAssetResult UploadHtml5(string filepath)
{
AssetServiceClient assetService = client.GetService(Services.V2.
AssetService);


MutateAssetsRequest req = new MutateAssetsRequest();


var data = File.ReadAllBytes(filepath);
req.Operations.Add(new AssetOperation
{
Create = new Asset
{
MediaBundleAsset = new MediaBundleAsset
{
Data = ByteString.CopyFrom(data)
},
Type = AssetTypeEnum.Types.AssetType.MediaBundle,
Name = "testbundle1",

}
});
req.CustomerId = customerId.ToString();
var result = assetService.MutateAssets(req);
return result.Results.First();

}

This however ended up giving me another error message 
"The error code is not in this version."

im using latest version of google ads api c# for nuget:
https://github.com/googleads/google-ads-dotnet 
2.6.0

Am i missing an argument maybe?

Thank you for your time!

On Monday, December 9, 2019 at 6:50:46 PM UTC+1, adsapiforumadvisor wrote:
>
> Hi,
>
> Thank you for reaching out. Instead of using the MediaFileService to 
> create your media_bundle you need to use the AssetService 
> 
>  
> since the new Ad requires a MediaBundleAsset 
> .
>  
> Additionally, make sure you follow the instructions in this guide 
>   when creating an 
> HTML5 ad.
>
> Regards,
> Mitchell
> Google Ads API Team
>
> ref:_00D1U1174p._5001UOE7Gs: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 
"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/34174ede-9f64-400b-b4fd-5c949a5f4a23%40googlegroups.com.


Upload and connect html 5 ad in google ads api

2019-12-09 Thread Adhub manager
Hi friends!

I am currently trying to get html5 upload to work, but im running into an 
issue when i try to create an ad i can connect to an adgroup.

Let me explain.

1. Create a campaign

2. Create an adgroup

3. Upload html 5

4. Create ad with html 5 ad.

Im stuck on 4 where i am trying to use the api like this from a c# client.

public static void AssetConnectionToAd(string 
mediaBundleResourceName, string adgroup)
{
AdGroupAdServiceClient adgroupServiceClient = client.GetService(
Services.V2.AdGroupAdService);
var req = new MutateAdGroupAdsRequest();
req.Operations.Add(new AdGroupAdOperation {
Create = new AdGroupAd
{
Ad = new Ad
{

DisplayUploadAd = new DisplayUploadAdInfo
{
DisplayUploadProductType = 
DisplayUploadProductTypeEnum.Types.DisplayUploadProductType.
DynamicHtml5CustomAd,
MediaBundle = new AdMediaBundleAsset
{
Asset = mediaBundleResourceName
}
},
},
AdGroup = adgroup,  

}

});
req.CustomerId = customerId.ToString();
   var ad = adgroupServiceClient.MutateAdGroupAds(req);
}

If i try to connect this i get an error message:
"Resource name 'customers/6282670156/mediaFiles/26325216408' is malformed: 
expected 'customers/{customer_id}/assets/{part_1}'."

I am suspecting im uploading it wrong since its creating the resource in 
another place with /mediafiles and not /assets.

My upload method:

public static MutateMediaFileResult UploadHtml5(string filepath)
{
MediaFileServiceClient mediaService = client.GetService(Services
.V2.MediaFileService);

MutateMediaFilesRequest req = new MutateMediaFilesRequest();

var data = File.ReadAllBytes(filepath);
req.Operations.Add(new MediaFileOperation()
{
Create = new MediaFile
{
MediaBundle = new MediaBundle
{
Data = ByteString.CopyFrom(data)   

},
Type = MediaTypeEnum.Types.MediaType.MediaBundle   


}
});
req.CustomerId = customerId.ToString();
  var result = mediaService.MutateMediaFiles(req);
return result.Results.First();   

}

This will return 'customers/6282670156/mediaFiles/26325216408'

I have tested my bundle from the google ads ui and run a succesful campaign 
with the asset so it is working, however i think im using the wrong upload 
service.

Can anyone advise? 

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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/4146cbde-503d-4bde-adb4-8d3cdaf65839%40googlegroups.com.


Re: Create real estate feed google ads api

2019-12-09 Thread Adhub manager


On Monday, October 21, 2019 at 1:10:10 AM UTC+2, Adhub manager wrote:
>
> Hello!
>
> Ive been trying to copy a real estate feed with the google ads nuget 
> package for c# 
>
> [image: feeedquestion.PNG]
>
> My approach is 
>
>
>
>1. Get feed from query : "SELECT feed.attributes FROM feed WHERE 
>feed.id = 'ID'"
>2. then i create a new feed with the data i get returned however this 
>doesnt get a type of Dynamic display ad feed (RealEstate) as seen in the 
>screensho, the attributes are all correct and looks fine.
>
>
> What am i missing to be able to specify the type?
>
>
>
>
> Thank you for taking your time and providing answers it worked like a 
> charm, sorry for the late reply other business came up :)
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/01b5c0b6-a1ba-4e3a-a475-970da1d2f5d4%40googlegroups.com.


Re: Create real estate feed google ads api

2019-10-21 Thread Adhub manager

>
> I figured out i had to create a feed mapping for my feed and add the id's 
> i got as a placeholder for the feed then the type showed up and i could 
> select it in campaigns.
>
> However i run into another problem when using the google ads api c# 
package i cant find any information on FeeditemScheduler 

> feedservices scheduling in Adwords but there is no equivilant in google 
> ads api, so how do i set the feed scheduling to http link ?
>
> https://developers.google.com/adwords/api/docs/guides/feed-services#scheduling

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/a446ef66-10a4-4384-9578-406c91e7%40googlegroups.com.


Re: Create real estate feed google ads api

2019-10-21 Thread Adhub manager
This is for google ads api.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/6c15a8b3-dd14-4267-9c1f-e5351f35a890%40googlegroups.com.


Create real estate feed google ads api

2019-10-20 Thread Adhub manager
Hello!

Ive been trying to copy a real estate feed with the google ads nuget 
package for c# 

[image: feeedquestion.PNG]

My approach is 



   1. Get feed from query : "SELECT feed.attributes FROM feed WHERE feed.id 
   = 'ID'"
   2. then i create a new feed with the data i get returned however this 
   doesnt get a type of Dynamic display ad feed (RealEstate) as seen in the 
   screensho, the attributes are all correct and looks fine.


What am i missing to be able to specify the type?






-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/4b521f21-a0bf--8911-298860d0baf0%40googlegroups.com.